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
This commit is contained in:
Vincent Wang
2022-03-03 15:03:51 +08:00
parent f5ff7aa9f0
commit 1a86361e55

View File

@@ -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) {