Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockGenericControllerTest.java93 for (ScreenLockType lock : ScreenLockType.values()) { in isScreenLockVisible_shouldRespectResourceConfig()
96 .isEqualTo(lock != ScreenLockType.MANAGED); in isScreenLockVisible_shouldRespectResourceConfig()
101 assertWithMessage("NONE visible").that(mController.isScreenLockVisible(ScreenLockType.NONE)) in isScreenLockVisible_shouldRespectResourceConfig()
104 mController.isScreenLockVisible(ScreenLockType.SWIPE)).isFalse(); in isScreenLockVisible_shouldRespectResourceConfig()
111 mController.isScreenLockVisible(ScreenLockType.SWIPE)).isFalse(); in isScreenLockVisible_ManagedProfile_shouldHideInsecure()
112 assertWithMessage("NONE visible").that(mController.isScreenLockVisible(ScreenLockType.NONE)) in isScreenLockVisible_ManagedProfile_shouldHideInsecure()
121 mController.isScreenLockVisible(ScreenLockType.MANAGED)).isTrue(); in isScreenLockVisible_managedPasswordChoosable_shouldShowManaged()
126 assertThat(mController.isScreenLockEnabled(ScreenLockType.NONE)).isTrue(); in isScreenLockEnabled_Default()
127 assertThat(mController.isScreenLockEnabled(ScreenLockType.SWIPE)).isTrue(); in isScreenLockEnabled_Default()
128 assertThat(mController.isScreenLockEnabled(ScreenLockType.PATTERN)).isTrue(); in isScreenLockEnabled_Default()
[all …]
DSetupChooseLockGenericTest.java155 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PIN)).contains( in updatePreferenceTextShowScreenLockAndShowFaceAndShowFingerprint()
157 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PIN)).contains( in updatePreferenceTextShowScreenLockAndShowFaceAndShowFingerprint()
159 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PATTERN)).contains( in updatePreferenceTextShowScreenLockAndShowFaceAndShowFingerprint()
161 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PATTERN)).contains( in updatePreferenceTextShowScreenLockAndShowFaceAndShowFingerprint()
163 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PASSWORD)).contains( in updatePreferenceTextShowScreenLockAndShowFaceAndShowFingerprint()
165 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PASSWORD)).contains( in updatePreferenceTextShowScreenLockAndShowFaceAndShowFingerprint()
181 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PIN)).contains( in updatePreferenceTextShowScreenLockAndShowFingerprint()
183 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PIN)).doesNotContain( in updatePreferenceTextShowScreenLockAndShowFingerprint()
185 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PATTERN)).contains( in updatePreferenceTextShowScreenLockAndShowFingerprint()
187 assertThat(fragment.getBiometricsPreferenceTitle(ScreenLockType.PATTERN)).doesNotContain( in updatePreferenceTextShowScreenLockAndShowFingerprint()
[all …]
DChooseLockTypeDialogFragmentTest.java82 verify(mFragment.mDelegate, times(1)).onLockTypeSelected(any(ScreenLockType.class)); in testThat_OnClickListener_IsCalled()
92 verify(mFragment.mDelegate, never()).onLockTypeSelected(any(ScreenLockType.class)); in testThat_OnClickListener_IsNotCalledWhenCancelled()
108 public void onLockTypeSelected(ScreenLockType lock) { in onLockTypeSelected()
DChooseLockGenericTest.java624 (String) mFragment.findPreference(ScreenLockType.PIN.preferenceKey).getTitle(); in updatePreferenceText_supportBiometrics_setScreenLockFingerprintFace_inOrder()
626 (String) mFragment.findPreference(ScreenLockType.PATTERN.preferenceKey).getTitle(); in updatePreferenceText_supportBiometrics_setScreenLockFingerprintFace_inOrder()
628 (String) mFragment.findPreference(ScreenLockType.PASSWORD.preferenceKey).getTitle(); in updatePreferenceText_supportBiometrics_setScreenLockFingerprintFace_inOrder()
642 assertThat(mFragment.findPreference(ScreenLockType.PIN.preferenceKey).getTitle()).isEqualTo( in updatePreferenceText_supportFingerprint_showFingerprint()
645 ScreenLockType.PATTERN.preferenceKey).getTitle()).isEqualTo( in updatePreferenceText_supportFingerprint_showFingerprint()
648 ScreenLockType.PASSWORD.preferenceKey).getTitle()).isEqualTo( in updatePreferenceText_supportFingerprint_showFingerprint()
660 assertThat(mFragment.findPreference(ScreenLockType.PIN.preferenceKey).getTitle()).isEqualTo( in updatePreferenceText_supportFace_showFace()
663 ScreenLockType.PATTERN.preferenceKey).getTitle()).isEqualTo( in updatePreferenceText_supportFace_showFace()
666 ScreenLockType.PASSWORD.preferenceKey).getTitle()).isEqualTo( in updatePreferenceText_supportFace_showFace()
DSetupChooseLockPasswordTest.java166 fragment.onLockTypeSelected(ScreenLockType.PATTERN); in createActivity_clickDifferentOption_extrasShouldBePropagated()
235 protected List<ScreenLockType> getVisibleAndEnabledScreenLockTypes() { in getVisibleAndEnabledScreenLockTypes()
/packages/apps/Settings/tests/unit/src/com/android/settings/password/
DScreenLockTypeTest.java32 assertThat(ScreenLockType.fromQuality(DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC)) in fromQuality_shouldReturnLockWithAssociatedQuality()
33 .isEqualTo(ScreenLockType.PASSWORD); in fromQuality_shouldReturnLockWithAssociatedQuality()
34 assertThat(ScreenLockType.fromQuality(DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC)) in fromQuality_shouldReturnLockWithAssociatedQuality()
35 .isEqualTo(ScreenLockType.PASSWORD); in fromQuality_shouldReturnLockWithAssociatedQuality()
36 assertThat(ScreenLockType.fromQuality(DevicePolicyManager.PASSWORD_QUALITY_BIOMETRIC_WEAK)) in fromQuality_shouldReturnLockWithAssociatedQuality()
38 assertThat(ScreenLockType.fromQuality(DevicePolicyManager.PASSWORD_QUALITY_COMPLEX)) in fromQuality_shouldReturnLockWithAssociatedQuality()
39 .isEqualTo(ScreenLockType.PASSWORD); in fromQuality_shouldReturnLockWithAssociatedQuality()
40 assertThat(ScreenLockType.fromQuality(DevicePolicyManager.PASSWORD_QUALITY_MANAGED)) in fromQuality_shouldReturnLockWithAssociatedQuality()
41 .isEqualTo(ScreenLockType.MANAGED); in fromQuality_shouldReturnLockWithAssociatedQuality()
42 assertThat(ScreenLockType.fromQuality(DevicePolicyManager.PASSWORD_QUALITY_NUMERIC)) in fromQuality_shouldReturnLockWithAssociatedQuality()
[all …]
/packages/apps/Settings/src/com/android/settings/password/
DScreenLockType.java25 public enum ScreenLockType { enum
64 ScreenLockType(int quality, String preferenceKey) { in ScreenLockType() method in ScreenLockType
68 ScreenLockType(int defaultQuality, int maxQuality, String preferenceKey) { in ScreenLockType() method in ScreenLockType
80 public static ScreenLockType fromQuality(int quality) { in fromQuality()
83 return ScreenLockType.PATTERN; in fromQuality()
86 return ScreenLockType.PIN; in fromQuality()
90 return ScreenLockType.PASSWORD; in fromQuality()
92 return ScreenLockType.MANAGED; in fromQuality()
94 return ScreenLockType.SWIPE; in fromQuality()
99 public static ScreenLockType fromKey(String key) { in fromKey()
[all …]
DChooseLockGeneric.java628 findPreference(ScreenLockType.NONE.preferenceKey).setViewId(R.id.lock_none); in addPreferences()
632 findPreference(ScreenLockType.PIN.preferenceKey).setViewId(R.id.lock_pin); in addPreferences()
633 findPreference(ScreenLockType.PASSWORD.preferenceKey).setViewId(R.id.lock_password); in addPreferences()
659 setPreferenceTitle(ScreenLockType.PATTERN, in updatePreferenceText()
661 setPreferenceTitle(ScreenLockType.PIN, R.string.fingerprint_unlock_set_unlock_pin); in updatePreferenceText()
662 setPreferenceTitle(ScreenLockType.PASSWORD, in updatePreferenceText()
665 setPreferenceTitle(ScreenLockType.PATTERN, in updatePreferenceText()
667 setPreferenceTitle(ScreenLockType.PIN, R.string.face_unlock_set_unlock_pin); in updatePreferenceText()
668 setPreferenceTitle(ScreenLockType.PASSWORD, in updatePreferenceText()
671 setPreferenceTitle(ScreenLockType.PATTERN, in updatePreferenceText()
[all …]
DChooseLockGenericController.java164 public boolean isScreenLockVisible(ScreenLockType type) { in isScreenLockVisible()
192 public boolean isScreenLockEnabled(ScreenLockType type) { in isScreenLockEnabled()
216 public CharSequence getTitle(ScreenLockType type) { in getTitle()
240 public List<ScreenLockType> getVisibleAndEnabledScreenLockTypes() { in getVisibleAndEnabledScreenLockTypes()
241 List<ScreenLockType> locks = new ArrayList<>(); in getVisibleAndEnabledScreenLockTypes()
243 for (ScreenLockType lock : ScreenLockType.values()) { in getVisibleAndEnabledScreenLockTypes()
DChooseLockTypeDialogFragment.java67 void onLockTypeSelected(ScreenLockType lock); in onLockTypeSelected()
69 default void startChooseLockActivity(ScreenLockType selectedLockType, Activity activity) { in startChooseLockActivity()
128 List<ScreenLockType> locks = mController.getVisibleAndEnabledScreenLockTypes(); in onCreateDialog()
141 private static class ScreenLockAdapter extends ArrayAdapter<ScreenLockType> {
147 List<ScreenLockType> locks, in ScreenLockAdapter()
160 ScreenLockType lock = getItem(position); in getView()
168 private static Drawable getIconForScreenLock(Context context, ScreenLockType lock) { in getIconForScreenLock()
DSetupChooseLockPassword.java150 public void onLockTypeSelected(ScreenLockType lock) { in onLockTypeSelected()
151 ScreenLockType currentLockType = mIsAlphaMode ? in onLockTypeSelected()
152 ScreenLockType.PASSWORD : ScreenLockType.PIN; in onLockTypeSelected()
DSetupChooseLockPattern.java126 public void onLockTypeSelected(ScreenLockType lock) { in onLockTypeSelected()
127 if (ScreenLockType.PATTERN == lock) { in onLockTypeSelected()