From c8410aa9c2c765c7b8866bf376397e28e7581e33 Mon Sep 17 00:00:00 2001 From: Beverly Date: Wed, 28 Apr 2021 13:29:36 -0400 Subject: [PATCH] Animate clock weight to 0 on bypass face auth Test: manual Fixes: 186631254 Change-Id: Ib9ceb4c23c06717404845535ee86987d7f43686f --- .../keyguard/AnimatableClockController.java | 27 +++++++++++++-- .../android/keyguard/AnimatableClockView.java | 16 +++++++++ .../KeyguardClockSwitchController.java | 34 ++++++++++++------- .../phone/KeyguardBypassController.kt | 2 +- .../phone/StatusBarKeyguardViewManager.java | 3 +- .../KeyguardClockSwitchControllerTest.java | 9 ++++- 6 files changed, 73 insertions(+), 18 deletions(-) diff --git a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java index 60b677a4e5618..825e008263fa1 100644 --- a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java +++ b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java @@ -21,12 +21,14 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Color; +import android.hardware.biometrics.BiometricSourceType; import android.icu.text.NumberFormat; import com.android.settingslib.Utils; import com.android.systemui.R; import com.android.systemui.broadcast.BroadcastDispatcher; import com.android.systemui.plugins.statusbar.StatusBarStateController; +import com.android.systemui.statusbar.phone.KeyguardBypassController; import com.android.systemui.statusbar.policy.BatteryController; import com.android.systemui.util.ViewController; @@ -35,13 +37,15 @@ import java.util.Objects; import java.util.TimeZone; /** - * Controller for an AnimatableClockView. + * Controller for an AnimatableClockView. Instantiated by {@link KeyguardClockSwitchController}. */ public class AnimatableClockController extends ViewController { private static final int FORMAT_NUMBER = 1234567890; private final StatusBarStateController mStatusBarStateController; private final BroadcastDispatcher mBroadcastDispatcher; + private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; + private final KeyguardBypassController mBypassController; private final int mDozingColor = Color.WHITE; private int mLockScreenColor; @@ -59,12 +63,16 @@ public class AnimatableClockController extends ViewController