9564 Commits

Author SHA1 Message Date
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
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
Dianne Hackborn
2fe8fb276c Fix issue #6664140: Time to lock should work even Stay awake...
...in Developer options is on

Don't respect stay awake while on as long as a time to lock limit
is being enforced.  When we start enforcing one, make sure the
setting is off (since we won't be respecting it anyway).

Bug: 6664140
Change-Id: Id07cb528afa0c64c7766341841c51771f507121d
2012-06-15 17:23:16 -07:00
Dianne Hackborn
6e3d6daa37 Fix issue #6636731: Mariner animation ring gets stuck
Weren't cleaning out any ActivityOptions that are still attached
to a finishing activity.

Bug: 6636731
Change-Id: If0520bbcbf1d4ce19d46ff769918893cefda9c87
2012-06-15 12:12:56 -07:00
Dianne Hackborn
4879c1e8b3 am 734f0214: Merge "Help out issue #6654729: CAB + screen off during playback" into jb-dev
* commit '734f0214ec04e6c734aeec78d15f6db478cfb55c':
  Help out issue #6654729: CAB + screen off during playback
2012-06-14 21:35:55 -07:00
Dianne Hackborn
734f0214ec Merge "Help out issue #6654729: CAB + screen off during playback" into jb-dev 2012-06-14 21:33:48 -07:00
Dianne Hackborn
b80395c17d Help out issue #6654729: CAB + screen off during playback
People generally expect, if they are using FLAG_KEEP_SCREEN_ON,
that the screen won't immediately dim after it is cleared, even
if it has been passed the user activity timeout since the last
user interaction.  So include the flag to reset the user activity
timeout when releasing its wake lock.

Change-Id: If7a8fea8faef3edbf13dff10a2f248adc9e3ff0b
2012-06-14 19:38:20 -07:00
Christopher Tate
0d732fe68c am 0e44a6be: Merge "Don\'t finish noHistory="true" activities behind the lock screen" into jb-dev
* commit '0e44a6beeae8a17e81145b83f2dfb8f719d41f52':
  Don't finish noHistory="true" activities behind the lock screen
2012-06-14 19:37:45 -07:00
Christopher Tate
0e44a6beea Merge "Don't finish noHistory="true" activities behind the lock screen" into jb-dev 2012-06-14 19:35:58 -07:00
Christopher Tate
5eed873f10 am 7661bc6c: Merge "Run the screen on/off broadcasts at foreground priority" into jb-dev
* commit '7661bc6c5afef4cca8ccee2f859906f8fb64087b':
  Run the screen on/off broadcasts at foreground priority
2012-06-14 17:37:05 -07:00
Christopher Tate
7661bc6c5a Merge "Run the screen on/off broadcasts at foreground priority" into jb-dev 2012-06-14 17:34:28 -07:00
Christopher Tate
2cb1357d1b Run the screen on/off broadcasts at foreground priority
Bug 6643559

Change-Id: I392f11dabea518238d0f4336c3663bf5c7d46146
2012-06-14 17:00:48 -07:00
Christopher Tate
d3f175c817 Don't finish noHistory="true" activities behind the lock screen
The foreground activity is stopped when the device goes to sleep,
and started again when the device is unlocked.  We now distinguish
this case from a "normal" stop, and do not finish() a foreground
noHistory="true" activity inappropriately when the device sleeps.
We also detect the case where an activity is started while the
device is still asleep, in which case the foreground noHistory
activity is cleaned up as part of bringing the new activity to
the foreground.

Bug 6657549

Change-Id: I9c6a0830aed0e47e4207b62803b90067c8486112
2012-06-14 16:51:58 -07:00
Daniel Sandler
8ce090d936 am 68a808bc: Merge "Show even fewer notifications in Setup." into jb-dev
* commit '68a808bc702f03536bd0cf3e2556127e364119d6':
  Show even fewer notifications in Setup.
2012-06-14 16:09:30 -07:00
Daniel Sandler
68a808bc70 Merge "Show even fewer notifications in Setup." into jb-dev 2012-06-14 16:07:45 -07:00
Craig Mautner
de90d67b2f am 8b9c6d51: Merge "Expose apps when keyguard animating." into jb-dev
* commit '8b9c6d51d59898375089e9708325604c227812e0':
  Expose apps when keyguard animating.
2012-06-14 14:57:31 -07:00
Craig Mautner
8b9c6d51d5 Merge "Expose apps when keyguard animating." into jb-dev 2012-06-14 14:55:19 -07:00
Michael Jurka
2e820417d6 am a676cdab: Merge "Tweak recents launch app animation" into jb-dev
* commit 'a676cdab11ace948a054b5ca342727a3d0eb29b2':
  Tweak recents launch app animation
2012-06-14 14:46:38 -07:00
Michael Jurka
a676cdab11 Merge "Tweak recents launch app animation" into jb-dev 2012-06-14 14:33:55 -07:00
Craig Mautner
f03e4c55fc Expose apps when keyguard animating.
Continuing in the trend of not hiding apps while the keyguard is
animating.

Fixes bug 6653600.

Change-Id: I151315084a13dcec061d2d6edccd31e1133610f4
2012-06-14 14:11:27 -07:00
Daniel Sandler
590d515d91 Show even fewer notifications in Setup.
Restricting to pkg="android" didn't filter out things like
open wifi networks, etc. So now we have a whitelist:
notifications must be sent the "android" pseudo-package,
*and* they must have one of these "kind" tags:

  - android.system.imeswitcher (IME switcher, needed by SUW)
  - android.system.update (OTAs)

Note that OTAs currently use a fullScreenIntent, so they
bypass this logic anyway, but for consistency's sake we now
allow OTA icons in the status bar explicitly.

Bug: 6645469
Change-Id: Ib2e2f22d7a0817a1acaf8137ed4f3c7d3ddf8af5
2012-06-14 16:10:13 -04:00
Michael Jurka
b9a38c57fc Tweak recents launch app animation
- Sometimes the black background would flash; changing
animation durations to make this much less likely
- Fixing issue in Recents where we sometimes forgot
to disable drawing caches on views after enabling them
2012-06-14 11:57:50 -07:00
Svetoslav Ganov
0b0ca3c551 am 9b1767bb: Merge "Active window not updated window not updated properly." into jb-dev
* commit '9b1767bbb451e96ae6b2216a7ea26aa4a937ad55':
  Active window not updated window not updated properly.
2012-06-14 11:05:18 -07:00
Svetoslav Ganov
9b1767bbb4 Merge "Active window not updated window not updated properly." into jb-dev 2012-06-14 10:48:09 -07:00
Svetoslav Ganov
5d043ce8cc Active window not updated window not updated properly.
1. Accessibility allows querying only of the active window.
   The active window is the one that has input focus or the
   one the user is touching. Hence, if the user is touching
   a window that does not have input focus this window is
   the active one and as soon as the user stops touching
   it the active window becomes the one that has input
   focus. Currently the active window is not updated properly
   when the user lifts his finger. This leads to a scenario
   of traversal actions sent to the wrong window and the user
   being stuck.

   The reason is that the last touch explored event that is
   used to determine where to click is cleared when accessibility
   focus moves but this event is also used to determine when to
   send the hover exit and touch exploration gesture end events.
   The problem is that the last hover event is cleared before
   it is used for sending the right exit events, thus the event
   stream is inconsistent and the accessibility manager service
   relies on this stream to update the active window. Now we
   are keeping separate copies of the last touch event - one
   for clicking and one for determining the which events to
   inject to ensure consistent stream.

bug:6666041

Change-Id: Ie9961e562a42ef8a9463afacfff2246adcb66303
2012-06-14 10:40:12 -07:00
Svetoslav Ganov
c4d3a0d8df am 52d3465d: Merge "If a gesture cannot be detected the device should transition to touch exploration state." into jb-dev
* commit '52d3465d0503a3362ec9335ae3de8e23b2ae75a3':
  If a gesture cannot be detected the device should transition to touch exploration state.
2012-06-14 10:06:04 -07:00
Svetoslav Ganov
52d3465d05 Merge "If a gesture cannot be detected the device should transition to touch exploration state." into jb-dev 2012-06-14 10:03:59 -07:00
Nick Pelly
da58f39374 am bfd125a0: Merge "Fix NPE when public API removeProximityAlert() used before addProximityAlert()." into jb-dev
* commit 'bfd125a0bf51ce0931d981d7694432868b9f511f':
  Fix NPE when public API removeProximityAlert() used before addProximityAlert().
2012-06-14 08:36:30 -07:00
Nick Pelly
bfd125a0bf Merge "Fix NPE when public API removeProximityAlert() used before addProximityAlert()." into jb-dev 2012-06-14 08:34:13 -07:00
Svetoslav Ganov
95068e5d1b If a gesture cannot be detected the device should transition to touch exploration state.
1. We are deciding whether the user is performing a gesture or an exploration based
   on the gesture velocity. If we are detecting gesture we do the recognition at the
   gesture end which is when the finger goes up. This is better than having a mode
   toggle gesture for exploring and gestures detection. However, it is possible that
   the user really wanted to perform an exploration but was moving too fast and
   unless he lifts his finger the device is in gesture detection mode. This is
   frustrating since the user has no feedback and assumes exploration does not
   work.

   We want to perform gesture detection only for a maximal time frame and if the
   user did not lift his finger we transition into touch exploration state.

bug:6663173

Change-Id: I954ff937cca902e31b51325d1e1dfce84d239624
2012-06-13 21:14:16 -07:00
Nick Pelly
01ed75c82f Fix NPE when public API removeProximityAlert() used before addProximityAlert().
Bug: 6313992
Change-Id: I905ad9ea771286727ce4a3a2334f2a0dac967c3d
2012-06-13 16:45:27 -07:00
Craig Mautner
129167cfe6 am 4323d6ea: Merge "Do not hide animating window behind keyguard." into jb-dev
* commit '4323d6ea5143a3f2c419b3db28f956755652d78a':
  Do not hide animating window behind keyguard.
2012-06-13 15:36:51 -07:00
Craig Mautner
4323d6ea51 Merge "Do not hide animating window behind keyguard." into jb-dev 2012-06-13 15:27:51 -07:00
Craig Mautner
719c139d03 am f8d05b4e: Merge "Update wallpaper visibility at time of hide/show." into jb-dev
* commit 'f8d05b4ea61bb0db32c1a7f93f27a13f67c9ef0c':
  Update wallpaper visibility at time of hide/show.
2012-06-13 14:16:49 -07:00
Craig Mautner
f8d05b4ea6 Merge "Update wallpaper visibility at time of hide/show." into jb-dev 2012-06-13 14:09:08 -07:00
Jeff Sharkey
ba55c5c579 am 96321890: Merge "Clear identity when snoozing limit." into jb-dev
* commit '963218905ab31ccd2cf7ff57d372b185624543a4':
  Clear identity when snoozing limit.
2012-06-13 12:10:41 -07:00
Jeff Sharkey
963218905a Merge "Clear identity when snoozing limit." into jb-dev 2012-06-13 12:06:10 -07:00
Craig Mautner
507a2ee12b Update wallpaper visibility at time of hide/show.
Call the Window client method dispatchAppVisibility when hiding or
showing wallpaper rather than wait until the next call to
performLayoutAndPlaceSurfaces.

Fixes bug 6645473.

Change-Id: I363f69f8db0affff92308e11ce52546401959d8f
2012-06-13 08:39:38 -07:00
Jeff Sharkey
6c0b4f393a Clear identity when snoozing limit.
Continues to check MANAGE_NETWORK_POLICY permission.  This allows
SystemUI to invoke snoozeLimit() without CONNECTIVITY_INTERNAL.

Bug: 6653091
Change-Id: I464bf62b79f2647c6b6db151251a0036897d0cc0
2012-06-12 21:06:30 -07:00
Craig Mautner
2ec541fa4b Do not hide animating window behind keyguard.
The transition from clock to keyguard when restarting the device
was janky. The cause was that the clock app was animating away
which kept the adjustWallpaperWindowsLocked() method from setting
the keyguard as the new mWallpaperTarget. At the same time the
WindowAnimator saw that the keyguard was readyToDisplay() which
set mForceHiding true causing the clock to become hidden. Since
the clock was mWallpaperTarget the wallpaper was hidden at the
same time.

This fix does not allow mForceHiding to hide an animating
window.

Fixes bug 6649988.

Change-Id: Ie5cb0dfcc987d5ee1ad2351cf520629b8e301a2b
2012-06-12 19:18:21 -07:00
Craig Mautner
1d48ca51de am 1c958102: Merge "Set detached wallpaper on the scale up animation." into jb-dev
* commit '1c9581023ced89a209fca9c4e40305f8e0859732':
  Set detached wallpaper on the scale up animation.
2012-06-12 19:06:46 -07:00
Craig Mautner
1c9581023c Merge "Set detached wallpaper on the scale up animation." into jb-dev 2012-06-12 19:04:01 -07:00
Jeff Sharkey
9eabf916dc am f6f7f1d2: Low disk space string change, surface state.
* commit 'f6f7f1d2dc6e8fad5d6ff9a56af9929488873b4f':
  Low disk space string change, surface state.
2012-06-12 18:36:07 -07:00
Jeff Sharkey
f6f7f1d2dc Low disk space string change, surface state.
Surface current low disk state through IPackageManager for use in
Settings app.

Bug: 6576409
Change-Id: I9ae9ce99a2faa3015a237036c03567d1ae11628f
2012-06-12 17:12:08 -07:00
Craig Mautner
a803371535 Set detached wallpaper on the scale up animation.
This keeps the background wallpaper from disappearing when expanding an
app that has a wallpaper background (e.g. clock).

Fixes bug 6649988. The second half of the bug, the first half will be
reissued as a new bug.

Change-Id: I209c9038469e4133586a927c92ef64ae43fb937f
2012-06-12 15:50:45 -07:00
Craig Mautner
12f0104ec7 am 4d6a0df3: Merge "Do not cancel animations when switching." into jb-dev
* commit '4d6a0df37930309f8e138499785483d9dcadf7d9':
  Do not cancel animations when switching.
2012-06-12 15:48:34 -07:00