Home
last modified time | relevance | path

Searched refs:AuthDialog (Results 1 – 12 of 12) sorted by relevance

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DAuthBiometricView.java189 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 DAuthBiometricFaceToFingerprintView.java213 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 DUdfpsDialogMeasureAdapter.java62 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 DAuthBiometricUdfpsView.java48 AuthDialog.LayoutParams onMeasureInternal(int width, int height) { in onMeasureInternal()
49 final AuthDialog.LayoutParams layoutParams = super.onMeasureInternal(width, height); in onMeasureInternal()
H A DAuthController.java114 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 DAuthContainerView.java68 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 DAuthBiometricFaceView.java235 (newState == STATE_AUTHENTICATING && getSize() == AuthDialog.SIZE_MEDIUM)) { in updateState()
245 if (getSize() == AuthDialog.SIZE_MEDIUM) { in onAuthenticationFailed()
H A DAuthDialog.java32 public interface AuthDialog { interface
H A DAuthCredentialView.java245 .setDuration(AuthDialog.ANIMATE_CREDENTIAL_INITIAL_DURATION_MS) in onAttachedToWindow()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DAuthBiometricViewTest.java238 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 DAuthBiometricFaceToFingerprintViewTest.java230 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 DAuthControllerTest.java101 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()