9541 Commits

Author SHA1 Message Date
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
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
Craig Mautner
4d6a0df379 Merge "Do not cancel animations when switching." into jb-dev 2012-06-12 15:45:37 -07:00
Christopher Tate
4d3448db54 am 4cabbef8: Merge "Make sure to stop noHistory="true" activities properly" into jb-dev
* commit '4cabbef8266c909997cf608d008920f5a2f49937':
  Make sure to stop noHistory="true" activities properly
2012-06-12 13:41:31 -07:00
Christopher Tate
4cabbef826 Merge "Make sure to stop noHistory="true" activities properly" into jb-dev 2012-06-12 13:38:56 -07:00
Christopher Tate
5007ddded6 Make sure to stop noHistory="true" activities properly
The code was correctly inducing a 'finish' when such an activity was
being stopped, but then was not continuing with the rest of the stop
bookkeeping at that point.  In some circumstances this could result
in an inconsistent state, with the activity marked as finishing but
neither in the foreground nor stopped.

Bug 6585403

Change-Id: Ib5c5be885bc6534e099e040d87a8589f7b7454ce
2012-06-12 13:08:18 -07:00
Jeff Brown
14afbba663 am ea6b8188: Merge "Improve ANR diagnostics." into jb-dev
* commit 'ea6b8188320202da072285b08fe6c0ee5c3f71e5':
  Improve ANR diagnostics.
2012-06-12 12:43:52 -07:00
Craig Mautner
42db936918 am 78a9b676: Merge "Remove over aggressive optimization." into jb-dev
* commit '78a9b67691d08e7347ab7bed7708fa09680ee71f':
  Remove over aggressive optimization.
2012-06-12 12:43:33 -07:00
Craig Mautner
1c92459a50 am 16a61a51: Merge "Revert "Merge errors."" into jb-dev
* commit '16a61a51ffdf0490d3fd201c8679a990723f7d8e':
  Revert "Merge errors."
2012-06-12 12:43:29 -07:00
Craig Mautner
d5759f1c2c am 73220fa0: Merge "Merge errors." into jb-dev
* commit '73220fa083f6b2b302434ad081dd062505744ed8':
  Merge errors.
2012-06-12 12:43:26 -07:00
Michael Jurka
823e202845 am 64dbcd64: Merge "Tweak recents out animation a bit more" into jb-dev
* commit '64dbcd64be34f83e51229891da865ca047b4f5f4':
  Tweak recents out animation a bit more
2012-06-12 12:43:17 -07:00
Craig Mautner
0721bde26c am 47adf865: Merge "Fix exposing wallpaper on rotations and other." into jb-dev
* commit '47adf865bddf6c81051d457e04785408d2710f60':
  Fix exposing wallpaper on rotations and other.
2012-06-12 12:41:50 -07:00
Chia-chi Yeh
a2becffcf2 am d667aebf: Merge "VPN: move VpnDialogs away from system uid." into jb-dev
* commit 'd667aebfb34085960e2b41a2f52d10ae749ec44c':
  VPN: move VpnDialogs away from system uid.
2012-06-12 12:41:12 -07:00
Craig Mautner
9fec779587 Do not cancel animations when switching.
Was canceling ongoing animations when starting a new animation which
caused the window of the first animation to restart. This looked
janky. The original cancellation was put in to stop the incorrect
animation being selected when quickly switching between an incoming
app and the homescreen. Reversing the cancellation no longer exposes
the original problem it was put in to fix.

One way to duplicate what this is fixing.
1. Slow down animations to 10x.
2. Run ApiDemos/App/Alert Dialogs/List dialog
3. Tap outside the list dialog and then tap the home button.
Tapping outside the list dialog causes the list dialog to animate
away. Tapping the home button then causes the app to animate away.
Before this fix the list dialog would revert to full size before
the app animates away. With this fix the list dialog continues its
original animation as the app animates away.

Fixes bug 6600726.

Change-Id: I29c940254808a321c3b6c2e4f4b7c78a72b47899
2012-06-12 11:13:41 -07:00
Jeff Brown
265f1ccc51 Improve ANR diagnostics.
When an ANR occurs, log the associated reason.

When an event takes too long to process (currently more than 2 seconds)
log basic information about the event including how long it actually
took.

Dump the contents of the inbound, outbound and wait queues as part
of dumpsys input.

Bug: 6574842
Change-Id: I9ab754c320f609cb86fe266c469a61e7032dfed6
2012-06-11 18:05:31 -07:00
Dianne Hackborn
3430959c4d am 569f5bdd: am 37d8ac1b: Merge "SystemServer: Looper\'s getMainLooper to return ServerThread"
* commit '569f5bddd2494bdeae07a6b278f6df6cc8579981':
  SystemServer: Looper's getMainLooper to return ServerThread
2012-06-11 16:36:52 -07:00
Craig Mautner
0fa77c1e0f Remove over aggressive optimization.
It turns out that sometimes the wallpaper target is migrated to the
bottom of the window stack and then mWallpaperTarget is set to null.
In particular this happens when the launcher all-apps screen is
brought up. When this happens the layer of the wallpaper is
correctly set below the previous wallpaper target.

An optimization in WindowAnimator was keeping the layer update from
propagating to the Surface object. This fix removes that optimization.

Fixes bug 6631717.

Change-Id: I800dd043ce8df83b4e5edbf710503135396bc01e
2012-06-11 16:30:48 -07:00
Craig Mautner
c38869abe5 Revert "Merge errors."
This reverts commit b0419a52008e57475ee254def1da20451da22d4c.
2012-06-11 16:30:48 -07:00
Craig Mautner
a5bbb8987b Merge errors.
Change-Id: I33d0b1aa5dc5018cc879d2e9878e4825adaa4074
2012-06-11 16:30:48 -07:00
Michael Jurka
64dbcd64be Merge "Tweak recents out animation a bit more" into jb-dev 2012-06-11 16:17:35 -07:00
Dianne Hackborn
37d8ac1b56 Merge "SystemServer: Looper's getMainLooper to return ServerThread" 2012-06-11 16:02:34 -07:00
Michael Jurka
c016aaaa42 Tweak recents out animation a bit more
Bug: 6490204

-Fading to black in the recents layer
-Tweaking duration and interpolators
-Removing some unnecessary debug exceptions (Bug: 6642072)

Change-Id: Iba18fade7f874078111fc1d79a81830ee07617d4
2012-06-11 15:23:20 -07:00
Dianne Hackborn
409d563b51 Merge "DO NOT MERGE: Cherry-pick 2ed524966d3c4bd04ea5f54026ed59558d73cd44 to JB." into jb-dev 2012-06-11 13:20:35 -07:00
Craig Mautner
47adf865bd Merge "Fix exposing wallpaper on rotations and other." into jb-dev 2012-06-11 13:10:01 -07:00
Vairavan Srinivasan
ac5f998396 DO NOT MERGE: Cherry-pick 2ed524966d3c4bd04ea5f54026ed59558d73cd44 to JB.
This was contributed from AOSP, a fix to the management of URI write
permissions.  This is a very blatant bug, and with the new Intent ClipData
and other stuff we are making much more use of write permissions in JB,
so it is well worth taking.

Change-Id: I58c86119b4d5c13fefd090944bea139803df1a48
2012-06-11 13:06:41 -07:00