Commit Graph

2529 Commits

Author SHA1 Message Date
Selim Cinek
aec6b61816 Merge "EglDisplay may be null and cause Null point exception" into qt-r1-dev 2019-08-20 23:40:41 +00:00
Dave Mankoff
f1455b056d Allow for more wiggle room (literally) in BrightlineFalsingManager.
Bug: 138812628
Change-Id: I8590b2daff0337a395d333c07c2231cc10d236a3
Test: manual testing with different people to find better values.
2019-08-14 13:10:48 -04:00
Bill Lin
a6fe754349 EglDisplay may be null and cause Null point exception
Add null check on EglDisplay in case unexpected NPE

Fixes: 139195633
Fixes: 139113237
Test: Run Forest for CTS  x86 CtsAppTestCases on cf_x86_phone-userdebug
Test: atest com.android.systemui.glwallpaper.EglHelperTest

Change-Id: Iefb17082746bacf46b664b253a8baa8ee4b7cd68
2019-08-13 19:50:25 +08:00
TreeHugger Robot
85224a5834 Merge "Using the keyguard fading away duration for the scrim" into qt-r1-dev 2019-08-12 22:44:56 +00:00
Selim Cinek
72cd9a7358 Using the keyguard fading away duration for the scrim
Previously we were using a fixed duration and as a result the
scrims duration was much shorter right after boot when the
fading away duration takes 2 seconds. We're now always using
the fading away duration which simplifies also the bypass
transition.

Fixes: 138305791
Test: atest SystemUITests
Change-Id: I2eba68c75c9777ab1ba6ffadadafed3836eb74e3
2019-08-09 18:01:27 -07:00
Ned Burns
2d35980e72 Ensure isTopBucket() gets set when there is just one notification
My descendants will vilify this CL for generations to come. We'll
clean it up for R, but this is our last, best hope for fixing things
in Q.

Bug: 138775282

Test: manual
Change-Id: I615b2f7fddca30dae67dbaab0e5d54a824a4c441
2019-08-08 22:16:52 -04:00
Selim Cinek
4c1435a8eb Merge "Fixes breaking test" into qt-r1-dev 2019-08-02 17:58:49 +00:00
Fabian Kozynski
96585dea65 Merge "Fix "Invalid card" text on CarrierTextController" into qt-r1-dev 2019-08-02 17:48:59 +00:00
Selim Cinek
eec5884c77 Fixes breaking test
Fixes: 138812624
Test: atest SystemUiTests
Change-Id: If289ea1c2a0eaa2332d1328f3eb50acd71aaf354
2019-08-02 09:35:28 -07:00
Selim Cinek
10a572979c Avoid strange animation when dynamic privacy changes
The dynamic privacy state would briefly switch during
unlocking, leading to the view appearing even though
it was already visible.

Fixes: 	138620551
Test: enable dynamic privacy, unlock with face, then unlock by dragging down, observe no weird animation
Change-Id: I3cc0945af0b83ee18cd173545a099af45b442e56
2019-08-01 13:24:26 -07:00
Selim Cinek
5454a0dd15 Improved the experience with bypass and dynamic privacy
The user can now use the expand buttons and also clear
all is invisible while locked down.
The can also drag down normally to reveal the
contents of a notification.
Also, the section clear button is also properly updated
once dynamic privacy changes.

Fixes: 138671060
Fixes: 138669307
Test: drag down with notif hidden and bypass on on a sensitive notification
Change-Id: I8743400d0b46583802a8663f6723dfa6beee95c9
2019-08-01 13:24:23 -07:00
Fabian Kozynski
c3d06f3df4 Fix "Invalid card" text on CarrierTextController
If there's an invalid sim that does not have a corresponding sub, the
text "Invalid card" should be appended to the current carrierText. As
this was assembled after this step (when it was empty), it ended up
replacing the correct carrierText instead of being appended.

Test: atest CarrierTextControllerTest
Bug: 138605164
Change-Id: Ibe0e2c3a218ea5c50f94e79cc46bd985b9646af0
2019-07-31 14:21:14 -04:00
Lucas Dupin
e25c487141 Switch preffered display mode on lock screen
To save power, now it's possible to specify a preferred refresh rate for
the lock screen. It's -1 by default, and should be configured on a
device overlay whenever required.

Test: manual
Test: atest StatusBarWindowControllerTest
Fixes: 138303350
Change-Id: I4d1ca210b50d32d937b0fea2fcb9e28a7c50c0b3
2019-07-30 09:47:18 -07:00
Selim Cinek
a1001b430f Merge "Showing the notification icon properly now when the pulse is suppressed" into qt-r1-dev 2019-07-26 16:54:09 +00:00
Vinit Nayak
c1dc1facea Merge "Prevent key removal on cache update" into qt-r1-dev 2019-07-26 15:56:23 +00:00
Lucas Dupin
81cdfa4a82 Show bouncer when unlocking and not interactive
We cannot dismiss the bouncer when the device cannot be unlocked,
otherwise we'll be stuck looking since gatekeeper is not unlocked.

Test: face auth from AOD2 encrypted
Test: face auth from lock screen encrypted
Test: face auth from AOD2
Test: atest BiometricsUnlockControllerTest
Fixes: 138093575
Change-Id: I5c5b89ee9fa1a10cedceaf1ab227e26910beed2a
2019-07-25 22:16:26 -07:00
Selim Cinek
65c96f2fd4 Showing the notification icon properly now when the pulse is suppressed
Previously the notification would be hidden so if the user would pull
out the phone from the pocket, they might not see what notification
actually alerted.

Bug: 138336424
Test: add notification while on AOD, block prox sensor, see icon
Change-Id: I8f7bd7a6a0562942ed3e12f28705043722d177e8
2019-07-25 20:47:43 -07:00
Vinit Nayak
3a9f1f547a Prevent key removal on cache update
Recent thumbnail cache keys were prematurely
deleted from the TaskKeyCache.

Test: atest SystemUITests:TaskKeyLruCacheTest

fixes: 111077107
Change-Id: I4d38ba1f69b4a4b9898e1951b68181f27f92c116
2019-07-26 01:20:14 +00:00
Lucas Dupin
a7eacf93fd Make sure scrims will fade from black
Scrims might be light if the wallpaper is light, but when
turning on the screen, we should always fade from black,
otherwise the display will bright up before dimming down.

Test: pulse with light wallpaper and AOD on/off
Test: press power with AOD on/off
Test: atest ScrimControllerTest
Fixes: 138097741
Change-Id: Icc1ce276c839bce248ab9362a5d8cf4905201e0e
2019-07-24 23:24:12 +00:00
Ned Burns
dc860bdfa8 Merge "Fix issue with media notifs being misbucketed" into qt-r1-dev 2019-07-24 16:49:14 +00:00
Selim Cinek
dc40ca591f Merge "Fix breaking test" into qt-r1-dev 2019-07-24 04:15:53 +00:00
Lucas Dupin
5431a92fd5 Fix breaking test
Fixes: 138245190
Test: atest SystemUITests
Merged-In: Ic1a937d3d81f4386ae744109076935921da9591b
Change-Id: Ie6f1133cac2e0f4f73a3620c71bd0c44d3b9be0b
2019-07-24 01:42:06 +00:00
Lucas Dupin
c2877e1197 Merge "Bouncer isn't in transit when fully visible/hidden" into qt-r1-dev 2019-07-24 01:18:38 +00:00
Lucas Dupin
428385c40e Merge "Isolate DPM and SIM PIN states from UX" into qt-r1-dev 2019-07-24 01:15:39 +00:00
Ned Burns
8c1b763dcf Fix issue with media notifs being misbucketed
Previous code assumed that "isHighPriority" == "is in top section",
which is not always true. Media notifs and some other notifs can appear
in the top section even if they're not high priority. Because we detect
section boundaries by iterating through the list until we find the first
notif where isHighPriority == false, we were sometimes drawing the
section boundary way too high. This change creates a new propery,
isInTopSection() that accurately tracks this state.

Setting this value in the proper location would require some seriously
destabilizing refactors, so instead we set it in the list comparator,
which is awful but here are.

Test: manual
Bug: 136709564
Change-Id: I19223720bac534ab92219a2962169097819e8efb
2019-07-23 17:51:12 -04:00
Lucas Dupin
273832d6ac Bouncer isn't in transit when fully visible/hidden
Test: atest KeyguardBouncerTest
Test: tap screen when unlocking without bypass mode
Fixes: 138125943
Change-Id: I9d2b58aebf42fc0d3ff3e39e97cb8734b3bbed71
2019-07-23 14:39:46 -07:00
Lucas Dupin
4c50704670 Isolate DPM and SIM PIN states from UX
User should still be able to swipe up to retry or still see
the bypass lock screen when face auth is disabled or sim
card is locked. Having different UX on those cases is
confusing.

Bug: 138125943
Change-Id: Iece4d28e7a988af846c9e8aa9eb0fff5a1d74249
2019-07-23 13:30:22 -07:00
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
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
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
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
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
TreeHugger Robot
e8f8d71ea4 Merge "Do not animate wallpaper when wakeAndUnlock" into qt-r1-dev 2019-07-18 05:26:16 +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
e03623cee0 Merge "Reduce duration of AOD headsup" into qt-r1-dev 2019-07-17 20:35:30 +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
Lucas Dupin
e392d5bb52 Merge "Synchronize and slow down fade in" into qt-r1-dev 2019-07-17 07:25:31 +00: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
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
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
Selim Cinek
06c12d64fc Fading away notification panel individually
Previously the notification panel was fading away all together,
which doesn't work when the notifications need to stay around.
We're now fading the whole panel away.

Bug: 134952761
Test: pick up phone and unlock, observe normal behavior
Change-Id: I48d12776dc8b4bd51c1a35c2b822caeef38eb850
2019-07-04 20:21:30 -07:00
Lucas Dupin
5d35ad3393 Merge "Wake-and-unlock fixes" into qt-r1-dev 2019-07-03 22:50:14 +00:00
Lucas Dupin
fa817a0975 Wake-and-unlock fixes
- Created separate path for fingerprint devices
- Restored NPV animation for fingerprint
- Created keyguard bypass mode
- Fixed issue where bypass wouldn't dismiss lock screen

Fixes: 136568545
Bug: 134952761
Test: atest BiometricUnlockControllerTest
Test: unlock with SIM PIN
Test: face unlock from LS (no bypass)
Test: face unlock from AOD2 (no bypass)
Test: face unlock from bouncer (no bypass)
Test: face unlock from shade (no bypass)
Test: face unlock from LS (bypass)
Test: face unlock from AOD2 (bypass)
Test: face unlock from bouncer (bypass)
Test: face unlock from shade (bypass)
Test: fingerprint unlock from encrypted LS
Test: fingerprint unlock from LS
Test: fingerprint unlock from AOD2
Test: fingerprint unlock from bouncer
Test: fingerprint unlock from shade

Change-Id: I28052dcb7d9701beb1eeecb6312e55e96d748614
2019-07-03 13:29:51 -07:00
Selim Cinek
38c54e15a4 Merge "Fixed a few bugs with remoteInput" into qt-r1-dev 2019-07-03 19:17:43 +00:00
Selim Cinek
d17b350657 Fixed a few bugs with remoteInput
Because of our refactoring, we would crash whenever the
user clicked on reply while pulsing and not bypassing.
Also, the user would be sent to the shade when replying
from the bypass hun or smart replying, which is wrong.
Last, the logic wasn't working when the user didn't
have security.

Fixes: 67475697
Fixes: 135958017
Test: receive HUN on AOD and other surfaces, observe normal behavior
Change-Id: I68163ccfaa2dc2d998b2d68b29168e369670fb17
2019-07-02 22:44:51 -07:00
Lucas Dupin
95a52f6387 Merge "Show bouncer after rebooting" into qt-r1-dev 2019-07-02 22:45:13 +00:00
TreeHugger Robot
59c53a10a9 Merge "[DO NOT MERGE] Remove the server side flag of clockface blacklist" into qt-r1-dev 2019-07-02 14:32:33 +00:00