Home
last modified time | relevance | path

Searched refs:isSecure (Results 1 – 25 of 64) sorted by relevance

123

/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DScreenLockPreferenceDetailsUtilsTest.java115 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(false); in getSummary_unsecureAndDisabledPattern_shouldReturnUnlockModeOff()
126 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(false); in getSummary_unsecurePattern_shouldReturnUnlockModeNone()
137 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_passwordQualitySomething_shouldUnlockModePattern()
149 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_passwordQualityNumeric_shouldUnlockModePin()
160 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_passwordQualityNumericComplex_shouldUnlockModePin()
172 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_passwordQualityAlphabetic_shouldUnlockModePassword()
184 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_passwordQualityAlphanumeric_shouldUnlockModePassword()
196 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_passwordQualityComplex_shouldUnlockModePassword()
208 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_passwordQualityManaged_shouldUnlockModePassword()
218 when(mLockPatternUtils.isSecure(USER_ID)).thenReturn(true); in getSummary_unsupportedPasswordQuality_shouldReturnNull()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DChangeScreenLockPreferenceControllerTest.java105 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_shouldNotShowGear()
116 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_summaryShouldShowOff()
128 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_shouldNotShowGear()
139 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_summaryShouldShowSwipe()
151 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPinKeyguard_shouldShowGear()
164 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPinKeyguard_summaryShouldShowPin()
179 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPasswordKeyguard_shouldShowGear()
192 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPasswordKeyguard_summaryShouldShowPassword()
206 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPatternKeyguard_shouldShowGear()
219 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPatternKeyguard_summaryShouldShowPattern()
DVisiblePatternProfilePreferenceControllerTest.java99 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(false); in getAvailabilityStatus_notSecure_DISABLED()
108 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(true); in getAvailabilityStatus_secureWithPassword_DISABLED()
117 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(true); in getAvailabilityStatus_secureWithPattern_AVAILABLE()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/screenlock/
DLockScreenPreferenceControllerTest.java90 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenDisabled_AVAILABLE()
98 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenEnabled_AVAILABLE()
106 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_secure_hasLockScreen_AVAILABLE()
115 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_secure_noLockScreen_AVAILABLE()
124 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in onResume_available_shouldShow()
136 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in onResume_unavailable_shouldShow()
DPowerButtonInstantLockPreferenceControllerTest.java72 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPattern_shouldReturnTrue()
81 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPin_shouldReturnTrue()
90 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPassword_shouldReturnTrue()
99 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); in isAvailable_lockSetToNone_shouldReturnFalse()
DLockAfterTimeoutPreferenceControllerTest.java82 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPattern_shouldReturnTrue()
91 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPin_shouldReturnTrue()
100 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPassword_shouldReturnTrue()
109 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); in isAvailable_lockSetToNone_shouldReturnFalse()
DAutoPinConfirmPreferenceControllerTest.java60 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_featureEnabledAndLockSetToNone_shouldReturnFalse()
67 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_featureEnabledAndLockSetToPassword_shouldReturnFalse()
85 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_featureEnabledAndLockSetToPIN_lengthMoreThanEqSix_shouldReturnTrue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DWalletPrivacyPreferenceControllerTest.java73 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_noServiceAndIsSecure_returnsUnsupported()
155 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_hasServiceButNotSecure_returnsDisabled()
164 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_hasServiceAndIsSecure_returnsAvailable()
DControlsPrivacyPreferenceControllerTest.java75 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/Settings/src/com/android/settings/display/
DControlsPrivacyPreferenceController.java58 final int res = isSecure() ? R.string.lockscreen_privacy_controls_summary : in getSummary()
71 return isEnabled() && isSecure() ? AVAILABLE : DISABLED_DEPENDENT_SETTING; in getAvailabilityStatus()
90 private boolean isSecure() { in isSecure() method in ControlsPrivacyPreferenceController
95 return utils.isSecure(userId); in isSecure()
DWalletPrivacyPreferenceController.java58 final int res = isSecure() ? R.string.lockscreen_privacy_wallet_summary : in getSummary()
69 } else if (!isSecure()) { in getAvailabilityStatus()
91 private boolean isSecure() { in isSecure() method in WalletPrivacyPreferenceController
96 return utils.isSecure(userId); in isSecure()
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DShadowLockPatternUtils.java79 protected boolean isSecure(int userId) { in isSecure() method in ShadowLockPatternUtils
80 Boolean isSecure = sUserToIsSecureMap.get(userId); in isSecure() local
81 if (isSecure == null) { in isSecure()
84 return isSecure; in isSecure()
87 public static void setIsSecure(int userId, boolean isSecure) { in setIsSecure() argument
88 sUserToIsSecureMap.put(userId, isSecure); in setIsSecure()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/users/
DRestrictedProfilePinStorageTest.java163 verify(mLockPatternUtils, never()).isSecure(eq(USER_ID)); in testIsPinCorrect()
175 verify(mLockPatternUtils).isSecure(eq(USER_ID)); in testIsPinCorrect_legacy()
187 verify(mLockPatternUtils, never()).isSecure(eq(USER_ID)); in testIsPinSet()
197 verify(mLockPatternUtils).isSecure(eq(USER_ID)); in testIsPinSet_legacy()
208 verify(mLockPatternUtils).isSecure(eq(USER_ID)); in testMigrationToInternalStorage_IsPinCorrect()
221 verify(mLockPatternUtils, atLeastOnce()).isSecure(eq(USER_ID)); in testMigrationToInternalStorage_SetPin()
244 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(pin != null); in initPinLegacy()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactNotificationPreferenceControllerTest.java129 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_noSecureLockscreen()
152 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_noWorkProfile()
211 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_adminSaysNoNotifications()
225 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_noNotifications()
241 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_workProfileLocked()
258 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_show()
/packages/apps/Settings/src/com/android/settings/security/
DVisiblePatternProfilePreferenceController.java83 final boolean isSecure = mLockPatternUtils.isSecure(mProfileChallengeUserId); in getAvailabilityStatus()
87 if (isSecure && hasPassword) { in getAvailabilityStatus()
DScreenLockPreferenceDetailsUtils.java88 return mLockPatternUtils.isSecure(mUserId); in isLockPatternSecure()
170 if (!mLockPatternUtils.isSecure(userId)) { in getSummaryResId()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/widget/
DLockPatternHelper.java39 public static boolean isSecure(@NonNull Context context, @UserIdInt int userId) { in isSecure() method in LockPatternHelper
40 return new LockPatternUtils(context).isSecure(userId); in isSecure()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DManageTrustAgentsPreferenceControllerTest.java86 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_isNotSecure_shouldDisablePreference()
97 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_isSecure_noTrustAgent_shouldShowGenericSummary()
110 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_isSecure_hasTrustAgent_shouldShowDetailedSummary()
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/
DRfcommTest.kt218 val (insecureSocket, connection) = createAndConnectSocket(isSecure = false, serverId) in clientSendDataOverInsecureSocket()
238 val (secureSocket, connection) = createAndConnectSocket(isSecure = true, serverId) in clientSendDataOverSecureSocket()
258 val (insecureSocket, connection) = createAndConnectSocket(isSecure = false, serverId) in clientReceiveDataOverInsecureSocket()
279 val (secureSocket, connection) = createAndConnectSocket(isSecure = true, serverId) in clientReceiveDataOverSecureSocket()
295 isSecure: Boolean, in createAndConnectSocket()
299 if (isSecure) { in createAndConnectSocket()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DMsrpUtils.java31 public static String generatePath(String address, int port, boolean isSecure) { in generatePath() argument
39 .append(isSecure ? "msrps" : "msrp") in generatePath()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DConfirmLockPatternTest.java181 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isTrue(); in onPatternDetected_remoteValidation_guessValid_checkboxChecked()
208 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isFalse(); in onPatternDetected_remoteValidation_guessValid_checkboxUnchecked()
234 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isFalse(); in onPatternDetected_remoteValidation_guessInvalid()
259 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isFalse(); in onPatternDetected_remoteValidation_lockout()
284 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isFalse(); in onPatternDetected_noRemainingAttempts_finishActivity()
DConfirmLockPasswordTest.java201 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isTrue(); in handleNext_remoteValidation_correctGuess_checkboxChecked()
228 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isFalse(); in handleNext_remoteValidation_correctGuess_checkboxUnchecked()
254 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isFalse(); in handleNext_remoteValidation_guessInvalid()
279 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isFalse(); in handleNext_remoteValidation_lockout()
305 assertThat(mLockPatternUtils.isSecure(fragment.mEffectiveUserId)).isFalse(); in handleNext_remoteValidation_noRemainingAttempts_finishActivity()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DLockPatternUtilsCompat.java49 public boolean isSecure(int userId) { in isSecure() method in LockPatternUtilsCompat
50 return mLockPatternUtils.isSecure(userId); in isSecure()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DObexServerSockets.java118 IObexConnectionHandler validator, int rfcommChannel, int l2capPsm, boolean isSecure) { in create() argument
133 if (isSecure) { in create()
140 if (isSecure) { in create()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/keyguard/
DCarKeyguardViewController.java276 if (!isSecure()) { in reset()
312 if (mShowing && isSecure()) { in setOccluded()
336 if (!isSecure()) { in dismissAndCollapse()
475 if (!mPrimaryBouncerInteractor.isInTransit() || !isSecure()) { in revealKeyguardIfBouncerPrepared()
500 private boolean isSecure() { in isSecure() method in CarKeyguardViewController

123