9930 Commits

Author SHA1 Message Date
Kenny Root
ae017c5582 am a9543a3d: Merge "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks."
* commit 'a9543a3dad0da58f30580bdf99b76bc2ab97a2df':
  Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks.
2012-06-21 14:17:13 -07:00
Kenny Root
a9543a3dad Merge "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks." 2012-06-21 11:05:55 -07:00
Jeff Brown
223d224fcb am 071ed334: am fc32ec9a: Merge "Don\'t reset brightness to 0 on initial boot." into jb-dev
* commit '071ed3348739cb3f2bb9ef169067440c8c61b881':
  Don't reset brightness to 0 on initial boot.
2012-06-20 22:34:42 -07:00
Jeff Brown
071ed33487 am fc32ec9a: Merge "Don\'t reset brightness to 0 on initial boot." into jb-dev
* commit 'fc32ec9a51cb78e58ae673abc327f4ef7be98fad':
  Don't reset brightness to 0 on initial boot.
2012-06-20 22:31:17 -07:00
Jeff Brown
8e306a68e8 Don't reset brightness to 0 on initial boot.
Bug: 6705012
Change-Id: I8114fda081784abbe720d5eaa637aa5234b5a947
2012-06-20 19:46:32 -07:00
satok
ab72cc0f87 am 3a9ff158: am 56802678: Merge "Workaround: Never reset the default IME if the system is not ready" into jb-dev
* commit '3a9ff158fe45b3ee986dfa5f3c56fa48f781a5a9':
  Workaround: Never reset the default IME if the system is not ready
2012-06-20 13:06:46 -07:00
satok
3a9ff158fe am 56802678: Merge "Workaround: Never reset the default IME if the system is not ready" into jb-dev
* commit '56802678a72157675382910e37857cf78e1cefcb':
  Workaround: Never reset the default IME if the system is not ready
2012-06-20 13:03:14 -07:00
satok
56802678a7 Merge "Workaround: Never reset the default IME if the system is not ready" into jb-dev 2012-06-20 13:01:09 -07:00
Charles Chen
6ea5527157 am 80a3c3ea: am d0d3a850: Merge "Fixing gesture recognition configuration in TouchExplorer." into jb-dev
* commit '80a3c3ea6f69df461c7e722c8e16362ce4bb60f3':
  Fixing gesture recognition configuration in TouchExplorer.
2012-06-20 12:16:42 -07:00
Charles Chen
80a3c3ea6f am d0d3a850: Merge "Fixing gesture recognition configuration in TouchExplorer." into jb-dev
* commit 'd0d3a850650ade52198e7836f87a0e27ad2d6b41':
  Fixing gesture recognition configuration in TouchExplorer.
2012-06-20 12:14:08 -07:00
Charles Chen
d0d3a85065 Merge "Fixing gesture recognition configuration in TouchExplorer." into jb-dev 2012-06-20 12:12:07 -07:00
Dianne Hackborn
306211d792 am b0222bb1: am 0fa4d30b: Merge "Fix issue #6686339: 2 taps required to launch notification..." into jb-dev
* commit 'b0222bb19e8d850ccbd74c4f0832d73ae552df8d':
  Fix issue #6686339: 2 taps required to launch notification...
2012-06-20 12:10:39 -07:00
Dianne Hackborn
b0222bb19e am 0fa4d30b: Merge "Fix issue #6686339: 2 taps required to launch notification..." into jb-dev
* commit '0fa4d30b03c4307ca5d461aa4450b672b6850ea1':
  Fix issue #6686339: 2 taps required to launch notification...
2012-06-20 12:08:03 -07:00
Dianne Hackborn
0fa4d30b03 Merge "Fix issue #6686339: 2 taps required to launch notification..." into jb-dev 2012-06-20 12:06:38 -07:00
satok
4c0e7152e7 Workaround: Never reset the default IME if the system is not ready
Bug: 6685037
Change-Id: Ifb311f85154beadd4787ec73669bedfdf1f5172d
2012-06-21 02:22:24 +09:00
Dianne Hackborn
6e2281d44c Fix issue #6686339: 2 taps required to launch notification...
...or settings from lock screen

When a window is drawn, the code to determine whether it should now
be shown was calling WindowState.isReadyForDisplay().  Part of the
condition of this function is that it is not ready if a policy is
forcing the window to be hidden -- which is the case when the lock
screen is shown.  As a result, we wouldn't show the window at that
point, so wouldn't tell the activity manager that the token's windows
are visibible, and wouldn't tell the lock screen to go away.

This adds a new variation WindowState.isReadyForDisplayIgnoringKeyguard(),
which is the same as the original method but ignores the policy visibility
for app windows.  This allows windows to be go through the complete
path of handling when the window is finally drawn and telling the
activity manager about it, even if behind the lock screen.  By making it
a separate function, we don't impact any other code that is calling the
old function and may be relying on its behavior.

Also cleaned up a little of the dumpsys output.  Most important, the
new ANR section is now moved to the top, since we want
"adb shell dumpsys window" to still give a nice summary of what we
normally care about -- the window stack and important global state.

Change-Id: Ica3ea85ce46f3f5f5cd2cc30fbd9de13d3885a57
2012-06-19 17:54:24 -07:00
Casey Burkhardt
ea6fbc0981 Fixing gesture recognition configuration in TouchExplorer.
This fix adjusts the sensitivity of the gesture recognizer by
eliminating gesture rotation in the recognition process.

Bug:6697119
Change-Id: Ic767f513c05210b27e583338c4f0adcaa1c4c625
2012-06-19 16:31:54 -07:00
Irfan Sheriff
c91f0595d3 Remove unusued scan stats
This is now part of BatteryStats

Change-Id: I7e16207276e28eea3be8666990ae958b8ea7a17a
2012-06-19 16:21:23 -07:00
Irfan Sheriff
90542758d4 Cleanup softap interface to netd
Change-Id: I01e6c5b5a5a8ddaf05b979f9cc6d1293c86e8773
2012-06-19 16:21:22 -07:00
Craig Mautner
2fa2a52838 am 9a5a8aaf: am 5785e05d: Merge "Clear sendingToBottom when animation is complete." into jb-dev
* commit '9a5a8aafad89f3e05bb9c17c56ea4658413a4452':
  Clear sendingToBottom when animation is complete.
2012-06-19 15:13:46 -07:00
Craig Mautner
9a5a8aafad am 5785e05d: Merge "Clear sendingToBottom when animation is complete." into jb-dev
* commit '5785e05d44cd1f4453b887ac8de05ff3466b179e':
  Clear sendingToBottom when animation is complete.
2012-06-19 15:11:33 -07:00
Craig Mautner
5785e05d44 Merge "Clear sendingToBottom when animation is complete." into jb-dev 2012-06-19 15:08:41 -07:00
Craig Mautner
3f99fde465 Clear sendingToBottom when animation is complete.
Was counting on moving the app to the top to clear the flag
indicating that the app was being sent to the bottom. Since this
did not always happen the sendingToBottom flag was occasionally
left set. In this case the focus was skipped for that app and
consequently input was never propagated to it.

This fix clears the sendingToBottom flag each time the app
animations are completed.

Fixes bug 6691421.

Change-Id: I6f851dc5bedca95182db8490d87c876a71ad5fde
2012-06-19 14:10:01 -07:00
Jeff Sharkey
579c373bdc am de2dbfff: am 0abe556d: Handle SCREEN_ON/OFF broadcasts without blocking.
* commit 'de2dbfff537f457fdd8a5ef2145b41629a7b09a2':
  Handle SCREEN_ON/OFF broadcasts without blocking.
2012-06-19 14:05:19 -07:00
Jeff Sharkey
de2dbfff53 am 0abe556d: Handle SCREEN_ON/OFF broadcasts without blocking.
* commit '0abe556d28f5f5d395559cc6567b05939d1b2640':
  Handle SCREEN_ON/OFF broadcasts without blocking.
2012-06-19 14:02:51 -07:00
Jeff Sharkey
0abe556d28 Handle SCREEN_ON/OFF broadcasts without blocking.
NetworkPolicy currently uses a single background thread to process
various broadcasts.  When processing other broadcasts, this thread
can block our handling of SCREEN_ON/OFF, which are sent as ordered
broadcasts.

This change moves SCREEN_ON/OFF handling to the main thread, and
dispatches a one-way message to the background thread, allowing the
ordered broadcast to always proceed.

Bug: 6677047
Change-Id: I52de2c7b75beb8059bb87e123689ba4a9c4ae349
2012-06-19 13:32:22 -07:00
Jeff Brown
4f8ecd8029 Move power manager to a new package.
Change-Id: I5f5a6435e64354b7d6535e8e9a63934ba7a3f448
2012-06-18 19:43:44 -07:00
Craig Mautner
ceeec4e6a6 am ae3e5bc9: am 89f5a462: Merge "More paths for turning on screen immediately." into jb-dev
* commit 'ae3e5bc93f1077615b4ec8f6fbd06509241d25de':
  More paths for turning on screen immediately.
2012-06-18 18:07:46 -07:00
Craig Mautner
ae3e5bc93f am 89f5a462: Merge "More paths for turning on screen immediately." into jb-dev
* commit '89f5a4624bfa487cb5fb192d9c3c9b30937b3f26':
  More paths for turning on screen immediately.
2012-06-18 18:04:42 -07:00
Craig Mautner
89f5a4624b Merge "More paths for turning on screen immediately." into jb-dev 2012-06-18 18:01:53 -07:00
Craig Mautner
75fc9de258 More paths for turning on screen immediately.
This fix forces the path through the updateLightsLocked method to turn
the screen on immediately if mWaitingForFirstLightSensor is true. Also
do not clear mWaitingForFirstLightSensor if mPreparingForScreenOn
is true. Wait until it turns false.

Fixes bug 6612418.

Change-Id: I03407e748cce4906a73de1f15df1654649b133c4
2012-06-18 16:53:27 -07:00
Dianne Hackborn
04919812d6 am 56b3a321: am 1991850d: Merge "Implement issue #6680894: Provide a way to configure app defaults..." into jb-dev
* commit '56b3a321e7c6f03d1bc0c5c0915d56bc46b7a33e':
  Implement issue #6680894: Provide a way to configure app defaults...
2012-06-18 16:24:03 -07:00
Dianne Hackborn
56b3a321e7 am 1991850d: Merge "Implement issue #6680894: Provide a way to configure app defaults..." into jb-dev
* commit '1991850de7bbcc534c2cb457f33055c533542136':
  Implement issue #6680894: Provide a way to configure app defaults...
2012-06-18 16:21:43 -07:00
Dianne Hackborn
1991850de7 Merge "Implement issue #6680894: Provide a way to configure app defaults..." into jb-dev 2012-06-18 16:19:56 -07:00
Dianne Hackborn
fc8b7fe026 Implement issue #6680894: Provide a way to configure app defaults...
...for a smoother OOB experience

Way provided.

Put your defaults in system/etc/preferred-apps/*.xml.

Figure out what to put there with "adb shell dumpsys package preferred-xml".

Bug: 6680894
Change-Id: Ia06bb0061876274a5f80bf06d1ba5ad155edc323
2012-06-18 15:38:12 -07:00
Jeff Brown
40af9c04c5 am 81c61fda: am c4b0d098: Merge "Fix an NPE and possible unsynchronized call of Locked method." into jb-dev
* commit '81c61fda9a1b45db4c06d2db2cf24b42045d4f76':
  Fix an NPE and possible unsynchronized call of Locked method.
2012-06-18 14:20:27 -07:00
Jeff Brown
81c61fda9a am c4b0d098: Merge "Fix an NPE and possible unsynchronized call of Locked method." into jb-dev
* commit 'c4b0d098d60ad532cebb3c043f3a1cdb39033f1f':
  Fix an NPE and possible unsynchronized call of Locked method.
2012-06-18 14:17:53 -07:00
Craig Mautner
aa9c9efa8f Merge "More steps to isolate animation." 2012-06-18 13:56:32 -07:00
Jeff Brown
ee17241487 Fix an NPE and possible unsynchronized call of Locked method.
Bug: 6680398
Change-Id: Id5ef4fa82b2a5ef5e9c3934ca95156143f91e5e2
2012-06-18 12:59:13 -07:00
Jeff Brown
91a5f4bef5 am 79476980: am d7a04de1: Capture window manager\'s last ANR state in bug report.
* commit '7947698096d4b09bb0f662fdca89cfa5d475743e':
  Capture window manager's last ANR state in bug report.
2012-06-18 10:49:50 -07:00
Jeff Brown
96d8149fc8 am 23b15320: am 22aa5120: Capture input dispatcher\'s last ANR state in bug report.
* commit '23b15320ec57f49cb8e87210e37bcd4b146cb204':
  Capture input dispatcher's last ANR state in bug report.
2012-06-18 10:49:47 -07:00
Dianne Hackborn
d466fe463b am 60860192: am d8bbf96a: Merge "Fix issue #6664140: Time to lock should work even Stay awake..." into jb-dev
* commit '608601924651531210ad3c6179d02c471f42dddf':
  Fix issue #6664140: Time to lock should work even Stay awake...
2012-06-18 10:49:38 -07:00
Dianne Hackborn
468a0051eb am 99e33bf1: am 17b9cec1: Merge "Fix issue #6636731: Mariner animation ring gets stuck" into jb-dev
* commit '99e33bf14b2be799efe02b9a8a42b25abc0fced3':
  Fix issue #6636731: Mariner animation ring gets stuck
2012-06-18 10:49:06 -07:00
Jeff Brown
7947698096 am d7a04de1: Capture window manager\'s last ANR state in bug report.
* commit 'd7a04de16798acc04ec0a89a0c7d9f1cf60d1521':
  Capture window manager's last ANR state in bug report.
2012-06-18 10:34:25 -07:00
Jeff Brown
23b15320ec am 22aa5120: Capture input dispatcher\'s last ANR state in bug report.
* commit '22aa51202652efbd55094217a046b8e5ecb7afe2':
  Capture input dispatcher's last ANR state in bug report.
2012-06-18 10:34:21 -07:00
Dianne Hackborn
6086019246 am d8bbf96a: Merge "Fix issue #6664140: Time to lock should work even Stay awake..." into jb-dev
* commit 'd8bbf96a84cba7c31fa1535fe2467520f2aa0198':
  Fix issue #6664140: Time to lock should work even Stay awake...
2012-06-18 10:33:05 -07:00
Dianne Hackborn
99e33bf14b am 17b9cec1: Merge "Fix issue #6636731: Mariner animation ring gets stuck" into jb-dev
* commit '17b9cec1b6fedd0e54ff61f5a12f0e515add70ab':
  Fix issue #6636731: Mariner animation ring gets stuck
2012-06-18 10:31:05 -07:00
Craig Mautner
01cd0e7df0 More steps to isolate animation.
- Create class to transfer state from WindowAnimator to
WindowManagerService.

- Detached wallpaper state was shared between the two classes. This
CL isolates it.

Change-Id: I7bcee348bf9f9f8f0228f36c53d75e5c92fd84cb
2012-06-18 10:19:11 -07:00
Jeff Brown
d7a04de167 Capture window manager's last ANR state in bug report.
Currently just grabbing the window state but we could grab
other things as part of the last ANR report.

Bug: 6680398
Change-Id: I23aa70907b1bdcb21c8acc556fde196ca790ef6a
2012-06-17 15:55:46 -07:00
Jeff Brown
22aa512026 Capture input dispatcher's last ANR state in bug report.
Some ANR bugs are very difficult to localize because by the time
the bug report has been captured, the relevant information is
gone.  Work around this by capturing a log of the input dispatcher's
state at the exact time of the ANR before anything has changed
and include this information in the bug report.

Also fixed a nit related to some format strings that had
improper field widths specified.

Bug: 6680398
Change-Id: I5323bf18ec5e47a767cd053209753cc46852bf4c
2012-06-17 15:51:30 -07:00