Home
last modified time | relevance | path

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

123

/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()
DLockdownButtonPreferenceControllerTest.java62 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in isAvailable_lockSet_shouldReturnTrue()
68 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in isAvailable_lockUnset_shouldReturnFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/screenlock/
DLockScreenPreferenceControllerTest.java91 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenDisabled_DISABLED()
99 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_notSecure_lockscreenEnabled_AVAILABLE()
107 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_secure_hasLockScreen_AVAILABLE()
116 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_secure_noLockScreen_DISABLED()
125 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in onResume_available_shouldShow()
137 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in onResume_unavailable_shouldHide()
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/Settings/tests/robotests/src/com/android/settings/notification/
DRedactNotificationPreferenceControllerTest.java114 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in getAvailabilityStatus_noSecureLockscreen()
136 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_noWorkProfile()
151 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_adminSaysNoRedaction()
169 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_adminSaysNoNotifications()
183 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_noNotifications()
199 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_workProfileLocked()
216 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in getAvailabilityStatus_show()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DVisiblePatternProfilePreferenceController.java76 final boolean isSecure = mLockPatternUtils.isSecure(mProfileChallengeUserId); in getAvailabilityStatus()
80 if (isSecure && hasPassword) { in getAvailabilityStatus()
DChangeScreenLockPreferenceController.java88 if (mLockPatternUtils.isSecure(mUserId)) { in updateState()
140 if (!mLockPatternUtils.isSecure(userId)) { in updateSummary()
DLockdownButtonPreferenceController.java37 if (mLockPatternUtils.isSecure(UserHandle.myUserId())) { in getAvailabilityStatus()
/packages/apps/Settings/src/com/android/settings/security/
DVisiblePatternProfilePreferenceController.java76 final boolean isSecure = mLockPatternUtils.isSecure(mProfileChallengeUserId); in getAvailabilityStatus()
80 if (isSecure && hasPassword) { in getAvailabilityStatus()
DChangeScreenLockPreferenceController.java88 if (mLockPatternUtils.isSecure(mUserId)) { in updateState()
140 if (!mLockPatternUtils.isSecure(userId)) { in updateSummary()
DLockdownButtonPreferenceController.java37 if (mLockPatternUtils.isSecure(UserHandle.myUserId())) { in getAvailabilityStatus()
/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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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()
DVisibilityPreferenceController.java164 boolean lockscreenSecure = mLockPatternUtils.isSecure(UserHandle.myUserId()); in isLockScreenSecure()
167 lockscreenSecure |= mLockPatternUtils.isSecure(parentUser.id); in isLockScreenSecure()
/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()
DVisibilityPreferenceController.java164 boolean lockscreenSecure = mLockPatternUtils.isSecure(UserHandle.myUserId()); in isLockScreenSecure()
167 lockscreenSecure |= mLockPatternUtils.isSecure(parentUser.id); in isLockScreenSecure()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DTrustedCredentialsDialogBuilder.java215 if (lockPatternUtils.isSecure(userId)) { in isUserSecure()
222 return lockPatternUtils.isSecure(parentUser.id); in isUserSecure()
/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/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowLockPatternUtils.java40 protected boolean isSecure(int id) { in isSecure() method in ShadowLockPatternUtils
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/screenlock/
DPatternVisiblePreferenceController.java61 return mLockPatternUtils.isSecure(mUserId) in isPatternLock()
/packages/apps/Settings/src/com/android/settings/security/screenlock/
DPatternVisiblePreferenceController.java61 return mLockPatternUtils.isSecure(mUserId) in isPatternLock()

123