Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DChangeScreenLockPreferenceControllerTest.java97 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_shouldNotShowGear()
108 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_summaryShouldShowOff()
120 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_shouldNotShowGear()
131 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_summaryShouldShowSwipe()
143 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPinKeyguard_shouldShowGear()
156 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPinKeyguard_summaryShouldShowPin()
171 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPasswordKeyguard_shouldShowGear()
184 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPasswordKeyguard_summaryShouldShowPassword()
198 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPatternKeyguard_shouldShowGear()
211 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPatternKeyguard_summaryShouldShowPattern()
DVisiblePatternProfilePreferenceControllerTest.java94 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(false); in getAvailabilityStatus_notSecure_DISABLED()
103 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(true); in getAvailabilityStatus_secureWithPassword_DISABLED()
112 when(mLockPatternUtils.isSecure(FAKE_PROFILE_USER_ID)).thenReturn(true); in getAvailabilityStatus_secureWithPattern_AVAILABLE()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/keyguard/
DCarKeyguardViewControllerTest.java101 when(mBouncer.isSecure()).thenReturn(true); in onShow_bouncerIsSecure_showsBouncerWithSecuritySelectionReset()
110 when(mBouncer.isSecure()).thenReturn(true); in onShow_bouncerIsSecure_keyguardIsVisible()
118 when(mBouncer.isSecure()).thenReturn(false); in onShow_bouncerNotSecure_hidesBouncerAndDestroysTheView()
127 when(mBouncer.isSecure()).thenReturn(false); in onShow_bouncerNotSecure_keyguardIsNotVisible()
146 when(mBouncer.isSecure()).thenReturn(true); in onHide_keyguardShowing_hidesBouncerAndDestroysTheView()
162 when(mBouncer.isSecure()).thenReturn(true); in onHide_KeyguardNotVisible()
175 when(mBouncer.isSecure()).thenReturn(true); in setOccludedFalse_currentlyOccluded_showsKeyguard()
188 when(mBouncer.isSecure()).thenReturn(true); in onCancelClicked_callsCancelClickedListener()
198 when(mBouncer.isSecure()).thenReturn(true); in onCancelClicked_hidesBouncerAndDestroysTheView()
/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()
DPatternVisiblePreferenceControllerTest.java61 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPattern_shouldReturnTrue()
70 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(true); in isAvailable_lockSetToPin_shouldReturnFalse()
79 when(mLockPatternUtils.isSecure(TEST_USER_ID)).thenReturn(false); in isAvailable_lockSetToNone_shouldReturnFalse()
/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/src/com/android/settings/display/
DControlsPrivacyPreferenceController.java55 final int res = isSecure() ? R.string.lockscreen_privacy_controls_summary : in getSummary()
63 return isEnabled() && isSecure() ? AVAILABLE : DISABLED_DEPENDENT_SETTING; in getAvailabilityStatus()
77 private boolean isSecure() { in isSecure() method in ControlsPrivacyPreferenceController
82 return utils.isSecure(userId); in isSecure()
DWalletPrivacyPreferenceController.java58 final int res = isSecure() ? R.string.lockscreen_privacy_wallet_summary : in getSummary()
65 return isEnabled() && isSecure() ? AVAILABLE : DISABLED_DEPENDENT_SETTING; in getAvailabilityStatus()
79 private boolean isSecure() { in isSecure() method in WalletPrivacyPreferenceController
84 return utils.isSecure(userId); in isSecure()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactNotificationPreferenceControllerTest.java125 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/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_noService_returnsDisabled()
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/security/
DVisiblePatternProfilePreferenceController.java82 final boolean isSecure = mLockPatternUtils.isSecure(mProfileChallengeUserId); in getAvailabilityStatus()
86 if (isSecure && hasPassword) { in getAvailabilityStatus()
DChangeScreenLockPreferenceController.java94 if (mLockPatternUtils.isSecure(mUserId)) { in updateState()
148 if (!mLockPatternUtils.isSecure(userId)) { in updateSummary()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/keyguard/
DCarKeyguardViewController.java176 if (!mBouncer.isSecure()) { in reset()
206 if (mShowing && mBouncer.isSecure()) { in setOccluded()
237 if (mBouncer != null && !mBouncer.isSecure()) { in dismissAndCollapse()
372 if (!mBouncer.inTransit() || !mBouncer.isSecure()) { in revealKeyguardIfBouncerPrepared()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DManageTrustAgentsPreferenceControllerTest.java85 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_isNotSecure_shouldDisablePreference()
96 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_isSecure_noTrustAgent_shouldShowGenericSummary()
109 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_isSecure_hasTrustAgent_shouldShowDetailedSummary()
/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/Bluetooth/src/com/android/bluetooth/
DObexServerSockets.java113 int l2capPsm, boolean isSecure) { in create() argument
130 if (isSecure) { in create()
137 if (isSecure) { in create()
/packages/apps/Settings/src/com/android/settings/notification/
DLockScreenNotificationPreferenceController.java88 mSecure = utils.isSecure(UserHandle.myUserId()); in LockScreenNotificationPreferenceController()
89 mSecureProfile = (mProfileUserId != UserHandle.USER_NULL) && utils.isSecure(mProfileUserId); in LockScreenNotificationPreferenceController()
275 .isSecure(UserHandle.myUserId()); in getSummaryResource()
/packages/apps/Settings/src/com/android/settings/notification/app/
DVisibilityPreferenceController.java171 boolean lockscreenSecure = mLockPatternUtils.isSecure(UserHandle.myUserId()); in isLockScreenSecure()
174 lockscreenSecure |= mLockPatternUtils.isSecure(parentUser.id); in isLockScreenSecure()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsDialogBuilder.java215 if (lockPatternUtils.isSecure(userId)) { in isUserSecure()
222 return lockPatternUtils.isSecure(parentUser.id); in isUserSecure()
/packages/apps/Settings/src/com/android/settings/security/screenlock/
DPatternVisiblePreferenceController.java61 return mLockPatternUtils.isSecure(mUserId) in isPatternLock()
DPowerButtonInstantLockPreferenceController.java53 if (!mLockPatternUtils.isSecure(mUserId)) { in isAvailable()
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DManageTrustAgentsPreferenceController.java61 if (!mLockPatternUtils.isSecure(MY_USER_ID)) { in updateState()

12