From 1a86361e5550ce930b9b906d4f48dea8c57fefa4 Mon Sep 17 00:00:00 2001 From: Vincent Wang Date: Thu, 3 Mar 2022 15:03:51 +0800 Subject: [PATCH] Add latency instrumentation for face and fingerprint unlock Add face and fingerprint unlock back to instrumentation, BiometricUnlockController does not trigger onStartAction, so we don't have face and fingerprint unlock data on instrumentation. BUG: 188626939 Test: atest SystemUIMicrobenchmark:FaceWakeAndUnlock Change-Id: Id2f779b5a7cf678a482364cf1a200d60a9fea622 --- .../systemui/statusbar/phone/BiometricUnlockController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java index 4bf944ae13c9c..b46ed57fb866a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java @@ -357,7 +357,7 @@ public class BiometricUnlockController extends KeyguardUpdateMonitorCallback imp } Trace.beginSection("BiometricUnlockController#onBiometricAcquired"); releaseBiometricWakeLock(); - if (isWakeAndUnlock()) { + if (mStatusBarStateController.isDozing()) { if (mLatencyTracker.isEnabled()) { int action = LatencyTracker.ACTION_FINGERPRINT_WAKE_AND_UNLOCK; if (biometricSourceType == BiometricSourceType.FACE) {