Loading packages/SystemUI/src/com/android/keyguard/KeyguardListenModel.kt +4 −13 Original line number Diff line number Diff line package com.android.keyguard import android.annotation.CurrentTimeMillisLong import android.hardware.biometrics.BiometricAuthenticator.Modality import android.hardware.biometrics.BiometricAuthenticator.TYPE_FACE import android.hardware.biometrics.BiometricAuthenticator.TYPE_FINGERPRINT /** Verbose logging for various keyguard listening states. */ sealed class KeyguardListenModel { /** Timestamp of the state change. */ abstract val timeMillis: Long /** Current user */ /** Current user. */ abstract val userId: Int /** If keyguard is listening for the given [modality]. */ /** If keyguard is listening for the modality represented by this model. */ abstract val listening: Boolean /** Sensor type */ @Modality abstract val modality: Int } /** Loading Loading @@ -45,9 +40,7 @@ data class KeyguardFingerprintListenModel( val udfps: Boolean, val userDoesNotHaveTrust: Boolean, val userNeedsStrongAuth: Boolean ) : KeyguardListenModel() { override val modality: Int = TYPE_FACE } ) : KeyguardListenModel() /** * Verbose debug information associated with [KeyguardUpdateMonitor.shouldListenForFace]. Loading @@ -72,6 +65,4 @@ data class KeyguardFaceListenModel( val scanningAllowedByStrongAuth: Boolean, val secureCameraLaunched: Boolean, val switchingUser: Boolean ) : KeyguardListenModel() { override val modality: Int = TYPE_FINGERPRINT } ) : KeyguardListenModel() Loading
packages/SystemUI/src/com/android/keyguard/KeyguardListenModel.kt +4 −13 Original line number Diff line number Diff line package com.android.keyguard import android.annotation.CurrentTimeMillisLong import android.hardware.biometrics.BiometricAuthenticator.Modality import android.hardware.biometrics.BiometricAuthenticator.TYPE_FACE import android.hardware.biometrics.BiometricAuthenticator.TYPE_FINGERPRINT /** Verbose logging for various keyguard listening states. */ sealed class KeyguardListenModel { /** Timestamp of the state change. */ abstract val timeMillis: Long /** Current user */ /** Current user. */ abstract val userId: Int /** If keyguard is listening for the given [modality]. */ /** If keyguard is listening for the modality represented by this model. */ abstract val listening: Boolean /** Sensor type */ @Modality abstract val modality: Int } /** Loading Loading @@ -45,9 +40,7 @@ data class KeyguardFingerprintListenModel( val udfps: Boolean, val userDoesNotHaveTrust: Boolean, val userNeedsStrongAuth: Boolean ) : KeyguardListenModel() { override val modality: Int = TYPE_FACE } ) : KeyguardListenModel() /** * Verbose debug information associated with [KeyguardUpdateMonitor.shouldListenForFace]. Loading @@ -72,6 +65,4 @@ data class KeyguardFaceListenModel( val scanningAllowedByStrongAuth: Boolean, val secureCameraLaunched: Boolean, val switchingUser: Boolean ) : KeyguardListenModel() { override val modality: Int = TYPE_FINGERPRINT } ) : KeyguardListenModel()