/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | ChangeScreenLockPreferenceControllerTest.java | 56 private LockPatternUtils mLockPatternUtils; field in ChangeScreenLockPreferenceControllerTest 77 .thenReturn(mLockPatternUtils); in setUp() 97 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_shouldNotShowGear() 98 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true); in updateState_notSecureDisableKeyguard_shouldNotShowGear() 108 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_summaryShouldShowOff() 109 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true); in updateState_notSecureDisableKeyguard_summaryShouldShowOff() 120 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_shouldNotShowGear() 121 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_shouldNotShowGear() 131 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_summaryShouldShowSwipe() 132 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_summaryShouldShowSwipe() [all …]
|
D | VisiblePatternProfilePreferenceControllerTest.java | 60 private LockPatternUtils mLockPatternUtils; field in VisiblePatternProfilePreferenceControllerTest 84 .thenReturn(mLockPatternUtils); in setUp() 94 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(false); in getAvailabilityStatus_notSecure_DISABLED() 95 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(FAKE_PROFILE_USER_ID)) in getAvailabilityStatus_notSecure_DISABLED() 103 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(true); in getAvailabilityStatus_secureWithPassword_DISABLED() 104 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(FAKE_PROFILE_USER_ID)) in getAvailabilityStatus_secureWithPassword_DISABLED() 112 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(true); in getAvailabilityStatus_secureWithPattern_AVAILABLE() 113 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(FAKE_PROFILE_USER_ID)) in getAvailabilityStatus_secureWithPattern_AVAILABLE()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/users/ |
D | RestrictedProfilePinStorageTest.java | 56 private LockPatternUtils mLockPatternUtils; field in RestrictedProfilePinStorageTest 71 when(mLockPatternUtils.getLockSettings()).thenReturn(mLockSettings); in setUp() 74 mPinStorage = new RestrictedProfilePinStorage(mLockPatternUtils, USER_ID, mConnection); in setUp() 94 verify(mLockPatternUtils, never()).setLockCredential( in testSetPinWhenNoPinIsSet_success() 109 verify(mLockPatternUtils, never()).setLockCredential( in testSetPinWhenWrongPinIsInput_fail() 125 verify(mLockPatternUtils, never()).setLockCredential( in testSetPinWhenCorrectPinIsInput_success() 138 verify(mLockPatternUtils, never()).setLockCredential( in testDeletePin_success() 151 verify(mLockPatternUtils, never()).setLockCredential( in testDeletePin_fail() 163 verify(mLockPatternUtils, never()).isSecure(eq(USER_ID)); in testIsPinCorrect() 175 verify(mLockPatternUtils).isSecure(eq(USER_ID)); in testIsPinCorrect_legacy() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/screenlock/ |
D | PowerButtonInstantLockPreferenceControllerTest.java | 48 private LockPatternUtils mLockPatternUtils; field in PowerButtonInstantLockPreferenceControllerTest 67 mContext, TEST_USER_ID, mLockPatternUtils); in setUp() 72 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPattern_shouldReturnTrue() 73 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPattern_shouldReturnTrue() 81 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPin_shouldReturnTrue() 82 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPin_shouldReturnTrue() 90 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPassword_shouldReturnTrue() 91 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPassword_shouldReturnTrue() 99 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); in isAvailable_lockSetToNone_shouldReturnFalse() 107 when(mTrustAgentManager.getActiveTrustAgentLabel(mContext, mLockPatternUtils)) in updateState_shouldSetPref() [all …]
|
D | LockScreenPreferenceControllerTest.java | 58 private LockPatternUtils mLockPatternUtils; field in LockScreenPreferenceControllerTest 79 .thenReturn(mLockPatternUtils); in setUp() 90 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenDisabled_AVAILABLE() 91 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true); in getAvailabilityStatus_notSecure_lockscreenDisabled_AVAILABLE() 98 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenEnabled_AVAILABLE() 99 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenEnabled_AVAILABLE() 106 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_secure_hasLockScreen_AVAILABLE() 107 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(anyInt())) in getAvailabilityStatus_secure_hasLockScreen_AVAILABLE() 115 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_secure_noLockScreen_AVAILABLE() 116 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(anyInt())) in getAvailabilityStatus_secure_noLockScreen_AVAILABLE() [all …]
|
D | PatternVisiblePreferenceControllerTest.java | 45 private LockPatternUtils mLockPatternUtils; field in PatternVisiblePreferenceControllerTest 55 new PatternVisiblePreferenceController(mContext, TEST_USER_ID, mLockPatternUtils); in setUp() 61 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPattern_shouldReturnTrue() 62 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPattern_shouldReturnTrue() 70 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPin_shouldReturnFalse() 71 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPin_shouldReturnFalse() 79 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); in isAvailable_lockSetToNone_shouldReturnFalse() 86 when(mLockPatternUtils.isVisiblePatternEnabled(TEST_USER_ID)).thenReturn(true); in updateState_shouldSetPref() 90 when(mLockPatternUtils.isVisiblePatternEnabled(TEST_USER_ID)).thenReturn(false); in updateState_shouldSetPref() 99 verify(mLockPatternUtils).setVisiblePatternEnabled(true, TEST_USER_ID); in onPreferenceChange_shouldUpdateLockPatternUtils()
|
D | LockAfterTimeoutPreferenceControllerTest.java | 58 private LockPatternUtils mLockPatternUtils; field in LockAfterTimeoutPreferenceControllerTest 77 mContext, TEST_USER_ID, mLockPatternUtils); in setUp() 82 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPattern_shouldReturnTrue() 83 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPattern_shouldReturnTrue() 91 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPin_shouldReturnTrue() 92 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPin_shouldReturnTrue() 100 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPassword_shouldReturnTrue() 101 when(mLockPatternUtils.getKeyguardStoredPasswordQuality(TEST_USER_ID)) in isAvailable_lockSetToPassword_shouldReturnTrue() 109 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); in isAvailable_lockSetToNone_shouldReturnFalse()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ChooseLockGenericController.java | 61 private final LockPatternUtils mLockPatternUtils; field in ChooseLockGenericController 70 mLockPatternUtils = lockPatternUtils; in ChooseLockGenericController() 82 private final LockPatternUtils mLockPatternUtils; field in ChooseLockGenericController.Builder 111 mLockPatternUtils = lockPatternUtils; in Builder() 156 mLockPatternUtils, mHideInsecureScreenLockTypes, mAppRequestedMinComplexity, in build() 183 return mLockPatternUtils.hasSecureLockScreen(); in isScreenLockVisible() 259 PasswordMetrics metrics = mLockPatternUtils.getRequestedPasswordMetrics(mUserId, in getAggregatedPasswordMetrics() 262 metrics.maxWith(mLockPatternUtils.getRequestedPasswordMetrics(mUnificationProfileId)); in getAggregatedPasswordMetrics() 274 mLockPatternUtils.getRequestedPasswordComplexity( in getAggregatedPasswordComplexity() 278 mLockPatternUtils.getRequestedPasswordComplexity(mUnificationProfileId)); in getAggregatedPasswordComplexity()
|
D | ChooseLockGeneric.java | 149 private LockPatternUtils mLockPatternUtils; field in ChooseLockGeneric.ChooseLockGenericFragment 215 mLockPatternUtils = new LockPatternUtils(activity); in onCreate() 278 getContext(), mUserId, mLockPatternUtils) in onCreate() 298 maybeEnableEncryption(mLockPatternUtils.getKeyguardStoredPasswordQuality( in onCreate() 310 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(mUserId); in onCreate() 334 if (mLockPatternUtils == null) { in updateActivityTitle() 344 updateExistingLock = mLockPatternUtils.isSeparateProfileChallengeEnabled(mUserId); in updateActivityTitle() 351 updateExistingLock = mLockPatternUtils.isSecure(mUserId); in updateActivityTitle() 431 if (!isUnlockMethodSecure(key) && mLockPatternUtils.isSecure(mUserId)) { in onPreferenceTreeClick() 487 final boolean required = mLockPatternUtils.isCredentialRequiredToDecrypt(!accEn); in maybeEnableEncryption() [all …]
|
/packages/apps/Settings/src/com/android/settings/security/screenlock/ |
D | PowerButtonInstantLockPreferenceController.java | 39 private final LockPatternUtils mLockPatternUtils; field in PowerButtonInstantLockPreferenceController 46 mLockPatternUtils = lockPatternUtils; in PowerButtonInstantLockPreferenceController() 53 if (!mLockPatternUtils.isSecure(mUserId)) { in isAvailable() 56 switch (mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId)) { in isAvailable() 73 mLockPatternUtils.getPowerButtonInstantlyLocks(mUserId)); in updateState() 75 mContext, mLockPatternUtils); in updateState() 92 mLockPatternUtils.setPowerButtonInstantlyLocks((Boolean) newValue, mUserId); in onPreferenceChange()
|
D | PatternVisiblePreferenceController.java | 35 private final LockPatternUtils mLockPatternUtils; field in PatternVisiblePreferenceController 41 mLockPatternUtils = lockPatternUtils; in PatternVisiblePreferenceController() 57 mLockPatternUtils.isVisiblePatternEnabled(mUserId)); in updateState() 61 return mLockPatternUtils.isSecure(mUserId) in isPatternLock() 62 && mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId) in isPatternLock() 68 mLockPatternUtils.setVisiblePatternEnabled((Boolean) newValue, mUserId); in onPreferenceChange()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | OwnerInfoPreferenceController.java | 44 private final LockPatternUtils mLockPatternUtils; field in OwnerInfoPreferenceController 56 mLockPatternUtils = new LockPatternUtils(context); in OwnerInfoPreferenceController() 101 mOwnerInfoPref.setEnabled(!mLockPatternUtils.isLockScreenDisabled(MY_USER_ID)); in updateEnableState() 122 return mLockPatternUtils.isDeviceOwnerInfoEnabled(); in isDeviceOwnerInfoEnabled() 127 return mLockPatternUtils.getDeviceOwnerInfo(); in getDeviceOwnerInfo() 132 return mLockPatternUtils.isOwnerInfoEnabled(MY_USER_ID); in isOwnerInfoEnabled() 137 return mLockPatternUtils.getOwnerInfo(MY_USER_ID); in getOwnerInfo()
|
D | ChangeScreenLockPreferenceController.java | 55 protected final LockPatternUtils mLockPatternUtils; field in ChangeScreenLockPreferenceController 67 mLockPatternUtils = FeatureFactory.getFactory(context) in ChangeScreenLockPreferenceController() 94 if (mLockPatternUtils.isSecure(mUserId)) { in updateState() 103 if (!mLockPatternUtils.isSeparateProfileChallengeEnabled(mProfileChallengeUserId)) { in updateState() 132 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(mProfileChallengeUserId) in handlePreferenceTreeClick() 148 if (!mLockPatternUtils.isSecure(userId)) { in updateSummary() 150 || mLockPatternUtils.isLockScreenDisabled(userId)) { in updateSummary() 156 switch (mLockPatternUtils.getKeyguardStoredPasswordQuality(userId)) { in updateSummary()
|
D | VisiblePatternProfilePreferenceController.java | 47 private final LockPatternUtils mLockPatternUtils; field in VisiblePatternProfilePreferenceController 68 mLockPatternUtils = FeatureFactory.getFactory(context) in VisiblePatternProfilePreferenceController() 82 final boolean isSecure = mLockPatternUtils.isSecure(mProfileChallengeUserId); in getAvailabilityStatus() 83 final boolean hasPassword = mLockPatternUtils in getAvailabilityStatus() 102 return mLockPatternUtils.isVisiblePatternEnabled( in isChecked() 111 mLockPatternUtils.setVisiblePatternEnabled(isChecked, mProfileChallengeUserId); in setChecked()
|
D | SecurityFeatureProviderImpl.java | 28 private LockPatternUtils mLockPatternUtils; field in SecurityFeatureProviderImpl 40 if (mLockPatternUtils == null) { in getLockPatternUtils() 41 mLockPatternUtils = new LockPatternUtils(context.getApplicationContext()); in getLockPatternUtils() 43 return mLockPatternUtils; in getLockPatternUtils()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | ManageTrustAgentsPreferenceControllerTest.java | 51 private LockPatternUtils mLockPatternUtils; field in ManageTrustAgentsPreferenceControllerTest 64 .thenReturn(mLockPatternUtils); in setUp() 85 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_isNotSecure_shouldDisablePreference() 96 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_isSecure_noTrustAgent_shouldShowGenericSummary() 97 when(mTrustAgentManager.getActiveTrustAgents(mContext, mLockPatternUtils)) in updateState_isSecure_noTrustAgent_shouldShowGenericSummary() 109 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_isSecure_hasTrustAgent_shouldShowDetailedSummary() 110 when(mTrustAgentManager.getActiveTrustAgents(mContext, mLockPatternUtils)) in updateState_isSecure_hasTrustAgent_shouldShowDetailedSummary()
|
D | TrustAgentListPreferenceControllerTest.java | 65 private LockPatternUtils mLockPatternUtils; field in TrustAgentListPreferenceControllerTest 88 .thenReturn(mLockPatternUtils); in setUp() 125 when(mTrustAgentManager.getActiveTrustAgents(mActivity, mLockPatternUtils)) in onResume_shouldClearOldAgents() 144 when(mTrustAgentManager.getActiveTrustAgents(mActivity, mLockPatternUtils)) in onResume_shouldAddNewAgents() 164 when(mTrustAgentManager.getActiveTrustAgents(mActivity, mLockPatternUtils)) in onResume_ifNotAvailable_shouldNotAddNewAgents() 183 when(mTrustAgentManager.getActiveTrustAgents(mActivity, mLockPatternUtils)) in onResume_controllerShouldHasKey() 203 when(mTrustAgentManager.getActiveTrustAgents(mActivity, mLockPatternUtils)) in updateDynamicRawDataToIndex_shouldIndexAgents()
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | ConfirmLockLockoutHelper.java | 36 private final LockPatternUtils mLockPatternUtils; field in ConfirmLockLockoutHelper 54 mLockPatternUtils = lockPatternUtils; in ConfirmLockLockoutHelper() 64 return mLockPatternUtils; in getLockPatternUtils() 73 long deadline = mLockPatternUtils.setLockoutAttemptDeadline(mUserId, timeoutMs); in onCheckCompletedWithTimeout() 80 handleAttemptLockout(mLockPatternUtils.getLockoutAttemptDeadline(mUserId)); in onResumeUI() 106 return mLockPatternUtils.getLockoutAttemptDeadline(mUserId) != 0; in isLockedOut()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | ChooseLockGenericControllerTest.java | 72 private LockPatternUtils mLockPatternUtils; field in ChooseLockGenericControllerTest 78 when(mLockPatternUtils.hasSecureLockScreen()).thenReturn(true); in setUp() 194 when(mLockPatternUtils.getRequestedPasswordComplexity(anyInt(), anyBoolean())) in isScreenLockEnabled_NoneComplexity() 205 when(mLockPatternUtils.getRequestedPasswordComplexity(anyInt(), anyBoolean())) in isScreenLockEnabled_lowComplexity() 216 when(mLockPatternUtils.getRequestedPasswordComplexity(anyInt(), anyBoolean())) in isScreenLockEnabled_mediumComplexity() 227 when(mLockPatternUtils.getRequestedPasswordComplexity(anyInt(), anyBoolean())) in isScreenLockEnabled_highComplexity() 328 when(mLockPatternUtils.getRequestedPasswordComplexity(eq(UserHandle.myUserId()), eq(false))) in getAggregatedPasswordComplexity_DevicePolicy() 341 when(mLockPatternUtils.getRequestedPasswordComplexity(eq(UserHandle.myUserId()), eq(false))) in getAggregatedPasswordComplexity_ProfileUnification() 343 when(mLockPatternUtils.getRequestedPasswordComplexity(eq(123))) in getAggregatedPasswordComplexity_ProfileUnification() 354 when(mLockPatternUtils.getRequestedPasswordMetrics(anyInt(), anyBoolean())) in setDevicePolicyPasswordQuality() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | WalletPrivacyPreferenceControllerTest.java | 60 private LockPatternUtils mLockPatternUtils; field in WalletPrivacyPreferenceControllerTest 72 .thenReturn(mLockPatternUtils); in setUp() 73 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in setUp() 121 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getSummary_notSecureLock_lockscreen_privacy_not_secureString() 129 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getSummary_isSecure_lockscreen_privacy_showString() 146 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_noService_returnsDisabled()
|
D | ControlsPrivacyPreferenceControllerTest.java | 63 private LockPatternUtils mLockPatternUtils; field in ControlsPrivacyPreferenceControllerTest 74 .thenReturn(mLockPatternUtils); in setUp() 75 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in setUp() 117 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getSummary_notSecureLock_lockscreen_privacy_not_secureString() 143 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_ControlsOnNotSecure_returnsDisabled() 153 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_ControlsOffSecure_returnsDisabled()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/ |
D | ConfirmLockLockoutHelperTest.java | 50 private LockPatternUtils mLockPatternUtils; field in ConfirmLockLockoutHelperTest 58 mLockPatternUtils); in setUp() 66 verify(mLockPatternUtils, never()).setLockoutAttemptDeadline(TEST_USER, 0); in onCheckCompletedWithTimeout_timeoutIsZero_doesNothing() 80 verify(mLockPatternUtils).setLockoutAttemptDeadline(TEST_USER, 1000); in onCheckCompletedWithTimeout_timeoutIsPositive_setsLockoutDeadline() 85 when(mLockPatternUtils.getLockoutAttemptDeadline(TEST_USER)).thenReturn(1000L); in onCheckCompletedWithTimeout_timeoutIsPositive_refreshesUILocked()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | OwnerInfoSettings.java | 44 private LockPatternUtils mLockPatternUtils; field in OwnerInfoSettings 51 mLockPatternUtils = new LockPatternUtils(getActivity()); in onCreate() 67 String info = mLockPatternUtils.getOwnerInfo(mUserId); in initView() 80 mLockPatternUtils.setOwnerInfoEnabled(!TextUtils.isEmpty(info), mUserId); in onClick() 81 mLockPatternUtils.setOwnerInfo(info, mUserId); in onClick()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RedactNotificationPreferenceControllerTest.java | 76 private LockPatternUtils mLockPatternUtils; field in RedactNotificationPreferenceControllerTest 93 .thenReturn(mLockPatternUtils); in setUp() 125 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_noSecureLockscreen() 147 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_noWorkProfile() 206 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_adminSaysNoNotifications() 220 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_noNotifications() 236 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_workProfileLocked() 253 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_show()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintProfileStatusPreferenceControllerTest.java | 53 private LockPatternUtils mLockPatternUtils; field in FingerprintProfileStatusPreferenceControllerTest 75 .thenReturn(mLockPatternUtils); in setUp() 87 when(mLockPatternUtils.isSeparateProfileChallengeAllowed(anyInt())).thenReturn(true); in isUserSupported_separateChallengeAllowed_true() 93 when(mLockPatternUtils.isSeparateProfileChallengeAllowed(anyInt())).thenReturn(false); in isUserSupported_separateChallengeNotAllowed_false() 101 when(mLockPatternUtils.isSeparateProfileChallengeAllowed(anyInt())).thenReturn(false); in getAvailabilityStatus_userNotSupported_DISABLED()
|