Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockGenericControllerTest.java92 for (ScreenLockType lock : ScreenLockType.values()) { in isScreenLockVisible_shouldRespectResourceConfig()
95 .isEqualTo(lock != ScreenLockType.MANAGED); in isScreenLockVisible_shouldRespectResourceConfig()
100 assertWithMessage("NONE visible").that(mController.isScreenLockVisible(ScreenLockType.NONE)) in isScreenLockVisible_shouldRespectResourceConfig()
103 mController.isScreenLockVisible(ScreenLockType.SWIPE)).isFalse(); in isScreenLockVisible_shouldRespectResourceConfig()
110 mController.isScreenLockVisible(ScreenLockType.SWIPE)).isFalse(); in isScreenLockVisible_ManagedProfile_shouldHideInsecure()
111 assertWithMessage("NONE visible").that(mController.isScreenLockVisible(ScreenLockType.NONE)) in isScreenLockVisible_ManagedProfile_shouldHideInsecure()
120 mController.isScreenLockVisible(ScreenLockType.MANAGED)).isTrue(); in isScreenLockVisible_managedPasswordChoosable_shouldShowManaged()
125 assertThat(mController.isScreenLockEnabled(ScreenLockType.NONE)).isTrue(); in isScreenLockEnabled_Default()
126 assertThat(mController.isScreenLockEnabled(ScreenLockType.SWIPE)).isTrue(); in isScreenLockEnabled_Default()
127 assertThat(mController.isScreenLockEnabled(ScreenLockType.PATTERN)).isTrue(); in isScreenLockEnabled_Default()
[all …]
DChooseLockTypeDialogFragmentTest.java81 verify(mFragment.mDelegate, times(1)).onLockTypeSelected(any(ScreenLockType.class)); in testThat_OnClickListener_IsCalled()
91 verify(mFragment.mDelegate, never()).onLockTypeSelected(any(ScreenLockType.class)); in testThat_OnClickListener_IsNotCalledWhenCancelled()
106 public void onLockTypeSelected(ScreenLockType lock) { in onLockTypeSelected()
DSetupChooseLockPasswordTest.java140 fragment.onLockTypeSelected(ScreenLockType.PATTERN); in createActivity_clickDifferentOption_extrasShouldBePropagated()
207 protected List<ScreenLockType> getVisibleScreenLockTypes() { in getVisibleScreenLockTypes()
/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.java636 findPreference(ScreenLockType.NONE.preferenceKey).setViewId(R.id.lock_none); in addPreferences()
640 findPreference(ScreenLockType.PIN.preferenceKey).setViewId(R.id.lock_pin); in addPreferences()
641 findPreference(ScreenLockType.PASSWORD.preferenceKey).setViewId(R.id.lock_password); in addPreferences()
667 setPreferenceTitle(ScreenLockType.PATTERN, in updatePreferenceText()
669 setPreferenceTitle(ScreenLockType.PIN, R.string.fingerprint_unlock_set_unlock_pin); in updatePreferenceText()
670 setPreferenceTitle(ScreenLockType.PASSWORD, in updatePreferenceText()
673 setPreferenceTitle(ScreenLockType.PATTERN, in updatePreferenceText()
675 setPreferenceTitle(ScreenLockType.PIN, R.string.face_unlock_set_unlock_pin); in updatePreferenceText()
676 setPreferenceTitle(ScreenLockType.PASSWORD, in updatePreferenceText()
679 setPreferenceTitle(ScreenLockType.PATTERN, in updatePreferenceText()
[all …]
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()
DChooseLockGenericController.java164 public boolean isScreenLockVisible(ScreenLockType type) { in isScreenLockVisible()
192 public boolean isScreenLockEnabled(ScreenLockType type) { in isScreenLockEnabled()
215 public CharSequence getTitle(ScreenLockType type) { in getTitle()
239 public List<ScreenLockType> getVisibleAndEnabledScreenLockTypes() { in getVisibleAndEnabledScreenLockTypes()
240 List<ScreenLockType> locks = new ArrayList<>(); in getVisibleAndEnabledScreenLockTypes()
242 for (ScreenLockType lock : ScreenLockType.values()) { in getVisibleAndEnabledScreenLockTypes()
DSetupChooseLockPassword.java143 public void onLockTypeSelected(ScreenLockType lock) { in onLockTypeSelected()
144 ScreenLockType currentLockType = mIsAlphaMode ? in onLockTypeSelected()
145 ScreenLockType.PASSWORD : ScreenLockType.PIN; in onLockTypeSelected()
DSetupChooseLockPattern.java119 public void onLockTypeSelected(ScreenLockType lock) { in onLockTypeSelected()
120 if (ScreenLockType.PATTERN == lock) { in onLockTypeSelected()