Home
last modified time | relevance | path

Searched refs:isDeviceSecure (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/app/
DKeyguardManagerTest.java80 when(mKeyguardManager.isDeviceSecure(USER_ID)).thenReturn(true); in createConfirmDeviceCredentialIntent_deviceSecure()
95 when(mKeyguardManager.isDeviceSecure(USER_ID)).thenReturn(false); in createConfirmDeviceCredentialIntent_deviceNotSecure()
105 when(mKeyguardManager.isDeviceSecure(USER_ID)).thenReturn(true); in createConfirmDeviceCredentialIntent()
159 assertFalse(mKeyguardManager.isDeviceSecure()); in setLock_setInitialLockPermissionGranted_invalidPassword()
173 assertFalse(mKeyguardManager.isDeviceSecure()); in setLock_setInitialLockPermissionDenied()
185 assertFalse(mKeyguardManager.isDeviceSecure()); in setLock_validatesCredential()
188 assertTrue(mKeyguardManager.isDeviceSecure()); in setLock_validatesCredential()
267 assertTrue(mKeyguardManager.isDeviceSecure()); in verifyDeviceLockedAndRemoveLock()
/frameworks/base/core/java/android/app/
DKeyguardManager.java271 if (!isDeviceSecure()) return null; in createConfirmDeviceCredentialIntent()
293 if (!isDeviceSecure(userId)) return null; in createConfirmDeviceCredentialIntent()
793 public boolean isDeviceSecure() { in isDeviceSecure() method in KeyguardManager
794 return isDeviceSecure(mContext.getUserId(), mContext.getDeviceId()); in isDeviceSecure()
803 public boolean isDeviceSecure(int userId) { in isDeviceSecure() method in KeyguardManager
804 return isDeviceSecure(userId, mContext.getDeviceId()); in isDeviceSecure()
812 public boolean isDeviceSecure(@UserIdInt int userId, int deviceId) { in isDeviceSecure() method in KeyguardManager
814 return mTrustManager.isDeviceSecure(userId, deviceId); in isDeviceSecure()
1026 if (isDeviceSecure(userId)) { in setLock()
/frameworks/base/core/java/android/app/trust/
DITrustManager.aidl38 boolean isDeviceSecure(int userId, int deviceId); in isDeviceSecure() method
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManager.java452 if (!isDeviceSecure(userId)) { in generateAndLoadKey()
491 private boolean isDeviceSecure(int userId) { in isDeviceSecure() method in PlatformKeyManager
492 return mContext.getSystemService(KeyguardManager.class).isDeviceSecure(userId); in isDeviceSecure()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DBiometricServiceTest.java324 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())) in testAuthenticate_credentialAllowedButNotSetup_returnsNoDeviceCredential()
345 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())) in testAuthenticate_credentialAllowedAndSetup_callsSystemUI()
691 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())) in testAuthenticate_noBiometrics_credentialAllowed()
761 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())) in testAuthenticate_no_Biometrics_noCredential()
1078 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())).thenReturn(true); in testBiometricOrCredentialAuth_whenBiometricLockout_showsCredential()
1395 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())) in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength()
1402 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())) in testCanAuthenticate_whenDeviceDoesNotHaveRequestedBiometricStrength()
1415 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())) in testCanAuthenticate_onlyCredentialRequested()
1421 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())) in testCanAuthenticate_onlyCredentialRequested()
1430 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())).thenReturn(true); in testCanAuthenticate_whenNoBiometricsEnrolled()
[all …]
DPreAuthInfoTest.java79 when(mTrustManager.isDeviceSecure(anyInt(), anyInt())).thenReturn(true); in setup()
/frameworks/base/services/core/java/com/android/server/testharness/
DTestHarnessModeService.java317 if (isDeviceSecure()) { in onCommand()
339 private boolean isDeviceSecure() { in isDeviceSecure() method in TestHarnessModeService.TestHarnessModeShellCommand
341 return keyguardManager.isDeviceSecure(getMainUserId()); in isDeviceSecure()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DPinStorage.java184 mIsDeviceSecure = isDeviceSecure(); in PinStorage()
616 private boolean isDeviceSecure() { in isDeviceSecure() method in PinStorage
618 return keyguardManager != null ? keyguardManager.isDeviceSecure() : false; in isDeviceSecure()
625 ? keyguardManager.isDeviceSecure() && keyguardManager.isDeviceLocked() in isDeviceLocked()
1055 !KEYSTORE_ALIAS_LONG_TERM_ALWAYS.equals(alias) && isDeviceSecure(); in initializeSecretKey()
/frameworks/base/core/java/com/android/internal/app/
DSetScreenLockDialogActivity.java98 if (km.isDeviceSecure()) { in onCreate()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DPinStorageTest.java114 when(mKeyguardManager.isDeviceSecure()).thenReturn(false); in setUp()
183 when(mKeyguardManager.isDeviceSecure()).thenReturn(true); in storePin_unattendedReboot_deviceIsLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManagerTest.java114 when(mKeyguardManager.isDeviceSecure(USER_ID_FIXTURE)).thenReturn(true); in setUp()
399 when(mKeyguardManager.isDeviceSecure(USER_ID_FIXTURE)).thenReturn(false); in getEncryptKey_noScreenlock()
DRecoverableKeyStoreManagerTest.java202 when(mKeyguardManager.isDeviceSecure(TEST_USER_ID)).thenReturn(true); in setUp()
/frameworks/base/core/java/android/security/keystore/recovery/
DRecoveryController.java308 return keyguardManager != null && keyguardManager.isDeviceSecure(); in isRecoverableKeyStoreEnabled()
/frameworks/base/services/core/java/com/android/server/biometrics/
DPreAuthInfo.java110 final boolean credentialAvailable = trustManager.isDeviceSecure(userId, in create()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUserControllerTest.java501 when(mInjector.mKeyguardManagerMock.isDeviceSecure(anyInt())).thenReturn(false); in testContinueUserSwitchDismissKeyguard()
1424 when(mInjector.mKeyguardManagerMock.isDeviceSecure(anyInt())).thenReturn(true); in testStallUserSwitchUntilTheKeyguardIsShown()
1461 when(mInjector.mKeyguardManagerMock.isDeviceSecure(anyInt())).thenReturn(true); in testRuntimeExceptionIsThrownIfTheKeyguardIsNotShown()
1660 when(mKeyguardManagerMock.isDeviceSecure(anyInt())).thenReturn(true); in TestInjector()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java1832 boolean isDeviceSecure = km != null && km.isDeviceSecure(userId); in switchUser()
1833 switchWallpaper(isDeviceSecure ? lockWallpaper : systemWallpaper, reply); in switchUser()
1834 switchWallpaper(isDeviceSecure ? systemWallpaper : lockWallpaper, null); in switchUser()
/frameworks/base/core/java/android/os/
DRecoverySystem.java708 if (keyguardManager == null || !keyguardManager.isDeviceSecure()) { in prepareForUnattendedUpdate()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java2526 if (mInjector.getKeyguardManager().isDeviceSecure(newUserId)) {
3284 return km.isDeviceLocked(userId) && km.isDeviceSecure(userId);
DActivityManagerShellCommand.java2925 kgm.isDeviceSecure());
2931 pw.print("has-secure-screen-lock: "); pw.println(kgm.isDeviceSecure());
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java1852 public boolean isDeviceSecure(int userId, int deviceId) throws RemoteException {
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java289 .isDeviceSecure(userHandle); in onKeyguardStateChanged()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1775 if (km != null && km.isDeviceSecure(parentUserId)) { in requestQuietModeEnabled()
1778 } else if (km != null && !km.isDeviceSecure(parentUserId) in requestQuietModeEnabled()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java1381 && mContext.getSystemService(KeyguardManager.class).isDeviceSecure(mCurrentUserId); in onKeyguardStateChanged()
/frameworks/base/boot/
Dboot-image-profile.txt2030 HSPLandroid/app/KeyguardManager;->isDeviceSecure()Z
2031 HSPLandroid/app/KeyguardManager;->isDeviceSecure(I)Z
3398 HSPLandroid/app/trust/ITrustManager$Stub$Proxy;->isDeviceSecure(II)Z
/frameworks/base/config/
Dboot-image-profile.txt2030 HSPLandroid/app/KeyguardManager;->isDeviceSecure()Z
2031 HSPLandroid/app/KeyguardManager;->isDeviceSecure(I)Z
3398 HSPLandroid/app/trust/ITrustManager$Stub$Proxy;->isDeviceSecure(II)Z

12