13232 Commits

Author SHA1 Message Date
Christopher Tate
ecb4dbf6fc am 1965b447: Revert "The default home intent needs CATEGORY_DEFAULT"
* commit '1965b4479d07750756ccf845134df6ddd5ce4103':
  Revert "The default home intent needs CATEGORY_DEFAULT"
2013-05-10 15:08:27 -07:00
Christopher Tate
1965b4479d Revert "The default home intent needs CATEGORY_DEFAULT"
This reverts commit 1fea6b374f612ca8cedc17de873526f0f7c42a4e.

Bug 8895796

Change-Id: I80ecf1b718829c25e2a7adae956ebe9493cb3f33
2013-05-10 15:01:02 -07:00
Amith Yamasani
069d7e9b81 am 153919ed: Merge "Cache the scaled avatar drawables in the keyguard user switcher" into jb-mr2-dev
* commit '153919ed2f128fb5d1b55782ea89fadcc20fc841':
  Cache the scaled avatar drawables in the keyguard user switcher
2013-05-09 16:23:31 -07:00
Matthew Xie
c0c7cebe3f am b566c466: Merge "Donot bind to GATT service when BLE is not supported" into jb-mr2-dev
* commit 'b566c466c73d351d01e64d1c9ba609133efc4ffd':
  Donot bind to GATT service when BLE is not supported
2013-05-09 16:23:26 -07:00
Amith Yamasani
153919ed2f Merge "Cache the scaled avatar drawables in the keyguard user switcher" into jb-mr2-dev 2013-05-09 22:17:51 +00:00
Amith Yamasani
6fc1d4e8e6 Cache the scaled avatar drawables in the keyguard user switcher
Loading the avatar icons and drawing them into the sized bitmap
turns out to be quite expensive and the cost increases with number
of users. Caching them shaves off several hundred milliseconds from
Keyguard inflation time during user switching on the lockscreen.

For instance, 15ms vs. 750ms with 3 avatars on a certain 7" tablet.

Bug: 7986933
Change-Id: I3e2065bfa25aa263133ba204ca364c3b04d7c0ff
2013-05-09 14:44:38 -07:00
Matthew Xie
b566c466c7 Merge "Donot bind to GATT service when BLE is not supported" into jb-mr2-dev 2013-05-09 21:14:47 +00:00
Amith Yamasani
fb37bb67ec am 73094fbc: Merge "Don\'t allow non-authorized apps to access auth tokens" into jb-mr2-dev
* commit '73094fbc23a4f6142f790f63b66ae5b553fb6e55':
  Don't allow non-authorized apps to access auth tokens
2013-05-09 10:47:08 -07:00
Amith Yamasani
73094fbc23 Merge "Don't allow non-authorized apps to access auth tokens" into jb-mr2-dev 2013-05-09 17:43:16 +00:00
Daniel Sandler
06c31ff4cd am 60ac308e: Merge "Defend against a system server crash." into jb-mr2-dev
* commit '60ac308e1da302716fd6c5d805c513221039bac2':
  Defend against a system server crash.
2013-05-09 10:31:51 -07:00
Daniel Sandler
60ac308e1d Merge "Defend against a system server crash." into jb-mr2-dev 2013-05-09 17:29:05 +00:00
Dianne Hackborn
4d2ee536ae am cb359697: Merge "DO NOT MERGE. Fix issue #8868003: Recents thumbnails scale..." into jb-mr2-dev
* commit 'cb35969708e88057bda7c54c7b3ac1d606ad95c5':
  DO NOT MERGE.  Fix issue #8868003: Recents thumbnails scale...
2013-05-09 10:23:08 -07:00
Dianne Hackborn
cb35969708 Merge "DO NOT MERGE. Fix issue #8868003: Recents thumbnails scale..." into jb-mr2-dev 2013-05-09 17:19:57 +00:00
Matthew Xie
32ab77b4c5 Donot bind to GATT service when BLE is not supported
bug 8664724

Change-Id: I9b9222cd5877babcded73798a5d1ff13fd10e791
2013-05-08 19:26:57 -07:00
Dianne Hackborn
bee1fb9363 DO NOT MERGE. Fix issue #8868003: Recents thumbnails scale...
...+ zoom to wrong place

We need to make sure the overscan insets are never negative.

Change-Id: I6ca82acc2a6c887085a5d14d03a55ea78451e4b6
2013-05-08 18:05:58 -07:00
Christopher Tate
6312a1968c am cfb09fac: Merge "The default home intent needs CATEGORY_DEFAULT" into jb-mr2-dev
* commit 'cfb09fac73716291468b61f20ee1b7818d1dcfd1':
  The default home intent needs CATEGORY_DEFAULT
2013-05-08 16:13:20 -07:00
Christopher Tate
cfb09fac73 Merge "The default home intent needs CATEGORY_DEFAULT" into jb-mr2-dev 2013-05-08 23:09:49 +00:00
Svetoslav
5055e35dfe am 0dd85e4e: Merge "Dynamically togglable accessibility features improperly handled." into jb-mr2-dev
* commit '0dd85e4e99466709049ba913241612b6678732ca':
  Dynamically togglable accessibility features improperly handled.
2013-05-08 14:37:03 -07:00
Svetoslav
0dd85e4e99 Merge "Dynamically togglable accessibility features improperly handled." into jb-mr2-dev 2013-05-08 21:33:43 +00:00
Amith Yamasani
d20ea2f158 Don't allow non-authorized apps to access auth tokens
For restricted profiles, if an app tries to guess an account name and
requests an auth token, even though the framework is going to prompt
for permission, it could be authorized by someone who can't read.

If the app is not opting in to see accounts, don't let it get auth tokens
by verifying first that it's in the list of known accounts.

Bug: 8736380
Change-Id: I6caf88cfe14aa1023d55bcb28ad80ccd89eeb79b
2013-05-08 12:57:01 -07:00
Svetoslav
042ccec5a0 Dynamically togglable accessibility features improperly handled.
Touch exploration and enhanced web accessibility can be toggled at
run time. However, the code that updates the state of these features
was not properly doing that. In particular, it did not write to the
settings if the feature gets disabled. Now the logic is much cleaner.
If there is a service that can request and requests a feature and
the feature is not enabled, we enabled it, otherwise the feature is
disabled.

bug:8790771

Change-Id: I218dfa12fd02220c94940b54f42bed578811a794
2013-05-08 11:13:15 -07:00
Victoria Lease
b7373537ec am acd341d8: Merge "OO NOT MERGE allow connected location providers location access" into jb-mr2-dev
* commit 'acd341d8682ca57c1066d664725ebc72f5ef10c1':
  OO NOT MERGE allow connected location providers location access
2013-05-08 07:41:56 -07:00
Christopher Tate
1fea6b374f The default home intent needs CATEGORY_DEFAULT
Because the resolve activity always assumes CATEGORY_DEFAULT, there are odd
cases where apps with malformed intent filters wind up interfering with
users' ability to specify a preferred launcher app.

Bug 8805220

Change-Id: I4c1295dc844e442eec6efd603ce11b673879dd5a
2013-05-07 18:47:38 -07:00
Victoria Lease
d9ba79ed7c OO NOT MERGE allow connected location providers location access
Cherry-pick of I0c383eb82ed041e57a7d32321df2d67b462d4e21 from master

Oops, it seems the fused location provider was being denied access
to locations when any user other than the primary device owner is
logged in. This was breaking the fused location provider entirely
for all secondary users of a given device.

Bug: 8766225
Change-Id: Ic0db5f2094828c897a405abb0dca6ac39a2ca526
2013-05-07 15:30:28 -07:00
Craig Mautner
a14a14ab85 am 84ce55cf: Merge "Don\'t limit the overscan frame to the window frame." into jb-mr2-dev
* commit '84ce55cfd50bdfc7054de5ee9f69de7cf08b61ae':
  Don't limit the overscan frame to the window frame.
2013-05-07 12:32:50 -07:00
Craig Mautner
84ce55cfd5 Merge "Don't limit the overscan frame to the window frame." into jb-mr2-dev 2013-05-07 19:24:57 +00:00
Craig Mautner
a248eeec27 Don't limit the overscan frame to the window frame.
Fixes bug 8829372.

Change-Id: I803ae60fcc38649c0a7a9cb39429333755e47e2b
2013-05-07 11:41:27 -07:00
Daniel Sandler
c1b49bd26b Defend against a system server crash.
Bug: 8575629
Change-Id: Iafc8ab2f7460c8eacc37fc077cf5a3df16cf2911
2013-05-07 13:55:07 -04:00
Dianne Hackborn
a98b0ff812 am d43a71da: Merge "Help for the debugging help for issue #8734824." into jb-mr2-dev
* commit 'd43a71dad80dfca65b0758f4333360516f6ad300':
  Help for the debugging help for issue #8734824.
2013-05-06 16:48:16 -07:00
Dianne Hackborn
d43a71dad8 Merge "Help for the debugging help for issue #8734824." into jb-mr2-dev 2013-05-06 23:46:57 +00:00
Dianne Hackborn
8bd64df2ad Help for the debugging help for issue #8734824.
Add a new "hang" am command that lets you hang the system
process.  Useful for testing.

Change-Id: Ice0fc52b49d80e5189f016108b03f9fd549b58a7
2013-05-06 16:07:26 -07:00
Christopher Tate
5f71421354 am e242c731: Merge "Ensure install-during-restore is like install-then-restore" into jb-mr2-dev
* commit 'e242c731f2288a615d54f329cdeb16157d4c15ea':
  Ensure install-during-restore is like install-then-restore
2013-05-06 14:25:10 -07:00
Christopher Tate
e242c731f2 Merge "Ensure install-during-restore is like install-then-restore" into jb-mr2-dev 2013-05-06 21:12:41 +00:00
Dianne Hackborn
485d7a31a8 am 5b88a2fd: Debugging help for issue #8734824: WATCHDOG KILLING SYSTEM PROCESS
* commit '5b88a2fd7b77880f6e09ae4a1de509bebe28bc3a':
  Debugging help for issue #8734824: WATCHDOG KILLING SYSTEM PROCESS
2013-05-06 13:47:04 -07:00
Christopher Tate
2baf6dcfcf Ensure install-during-restore is like install-then-restore
When we've installed an apk from the archive, recheck whether
to apply the system-uid policy restrictions around file system
restores.

Bug 8833099

Change-Id: Ifa1b5877673a0d6ca6acf94e60f314fd0dda008c
2013-05-06 13:10:21 -07:00
Dianne Hackborn
5b88a2fd7b Debugging help for issue #8734824: WATCHDOG KILLING SYSTEM PROCESS
IActivityController has a new callback which the Watchdog calls
when it detects that the system process is hung.  This may be
use full monkey.  All hail the monkey!

Also add a new private feature to Binder to be able to turn off
all incoming dump() calls to a process.  The watchdog uses this
when it reports it is hung, so that if someone, say, wants to
collect a bug report at this point they won't get stuck waiting
for things that are all busted.

Change-Id: Ib514d97451cf3b93f29e194c1954e29f948c13b1
2013-05-06 11:16:18 -07:00
Svetoslav
b0675df8fd am faa47b52: Merge "Idle maintenance scheduling broken." into jb-mr2-dev
* commit 'faa47b526fc35be01b1bc46a78679adde87f6701':
  Idle maintenance scheduling broken.
2013-05-06 11:10:57 -07:00
Svetoslav Ganov
4337e038a2 am 62159c0d: Merge "Multiple bindings to the same accessiblity serice if it dies." into jb-mr2-dev
* commit '62159c0d854737f8dc519fba01fd28adea26e57f':
  Multiple bindings to the same accessiblity serice if it dies.
2013-05-06 08:44:49 -07:00
Dianne Hackborn
2a44f8d102 am d3956321: Merge "Fix issue #8798662: NPE in..." into jb-mr2-dev
* commit 'd3956321c173beb1fb096b5171e76ba7b7e1bc1e':
  Fix issue #8798662: NPE in...
2013-05-06 08:44:47 -07:00
Svetoslav
faa47b526f Merge "Idle maintenance scheduling broken." into jb-mr2-dev 2013-05-03 23:33:09 +00:00
Svetoslav Ganov
62159c0d85 Merge "Multiple bindings to the same accessiblity serice if it dies." into jb-mr2-dev 2013-05-03 21:04:04 +00:00
Svetoslav
6a08a12b8e Idle maintenance scheduling broken.
1. The scheduling was relying on receiving battery level broadcasts
   which however are not sent if the device is asleep. The maintenance
   window was not bound and we could miss a frame if the user did
   not interact the device longer than the min time between two
   maintenance windows.

2. Hide the idle maintenance intents since this will be rewritten
   to user services.

bug:8688454

Change-Id: I17b421b09823cb46ec218cabda19e02432d94f8c
2013-05-03 14:03:06 -07:00
Dianne Hackborn
d3956321c1 Merge "Fix issue #8798662: NPE in..." into jb-mr2-dev 2013-05-03 20:47:39 +00:00
Dianne Hackborn
ca92a4c38f Fix issue #8798662: NPE in...
...com.android.server.am.ServiceRecord.postNotification()

Change-Id: I3403bc50eb95d410183fc60ef252775a688b6290
2013-05-03 12:07:51 -07:00
Satoshi Kataoka
ee0a5fafa7 am 245a3e1c: Merge "Change the initial disabled state of disabled IMEs" into jb-mr2-dev
* commit '245a3e1c1ed265a13d07000ef6e786ec321b85c4':
  Change the initial disabled state of disabled IMEs
2013-05-03 11:19:01 -07:00
Svetoslav Ganov
bfa1bf0208 Multiple bindings to the same accessiblity serice if it dies.
1. When a service dies we clear its state and remove it from the bound services waiting
   for new onServiceConnected call in which to initialize and add the service. The
   problem is that after clearing and removing a dead service there is a call to
   onUserStateChangedLocked with will end up rebinding to the service, so we get
   multiple onServiceConnected calls as a result of which we add the service twice and
   it becomes a mess. Note that every time the service dies we end up being bound to
   it twice as many times - royal mess! onUserStateChangedLocked is not even needed
   since we cleare and remove the serivce and this method will be called when
   the service is recreated.

2. When a service dies and is recreated by the system we were not adding it properly
   since we regarded only services that we bond to and wait for the connecton. Now
   we are also regarding service which died and are recreated.

bug:8796109

Change-Id: I5ec60c67bd3b057446bb8d90b48511c35d45289d
2013-05-03 01:20:56 -07:00
Satoshi Kataoka
245a3e1c1e Merge "Change the initial disabled state of disabled IMEs" into jb-mr2-dev 2013-05-03 02:34:39 +00:00
Dianne Hackborn
4c41f6cd18 am 856a5a86: Merge "Fix issue #8768456: Settings > App Info under reports..." into jb-mr2-dev
* commit '856a5a860e11a85f8fbb1ad07f6ef444abeafbaf':
  Fix issue #8768456: Settings > App Info under reports...
2013-05-02 15:15:19 -07:00
Christopher Tate
77a66f4459 am b8453357: Merge "Send package-changed broadcasts to the correct users" into jb-mr2-dev
* commit 'b84533575601133868bf414c526b5b30de3e62c6':
  Send package-changed broadcasts to the correct users
2013-05-02 15:11:52 -07:00
Dianne Hackborn
856a5a860e Merge "Fix issue #8768456: Settings > App Info under reports..." into jb-mr2-dev 2013-05-02 22:11:36 +00:00