11463 Commits

Author SHA1 Message Date
Satoshi Kataoka
c6f7a7ff88 Merge "A tiny cleanup as the supplement of I9b5ef954479150bc4735 Bug: 3483284 Bug: 8851603" 2013-05-20 21:32:03 +00:00
Satoshi Kataoka
12afe1450e A tiny cleanup as the supplement of I9b5ef954479150bc4735
Bug: 3483284
Bug: 8851603

Change-Id: Ia6dd894dced9cc68c04aafdcae754a404cf52e83
2013-05-21 06:19:27 +09:00
Satoshi Kataoka
f1a6d646a4 Merge "Fix a bug on the focus of the input method switching dialog" 2013-05-20 21:11:47 +00:00
Satoshi Kataoka
02679f647b Fix a bug on the focus of the input method switching dialog
Bug: 8851603
Change-Id: I9b5ef954479150bc47351197c792fb96aba70d01
2013-05-21 05:59:56 +09:00
Craig Mautner
b3b36ba138 Resize all changed windows and fix moveTaskToStack
- Add all changing windows to mResizingWindows when an ActivityStack
is resized.

- Stop calling TaskStack.setBounds if the bounds haven't changed.

- Make moving a task from one stack to another work properly.

- Eliminate unused methods and redundant variables in WindowState and
WindowStateAnimator.

Change-Id: I3a950c777bcc50cdeced150d44423d4d0b38af4a
2013-05-20 13:25:14 -07:00
Craig Mautner
f7bfefb598 Reformat wrapped lines and merge sendMessages.
Change-Id: I2834966196c2e6a778fc0cb71e4a56411b24c3f0
2013-05-20 13:25:14 -07:00
Robert Greenwalt
e0fc187549 am dfbf9901: am 5c11e8ee: Fix off-by-1 error in timing
* commit 'dfbf9901b4c16c6f7658d3e8bdb1573886c927e4':
  Fix off-by-1 error in timing
2013-05-20 09:44:42 -07:00
Robert Greenwalt
dfbf9901b4 am 5c11e8ee: Fix off-by-1 error in timing
* commit '5c11e8ee5463b88907814e3e8716af292f90fb86':
  Fix off-by-1 error in timing
2013-05-20 09:43:17 -07:00
Robert Greenwalt
5c11e8ee54 Fix off-by-1 error in timing
If deferred action msg was delivered promptly it would end up
looking like it too needed to be deferred and then nothing
would end up getting done.

bug:9014777
Change-Id: I243df70463ebb9333efd6df510f71f9d8d9bdf91
2013-05-20 09:28:08 -07:00
Robert Greenwalt
a75ab0337a am c3de50cd: am 30c798d5: Merge "Add some temp wifi debugging output" into jb-mr2-dev
* commit 'c3de50cd3cff76082bc01b04a8a6bbde300d725e':
  Add some temp wifi debugging output
2013-05-19 12:51:47 -07:00
Robert Greenwalt
c3de50cd3c am 30c798d5: Merge "Add some temp wifi debugging output" into jb-mr2-dev
* commit '30c798d58772efd595fffebd9d0d54f717e34ed6':
  Add some temp wifi debugging output
2013-05-19 12:49:44 -07:00
Robert Greenwalt
30c798d587 Merge "Add some temp wifi debugging output" into jb-mr2-dev 2013-05-19 19:46:58 +00:00
John Spurlock
fb16a68cc6 am c6ab8a61: am d0154550: Merge "Deactivate notification listeners disabled at runtime." into jb-mr2-dev
* commit 'c6ab8a614767cae1fc9df5984414c9f15ea7b588':
  Deactivate notification listeners disabled at runtime.
2013-05-19 01:25:34 -07:00
John Spurlock
c6ab8a6147 am d0154550: Merge "Deactivate notification listeners disabled at runtime." into jb-mr2-dev
* commit 'd0154550e0d5e8dea5b65849747266f5fa0d2d5d':
  Deactivate notification listeners disabled at runtime.
2013-05-19 01:23:30 -07:00
Robert Greenwalt
02ba86f0cc Add some temp wifi debugging output
bug: 9014777
Change-Id: I38c61f235742a36be10cdf9125e19ac9406a61b9
2013-05-18 13:40:49 -07:00
John Spurlock
79f7892c10 Deactivate notification listeners disabled at runtime.
PACKAGE_CHANGED is called when either the application or any
of its components change.  Rework old early exit code to
handle component-level disabling wrt listeners.

Note PACKAGE_CHANGED can take quite a while to reach NMS.
Up to ten seconds (!) after component-disabling in app.

Bug:8982243
Change-Id: Ia325516140dd9288466a663192a5326019f071ab
2013-05-18 14:29:40 -04:00
Chris Wren
0f7a734050 am 5baf581d: am 743054f5: Merge "disable notification listeners on uninstall" into jb-mr2-dev
* commit '5baf581d58a86a0f9ea9689a1418b925ac49021e':
  disable notification listeners on uninstall
2013-05-17 15:10:22 -07:00
Chris Wren
5baf581d58 am 743054f5: Merge "disable notification listeners on uninstall" into jb-mr2-dev
* commit '743054f5b3ad088b00adac44bb6d1f542d4375db':
  disable notification listeners on uninstall
2013-05-17 15:08:19 -07:00
Chris Wren
743054f5b3 Merge "disable notification listeners on uninstall" into jb-mr2-dev 2013-05-17 22:06:14 +00:00
Dianne Hackborn
9f337b694a am 46449b8b: am d31db759: Merge "Fix issue #9000597: PackageManager get NPE while running performance plan" into jb-mr2-dev
* commit '46449b8bbca2b937771d284c081012ff4696cbe2':
  Fix issue #9000597: PackageManager get NPE while running performance plan
2013-05-17 13:36:21 -07:00
Dianne Hackborn
46449b8bbc am d31db759: Merge "Fix issue #9000597: PackageManager get NPE while running performance plan" into jb-mr2-dev
* commit 'd31db759cba78447ba1f4286a84c27a30a5aeb5c':
  Fix issue #9000597: PackageManager get NPE while running performance plan
2013-05-17 13:34:30 -07:00
Chris Wren
ae9bb5737c disable notification listeners on uninstall
Bug: 8979640
Change-Id: I9f1d118e5ce210b829476e0971f3d55fc778c227
2013-05-17 16:02:53 -04:00
Dianne Hackborn
2c44c74b88 Fix issue #9000597: PackageManager get NPE while running performance plan
Change-Id: I2bf777e8b15704d21320f95059d94648122396a8
2013-05-17 12:07:21 -07:00
Robert Greenwalt
fb6dab36d5 am 06433861: am c12783a9: Add min delay between disable and enable of wifi
* commit '0643386128eba71178ee3913e7c76965bd344d73':
  Add min delay between disable and enable of wifi
2013-05-16 14:05:18 -07:00
Robert Greenwalt
0643386128 am c12783a9: Add min delay between disable and enable of wifi
* commit 'c12783a90e08bd2e20eb75f68192fbf7bad80357':
  Add min delay between disable and enable of wifi
2013-05-16 14:02:49 -07:00
Craig Mautner
9bebad9147 Merge "Move sleep from ActivityStack to Supervisor" 2013-05-16 21:02:01 +00:00
Robert Greenwalt
c12783a90e Add min delay between disable and enable of wifi
We sometimes have issues if disable, enable seq happens to fast.
This should only slow down those fast cases.

bug:8715336
Change-Id: I4f7fe9708b7c3c2300c441511838e8a70eaad5d1
2013-05-16 20:57:52 +00:00
Craig Mautner
0eea92c67b Move sleep from ActivityStack to Supervisor
- Move activitySleptLocked, checkReadyForSleepLocked,
mGoingToSleepActivities, mGoingToSleep, mSleepTimeout from
ActivityStack to ActivityStackSupervisor.

- Fix bug that was causing mGoingToSleepActivities to always be
empty.

- Add more debug logging.

Change-Id: Ibd57bd49bf6f468567571b390f3051faaeee1aa1
2013-05-16 13:35:39 -07:00
John Spurlock
427e8edcf5 am 0c8dcf4d: am c037282c: Merge "Rebind notification listeners for current user." into jb-mr2-dev
* commit '0c8dcf4dcf3a04d2d2b1ca7a67a8c38ca50cc619':
  Rebind notification listeners for current user.
2013-05-16 11:12:50 -07:00
John Spurlock
0c8dcf4dcf am c037282c: Merge "Rebind notification listeners for current user." into jb-mr2-dev
* commit 'c037282c1ca0d7589168c73f1cf8b19ecc3ffca4':
  Rebind notification listeners for current user.
2013-05-16 11:09:15 -07:00
John Spurlock
3ec4e7050a Rebind notification listeners for current user.
Use ForUser overload when reading setting inside system server.

Bug: 9000206
Change-Id: Ie87aed578d29425d8f32b23aeb8aa7118922c889
2013-05-16 13:42:38 -04:00
Craig Mautner
828f094a5f Merge "Limit screenshots to specified activity and stack." 2013-05-15 19:41:06 +00:00
Craig Mautner
76ea224678 Limit screenshots to specified activity and stack.
The screenshots were capturing the entire screen. Now they are limited
to the stack containing the activity.

Add debug for stack states.

Change-Id: I6d47cd37091bfdfd94e7abe89826b7ba8cb69b51
2013-05-15 12:40:10 -07:00
Christopher Tate
84c6e6b327 am f0571539: am f95fdc97: Merge "Maintain restrictions when downgrading system apps" into jb-mr2-dev
* commit 'f0571539801b0cf11ddb37d377343bcc86218bd1':
  Maintain restrictions when downgrading system apps
2013-05-14 17:20:12 -07:00
Christopher Tate
f057153980 am f95fdc97: Merge "Maintain restrictions when downgrading system apps" into jb-mr2-dev
* commit 'f95fdc9754eea76066905424044b7c6d43c60c2d':
  Maintain restrictions when downgrading system apps
2013-05-14 17:18:15 -07:00
Christopher Tate
f95fdc9754 Merge "Maintain restrictions when downgrading system apps" into jb-mr2-dev 2013-05-15 00:14:06 +00:00
Christopher Tate
acee6e9121 Maintain restrictions when downgrading system apps
When an upgraded system-bundled app is reverted to the factory
version, we now maintain restricted profiles' access policies
w.r.t. that app.

Bug 8905395

Change-Id: I3f230ac3f70a77fb14c0180b44c9b42fc49250a2
2013-05-14 16:47:07 -07:00
Matthew Xie
2d704d215f am b82fc420: am f270fc3b: Merge "cannot turn on bluetooth" into jb-mr2-dev
* commit 'b82fc420f38c48a3bf9f379de5126906497f2440':
  cannot turn on bluetooth
2013-05-14 16:23:14 -07:00
Matthew Xie
b82fc420f3 am f270fc3b: Merge "cannot turn on bluetooth" into jb-mr2-dev
* commit 'f270fc3b5014e39614f7e6499cd6aa4ea18e8616':
  cannot turn on bluetooth
2013-05-14 16:21:30 -07:00
Matthew Xie
f270fc3b50 Merge "cannot turn on bluetooth" into jb-mr2-dev 2013-05-14 23:18:04 +00:00
Dianne Hackborn
9a04909325 Merge "Improve watchdog error reporting." 2013-05-14 17:39:16 +00:00
Craig Mautner
121e521fa1 Merge "Move Recents into home stack." 2013-05-14 17:38:15 +00:00
Craig Mautner
86d67a4faa Move Recents into home stack.
Allows Recents activity to occupy a special place in the window/stack
hierarchy.

Change-Id: Ic11c94a075f70c7ba68bd554cd3e5fc6b7c407e7
2013-05-14 10:34:38 -07:00
Zhihai Xu
dd9d17d458 cannot turn on bluetooth
implement error recovery when bluetooth stack return error with error
transition state from TURNING_ON to OFF due to ENABLE_TIMEOUT.

issue 7566317

Change-Id: I709b475bbfbd90e4f6e423f9eedc5340c89b2cb0
2013-05-13 19:18:26 -07:00
Dianne Hackborn
fa012b35b8 Improve watchdog error reporting.
We now keep track of all the threads that are stopped, and
print stacks for all of them.  Also more threads are now adding
themselves to the watchdog.

Unfortunately the stack we get from threads is far less useful
than the stacks from the ANR report, because these don't include
any information about the lock the thread is blocked on and what
thread is holding that lock.  For example, here is a test of the
log output from causing a hang in the system process:

W/Watchdog( 5205): *** WATCHDOG KILLING SYSTEM PROCESS: com.android.server.am.ActivityManagerService, main thread
W/Watchdog( 5205): foreground thread stack trace:
W/Watchdog( 5205):     at com.android.server.am.ActivityManagerService.monitor(ActivityManagerService.java:14333)
W/Watchdog( 5205):     at com.android.server.Watchdog$HandlerChecker.run(Watchdog.java:142)
W/Watchdog( 5205):     at android.os.Handler.handleCallback(Handler.java:730)
W/Watchdog( 5205):     at android.os.Handler.dispatchMessage(Handler.java:92)
W/Watchdog( 5205):     at android.os.Looper.loop(Looper.java:137)
W/Watchdog( 5205):     at android.os.HandlerThread.run(HandlerThread.java:61)
W/Watchdog( 5205): main thread stack trace:
W/Watchdog( 5205):     at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:12252)
W/Watchdog( 5205):     at android.app.ContextImpl.sendBroadcastAsUser(ContextImpl.java:1158)
W/Watchdog( 5205):     at com.android.server.DropBoxManagerService$3.handleMessage(DropBoxManagerService.java:161)
W/Watchdog( 5205):     at android.os.Handler.dispatchMessage(Handler.java:99)
W/Watchdog( 5205):     at android.os.Looper.loop(Looper.java:137)
W/Watchdog( 5205):     at com.android.server.ServerThread.initAndLoop(SystemServer.java:1050)
W/Watchdog( 5205):     at com.android.server.SystemServer.init2(SystemServer.java:1125)
W/Watchdog( 5205):     at com.android.server.SystemServer.init1(Native Method)
W/Watchdog( 5205):     at com.android.server.SystemServer.main(SystemServer.java:1116)
W/Watchdog( 5205):     at java.lang.reflect.Method.invokeNative(Native Method)
W/Watchdog( 5205):     at java.lang.reflect.Method.invoke(Method.java:525)
W/Watchdog( 5205):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)
W/Watchdog( 5205):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
W/Watchdog( 5205):     at dalvik.system.NativeStart.main(Native Method)
I/Process ( 5205): Sending signal. PID: 5205 SIG: 9

Change-Id: I8ff9892d8d072d8dc599a73de4bdb75e3b1a6e97
2013-05-13 18:01:54 -07:00
Craig Mautner
4058828d81 Merge "Fix rotation animations not working." 2013-05-13 22:58:09 +00:00
Craig Mautner
11462cc0b0 Fix rotation animations not working.
Restore over aggressive deletions from ag/305620.

Also remove over specification of debug member variables.

Change-Id: Id637d0dbece169d27271aabd714d34d449bfb050
2013-05-13 15:56:18 -07:00
John Spurlock
ed7f3cb7fa Merge "Window manager cleanup." 2013-05-13 22:54:52 +00:00
Craig Mautner
1602ec2188 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: Ia73182afc20e9e4430ddadebae034cecb3798eec
2013-05-13 14:39:39 -07:00
John Spurlock
04db1762fb Window manager cleanup.
Specifically:
 - Fix policy vs wm lock management issues.
 - Share runnable to avoid allocation.
 - Remove unused noop runnable.
 - Make sure to handle status bar = null case.
 - Fix javadoc typo.

Bug: 8890313
Change-Id: I242eaef8e946025f6885d6dba3225722fb0ca7ce
2013-05-13 17:24:24 -04:00