Merge "Log the ApiRequestReason whenever face auth is requested" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2f291a7809
@@ -2347,7 +2347,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
|||||||
*/
|
*/
|
||||||
public void requestFaceAuth(boolean userInitiatedRequest,
|
public void requestFaceAuth(boolean userInitiatedRequest,
|
||||||
@FaceAuthApiRequestReason String reason) {
|
@FaceAuthApiRequestReason String reason) {
|
||||||
mLogger.logFaceAuthRequested(userInitiatedRequest);
|
mLogger.logFaceAuthRequested(userInitiatedRequest, reason);
|
||||||
updateFaceListeningState(BIOMETRIC_ACTION_START, apiRequestReasonToUiEvent(reason));
|
updateFaceListeningState(BIOMETRIC_ACTION_START, apiRequestReasonToUiEvent(reason));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -108,10 +108,11 @@ class KeyguardUpdateMonitorLogger @Inject constructor(
|
|||||||
}, { "Face help received, msgId: $int1 msg: $str1" })
|
}, { "Face help received, msgId: $int1 msg: $str1" })
|
||||||
}
|
}
|
||||||
|
|
||||||
fun logFaceAuthRequested(userInitiatedRequest: Boolean) {
|
fun logFaceAuthRequested(userInitiatedRequest: Boolean, reason: String) {
|
||||||
logBuffer.log(TAG, DEBUG,
|
logBuffer.log(TAG, DEBUG, {
|
||||||
{ bool1 = userInitiatedRequest },
|
bool1 = userInitiatedRequest
|
||||||
{ "requestFaceAuth() userInitiated=$bool1" })
|
str1 = reason
|
||||||
|
}, { "requestFaceAuth() userInitiated=$bool1 reason=$str1" })
|
||||||
}
|
}
|
||||||
|
|
||||||
fun logFaceAuthSuccess(userId: Int) {
|
fun logFaceAuthSuccess(userId: Int) {
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ public class LogModule {
|
|||||||
@SysUISingleton
|
@SysUISingleton
|
||||||
@KeyguardUpdateMonitorLog
|
@KeyguardUpdateMonitorLog
|
||||||
public static LogBuffer provideKeyguardUpdateMonitorLogBuffer(LogBufferFactory factory) {
|
public static LogBuffer provideKeyguardUpdateMonitorLogBuffer(LogBufferFactory factory) {
|
||||||
return factory.create("KeyguardUpdateMonitorLog", 200);
|
return factory.create("KeyguardUpdateMonitorLog", 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user