Adding latency biometric for enroll.
Bug: 129298461
Test: Verified that logs are correct on a C1 device.
Change-Id: Ifd7ea9862860c7ec4ebdbd5e281de9897b9dd6b2
diff --git a/atoms.proto b/atoms.proto
index 1ffde97..f182c32 100644
--- a/atoms.proto
+++ b/atoms.proto
@@ -255,6 +255,7 @@
AppInstallOnExternalStorageReported app_install_on_external_storage_reported = 181;
NetworkStackReported network_stack_reported = 182;
AppMovedStorageReported app_moved_storage_reported = 183;
+ BiometricEnrolled biometric_enrolled = 184;
}
// Pulled events will start at field 10000.
@@ -3154,6 +3155,23 @@
optional android.hardware.biometrics.IssueEnum issue = 2;
}
+/**
+ * Logs when a biometric enrollment occurs.
+ *
+ * Logged from:
+ * frameworks/base/services/core/java/com/android/server/biometrics
+ */
+message BiometricEnrolled {
+ // Biometric modality that was used.
+ optional android.hardware.biometrics.ModalityEnum modality = 1;
+ // The associated user. Eg: 0 for owners, 10+ for others. Defined in android/os/UserHandle.java
+ optional int32 user = 2;
+ // The amount of time the enrollment took in milliseconds.
+ optional int64 latency_millis = 3;
+ // Whether or not the enrollment was successful.
+ optional bool success = 4;
+}
+
message Notification {
// Type of notification event.