Merge "Check for UDFPS finger down for face auth device entry" into tm-d1-dev am: bf6c65b94d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18494045 Change-Id: Ia94d5a2daf37f01e2ccae1e380548eecc256c2fa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1571,9 +1571,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
|||||||
public void onUdfpsPointerDown(int sensorId) {
|
public void onUdfpsPointerDown(int sensorId) {
|
||||||
Log.d(TAG, "onUdfpsPointerDown, sensorId: " + sensorId);
|
Log.d(TAG, "onUdfpsPointerDown, sensorId: " + sensorId);
|
||||||
requestFaceAuth(true);
|
requestFaceAuth(true);
|
||||||
if (isFaceDetectionRunning()) {
|
|
||||||
mKeyguardBypassController.setUserHasDeviceEntryIntent(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1606,9 +1603,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
|||||||
"faceFailure-" + reason);
|
"faceFailure-" + reason);
|
||||||
|
|
||||||
handleFaceAuthFailed();
|
handleFaceAuthFailed();
|
||||||
if (mKeyguardBypassController != null) {
|
|
||||||
mKeyguardBypassController.setUserHasDeviceEntryIntent(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -1616,10 +1610,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
|||||||
Trace.beginSection("KeyguardUpdateMonitor#onAuthenticationSucceeded");
|
Trace.beginSection("KeyguardUpdateMonitor#onAuthenticationSucceeded");
|
||||||
handleFaceAuthenticated(result.getUserId(), result.isStrongBiometric());
|
handleFaceAuthenticated(result.getUserId(), result.isStrongBiometric());
|
||||||
Trace.endSection();
|
Trace.endSection();
|
||||||
|
|
||||||
if (mKeyguardBypassController != null) {
|
|
||||||
mKeyguardBypassController.setUserHasDeviceEntryIntent(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -1630,9 +1620,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
|||||||
@Override
|
@Override
|
||||||
public void onAuthenticationError(int errMsgId, CharSequence errString) {
|
public void onAuthenticationError(int errMsgId, CharSequence errString) {
|
||||||
handleFaceError(errMsgId, errString.toString());
|
handleFaceError(errMsgId, errString.toString());
|
||||||
if (mKeyguardBypassController != null) {
|
|
||||||
mKeyguardBypassController.setUserHasDeviceEntryIntent(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mActiveUnlockConfig.shouldRequestActiveUnlockOnFaceError(errMsgId)) {
|
if (mActiveUnlockConfig.shouldRequestActiveUnlockOnFaceError(errMsgId)) {
|
||||||
requestActiveUnlock(
|
requestActiveUnlock(
|
||||||
@@ -2315,10 +2302,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
|||||||
updateFaceListeningState(BIOMETRIC_ACTION_START);
|
updateFaceListeningState(BIOMETRIC_ACTION_START);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isFaceAuthUserRequested() {
|
|
||||||
return mIsFaceAuthUserRequested;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* In case face auth is running, cancel it.
|
* In case face auth is running, cancel it.
|
||||||
*/
|
*/
|
||||||
@@ -3179,11 +3162,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
|||||||
mSecureCameraLaunched = false;
|
mSecureCameraLaunched = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mKeyguardBypassController != null) {
|
|
||||||
// LS visibility has changed, so reset deviceEntryIntent
|
|
||||||
mKeyguardBypassController.setUserHasDeviceEntryIntent(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < mCallbacks.size(); i++) {
|
for (int i = 0; i < mCallbacks.size(); i++) {
|
||||||
KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get();
|
KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get();
|
||||||
if (cb != null) {
|
if (cb != null) {
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ public class BiometricUnlockController extends KeyguardUpdateMonitorCallback imp
|
|||||||
mUpdateMonitor.isUnlockingWithBiometricAllowed(isStrongBiometric);
|
mUpdateMonitor.isUnlockingWithBiometricAllowed(isStrongBiometric);
|
||||||
boolean deviceDreaming = mUpdateMonitor.isDreaming();
|
boolean deviceDreaming = mUpdateMonitor.isDreaming();
|
||||||
boolean bypass = mKeyguardBypassController.getBypassEnabled()
|
boolean bypass = mKeyguardBypassController.getBypassEnabled()
|
||||||
|| mKeyguardBypassController.getUserHasDeviceEntryIntent();
|
|| mAuthController.isUdfpsFingerDown();
|
||||||
if (!mUpdateMonitor.isDeviceInteractive()) {
|
if (!mUpdateMonitor.isDeviceInteractive()) {
|
||||||
if (!mKeyguardViewController.isShowing()) {
|
if (!mKeyguardViewController.isShowing()) {
|
||||||
return bypass ? MODE_WAKE_AND_UNLOCK : MODE_ONLY_WAKE;
|
return bypass ? MODE_WAKE_AND_UNLOCK : MODE_ONLY_WAKE;
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ open class KeyguardBypassController : Dumpable, StackScrollAlgorithm.BypassContr
|
|||||||
private var hasFaceFeature: Boolean
|
private var hasFaceFeature: Boolean
|
||||||
private var pendingUnlock: PendingUnlock? = null
|
private var pendingUnlock: PendingUnlock? = null
|
||||||
private val listeners = mutableListOf<OnBypassStateChangedListener>()
|
private val listeners = mutableListOf<OnBypassStateChangedListener>()
|
||||||
var userHasDeviceEntryIntent: Boolean = false // ie: attempted udfps auth
|
|
||||||
|
|
||||||
private val faceAuthEnabledChangedCallback = object : KeyguardStateController.Callback {
|
private val faceAuthEnabledChangedCallback = object : KeyguardStateController.Callback {
|
||||||
override fun onFaceAuthEnabledChanged() = notifyListeners()
|
override fun onFaceAuthEnabledChanged() = notifyListeners()
|
||||||
@@ -217,7 +216,6 @@ open class KeyguardBypassController : Dumpable, StackScrollAlgorithm.BypassContr
|
|||||||
pw.println(" launchingAffordance: $launchingAffordance")
|
pw.println(" launchingAffordance: $launchingAffordance")
|
||||||
pw.println(" qSExpanded: $qSExpanded")
|
pw.println(" qSExpanded: $qSExpanded")
|
||||||
pw.println(" hasFaceFeature: $hasFaceFeature")
|
pw.println(" hasFaceFeature: $hasFaceFeature")
|
||||||
pw.println(" userHasDeviceEntryIntent: $userHasDeviceEntryIntent")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Registers a listener for bypass state changes. */
|
/** Registers a listener for bypass state changes. */
|
||||||
|
|||||||
Reference in New Issue
Block a user