Commit Graph

15872 Commits

Author SHA1 Message Date
Adrian Roos
08e94e294c Merge "FingerprintController: Make sure to reset the fingerprint mode when going to sleep" into oc-mr1-dev am: b140dc40d4
am: 837282ea25

Change-Id: I45d8f4fba4328571ce9e768c7f0163f1007a1e36
2017-08-16 18:35:21 +00:00
Kevin Chyn
d01651bd9e Merge "Add method to cancel StatusBar touch" into oc-mr1-dev am: d180d76305
am: a69bdd0a57

Change-Id: I26e40e49003c377de18df68d3da014cb173ccd69
2017-08-16 18:16:07 +00:00
Matthew Ng
05cb28a48e Merge "Fixes quick switch animations for low end devices" into oc-mr1-dev am: 0877b99aaf
am: c9e95c66f4

Change-Id: I771ab6487432bce908a2d511249eacf2ea5b2002
2017-08-16 17:38:19 +00:00
Adrian Roos
ba7ca590af FingerprintController: Make sure to reset the fingerprint mode when going to sleep
Fixes an issue where the fingerprint controller could be stuck indefinitely, causing
the status bar to be in the SHADE state instead of the KEYGUARD state.
Now reset when going to sleep.

Also adds logging.

May also fix a second bug where the scrims were stuck in a bad state.

Change-Id: I55d456c5d157f92758267f684de2bd216ef07d94
Fixes: 64598807
Bug: 64594986
Test: mp sysuig; unlock with fingerprint; verify transition still works
2017-08-16 09:25:01 +00:00
TreeHugger Robot
d180d76305 Merge "Add method to cancel StatusBar touch" into oc-mr1-dev 2017-08-16 07:48:43 +00:00
TreeHugger Robot
0877b99aaf Merge "Fixes quick switch animations for low end devices" into oc-mr1-dev 2017-08-16 02:28:52 +00:00
Kevin Chyn
637323131a Add method to cancel StatusBar touch
Fixes: 64611899

Test: manual
Change-Id: I80f458f0365d9634c5f360793def6f673777473c
2017-08-15 16:54:03 -07:00
Matthew Ng
c57b7f6e96 Fixes quick switch animations for low end devices
Currently using quick switch is fine but sometimes with animation
glitches but very reproducible if tapping recents button very fast. The
problem is that low end device Recents entrance animation also has the
previous tasks animating downward causing more chances of animation
instability.

The problem is that transition is not finished and it is already
starting to do the next toggled animation. When the transition from
app to recents (RecentsImpl.toggleRecents) starts without finishing
RecentsActivity.onStop, the previous frame will be visible for a couple
of frames before the entrance animation starts (having the previous task
animate down). Therefore restrict toggling to after
RecentsActivity.onStop would allow the previous frame to finish and the
transitions run normally.

Bug: 62251652
Fixes: 64401391
Test: manual - using gobo device, launch multiple apps, rapidly tap recents
button
Change-Id: I4e70434bca3c9bec287fa30559b23a1e71b5ef20
2017-08-15 14:59:43 -07:00
Annie Chin
033c29a3b7 Merge "Merge "Remove ButtonInterface.setCarMode()" into oc-mr1-dev am: 3512953d27" into oc-mr1-dev-plus-aosp
am: e22c929e85

Change-Id: I38fa21c27e779ecdafb53124ce4c97e5d030ad7a
2017-08-15 21:47:02 +00:00
Jason Monk
5661e97510 Merge "Persist docked state so it doesn't get lost in re-inflates" into oc-mr1-dev am: c611e97f29
am: b1db79db96

Change-Id: I2c900104e46a9a9c23a1faca89806f02924de7ec
2017-08-15 21:31:59 +00:00
TreeHugger Robot
3512953d27 Merge "Remove ButtonInterface.setCarMode()" into oc-mr1-dev 2017-08-15 21:08:17 +00:00
TreeHugger Robot
c611e97f29 Merge "Persist docked state so it doesn't get lost in re-inflates" into oc-mr1-dev 2017-08-15 20:48:09 +00:00
Winson Chung
8e18ca5c79 Merge "Workaround the IME dismissing when dragging PiP." into oc-mr1-dev am: f2f9951e92
am: 8d3f4737a0

Change-Id: I706f384589dee583dc4b857efbb5db254c2e7c32
2017-08-15 20:19:41 +00:00
Kevin Chyn
2356e49741 Merge "Only auth via FP when device is locked, when Assistant is on top" into oc-mr1-dev am: 990d25bda0
am: b79536e0a7

Change-Id: I9e60b61c5141f4e58dbed3a1c7f450f7932acf9f
2017-08-15 19:49:36 +00:00
Winson Chung
f2f9951e92 Merge "Workaround the IME dismissing when dragging PiP." into oc-mr1-dev 2017-08-15 19:49:10 +00:00
TreeHugger Robot
990d25bda0 Merge "Only auth via FP when device is locked, when Assistant is on top" into oc-mr1-dev 2017-08-15 19:15:43 +00:00
Jason Monk
2435d22db5 Merge "Manuall set accessibility order of zen radio grouping" into oc-mr1-dev am: bcf01e7a2a
am: 056975f469

Change-Id: Iada291156b91fb8cfd64473bff2010fb8c0f31a0
2017-08-15 18:59:07 +00:00
Annie Chin
98cdafb191 Remove ButtonInterface.setCarMode()
Bug: 63444779
Test: Android Auto still functions
Change-Id: If27641aedcd05ebc834c9dc0b38d18cd20ddae03
2017-08-15 11:32:08 -07:00
TreeHugger Robot
bcf01e7a2a Merge "Manuall set accessibility order of zen radio grouping" into oc-mr1-dev 2017-08-15 17:50:49 +00:00
Jason Monk
931411e326 Merge "Fix race condition crash" into oc-mr1-dev am: 8170ea1b3c
am: f15a9b984a

Change-Id: I0720e0244e40db6fa42a6f885d21279a7eb90cd7
2017-08-15 17:32:20 +00:00
TreeHugger Robot
8170ea1b3c Merge "Fix race condition crash" into oc-mr1-dev 2017-08-15 16:43:24 +00:00
Winson Chung
eb280ca18a Merge "Add fallback to reset the waiting for transition state." into oc-dr1-dev am: 684b056531 am: 8a661ee248
am: dd4a03a53b

Change-Id: I0dad59573050cba4ee98bf5d15a7c85931b9199f
2017-08-15 16:42:33 +00:00
Winson Chung
dd4a03a53b Merge "Add fallback to reset the waiting for transition state." into oc-dr1-dev am: 684b056531
am: 8a661ee248

Change-Id: I5b8f59e5d55914960545dbc55b9087a4410f8987
2017-08-15 16:22:47 +00:00
Winson Chung
73e3d9f58c Merge "Add fallback to reset the waiting for transition state." into oc-dr1-dev
am: 684b056531

Change-Id: I77816bf56dedac6127301dc7ffd1f1de3e91031d
2017-08-15 16:12:42 +00:00
Winson Chung
8a661ee248 Merge "Add fallback to reset the waiting for transition state." into oc-dr1-dev
am: 684b056531

Change-Id: I4cebde819520bba1877a04e773ff128ca37a0af5
2017-08-15 16:12:42 +00:00
Jason Monk
aa74bf857f Persist docked state so it doesn't get lost in re-inflates
Test: manual
Change-Id: If335f1cf52c7bce270ac746e6b0ed3a6e2b18b1b
Fixes: 64487667
2017-08-15 11:34:33 -04:00
Jason Monk
92d837b442 Manuall set accessibility order of zen radio grouping
Test: manual
Change-Id: Icf461b0400d5ee90a537c2b52c123e76b3274bbf
Fixes: 62626544
2017-08-15 11:00:32 -04:00
Jason Monk
9c4faa85f1 Fix race condition crash
1 line fix
Lots of lines for test

Test: runtest systemui
Change-Id: I90b006b5d9c02025ecc600c2f10014a96cbf33f8
Fixes: 62573587
2017-08-15 09:32:27 -04:00
Winson Chung
a9c4127ece Add fallback to reset the waiting for transition state.
- When launching into recents directly in another orientation, it
  appears that the animation start callback is not made, which then
  causes the transition-waiting state to persist until Overview is
  next hidden. As a fallback, if we get onEnterAnimationComplete()
  on the activity, then the animation has started and completed, so
  we can reset the state.

Bug: 64694148
Test: Launch fixed-portrait app, hold device in landscape and then hit
      recents button, ensure that recents button still works after.

Change-Id: Ibac8554c1f71324838fef1f04db2d88b16ffe219
2017-08-14 23:51:35 +00:00
Fyodor Kupolov
0aef1c98c9 Merge "Log timings for shutdown stages" into oc-mr1-dev am: fe97799d5d
am: 34cac26ea4

Change-Id: Ifedc47b10e7542a0f28bbee1ac00490513cc0e5f
2017-08-14 21:25:01 +00:00
Fyodor Kupolov
6e3461b67c Log timings for shutdown stages
Renamed BootTimingsTraceLog to TimingsTraceLog. It is now used for
 boot and shutdown logging.

Added measurements for main stages of shutdown in the system server:
ShutdownTiming: SendShutdownBroadcast took to complete: 734ms
ShutdownTiming: ShutdownActivityManager took to complete: 203ms
ShutdownTiming: ShutdownPackageManager took to complete: 17ms
ShutdownTiming: ShutdownBt took to complete: 533ms
ShutdownTiming: ShutdownRadio took to complete: 534ms
ShutdownTiming: ShutdownNfc took to complete: 1536ms
ShutdownTiming: ShutdownRadios took to complete: 1538ms
ShutdownTiming: ShutdownStorageManager took to complete: 906ms
ShutdownTiming: SystemServerShutdown took to complete: 3918ms

Bug: 64569080
Test: shutdown/reboot and check logs
Change-Id: I636c045852cd1ed6be1c58af6608f70e95756389
2017-08-14 11:23:29 -07:00
Bryan Eyler
4f358bc729 Merge "Use first letter of user for icons." into oc-mr1-dev am: 30f9d275e9
am: c9f6d38378

Change-Id: Ie1662263a220f0328fb5c21ebeb6ab16dffd4ba8
2017-08-14 17:50:47 +00:00
Bryan Eyler
30f9d275e9 Merge "Use first letter of user for icons." into oc-mr1-dev 2017-08-14 17:30:44 +00:00
Winson Chung
0a2f34fd20 Workaround the IME dismissing when dragging PiP.
- When the IME is shown, skip showing the dismiss scrim in the menu
  because starting the activity will cause a window focus change, which
  will close the IME (it will still be covered by the dismiss overlay).
  This is slightly inconsistent from dragging while the IME is not visible,
  but is preferable to having the IME close.
- Also, use the inset bounds to calculate the fraction, which aligns
  closer to the dismiss check (which is also based on the display bounds
  and not the current (possibly inset) movement bounds.

Bug: 37655837
Test: Drag PIP over IME, ensure that it does not hide the IME.
Change-Id: I86228371effce2d962ab4367497f5b1bf32456ec
2017-08-11 18:13:24 -07:00
Adrian Roos
d727ae0aec Merge "AOD: Fix navbar flicker when transitioning to AOD" into oc-dr1-dev am: 1cbfe74fc2 am: 63953ef041
am: 4b559a3b69

Change-Id: I7d319fa53fddc2f5386410cda6e8f25fc01f8d1b
2017-08-12 00:48:47 +00:00
Kevin Chyn
129f60fecc Only auth via FP when device is locked, when Assistant is on top
Fixes: 64586258

Test: 1) swipe FP up 2cm, touch FPS without letting go. device should stay in keyguard but become unlocked
2) launch assistant, touch FPS. No vibration should occur

Test: 1) set up smart lock
2) enter keyguard and make sure smart lock is working (device is unlocked)
3) launch assistant, touch FPS. No vibration should occur

Change-Id: I7177c02c881eee5d6dd2dbabcddc92ec31f8a686
2017-08-11 17:24:42 -07:00
Jason Monk
d86c4d3cee Merge "Change default temp threshold to use shutdown temp" into oc-dr1-dev am: 84626a4e3d am: 577e6bebd0
am: 6720da43f9

Change-Id: I93d70a5a32428912017f3643f1fe80dea48fafaa
2017-08-12 00:18:12 +00:00
Adrian Roos
1a623d4b96 Merge "AOD: Fix navbar flicker when transitioning to AOD" into oc-dr1-dev
am: 1cbfe74fc2

Change-Id: Id1b46b3c77f0cb2213afa38ba3e6608f091c4d8b
2017-08-11 23:59:44 +00:00
Adrian Roos
63953ef041 Merge "AOD: Fix navbar flicker when transitioning to AOD" into oc-dr1-dev
am: 1cbfe74fc2

Change-Id: I6b5c4ce303455e592ecb0e6c6bfcd238fbd8a7ef
2017-08-11 23:54:50 +00:00
TreeHugger Robot
1cbfe74fc2 Merge "AOD: Fix navbar flicker when transitioning to AOD" into oc-dr1-dev 2017-08-11 23:43:11 +00:00
Winson Chung
8987034130 Merge "Fixing typo in swipe helper causing views not to be faded when swiped." into oc-mr1-dev am: 35ebb3c535
am: e1cd325bca

Change-Id: I41d36d3861edb28476ec7123d1ccb3adce3c49e7
2017-08-11 22:34:34 +00:00
Jason Monk
577e6bebd0 Merge "Change default temp threshold to use shutdown temp" into oc-dr1-dev
am: 84626a4e3d

Change-Id: I4c3c5be04aaa1eee409ea706b387370cedf5b15b
2017-08-11 22:29:00 +00:00
Jason Monk
b723d2528b Merge "Change default temp threshold to use shutdown temp" into oc-dr1-dev
am: 84626a4e3d

Change-Id: I7bcd02a6eeefd326d6f719ea3052674ecf2a1529
2017-08-11 21:44:46 +00:00
Adrian Roos
8db9311cb6 AOD: Fix navbar flicker when transitioning to AOD
Under certain circumstances, the transition to AOD can happen before
the navigation bar gets a chance to hide itself, which happens in a
traversal. To work around this, post turning the screen on such that
it only happens after the next traversal.

Change-Id: I178b9394e7cc6baa8e9552c9819c3ce9b044defb
Fixes: 64599221
Test: Open Whatsapp / Gmail, turn off screen, verify navbar does not flicker.
2017-08-11 14:29:35 -07:00
TreeHugger Robot
35ebb3c535 Merge "Fixing typo in swipe helper causing views not to be faded when swiped." into oc-mr1-dev 2017-08-11 20:38:01 +00:00
Beverly
4f404af606 Merge "Previous active volume dialog remains above a11y." into oc-mr1-dev am: 3e4e9e234a
am: b463d29a62

Change-Id: I1ceeef9d0dcdd5bd0c5607ecc76e000608c3ca5f
2017-08-11 19:59:43 +00:00
TreeHugger Robot
3e4e9e234a Merge "Previous active volume dialog remains above a11y." into oc-mr1-dev 2017-08-11 19:19:10 +00:00
Jason Monk
d819c31050 Change default temp threshold to use shutdown temp
Base the temp threshold to be based on the shutdown temp lowered
by some amount to ensure the warning can be seen before a shutdown.

Test: runtest systemui
Change-Id: I033a776e874d76018592954932ed5127e1b228ae
Fixes: 62845934
2017-08-11 14:44:51 -04:00
Kevin Chyn
afcc957554 Merge "Reset fingerprint lockout upon successful unlock" into oc-mr1-dev am: 60409a9255
am: 4b7539e42b

Change-Id: Ib778ed967d874e3eb4ccc3645adcc5d38c08996f
2017-08-11 17:49:51 +00:00
TreeHugger Robot
60409a9255 Merge "Reset fingerprint lockout upon successful unlock" into oc-mr1-dev 2017-08-11 17:26:07 +00:00