/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | ChangeScreenLockPreferenceControllerTest.java | 97 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()
|
D | VisiblePatternProfilePreferenceControllerTest.java | 94 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/ |
D | CarKeyguardViewControllerTest.java | 101 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/ |
D | LockScreenPreferenceControllerTest.java | 90 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()
|
D | PowerButtonInstantLockPreferenceControllerTest.java | 72 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()
|
D | LockAfterTimeoutPreferenceControllerTest.java | 82 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()
|
D | PatternVisiblePreferenceControllerTest.java | 61 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/ |
D | RestrictedProfilePinStorageTest.java | 163 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/ |
D | ControlsPrivacyPreferenceController.java | 55 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()
|
D | WalletPrivacyPreferenceController.java | 58 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/ |
D | RedactNotificationPreferenceControllerTest.java | 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/display/ |
D | WalletPrivacyPreferenceControllerTest.java | 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 | 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/Settings/src/com/android/settings/security/ |
D | VisiblePatternProfilePreferenceController.java | 82 final boolean isSecure = mLockPatternUtils.isSecure(mProfileChallengeUserId); in getAvailabilityStatus() 86 if (isSecure && hasPassword) { in getAvailabilityStatus()
|
D | ChangeScreenLockPreferenceController.java | 94 if (mLockPatternUtils.isSecure(mUserId)) { in updateState() 148 if (!mLockPatternUtils.isSecure(userId)) { in updateSummary()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/keyguard/ |
D | CarKeyguardViewController.java | 176 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/ |
D | ManageTrustAgentsPreferenceControllerTest.java | 85 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/ |
D | MsrpUtils.java | 31 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/ |
D | ObexServerSockets.java | 113 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/ |
D | LockScreenNotificationPreferenceController.java | 88 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/ |
D | VisibilityPreferenceController.java | 171 boolean lockscreenSecure = mLockPatternUtils.isSecure(UserHandle.myUserId()); in isLockScreenSecure() 174 lockscreenSecure |= mLockPatternUtils.isSecure(parentUser.id); in isLockScreenSecure()
|
/packages/apps/Settings/src/com/android/settings/ |
D | TrustedCredentialsDialogBuilder.java | 215 if (lockPatternUtils.isSecure(userId)) { in isUserSecure() 222 return lockPatternUtils.isSecure(parentUser.id); in isUserSecure()
|
/packages/apps/Settings/src/com/android/settings/security/screenlock/ |
D | PatternVisiblePreferenceController.java | 61 return mLockPatternUtils.isSecure(mUserId) in isPatternLock()
|
D | PowerButtonInstantLockPreferenceController.java | 53 if (!mLockPatternUtils.isSecure(mUserId)) { in isAvailable()
|
/packages/apps/Settings/src/com/android/settings/security/trustagent/ |
D | ManageTrustAgentsPreferenceController.java | 61 if (!mLockPatternUtils.isSecure(MY_USER_ID)) { in updateState()
|