summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/LockIconView.java
AgeCommit message (Collapse)Author
2022-03-15Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Idfdd94e902f656ac65a2a75dfdd199f6f85ba472
2021-09-23[DO NOT MERGE] Only show lock icon background with UDFPSMatt Pietal
Otherwise the background should remain hidden (View.GONE) for devices without the UDFPS sensor. Fixes: 200813382 Test: atest LockIconViewControllerTest Change-Id: I1ef3cef37de60e6968432869f4c946b6de414db4
2021-09-20[DO NOT MERGE] Show UDFPS icon on AOD even if fp auth isn't runningBeverly
* shows udfps if it's enrolled on AOD even if: * device requires strong auth (ie: after reboot, lockdown) * device is unlocked via smart lock On click of the udfps icon in the above cases: * If the device is locked, the bouncer will show. * If the device is unlocked, the user will enter the device. Fixes: 198315404 Test: manual Change-Id: Id766df8f77427ae1db672507716bd38dc3462452
2021-08-23Update lock icon location if auth setup is delayedBeverly
+ Update javadoc Test: atest LockIconViewControllerTest Fixes: 196751321 Change-Id: I003bec46b26a2c8ac8bae6d1d26c91645c4ae72f
2021-08-16Use layout parameters to determine lock icon locationBeverly
So we don't rely on the coordinates coming from centering the view (using gravity). Test: manual Fixes: 196280198 Change-Id: Iee7a7e5732d27a782d51e39e4d52b3601814bec3
2021-07-29Add gravity center to layout paramsBeverly
Also, update string resources on config changes Test: manually change locale Fixes: 194642457 Change-Id: I9b7a22db00a57c1a87a6d59472bc7f2ed2c31015
2021-07-29For devices with udfps, always show bg on udfpsBeverly
Also show background on lock icon and unlock icons if the device supports udfps. This is to help indicate the affordance is tappable. Test: manually test with and w/o udfps - AOD <=> Lock screen - gpay wallet affordance on LS that requests udfps - slowly swipe up to show bouncer => udfps fades - slowly swipe down to expand notification shade => udfps fades - tap notification on ls, no bg animation - tap notification on locked shade, there is a bg animation - toggle on/off dark mode from lock screen Fixes: 192403524 Change-Id: I5a19d3cd45c51af78a49d46126fc0678a3df6d6c
2021-07-15Revert "Animate in a background for kg unlock icon"Beverly Tai
This reverts commit 09923d5eca02486324b55c9f28562d17418fc577. Reason for revert: doesn't look good on smaller devices, punting to qpr Bug: 192403524 Change-Id: I3e6bde6cf2f8cbbeb3502444cd63f2933704d357
2021-07-15Animate in a background for kg unlock iconBeverly
- to indicate it is tappable - update background drawable on color change to update color Test: manual Fixes: 192403524 Change-Id: I34255e3f7cc7b1dfc246c4e2441822129abdf819
2021-07-02Update spacing for lock icon with udfpsBeverly
Limit text to two lines with ellipsis. Now correctly calculates spacing Test: manual Fixes: 192483581 Change-Id: Ie4f989b873c9aa2dcf09b02e77d16b7b9516580c
2021-07-01Always show lock icon if device is lockedBeverly
- Previously lock icon would only show on devices with udfps or face auth enabled. - Icon is only clickable if udfps is enrolled OR device is unlocked Bug: 192355838 Fixes: 187083137 Test: manual Change-Id: I2bf160ba2e09d215a95dce05a55bdbf1ed587e63
2021-06-02Don't update lock icon location based on rotationBeverly
On the keyguard, the orientation is always portrait, even when the rotation of the device doesn't indicate portrait. Previously, the location of the lock icon was updated based on rotation and was offscreen. Instead, don't update based on orientation. Test: manual Fixes: 187470345 Change-Id: Ie7355fddfef32c6c75d91a1e9da8b49fb301dc93
2021-06-01Fading out keyguard only content instead of occluding them with the scrimSelim Cinek
The scrim is also used on the lock screen and should therefore be behind the keyguard elements. Instead, we now fade out the views on top of the scrim to achieve the same visual effect. This also fixed an issue where the inset on the scrim was wrong in landscape Fixes: 188660106 Test: drag down on lockscreen, observe content fading out Change-Id: I72e6b964dde5ad3c579a0db71d7914f3e47eab6c
2021-04-08Update DisabledUdfpsCtrl to LockIconViewControllerBeverly
Remove the old icon below the status bar on keyguard. Instead, a lock icon will show beneath the notification shade for devices with either udfps or face auth enrolled. All other devices will no longer have a lock icon. Test: manual, atest SystemUITests Bug: 183910378 Change-Id: I7eebc363150641b4d63ee0f35b379d163e3a71d5