Home
last modified time | relevance | path

Searched refs:isDeviceLocked (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/
DVirtualDeviceKeyguardTest.java77 assertThat(mDefaultDeviceKeyguardManager.isDeviceLocked()).isFalse(); in deviceIsNotSecure()
80 assertThat(mVirtualDeviceKeyguardManager.isDeviceLocked()).isFalse(); in deviceIsNotSecure()
92 assertThat(mDefaultDeviceKeyguardManager.isDeviceLocked()).isTrue(); in deviceIsSecureAndLocked()
95 assertThat(mVirtualDeviceKeyguardManager.isDeviceLocked()).isFalse(); in deviceIsSecureAndLocked()
111 assertThat(mDefaultDeviceKeyguardManager.isDeviceLocked()).isFalse(); in deviceIsSecureNotLocked()
114 assertThat(mVirtualDeviceKeyguardManager.isDeviceLocked()).isFalse(); in deviceIsSecureNotLocked()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DProfileTimeoutTestHelper.java56 assertTrue("Device not locked", mKm.isDeviceLocked()); in testDeviceLocked()
60 assertFalse("Device locked", mKm.isDeviceLocked()); in testDeviceNotLocked()
/cts/tests/tests/identity/src/android/security/identity/cts/
DUserAuthTest.java71 for (int i = 0; i < 25 && !keyguardManager.isDeviceLocked(); i++) { in performDeviceLock()
86 if (!keyguardManager.isDeviceLocked()) { in performDeviceUnlock()
254 assertTrue(keyguardManager.isDeviceLocked()); in doTestUserAuth()
256 assertTrue(!keyguardManager.isDeviceLocked()); in doTestUserAuth()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DKeyguardDismissLoggerCallback.java49 if (mContext.getSystemService(KeyguardManager.class).isDeviceLocked()) { in onDismissSucceeded()
/cts/tests/app/src/android/app/cts/
DKeyguardManagerStatusTest.java64 assertFalse(kmOfCommunal.isDeviceLocked()); in testCommunalProfileIsConsideredUnlocked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DCtsVerifierInCallUi.java63 if (km.isDeviceLocked()) { in onCreate()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0595/test-app/src/android/security/cts/CVE_2021_0595_test/
DDeviceTest.java78 context.getSystemService(KeyguardManager.class).isDeviceLocked()); in testCVE_2021_0595()
/cts/tests/security/src/android/keystore/cts/
DRootOfTrust.java96 public boolean isDeviceLocked() { in isDeviceLocked() method in RootOfTrust
/cts/tests/tests/keystore/src/android/keystore/cts/
DDeviceOwnerKeyManagementTest.java544 return (rootOfTrust.isDeviceLocked() in checkRootOfTrustForLockedDevice()
617 final boolean isDeviceLocked = checkDeviceLocked(); in testAllVariationsOfDeviceIdAttestation()
626 && TestUtils.isGsiImage() && !isDeviceLocked)); in testAllVariationsOfDeviceIdAttestation()
648 final boolean isDeviceLocked = checkDeviceLocked(); in testAllVariationsOfDeviceIdAttestationUsingStrongBox()
657 && TestUtils.isGsiImage() && !isDeviceLocked)); in testAllVariationsOfDeviceIdAttestationUsingStrongBox()
DCipherTest.java330 for (int i = 0; i < 25 && !keyguardManager.isDeviceLocked(); i++) { in performDeviceLock()
342 for (int i = 0; i < 25 && keyguardManager.isDeviceLocked(); i++) { in performDeviceUnlock()
345 assertFalse(keyguardManager.isDeviceLocked()); in performDeviceUnlock()
650 assertTrue(keyguardManager.isDeviceLocked()); in testKeyguardLockAndUnlock()
653 assertFalse(keyguardManager.isDeviceLocked()); in testKeyguardLockAndUnlock()
1309 assertTrue(keyguardManager.isDeviceLocked()); in testCanCreateAuthBoundKeyWhenScreenLocked()
1334 assertFalse(keyguardManager.isDeviceLocked()); in testCannotCreateAuthBoundKeyWhenDevicePinNotSet()
DKeyAttestationTest.java1025 teeRootOfTrust.isDeviceLocked(), sbRootOfTrust.isDeviceLocked()); in testAttestedRoTAcrossKeymints()
1699 assertTrue(unlockedDeviceMessage, rootOfTrust.isDeviceLocked()); in checkRootOfTrust()
/cts/tests/framework/base/windowmanager/src/android/server/wm/keyguard/
DKeyguardLockedTests.java98 assertTrue(mKeyguardManager.isDeviceLocked()); in testLockAndUnlock()
106 assertFalse(mKeyguardManager.isDeviceLocked()); in testLockAndUnlock()
126 assertTrue(mKeyguardManager.isDeviceLocked()); in testDisableKeyguard_thenSettingCredential_reenablesKeyguard_b119322269()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-31312/src/android/security/cts/CVE_2024_31312/
DDeviceTest.java94 .that(keyguardManager.isDeviceLocked()) in testPocCVE_2024_31312()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DUnlockedDeviceRequiredKeysTest.java458 if (mKeyguardManager.isDeviceLocked() == enteringLockState) { in runDeviceTest()
540 boolean lockState = mKeyguardManager.isDeviceLocked(); in waitForDeviceState()
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeDeviceActivity.java119 () -> !getSystemService(KeyguardManager.class).isDeviceLocked()) in onCreate()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DLockScreenSession.java263 wasDeviceLocked = mKm != null && mKm.isDeviceLocked(); in close()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DLockTest.java131 Poll.forValue("isDeviceLocked", sLocalKeyguardManager::isDeviceLocked) in lockNow_passwordSet_locksDevice()
/cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/
DSensorPrivacyBaseTest.kt714 assumeTrue("Device isn't locked", km.isDeviceLocked) in <lambda>()
737 assumeFalse("Device isn't unlocked", km.isDeviceLocked) in <lambda>()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt6203 method public boolean isDeviceLocked();