Commit Graph

253881 Commits

Author SHA1 Message Date
Tony Mantler
78a8e9d293 Fix AsyncTask to handle exceptions in doInBackground
When cancelling, the exception will be eaten by FutureTask, but
onCancelled would end up never being called due to the exception
causing the code to skip calling postResult.

b/30304893

Change-Id: I47d859d9ef77245889816b2b6e10bb380bc4979b
2016-08-05 22:03:45 +00:00
Selim Cinek
61b350cca6 Improved the transition when clicking on the last notification
In the locked shade, we were returning to the lockscreen when
the last notification was clicked and removed due to autocancel.
We're now not going back there anymore if we're closing.

Change-Id: Idc4c2c145fb2ca308f236b99408cc6096dd02302
Fixes: 30642902
2016-08-05 14:26:51 -07:00
Winson
08deff0a67 Reverting ag/1288123
- Reverts the change to draw the drop targets opposite of the nav bar
- Fixes the issue with the drop divider being occluded by the nav bar
  when the phone is in landscape orientation.  Instead, expand the 
  drag overlay to include the nav bar space.

Bug: 30548794
Change-Id: I70ed3513547e101e49c8eba114a153c5a1f36bee
2016-08-05 14:12:39 -07:00
Christopher Tate
cf02471cde Reschedule date-change alarm whenever the time is set
Bug 30628519

Change-Id: Ic4180b9f3c822f3dfb7e35199f3d058938acf778
2016-08-05 14:10:55 -07:00
TreeHugger Robot
ba8f3d03ac Merge "Switch volume animation to Scene." into nyc-mr1-dev 2016-08-05 20:50:48 +00:00
Alan Viverette
47be54bb78 Use symmetric conditions for advertising and performing ACTION_SCROLL
Bug: 30186372
Change-Id: Ieea0cd539049990ffa98edabb2a7b026445dd14a
2016-08-05 16:48:19 -04:00
Chong Zhang
82c5197d86 Merge "Fix WM missing stack/task when activity is force stopped and restarted" into nyc-mr1-dev 2016-08-05 20:04:56 +00:00
TreeHugger Robot
9d90b758c9 Merge "Correctly initialize rotation animation hint." into nyc-mr1-dev 2016-08-05 19:32:49 +00:00
Julia Reynolds
568585b47c Switch volume animation to Scene.
animateLayoutChanges is too janky.

Bug: 30070005
Change-Id: I88bb94c2de18a8ebc14f0f0aed48877a8b328d8a
2016-08-05 15:27:14 -04:00
Chong Zhang
d9d35bdfcf Fix WM missing stack/task when activity is force stopped and restarted
When activity process is force-stopped (like in the case we need to stop
it to allow debugger), activity record is removed and a new instance is
added. Depending on timing, adding of new record could happen before
or after old record is removed. If it added after old record is removed,
then the removal could cause AM to also remove the task AND the stack
(if the activity is the last one).

On WM side however, the task/stack removal could be delayed due to
animation. So when AM attaches a new stack, we end up with two stacks
with the same stack id in the DisplayContent. Also, AM reuses the last
used taskId after it's deleted. So WM is confused and didn't add a new
task record. Then when the delayed stack removal fires everything is gone.

We need to use a different task id when creating a new task record, even
if the last created task is already deleted. Also when attaching a new
stack to WM, first check if we already have such a stack in DisplayContent,
if so, reattach it and don't create a duplicate.

bug: 30465601
Change-Id: Ic399a32c54f6acdcbb9a0c6155599331d55df232
2016-08-05 12:16:04 -07:00
Selim Cinek
aa3901a5ee Fixed a bug that could lead to an empty notification
With sensitive notifications, notification groups could
become empty.

Change-Id: Ibea016c64287d1952db136e038372b778d8febc2
Fixes: 30641080
2016-08-05 11:41:58 -07:00
Adrian Roos
c49dfaf4d6 Merge changes from topic 'smooth_unlock' into nyc-mr1-dev
* changes:
  Keyguard: Improve trusted unlock while occluded
  Keyguard: Refactoring for improving trusted unlock while occluded
2016-08-05 18:37:29 +00:00
Tyler Gunn
920f79411c Add Connection Event for wifi handover failures.
Adding a new connection event which Telephony can use to inform upper
layers of a failure to handover to WIFI.

Bug: 30697460
Change-Id: I75da2f956a6b70a9bf4cf7128f29968e08172dc3
2016-08-05 11:22:34 -07:00
Chris Tate
b3690ccf2c Merge "Fix "adb backup -shared"" into nyc-mr1-dev 2016-08-05 18:04:25 +00:00
Robert Carr
d226512433 Correctly initialize rotation animation hint.
In the case of no activity options we won't initialize
it again later, and so we will override the apps request
with a hint of 0 (ROTATION_ANIMATION_ROTATE).

Bug: 30683604
Change-Id: I5eed12adfbb241859503bcd40f15ee82141436d8
2016-08-05 10:58:12 -07:00
John Reck
70e89c9c37 Ensure Dequeue/Queue duration is always set
Bug: 30662749
Change-Id: I35a4c26ce78536fc7a506ec2f92a8b9eecb12ec2
2016-08-05 10:50:36 -07:00
TreeHugger Robot
9d9621f472 Merge "Move EphemeralResolverService" into nyc-mr1-dev 2016-08-05 17:37:35 +00:00
Mark Lu
b1b5efd3be docs: fixed generics in data binding code samples
Generic types, such as List<String>, must be escaped when they are
used in XML. For example, List&lt;String>. This commit adds
escape characters to the XML samples in the data binding page.

Bug: 30691285
Change-Id: If55ed55d13fb11038e2495884c79698e67219108
2016-08-05 10:17:00 -07:00
Rob Carr
d51f38ae38 Merge "WindowManager: Restore update behavior of mLastFrame." into nyc-mr1-dev 2016-08-05 17:00:20 +00:00
John Reck
a2acb4f077 Fix currentAnimationTimeMillis to use vsync time
Bug: 30674719
Change-Id: I71f51eea971e43cbe85bb0713a1c457a1b3243b3
2016-08-05 09:16:06 -07:00
TreeHugger Robot
797b658428 Merge "QS: Fix accidental a11y tile removal" into nyc-mr1-dev 2016-08-05 15:49:12 +00:00
Wyatt Riley
549c81c270 Merge "LocationManager - Handle Shutdown for right User" into nyc-mr1-dev 2016-08-05 15:17:22 +00:00
Todd Kennedy
31b95e0265 Move EphemeralResolverService
It should not have been under com.android.internal

Fixes: 30673742
Change-Id: I2277aa4a4799fa59bf68af7c4cfcb4e1216aeb8d
2016-08-05 07:17:52 -07:00
Jason Monk
c896963063 QS: Fix accidental a11y tile removal
Change-Id: I5b5c3bac0b92a7cc5585dcd55571fa055da0e5eb
Fixes: 30443933
2016-08-05 10:08:11 -04:00
TreeHugger Robot
b11cc6cbd3 Merge "Call userActivity when dismissing keyguard" into nyc-mr1-dev 2016-08-05 11:53:59 +00:00
TreeHugger Robot
4d140b72f2 Merge "Fix flickering issues with FLAG_SHOW_WHEN_LOCKED and fingerprint wake" into nyc-mr1-dev 2016-08-05 11:53:38 +00:00
Doris Liu
f7167e8f28 Support repeatMode = reverse in AVD
BUG: 30641232
Change-Id: I34c823a0a45c8441873a9b467275174c5529994b
2016-08-05 01:44:20 +00:00
Selim Cinek
d871f95f49 Removed contentDescriptions that hindered accessibility usability
This lead to a whole area being accessibilityfocusable even though
it shouldn't have been.

Change-Id: I49ab58c3da768930576880d8793b2fe2657a0aa8
Fixes: 30315141
2016-08-04 18:12:25 -07:00
Phil Weaver
6f20514185 Merge "Only filter a11y motion events if needed." into nyc-mr1-dev 2016-08-05 00:37:19 +00:00
Wyatt Riley
1b24fb17b8 LocationManager - Handle Shutdown for right User
Only process a shutdown when it is for all users (whole system),
not a single user

Change-Id: Id51b7fb4606460462c2f6749e5ac3984bdd8319f
Bug: 30646142
2016-08-04 17:34:19 -07:00
Christopher Tate
60af594c3e Fix "adb backup -shared"
An accidental side-effect of introducing the XML content file and its
domain semantic checking was that the shared-storage domain got
dropped on the floor.  Now the mechanism understands what it means
again.

Bug 29999884

Change-Id: I22b99c96869683d1a92430f237dda54b170b8f60
2016-08-04 17:23:20 -07:00
Adrian Roos
ddcdecc952 Keyguard: Improve trusted unlock while occluded
Smoothly unlocks device when going from a SHOW_WHEN_LOCKED activity
to a DISMISS_KEYGUARD activity while the device is trusted.

This change suppresses the jank from going briefly through the
lockscreen if the device is trusted and unlockable without entering
a credential.

Bug: 27410215
Change-Id: Idd86e825d37a89538a0a1f690daf6afcf94a0699
2016-08-05 00:05:16 +00:00
Suprabh Shukla
9704e409df Not trying to remove admins already being removed
If someone calls removeActiveAdminLocked more than once, it is possible
for the device policy data to end up with more than one copy of an admin
in the list mRemovingAdmins. Due to extra entries, once the admin
component is removed, it is not being allowed to be set as an admin again,
until the device reboots or mRemovingAdmins is cleared from the memory
due to some other reason. Fixing this by making sure we do not add
duplicate entries to mRemovingAdmins

Bug: 30369197
Change-Id: I1d53c41312171425bbd6e6e4153148276f1b098d
2016-08-04 17:05:12 -07:00
Adrian Roos
d88eb2693b Keyguard: Refactoring for improving trusted unlock while occluded
- Adds a trusted signal from Keyguard to PhoneWindowManager
- Allows PhoneWindowManager to exempt DISMISS_KEYGUARD windows from force hiding
- Allows PhoneWindowManager to dismiss Keyguard while occluded

Bug: 27410215
Change-Id: I3ad490b64a5805b6f3888a9f37fcfbdd0116395e
2016-08-05 00:04:07 +00:00
Doris Ling
f32b03d124 Merge "Add metrics event for Settings->Display->Ambient Display." into nyc-mr1-dev 2016-08-04 23:39:38 +00:00
Adrian Roos
d1726e7598 Merge "HIC: Add report facility for overzealous anti-falsing" into nyc-mr1-dev 2016-08-04 23:24:04 +00:00
Adrian Roos
34b68d3c84 Merge "Only reorient nav bar if needed" into nyc-mr1-dev 2016-08-04 23:06:47 +00:00
Phil Weaver
dc5dedeaa2 Only filter a11y motion events if needed.
We've seen some jitter in motion events with accessibility
enabled. We can eliminate it by not passing motion events
through the filter if we know they won't be affected.

Bug: 30183085

Change-Id: I0ecc8d5a39c8e370fc3a8ab85c6357251a31f8ad
2016-08-04 15:58:44 -07:00
Kevin Hufnagle
d4197234bb docs: Revised "Optimizing Content for the Assistant" page.
Bug: 25080159
Change-Id: Ie4167ba732ffbd401cabcb7f0ba3bac41a029506
2016-08-04 15:57:15 -07:00
Phil Weaver
a8cfb3733d Improve handling of crashing a11y services.
We were confusing handling of services that were unbound with
those that had crashed. We would lose track of services that
has crashed, start new ones, and then when the system restarted
a killed services we would have multiple instances running. It
was possible for this to get very out of hand.

Bug: 30306689
Change-Id: I4e63d25b6d2fec3ec68f450a4602898c43a2b2ad
2016-08-04 15:45:13 -07:00
Doris Liu
6725d581eb Remove animation value change from push staging
This CL ensures that animation values are only updated during
animation pulses.

This CL also includes the revert of
https://googleplex-android-review.git.corp.google.com/#/c/1285913/

BUG: 30659748

Change-Id: Iadc84462dc61157efd3c18a23767bba9faf00f6e
2016-08-04 22:43:07 +00:00
Annie Chin
6bcf0cdf37 Merge "setCarMode() only when car mode changes" into nyc-mr1-dev 2016-08-04 22:08:16 +00:00
Ruben Brunk
2f917df4be Merge "Don't crash system server when setting scheduler." into nyc-mr1-dev 2016-08-04 21:59:51 +00:00
Dianne Hackborn
a96e7ac463 Merge "Fix issue #30647973: stopForeground() doesn't remove notification" into nyc-mr1-dev 2016-08-04 21:56:25 +00:00
Ruben Brunk
29a4a9edb3 Don't crash system server when setting scheduler.
Bug: 30671326
Change-Id: I2f7913cd3cca052d5a653ff288459b0a6a69deda
2016-08-04 14:50:25 -07:00
Shunta Sato
682d370390 DO NOT MERGE: Don't delete source file when a move opration is canceled
DNM becuase Code has moved in master.

Symptom:
A source file is deleted even if a move operation is cancled

Root cause:
MoveJob doesn't check whether a move operation is canceled or not
after copying file

Solution:
Add cancel condition check before deleting a source file

Bug: 30240042
Author: Shiotani Kouji <kouji.x.shiotani@sonymobile.com>
Change-Id: Ie68e5d96304a125c07d46a2fd5e4c9d84903d1e7
2016-08-04 14:43:34 -07:00
Dianne Hackborn
569a45871c Fix issue #30647973: stopForeground() doesn't remove notification
Ignore the service that is actually trying to remove its notification.

Change-Id: I1293300cf2a4bea7c512df7b2242a18dcc25d1c6
2016-08-04 14:00:22 -07:00
TreeHugger Robot
a4b89c054c Merge "Correctly handle a case when there are no preloaded apps" into nyc-mr1-dev 2016-08-04 20:53:59 +00:00
Fyodor Kupolov
65889f7e26 Merge "Use Settings.Global.putInt for PACKAGE_VERIFIER_ENABLE" into nyc-mr1-dev 2016-08-04 20:52:01 +00:00
Doris Ling
f3cd2c6116 Add metrics event for Settings->Display->Ambient Display.
Bug: 29994493
Change-Id: I2eb71063db254cbe92511ca5cbe93b32c6b2c601
2016-08-04 13:21:53 -07:00