Searched refs:mScreenLockPreferenceDetailsUtils (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/ |
D | LockScreenSafetySourceTest.java | 69 @Mock private ScreenLockPreferenceDetailsUtils mScreenLockPreferenceDetailsUtils; field in LockScreenSafetySourceTest 92 when(mScreenLockPreferenceDetailsUtils.isAvailable()).thenReturn(true); in setSafetySourceData_whenScreenLockEnabled_safetyCenterDisabled_doesNotSetData() 95 mApplicationContext, mScreenLockPreferenceDetailsUtils, EVENT_SOURCE_STATE_CHANGED); in setSafetySourceData_whenScreenLockEnabled_safetyCenterDisabled_doesNotSetData() 104 when(mScreenLockPreferenceDetailsUtils.isAvailable()).thenReturn(false); in setSafetySourceData_whenScreenLockIsDisabled_setsNullData() 107 mApplicationContext, mScreenLockPreferenceDetailsUtils, EVENT_SOURCE_STATE_CHANGED); in setSafetySourceData_whenScreenLockIsDisabled_setsNullData() 120 mApplicationContext, mScreenLockPreferenceDetailsUtils, EVENT_SOURCE_STATE_CHANGED); in setSafetySourceData_setsDataForLockscreenSafetySource() 133 mApplicationContext, mScreenLockPreferenceDetailsUtils, EVENT_SOURCE_STATE_CHANGED); in setSafetySourceData_setsDataWithCorrectSafetyEvent() 145 mApplicationContext, mScreenLockPreferenceDetailsUtils, EVENT_SOURCE_STATE_CHANGED); in setSafetySourceData_whenScreenLockIsEnabled_setData() 173 when(mScreenLockPreferenceDetailsUtils.isLockPatternSecure()).thenReturn(true); in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsSec_setStatusLevelInfo() 174 when(mScreenLockPreferenceDetailsUtils.isPasswordQualityManaged(anyInt(), any())) in setSafetySourceData_whenPwdQualIsNotMan_whenLockPattIsSec_setStatusLevelInfo() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/security/ |
D | ScreenLockPreferenceDetailsUtilsTest.java | 74 private ScreenLockPreferenceDetailsUtils mScreenLockPreferenceDetailsUtils; field in ScreenLockPreferenceDetailsUtilsTest 94 mScreenLockPreferenceDetailsUtils = new ScreenLockPreferenceDetailsUtils(mContext); in setUp() 101 assertThat(mScreenLockPreferenceDetailsUtils.isAvailable()).isTrue(); in isAvailable_whenEnabled_shouldReturnTrue() 108 assertThat(mScreenLockPreferenceDetailsUtils.isAvailable()).isFalse(); in isAvailable_whenDisabled_shouldReturnFalse() 118 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_unsecureAndDisabledPattern_shouldReturnUnlockModeOff() 129 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_unsecurePattern_shouldReturnUnlockModeNone() 141 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_passwordQualitySomething_shouldUnlockModePattern() 153 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_passwordQualityNumeric_shouldUnlockModePin() 164 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_passwordQualityNumericComplex_shouldUnlockModePin() 176 assertThat(mScreenLockPreferenceDetailsUtils.getSummary(USER_ID)).isEqualTo(summary); in getSummary_passwordQualityAlphabetic_shouldUnlockModePassword() [all …]
|