Searched refs:AuthDialog (Results 1 – 12 of 12) sorted by relevance
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
H A D | AuthBiometricView.java | 189 private @AuthDialog.DialogSize int mSize = AuthDialog.SIZE_UNKNOWN; 250 } else if (mSize == AuthDialog.SIZE_SMALL) { 253 } else if (mSize == AuthDialog.SIZE_LARGE) { 326 if (newSize == AuthDialog.SIZE_SMALL) { in updateSize() 346 } else if (mSize == AuthDialog.SIZE_SMALL && newSize == AuthDialog.SIZE_MEDIUM) { in updateSize() 495 if (mSize != AuthDialog.SIZE_SMALL) { in updateState() 521 if (mSize == AuthDialog.SIZE_SMALL) { in updateState() 582 if (mSize != AuthDialog.SIZE_MEDIUM) { in onHelp() 702 updateSize(AuthDialog.SIZE_LARGE); in startTransitionToCredentialUI() 874 : AuthDialog.SIZE_MEDIUM); in onLayoutInternal() [all …]
|
H A D | AuthBiometricFaceToFingerprintView.java | 213 AuthDialog.LayoutParams onMeasureInternal(int width, int height) { in onMeasureInternal() 214 final AuthDialog.LayoutParams layoutParams = super.onMeasureInternal(width, height); in onMeasureInternal() 232 outState.putInt(AuthDialog.KEY_BIOMETRIC_SENSOR_TYPE, mActiveSensorType); in onSaveState() 233 outState.putParcelable(AuthDialog.KEY_BIOMETRIC_SENSOR_PROPS, mFingerprintSensorProps); in onSaveState() 240 mActiveSensorType = savedState.getInt(AuthDialog.KEY_BIOMETRIC_SENSOR_TYPE, TYPE_FACE); in restoreState() 242 savedState.getParcelable(AuthDialog.KEY_BIOMETRIC_SENSOR_PROPS); in restoreState()
|
H A D | UdfpsDialogMeasureAdapter.java | 62 AuthDialog.LayoutParams onMeasureInternal( in onMeasureInternal() 63 int width, int height, @NonNull AuthDialog.LayoutParams layoutParams) { in onMeasureInternal() 79 private AuthDialog.LayoutParams onMeasureInternalPortrait(int width, int height) { in onMeasureInternalPortrait() 140 return new AuthDialog.LayoutParams(width, totalHeight); in onMeasureInternalPortrait() 144 private AuthDialog.LayoutParams onMeasureInternalLandscape(int width, int height) { in onMeasureInternalLandscape() 215 return new AuthDialog.LayoutParams(remeasuredWidth, remeasuredHeight); in onMeasureInternalLandscape()
|
H A D | AuthBiometricUdfpsView.java | 48 AuthDialog.LayoutParams onMeasureInternal(int width, int height) { in onMeasureInternal() 49 final AuthDialog.LayoutParams layoutParams = super.onMeasureInternal(width, height); in onMeasureInternal()
|
H A D | AuthController.java | 114 AuthDialog mCurrentDialog; 781 final AuthDialog newDialog = buildDialog( in showDialog() 844 if (savedState.getInt(AuthDialog.KEY_CONTAINER_STATE) in onConfigurationChanged() 847 savedState.getBoolean(AuthDialog.KEY_CREDENTIAL_SHOWING); in onConfigurationChanged() 868 protected AuthDialog buildDialog(PromptInfo promptInfo, boolean requireConfirmation, in buildDialog()
|
H A D | AuthContainerView.java | 68 implements AuthDialog, WakefulnessLifecycle.Observer { 220 return AuthDialog.ANIMATE_CREDENTIAL_START_DELAY_MS; in getAnimateCredentialStartDelayMs() 674 outState.putInt(AuthDialog.KEY_CONTAINER_STATE, mContainerState); in onSaveState() 677 outState.putBoolean(AuthDialog.KEY_BIOMETRIC_SHOWING, in onSaveState() 679 outState.putBoolean(AuthDialog.KEY_CREDENTIAL_SHOWING, mCredentialView != null); in onSaveState()
|
H A D | AuthBiometricFaceView.java | 235 (newState == STATE_AUTHENTICATING && getSize() == AuthDialog.SIZE_MEDIUM)) { in updateState() 245 if (getSize() == AuthDialog.SIZE_MEDIUM) { in onAuthenticationFailed()
|
H A D | AuthDialog.java | 32 public interface AuthDialog { interface
|
H A D | AuthCredentialView.java | 245 .setDuration(AuthDialog.ANIMATE_CREDENTIAL_INITIAL_DURATION_MS) in onAttachedToWindow()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
H A D | AuthBiometricViewTest.java | 238 mBiometricView.mLayoutParams = new AuthDialog.LayoutParams(0, 0); in testBackgroundClicked_whenSmallDialog_neverSendsUserCanceled() 239 mBiometricView.updateSize(AuthDialog.SIZE_SMALL); in testBackgroundClicked_whenSmallDialog_neverSendsUserCanceled() 296 assertEquals(View.VISIBLE, state.getInt(AuthDialog.KEY_BIOMETRIC_TRY_AGAIN_VISIBILITY)); in testRestoresState() 299 assertEquals(AuthBiometricView.STATE_ERROR, state.getInt(AuthDialog.KEY_BIOMETRIC_STATE)); in testRestoresState() 302 assertTrue(state.getBoolean(AuthDialog.KEY_BIOMETRIC_INDICATOR_ERROR_SHOWING)); in testRestoresState() 305 assertEquals(failureMessage, state.getString(AuthDialog.KEY_BIOMETRIC_INDICATOR_STRING)); in testRestoresState()
|
H A D | AuthBiometricFaceToFingerprintViewTest.java | 230 assertEquals(savedState.getInt(AuthDialog.KEY_BIOMETRIC_SENSOR_TYPE), in testOnSaveState() 232 assertEquals(savedState.getParcelable(AuthDialog.KEY_BIOMETRIC_SENSOR_PROPS), sensorProps); in testOnSaveState() 238 savedState.putInt(AuthDialog.KEY_BIOMETRIC_SENSOR_TYPE, TYPE_FINGERPRINT); in testRestoreState() 239 savedState.putParcelable(AuthDialog.KEY_BIOMETRIC_SENSOR_PROPS, in testRestoreState()
|
H A D | AuthControllerTest.java | 101 private AuthDialog mDialog1; 103 private AuthDialog mDialog2; 513 AuthDialog.KEY_CONTAINER_STATE, AuthContainerView.STATE_SHOWING); in testConfigurationPersists_whenOnConfigurationChanged() 543 AuthDialog.KEY_CONTAINER_STATE, AuthContainerView.STATE_SHOWING); in testConfigurationPersists_whenBiometricFallbackToCredential() 544 savedState.putBoolean(AuthDialog.KEY_CREDENTIAL_SHOWING, true); in testConfigurationPersists_whenBiometricFallbackToCredential() 684 protected AuthDialog buildDialog(PromptInfo promptInfo, in buildDialog() 691 AuthDialog dialog; in buildDialog()
|