Merge "Logs biometric authentication error type." into qt-dev

am: 2c40205709

Change-Id: I8d4881ace97b0ad406974044a166e3ed8fe53af1
This commit is contained in:
Steven Wu
2019-05-22 18:02:01 -07:00
committed by android-build-merger
2 changed files with 7 additions and 1 deletions

View File

@@ -433,7 +433,8 @@ public class BiometricUnlockController extends KeyguardUpdateMonitorCallback {
public void onBiometricError(int msgId, String errString,
BiometricSourceType biometricSourceType) {
mMetricsLogger.write(new LogMaker(MetricsEvent.BIOMETRIC_AUTH)
.setType(MetricsEvent.TYPE_ERROR).setSubtype(toSubtype(biometricSourceType)));
.setType(MetricsEvent.TYPE_ERROR).setSubtype(toSubtype(biometricSourceType))
.addTaggedData(MetricsEvent.FIELD_BIOMETRIC_AUTH_ERROR, msgId));
cleanup();
}

View File

@@ -7371,6 +7371,11 @@ message MetricsEvent {
// Note: Only shows up on first time toggle
DIALOG_DARK_UI_INFO = 1740;
// FIELD - Detailed reason in biometric authentication error.
// One of the constant value in BiometricConstants.java file.
// OS: Q
FIELD_BIOMETRIC_AUTH_ERROR = 1741;
// ---- End Q Constants, all Q constants go above this line ----
// Add new aosp constants above this line.
// END OF AOSP CONSTANTS