11611 Commits

Author SHA1 Message Date
Guang Zhu
befa8b5553 Revert "Log stack issues and start resize effort."
Bug: 8935057

This reverts commit b0245edae86b5811ea743c0f4cea095488304b1a.
2013-05-12 23:10:39 -07:00
Chris Wren
c5356f6dec am e39e313a: am c7588aa3: Merge "restart notification listener on package add" into jb-mr2-dev
* commit 'e39e313a356c43df104fc32a8efcb8fc92a72d80':
  restart notification listener on package add
2013-05-12 15:09:04 -07:00
Chris Wren
e39e313a35 am c7588aa3: Merge "restart notification listener on package add" into jb-mr2-dev
* commit 'c7588aa3913f0eb797457f97ff6381c1ee65c232':
  restart notification listener on package add
2013-05-12 15:06:55 -07:00
Chris Wren
c7588aa391 Merge "restart notification listener on package add" into jb-mr2-dev 2013-05-12 22:04:05 +00:00
Craig Mautner
b0245edae8 Log stack issues and start resize effort.
- Modify Am.java to accept 'stack resize' command.

- Add logging for assigning home stack to non-home task to track down
bug. And maybe fix bug.

- Add template parameter to ArrayList.

Change-Id: If904c3ead623464ff5863b7241c68c1b7573bcf4
2013-05-12 10:27:38 -07:00
Craig Mautner
5457e61f64 Fix window and wallpaper position problems
- Put wallpaper behind all other windows.

- When moving a task to the top or bottom of a stack, move all of the
other tasks' windows on the stack to the top or bottom with the task.

Change-Id: I0821341dfd602c9240c685e954dac42678132d4a
2013-05-12 10:27:37 -07:00
Craig Mautner
6f52f90307 Merge "Fix issue #8868003: Recents thumbnails scale..." 2013-05-10 23:32:02 +00:00
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
Craig Mautner
c36c8e6f1f Fix issue #8868003: Recents thumbnails scale...
...+ zoom to wrong place

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

master version of ag/307569.

Change-Id: I4beed63a9541e228087b588e32996669755fcc51
2013-05-10 13:33:31 -07:00
Chris Wren
3da7302dd2 restart notification listener on package add
Bug: 8813471
Change-Id: Icf6c69811392c4567a5c842740e463fb957e7563
2013-05-10 14:49:53 -04:00
Dianne Hackborn
0bab11cfff Merge "Eradicate basically all of the system reboot stuff in the watchdog." 2013-05-10 17:49:00 +00:00
Dianne Hackborn
f6438b16ba Eradicate basically all of the system reboot stuff in the watchdog.
This was implemented for 1.0 out of paranoia about the possibility
of needing to schedule reboots of the system after it went out in
the field, which I am happy to say was never ever used.

Let's get rid of it.

A small stub is left, to still service the API that allows people
to send a reboot broadcast to have the system immediately reboot.

Change-Id: I6731b24a28340e50c8015f8cb28e48f74f69f9b7
2013-05-09 18:53:48 -07:00
Amith Yamasani
ecd5afe1ef resolved conflicts for merge of 069d7e9b to master
Change-Id: Ia8fd5de3d4cc275fd358132bcb2c198d1e7b6877
2013-05-09 17:07:08 -07:00
Matthew Xie
b50619cc14 am c0c7cebe: am b566c466: Merge "Donot bind to GATT service when BLE is not supported" into jb-mr2-dev
* commit 'c0c7cebe3f5da99aeb48eb62bffbaf3183814194':
  Donot bind to GATT service when BLE is not supported
2013-05-09 16:28:30 -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
Dianne Hackborn
b14e42f121 Merge "Cleanup some of the thread merging." 2013-05-09 22:30:30 +00: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
7e028153da am fb37bb67: am 73094fbc: Merge "Don\'t allow non-authorized apps to access auth tokens" into jb-mr2-dev
* commit 'fb37bb67ec8ec2180e7afb51e748a7f56cabae23':
  Don't allow non-authorized apps to access auth tokens
2013-05-09 12:39:18 -07:00
Daniel Sandler
b68de582fc am 06c31ff4: am 60ac308e: Merge "Defend against a system server crash." into jb-mr2-dev
* commit '06c31ff4cd949dc5444569257123a05642475d34':
  Defend against a system server crash.
2013-05-09 12:39:12 -07: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
Guang Zhu
6eee6ebc68 Revert "The default home intent needs CATEGORY_DEFAULT"
This reverts commit 1fea6b374f612ca8cedc17de873526f0f7c42a4e.

Bug: 8878319
2013-05-08 22:19:52 -07: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
9809e0d2d7 am 6312a196: am cfb09fac: Merge "The default home intent needs CATEGORY_DEFAULT" into jb-mr2-dev
* commit '6312a1968c5e16e193b5b6d3c2f4b92b2de9311d':
  The default home intent needs CATEGORY_DEFAULT
2013-05-08 16:15:30 -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
4190a634f0 am 5055e35d: am 0dd85e4e: Merge "Dynamically togglable accessibility features improperly handled." into jb-mr2-dev
* commit '5055e35dfed39a87999664a7662ddcaaadcfa342':
  Dynamically togglable accessibility features improperly handled.
2013-05-08 15:05:31 -07:00
Craig Mautner
cef2d56fc9 Merge "resolved conflicts for merge of a14a14ab to master" 2013-05-08 22:01:33 +00:00
Craig Mautner
79a64b621e resolved conflicts for merge of a14a14ab to master
Change-Id: I80259a2887f36fc3af409322dea36aa90a2ee847
2013-05-08 15:00:09 -07: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
Nick Kralevich
dbcf2d7482 PowerManagerService: Don't reboot directly.
Instead of calling the reboot system call ourselves, send
a message to init asking it to reboot the system. Init is in
a better position to make sure the system is cleanly shutdown.

Get rid of CAP_SYS_BOOT from system_server.

Bug: 8646621
Change-Id: I200722412844ad8d99e35a442021c6263c3ebc05
2013-05-08 13:42:10 -07: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
Dianne Hackborn
efa92b2182 Cleanup some of the thread merging.
Adds an optimization for checking whether a looper is stuck,
with a new Looper method to see if its thread is currently
idle.  This will allow us to put a large number of loopers
in the monitor efficiently, since we generally won't have to
do a context switch on each of them (since most looper threads
spend most of their time idle waiting for work).

Also change things so the system process's main thread
is actually running on the main thread.  Because Jeff
asked for this, and who am I to argue? :)

Change-Id: I12999e6f9c4b056c22dd652cb78c2453c391061f
2013-05-07 15:33:26 -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
a89e40ce0b Merge "Do not launch home task if activities remain" 2013-05-07 22:06:26 +00:00
Craig Mautner
525f3d9df6 Do not launch home task if activities remain
When a root activity is finishing and it is supposed to return to
home make sure there are only lower activities waiting to start before
going home.

Fixes bug 8632206.

Various other refactorings for efficiency.

Change-Id: I8bbb9de78d0ea9f45a504cf4bad72c698e9cc3d8
2013-05-07 15:01:46 -07:00
Victoria Lease
2f5b97c518 allow connected location providers location access
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: I0c383eb82ed041e57a7d32321df2d67b462d4e21
2013-05-07 14:22:02 -07:00