39780 Commits

Author SHA1 Message Date
Nick Kralevich
7a8c135177 AppSecurityPermissions: Add isGranted to isDisplayablePermission
Modify isDisplayablePermission to display a permission if the
app update will grant a new optional permission to the app.

Change-Id: Ic647826b0c48f9f7ec8e4f69b90197211f83278d
2013-03-26 17:18:32 -07:00
Nick Kralevich
a5043ed7ea AppSecurityPermissions: Modify isDisplayablePermission
Add optional permission support to isDisplayablePermission.

A permission is displayable if it's required, or was previously
granted to the app.

Currently, this change is a no-op. The package parser code
does not currently honor <uses-permission android:required="false"> in
the application's manifest, and assumes a permission is always required.

This change sets the ground for future optional permissions work.

Change-Id: I2ec4a49adbfab9980e116ed43354f16bdeaa301d
2013-03-25 14:28:30 -07:00
Nick Kralevich
d6182f993d Remove dead code.
This code is never called.

Change-Id: I2ed3fee93004e967bfb2a3080106c3950bf43ce2
2013-03-25 11:43:19 -07:00
Nick Kralevich
754aa11382 Merge "AppSecurityPermissions: minor code cleanup" into jb-mr2-dev 2013-03-25 17:37:35 +00:00
Eric Laurent
7c566bf3e4 Merge "audio service: add config option for fixed volume" into jb-mr2-dev 2013-03-25 17:08:28 +00:00
Nick Kralevich
10ac1d125a AppSecurityPermissions: minor code cleanup
Convert more instance variables to private.
Delete some dead code.
Simplify some code.

Change-Id: Iedd55857138b71b2915b9886128adfcd9e4b3c57
2013-03-24 15:49:33 -07:00
Dianne Hackborn
37f180b4a5 Merge "App ops: don't crash when provide read access is off." into jb-mr2-dev 2013-03-23 01:43:37 +00:00
Dianne Hackborn
9fa39bd255 App ops: don't crash when provide read access is off.
If the caller supplied an empty selection string (instead
of null) we would crash due to creating a bad SQLite statement.

Change-Id: I462803b80c81815ed9a3a320c23060daa28e8114
2013-03-22 18:42:14 -07:00
Dianne Hackborn
b685faa2ce Merge "Implement #8323587, #8323342, #8323590: new features." into jb-mr2-dev 2013-03-23 01:26:08 +00:00
Michael Wright
53d13667e3 Fix log tags in trackball debugging
Change-Id: I02a623c96aff8b6ffbe11161feea39ad26ba0e83
2013-03-23 00:57:51 +00:00
Dianne Hackborn
119bbc378d Implement #8323587, #8323342, #8323590: new features.
8323587: Add feature for supporting app widgets
8323342: Add feature for replacing the home screen
8323590: Add feature for supporting input methods

The app widget service looks for the app widget feature
and refuses to work if it doesn't exist.  I didn't do
this for the input method service because some devices
will probably want to still make use of that mechanism
without supporting third party input methods.

Change-Id: Ie3b089105e104f4d767cdb03cdbe4fdb1c17382e
2013-03-22 17:27:25 -07:00
Dianne Hackborn
1a89c5324b Merge "New media button API." into jb-mr2-dev 2013-03-22 23:13:49 +00:00
Michael Wright
88a0765dd4 Merge "Add pipelining optimization to IME dispatching" into jb-mr2-dev 2013-03-22 22:49:53 +00:00
Christopher Tate
57b0f36382 Merge "Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)" into jb-mr2-dev 2013-03-22 22:24:21 +00:00
Chris Craik
81cce37ded Merge "Restore final canvas state after deferred flush" into jb-mr2-dev 2013-03-22 22:11:33 +00:00
Christopher Tate
fc05434908 Throw on illegal arguments to ArrayUtils.equals(a1, a2, len)
Specifically, throw an explicit IllegalArgumentException if
'len' is negative, rather than falling over in some other
way further down the line.

Change-Id: If955de7ec1a15aa9aa8c42b6994b059e0cdffcee
2013-03-22 15:01:13 -07:00
Dianne Hackborn
961cae9254 New media button API.
This allows sending media buttons to any PendingIntent,
so they can be captured with a registered receiver.

Also add some new ViewTreeObserver APIs; this is all for
a new support library API to watch media buttons while an
app has input focus.

Change-Id: I3c51cef59460662b008c9a2cc87d6a6383c21855
2013-03-22 14:49:28 -07:00
Wink Saville
c1b40c79be Merge "Add some new constants." into jb-mr2-dev 2013-03-22 21:41:31 +00:00
Jim Miller
7b3526d536 Merge "Fix alternate time zone display for clock widget." into jb-mr2-dev 2013-03-22 21:40:47 +00:00
Jeff Sharkey
9da8c37ab8 Merge "Move XML utility methods into shared location." into jb-mr2-dev 2013-03-22 20:45:17 +00:00
Jeff Sharkey
ded7b75d1a Move XML utility methods into shared location.
Change-Id: I15e8f0e4a6c5546d9be956ca0d46715d3441458c
2013-03-22 13:43:41 -07:00
Michael Wright
c8a7e54fef Add pipelining optimization to IME dispatching
Rather than wait for the IME to return before sending it the next input event,
send all available input events as soon as we receive them.

Bug: 7984576
Change-Id: Ie0b1086efc4f9e1ececac22afd997829304bf180
2013-03-22 13:35:57 -07:00
Robert Greenwalt
55187f1850 Prevent NPE in new API.
bug:8455284
Change-Id: I26ecbd024d1fe001f3af792c4e66409b2968c7ec
2013-03-22 12:00:17 -07:00
Chris Craik
a4e16c58c9 Restore final canvas state after deferred flush
bug:8450062

- Fixes overdraw indication with DeferredDisplayList
- Fixes drawHardwareLayer called after flush

Additionally changes drawLayer to pass its paint to native via setLayerPaint

Wrap flush in save/restore so that reordering doesn't affect final
transform

Change-Id: I08befa42c28500da6387699eefd4be28aedf9f4c
2013-03-22 11:54:51 -07:00
Baligh Uddin
9b8a08ddb4 Import translations. DO NOT MERGE
Change-Id: I8c0470426c37a3a357e64c6143b49abd4e0dd682
Auto-generated-cl: translation import
2013-03-22 09:31:24 -07:00
Lorenzo Colitti
31453e5a2b Merge "Reset connections on all stacked interfaces." into jb-mr2-dev 2013-03-22 09:45:53 +00:00
Mathias Agopian
32b9f6258d Revert "make sure screenshot are in a format supported by Bitmap.java"
This reverts commit 74beb8953789635ad50fa979cf9ac8178a78cb81.

it was checked-in by mistake
2013-03-22 00:27:46 -07:00
Mathias Agopian
c61974b050 Merge "make sure screenshot are in a format supported by Bitmap.java" into jb-mr2-dev 2013-03-22 07:26:26 +00:00
Mathias Agopian
74beb89537 make sure screenshot are in a format supported by Bitmap.java
Change-Id: Ic3ab7db31f1810ea19aac55d448dd1d4d6c419e4
2013-03-21 23:40:56 -07:00
Michael Wright
765ddb4bf4 Merge "Separate sessionCreated and finishedEvents callbacks" into jb-mr2-dev 2013-03-22 03:36:49 +00:00
Michael Wright
d46ded8830 Merge "Add tracing for pending queue size" into jb-mr2-dev 2013-03-22 03:28:01 +00:00
Eric Laurent
83a017b6b7 audio service: add config option for fixed volume
Add a boolean configuration option config_useFixedVolume indicating if
stream volumes or master volume can be modified.
If the option is true, the AudioManager volume and mute APIs will be no ops and the
volumes will be maxed out.
To be consistent:
- the ringer mode is forced to normal and cannot be modified
- volume panel is never displayed
- volume settings are not available
- ringer mode global action is not displayed.

The default for this option if false.

This is useful for a class of devices intended for connection to a digital
audio output only, where the volume is directly controlled on the audio sink.

Bug 8161458

Change-Id: I2571d5ee79952ef0914d8fd1985816467a80adcd
2013-03-21 18:43:00 -07:00
Fabrice Di Meglio
36fb0166a3 Merge "Fix bug #8200928 ExpandableListView should be RTL-aware" into jb-mr2-dev 2013-03-22 01:20:15 +00:00
Adam Powell
ef79366980 Merge "Fix a stability regression in ListView arrow scrolling" into jb-mr2-dev 2013-03-22 01:14:28 +00:00
Adam Powell
86a1a245d2 Merge "Revert "Revert "Fix ListView is not scrolled properly with arrows""" into jb-mr2-dev 2013-03-22 01:12:43 +00:00
Michael Wright
52a5352626 Separate sessionCreated and finishedEvents callbacks
Bug: 8276952
Change-Id: If7051086c060fcce5d1e958ebbddec0784c851da
2013-03-21 17:47:40 -07:00
Michael Wright
95ae9429ee Add tracing for pending queue size
Change-Id: Ib31c2245feca31d0276ef1ebf6e6d237d0297671
2013-03-21 17:47:40 -07:00
Amith Yamasani
1edaff0709 Merge "Fix API version number for new symbols." into jb-mr2-dev 2013-03-22 00:19:12 +00:00
Jim Miller
9831d18883 Fix alternate time zone display for clock widget.
This fixes a bug where the widget resize event was being sent
for the wrong user.

The issue was with creating AppWidgetHostViews with Keyguard's
context which contains the wrong user id.

Fixes bug 8392718

Change-Id: I7efbc13161800224a342880c35470ed0b45824d0
2013-03-21 17:14:28 -07:00
Adam Powell
2a93911b87 Fix a stability regression in ListView arrow scrolling
The earlier patch 3cf7b3c59 introduced a stability regression. Perform
the appropriate bounds checking alongside the fix it implements.

Bug 8264185

Change-Id: I943d6c05bacdd777f89243fdac97788b16639dc6
2013-03-21 17:08:38 -07:00
Amith Yamasani
8b19c9b877 Fix API version number for new symbols.
Change-Id: I9f99f99b6c2d3eec54ea784e3e79e86347c6a522
2013-03-21 16:53:10 -07:00
Fabrice Di Meglio
605c5af9c8 Fix bug #8200928 ExpandableListView should be RTL-aware
- draw the group and child indicator at the correct position when in RTL mode

Change-Id: Ib346ae59f17c129fc59b76cd7fcc36fbdb86e499
2013-03-21 16:10:13 -07:00
Kenny Root
e37478c4eb am 9d262c49: am f6c4dba2: Merge "KeyStore: change migrate to duplicate"
* commit '9d262c49d96de4d896594bfcf00ece873f1abb7f':
  KeyStore: change migrate to duplicate
2013-03-21 16:07:11 -07:00
Kenny Root
9d262c49d9 am f6c4dba2: Merge "KeyStore: change migrate to duplicate"
* commit 'f6c4dba2d30ddba41ccfd6d9d2be2729ea496902':
  KeyStore: change migrate to duplicate
2013-03-21 16:05:06 -07:00
Eric Laurent
116e56cdf4 Merge "Modify headphone volume warning message" into jb-mr2-dev 2013-03-21 23:00:14 +00:00
Eric Laurent
6b537c67a6 Modify headphone volume warning message
Bug 8434489

Change-Id: Icfbda6a74150ffec68313ef5bc87ed7d3432dd74
2013-03-21 15:52:21 -07:00
Daniel Sandler
dc0299fb23 Merge "Allow whitelisted non-system packages to listen for notifications." into jb-mr2-dev 2013-03-21 22:01:59 +00:00
Dianne Hackborn
c3ab03a9f2 Merge "Fix issue #8436951 JB-MR2: Compatibility: Audible, Pandora, ..." into jb-mr2-dev 2013-03-21 21:55:53 +00:00
Kenny Root
5f1d965f7d KeyStore: change migrate to duplicate
After discussion, it was determined that duplicate would be less
disruptive and it still fit in the current HAL model.

Change-Id: I2f9cae48d38ec7146511e876450fa39fc92cda55
2013-03-21 14:24:19 -07:00
Dianne Hackborn
2ced96c544 Fix issue #8436951 JB-MR2: Compatibility: Audible, Pandora, ...
...Tune-In does not work since JWQ77

Instead of crashing the app for it being bad, just go ahead and
show a notification for it anyway that we make up.

You get what you deserve. :p

Change-Id: I92e32b9ff8835dabde63f8e08e991f72de0d0a92
2013-03-21 14:23:46 -07:00