Commit Graph

23739 Commits

Author SHA1 Message Date
Selim Cinek
fc039930d1 Merge "Improved the heads up experience when notifications were blocked" into qt-r1-dev 2019-07-23 20:25:35 +00:00
Robert Snoeberger
cc52759d2c Merge "Don't animate clock when turning screen off." into qt-r1-dev 2019-07-23 18:12:40 +00:00
Selim Cinek
b765c60568 Merge "Fixed a bug with the animation of the notification background" into qt-dev
am: 5958b7c77b

Change-Id: I523abfa025e8c25c6fa7e198e172ae2b4db08158
2019-07-22 18:17:15 -07:00
TreeHugger Robot
5958b7c77b Merge "Fixed a bug with the animation of the notification background" into qt-dev 2019-07-23 00:57:58 +00:00
Selim Cinek
8ee02b1e7d Improved the heads up experience when notifications were blocked
When notifications were blocked due to proximity, the heads
up would never show until unlocked. We're now showing it
when the screen turns on.
This also avoids the header to be shown while the
notifications are fully collapsed, since that was the
only element that changed before.

Fixes: 	137711785
Test: get hun in pocket, pull out, observe notification visible
Change-Id: I9c3d0cdc341eb2d95bcb76099e59b0d561f81210
2019-07-22 17:52:56 -07:00
Mehdi Alizadeh
1051afbb38 Merge "Removes auto-switch from gesture nav when default home app changes" into qt-r1-dev 2019-07-22 23:17:48 +00:00
TreeHugger Robot
2738aa3f79 Merge "Fixed that silent notifications weren't showing on AOD" into qt-r1-dev 2019-07-22 21:51:11 +00:00
Robert Snoeberger
dc8fee7ea1 Don't animate clock when turning screen off.
This change stops the animation because there isn't a
transition from the no-header state to the music header
state when turning the screen off (to AOD). Since there
isn't a transition, there isn't an animation.

This assumes that there isn't a transition from unlocked to
lock screen. If there is, then there would be an animation
of the music going away while arriving at the lock screen.

Fixes: 137383007
Test: Checked repro steps in bug, clock doesn't animate.
Test: Also checked repro steps when audio is paused, clock doesn't
animate.
Test: atest KeyguardSliceProviderTest.java

Change-Id: If39777340b72bc623d6690bc4f784c7f5c26ea8d
2019-07-22 16:36:03 -04:00
Selim Cinek
31ebb40789 Fixed that silent notifications weren't showing on AOD
Because we were listening to the tuning value but not
actually handling the null default value, the visibility
of the silent icons would be wrong by default.
Additionally, the whole settings check isn't actually
needed since we are already limited to the visible
notifications in the notification list and therefore
the setting is already automatically applied.

Fixes: 137977737
Test: atest SystemUItests
Change-Id: I93e23b08525c6bb8d2219a4bdaa0bbc64ce55d8d
2019-07-19 18:29:56 -07:00
Selim Cinek
1ebcfb66c9 Merge "Fixed a crash with the headsUpManager" into qt-dev
am: fcd42e9249

Change-Id: I82fedec3d4d6f297a022f42fe29e52bffbdc222a
2019-07-19 17:39:24 -07:00
Lucas Dupin
6fa0743097 Merge "Use binned brightness sensor instead of prox" into qt-dev
am: cdc566dfd6

Change-Id: I85007cffbac76c4cf9e66228ec3abfd4c8e8067d
2019-07-19 17:34:17 -07:00
Selim Cinek
893a9dfa10 Fixed a bug with the animation of the notification background
The position of the background could be 0 and therefore the
background could fly over the whole screen.
We're now positioning the top section at the start
of the first visible section.

Fixes: 137885070
Test: atest SystemUiTests
Change-Id: I6720b570f5cd209249b90681cdf6c6a56cf0194e
2019-07-19 17:33:22 -07:00
TreeHugger Robot
17e4063de9 Merge "Fix class initialization issue" into qt-r1-dev 2019-07-20 00:07:08 +00:00
TreeHugger Robot
fcd42e9249 Merge "Fixed a crash with the headsUpManager" into qt-dev 2019-07-19 23:55:30 +00:00
TreeHugger Robot
2a5ac75f63 Merge "resolve merge conflicts of 0e680785e4 to qt-r1-dev" into qt-r1-dev 2019-07-19 23:47:35 +00:00
TreeHugger Robot
68d625bea6 Merge "Update clock when turning the screen on" into qt-r1-dev 2019-07-19 22:57:41 +00:00
TreeHugger Robot
cdc566dfd6 Merge "Use binned brightness sensor instead of prox" into qt-dev 2019-07-19 22:33:20 +00:00
Lucas Dupin
68f5dae5b6 Fix class initialization issue
We were getting an NPE because the superclass was
calling an overridden method on its constructor,
before the variable could be initialized.

Test: atest ScrimControllerTest
Fixes: 137665467
Fixes: 137878476
Change-Id: I8914eac86cac19d92a68a2d55d97dfcee4066ed3
(cherry picked from commit 1c72bc2151)
2019-07-19 21:05:09 +00:00
Dave Mankoff
3486cf4d0b resolve merge conflicts of 0e680785e4 to qt-r1-dev
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Idf6ca46cd849b6d363fd5f1633877224141a7943
2019-07-19 16:29:31 -04:00
Dave Mankoff
1ec1ecb364 Merge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype." into qt-r1-dev 2019-07-19 19:27:37 +00:00
Lucas Dupin
f61c1044fb Use binned brightness sensor instead of prox
Prox can be noisy and should only be used as a fallback when a more
robust sensor implementation is not available.

Test: manually cover prox sensor
Test: breakpoint
Test: dumpsys
Fixes: 137451005
Change-Id: If0fca42aca36546942930ce76be1353129fc91fc
2019-07-19 12:16:25 -07:00
Selim Cinek
41e7e6edc7 Fixed a crash with the headsUpManager
Since the headsUpManager is calling out in various places to
its listeners, the callbacks may query the headsupmanager
in an internally inconsistent state, such that the pinned mode is
true but there is no topEntry. Let's add a null-check for
safety here.

Bug: 137804505
Test: atest SystemUITests
Change-Id: Ibae76b555ca51ccf676228b034a614d59a8b4e8e
2019-07-19 11:47:58 -07:00
Lucas Dupin
bb83b89545 Update clock when turning the screen on
Sensors might disable the screen, setting the machine state to
DOZE. We need to update the clock when the screen turns on.

Fixes: 137943236
Test: turn off screen with sensor, wait for a few minutes, come back
Change-Id: I633568294aa24bfea6765accc08ccf23f9c6bec1
2019-07-19 11:45:16 -07:00
Dave Mankoff
b332588e60 Enable the BrightLineFalsingManager by default on Q.
Bug: 71762354
Change-Id: Icfc6e21d50e08c34168f504ec64bf654ba6cb6a4
Test: atest SystemUITests
2019-07-19 11:26:58 -04:00
TreeHugger Robot
5e1a2df834 Merge "Fixed an issue where heads up notifications would overlap" into qt-r1-dev 2019-07-19 00:09:53 +00:00
Mehdi Alizadeh
4f1e915161 Removes auto-switch from gesture nav when default home app changes
Bug: 137197916
Test: Manual test with setting a 3P launcher as default
Change-Id: I643bacc0379d05980ce8db7198771f5d4616d203
2019-07-18 15:08:44 -07:00
Lucas Dupin
7d95f154a0 Disable bypass and bouncer delay when no face auth
KeyguardUpdateMonitor#isUnlockWithFacePossible was returning true
when the user had disabled face unlock.

This was causing bypass to still be enabled (hiding all notifications)
and bouncer was also being delayed, even though we were not scanning.

Fixes: 134977472
Test: auth with bypass (toggling face auth setting on/off)
Test: auth without bypass (toggling face auth setting on/off)
Change-Id: I234eb303db87fe0dafa2073a9bdf819c665018d6
2019-07-18 14:24:08 -07:00
Dave Mankoff
1b80884e03 Allow BrightLineFalsingManager settings to be experimented with via Phenotype.
This also ensures that the FalsingManagerProxy cleans up its internal instance
whenever a Phenotype flag changes.

Bug: 71762354
Test: atest SystemUITests
Change-Id: I9fa4d1344bb184dea00f92f8d265667f0be11466
2019-07-18 17:22:54 -04:00
Selim Cinek
8f3f03f1bf Fixed an issue where heads up notifications would overlap
We recently fixed the logic where notifications are being displayed
if multiple huns are showing, however we were not clipping to them.
We're now clipping heads up notifications as well by the clipTopAmount

Fixes: 136914021
Test: add two different sized HUNS, so weird overlap.
Change-Id: I68a4c373eff3952b1a4711858c9ce61684f6ff17
2019-07-18 14:19:54 -07:00
TreeHugger Robot
e8f8d71ea4 Merge "Do not animate wallpaper when wakeAndUnlock" into qt-r1-dev 2019-07-18 05:26:16 +00:00
Lucas Dupin
29e30faa4e Do not animate wallpaper when wakeAndUnlock
Fixes: 137536016
Test: press power to go to lock scree <-> aod
Test: unlock with fingerprint
Test: trigger AOD2 pulse (look at wallpaper animation)
Test: atest DozeWallpaperStateTest
Change-Id: I46574609a00712bdde5a4652ab5c9b0c04cbeeec
Merged-In: I46574609a00712bdde5a4652ab5c9b0c04cbeeec
2019-07-18 02:07:24 +00:00
Lucas Dupin
bd6c92b074 Do not animate wallpaper when wakeAndUnlock
Fixes: 137536016
Test: press power to go to lock scree <-> aod
Test: unlock with fingerprint
Test: trigger AOD2 pulse (look at wallpaper animation)
Test: atest DozeWallpaperStateTest
Change-Id: I46574609a00712bdde5a4652ab5c9b0c04cbeeec
Merged-In: I46574609a00712bdde5a4652ab5c9b0c04cbeeec
2019-07-18 02:07:09 +00:00
TreeHugger Robot
0108bc4b8b Merge "Do not play "lock" anim right after showing kg" into qt-r1-dev 2019-07-18 01:08:03 +00:00
Lucas Dupin
0fdd8f16d1 Do not play "lock" anim right after showing kg
Let's not play the lock icon animation if the keyguard had just
become visible. Otherwise it will look like we're locking the phone,
and it was already locked earlier.

Test: manual
Fixes: 137691015
Change-Id: I2486cfff3efbbb30d23ce4b68962dd352a2e60b7
2019-07-17 15:52:11 -07:00
TreeHugger Robot
e03623cee0 Merge "Reduce duration of AOD headsup" into qt-r1-dev 2019-07-17 20:35:30 +00:00
Jordan Liu
6050d6b626 Merge "Fix sim pin on DSDS" into qt-r1-dev 2019-07-17 20:28:37 +00:00
Lucas Dupin
d534c1235c Reduce duration of AOD headsup
Test: manual
Fixes: 134649305
Change-Id: If8b49e2b3905c463eeab7bb66568b98f708448e2
2019-07-17 11:09:03 -07:00
Dave Mankoff
ed3dca9de0 Merge "Add cleanup method to FalsingManager to prevent memory leaks." into qt-r1-dev 2019-07-17 14:21:24 +00:00
TreeHugger Robot
9177ab6cee Merge "Improved the bypass animation" into qt-r1-dev 2019-07-17 09:51:27 +00:00
Lucas Dupin
e392d5bb52 Merge "Synchronize and slow down fade in" into qt-r1-dev 2019-07-17 07:25:31 +00:00
Selim Cinek
84b2acc694 Improved the bypass animation
The lock icon and the scrim now fade with the same quick unlock animation
like the rest of the bypass, which completes the experience

Fixes: 134952761
Change-Id: Id164914e0e8d780e626acb28922c2084257620f9
2019-07-17 15:15:03 +08:00
Lucas Dupin
34306c3931 Synchronize and slow down fade in
Use slower animation when turning on the display, and request
a black frame when going to sleep.

Fixes: 137398766
Test: Wake up with presence sensor
Test: Wake up by uncovering prox sensor
Test: Wake up by pressing power (with AOD on or off)
Test: Receive notification from AOD
Change-Id: Ic3201e4c6b9de3d1322c9473897bca21fe63f773
2019-07-17 02:01:45 +00:00
Lucas Dupin
6b068a4f65 Merge "Dismiss bouncer properly on SHADE_LOCKED" into qt-r1-dev 2019-07-17 00:23:53 +00:00
Jordan Liu
15be64a0ac Fix sim pin on DSDS
Fixes the issue where only one SIM's PIN is checked when unlocking.
This undoes behavior changes introduced in aosp/769050

Test: manually verify with single and dual SIM that SIM PIN functions
correctly with different lockscreen settings
Bug: 135496265
Change-Id: I8db4565c4e5d5bcfb166b5962e878531a84dbafb
2019-07-16 21:52:21 +00:00
Lucas Dupin
a055a671df Dismiss bouncer properly on SHADE_LOCKED
Test: atest BiometricsUnlockControllerTest
Test: dismiss bouncer after hitting reply button
Test: hit back on bouncer on shade_locked
Test: tap on padlock on camera app, swipe up to retry
Bug: 134096479
Fixes: 137517676
Change-Id: I12e5bbd2c5ceac642a281fc16c5398e09e65ca9d
2019-07-16 14:21:42 -07:00
Dave Mankoff
4c5a13ebd9 Add cleanup method to FalsingManager to prevent memory leaks.
When the FalsingManager gets reloaded (due to plugins) it can
leak its listeners and callbacks. This change fixes that.

Bug: 136351609
Test: manual
Change-Id: I2b52d018d478dbcad4ecb7d8a5b361638d5c5877
Merged-In: I2b52d018d478dbcad4ecb7d8a5b361638d5c5877
2019-07-16 20:01:29 +00:00
TreeHugger Robot
f61fdd8249 Merge "Fix issue where sensors wouldn't be reregistered" into qt-r1-dev 2019-07-16 18:53:45 +00:00
Lucas Dupin
3174c66843 Fix issue where sensors wouldn't be reregistered
Test: manual
Test: atest DozeTriggersTest
Fixes: 137220997
Change-Id: Ic983b64745fd1fa171059d08557e92ed52060f9e
2019-07-16 09:37:52 -07:00
Lucas Dupin
972793ea20 Merge "Do not let device sleep after successful auth" into qt-r1-dev 2019-07-16 16:27:23 +00:00
Selim Cinek
88bbb2a9f0 Merge "Made sure the headsup doesn't disappear after bypassing" into qt-r1-dev 2019-07-15 03:00:13 +00:00