/cts/tests/app/src/android/app/cts/ |
D | KeyguardManagerTest.java | 40 final KeyguardManager keyguardManager = (KeyguardManager) c.getSystemService( in testNewKeyguardLock() local 42 final KeyguardManager.KeyguardLock keyLock = keyguardManager.newKeyguardLock(TAG); in testNewKeyguardLock() 48 KeyguardManager keyguardManager = (KeyguardManager) c.getSystemService( in testPrivateNotificationsAllowed() local 55 set.invoke(keyguardManager, false); in testPrivateNotificationsAllowed() 56 assertFalse((boolean) get.invoke(keyguardManager)); in testPrivateNotificationsAllowed() 57 set.invoke(keyguardManager, true); in testPrivateNotificationsAllowed() 58 assertTrue((boolean) get.invoke(keyguardManager)); in testPrivateNotificationsAllowed()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaSessionTestActivity.java | 51 KeyguardManager keyguardManager = in onCreate() local 54 if (keyguardManager == null) { in onCreate() 56 } else if (keyguardManager.isKeyguardLocked()) { in onCreate() 61 keyguardManager.requestDismissKeyguard(this, in onCreate()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityTestActivity.java | 41 KeyguardManager keyguardManager = getSystemService(KeyguardManager.class); in turnOnScreen() local 42 if (keyguardManager != null) { in turnOnScreen() 43 keyguardManager.requestDismissKeyguard(this, null); in turnOnScreen()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | UserAuthTest.java | 69 KeyguardManager keyguardManager = (KeyguardManager)appContext. in performDeviceLock() local 71 for (int i = 0; i < 25 && !keyguardManager.isDeviceLocked(); i++) { in performDeviceLock() 81 KeyguardManager keyguardManager = (KeyguardManager)appContext. in performDeviceUnlock() local 86 if (!keyguardManager.isDeviceLocked()) { in performDeviceUnlock() 107 KeyguardManager keyguardManager = (KeyguardManager)appContext in testUserAuth() local 110 doTestUserAuth(dl, keyguardManager); in testUserAuth() 116 void doTestUserAuth(DeviceLockSession dl, KeyguardManager keyguardManager) throws Exception { in doTestUserAuth() argument 254 assertTrue(keyguardManager.isDeviceLocked()); in doTestUserAuth() 256 assertTrue(!keyguardManager.isDeviceLocked()); in doTestUserAuth()
|
/cts/common/device-side/interactive/steps/src/main/java/com/android/interactive/steps/notesrole/ |
D | LockTheDeviceThenAccessSavedNote.java | 32 KeyguardManager keyguardManager = in LockTheDeviceThenAccessSavedNote() 35 return keyguardManager.isKeyguardLocked(); in LockTheDeviceThenAccessSavedNote()
|
/cts/tools/cts-holo-generation/src/com/android/cts/holo_capture/ |
D | CaptureHolo.java | 31 KeyguardManager keyguardManager = in testCaptureHolo() local 33 keyguardManager.newKeyguardLock("holo_capture").disableKeyguard(); in testCaptureHolo()
|
/cts/tests/app/shared/src/android/app/cts/ |
D | CtsAppTestUtils.java | 45 final KeyguardManager keyguardManager = in isKeyguardLocked() local 47 return keyguardManager.isKeyguardLocked(); in isKeyguardLocked()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | UiDeviceUtils.java | 60 final KeyguardManager keyguardManager = context.getSystemService(KeyguardManager.class); in wakeUpAndUnlock() local 63 if (keyguardManager == null || powerManager == null) { in wakeUpAndUnlock() 67 if (keyguardManager.isKeyguardLocked() || !powerManager.isInteractive() in wakeUpAndUnlock()
|
/cts/hostsidetests/securitybulletin/test-apps/TestBluetoothDiscoverable/src/android/security/cts/TestBluetoothDiscoverable/ |
D | DeviceTest.java | 143 KeyguardManager keyguardManager = sContext.getSystemService(KeyguardManager.class); in testConnectedDeviceDashboardFragment() local 145 powerManager.isInteractive() && !keyguardManager.isKeyguardLocked()); in testConnectedDeviceDashboardFragment() 184 KeyguardManager keyguardManager = sContext.getSystemService(KeyguardManager.class); in testBluetoothDashboardFragment() local 186 powerManager.isInteractive() && !keyguardManager.isKeyguardLocked()); in testBluetoothDashboardFragment()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-31312/src/android/security/cts/CVE_2024_31312/ |
D | DeviceTest.java | 92 KeyguardManager keyguardManager = context.getSystemService(KeyguardManager.class); in testPocCVE_2024_31312() local 94 .that(keyguardManager.isDeviceLocked()) in testPocCVE_2024_31312()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20360/src/android/security/cts/CVE_2022_20360/ |
D | DeviceTest.java | 109 KeyguardManager keyguardManager = context.getSystemService(KeyguardManager.class); in withSecureNfcDisabled() local 112 powerManager.isInteractive() && !keyguardManager.isKeyguardLocked()); in withSecureNfcDisabled()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/ |
D | DeviceTest.java | 149 KeyguardManager keyguardManager = mContext.getSystemService(KeyguardManager.class); in testOverlayButtonPresence() local 153 powerManager.isInteractive() && !keyguardManager.isKeyguardLocked()); in testOverlayButtonPresence()
|
/cts/tests/core/runner-axt/src/com/android/cts/runner/ |
D | CtsLibcoreTestRunListener.java | 76 KeyguardManager keyguardManager = in testRunStarted() local 79 keyguardManager.newKeyguardLock("cts").disableKeyguard(); in testRunStarted()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 152 KeyguardManager keyguardManager = context.getSystemService(KeyguardManager.class); in homeScreenOrBust() local 153 if (keyguardManager != null) { in homeScreenOrBust() 157 if (!keyguardManager.isKeyguardLocked()) { in homeScreenOrBust()
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | CapturedActivity.java | 128 KeyguardManager keyguardManager = getSystemService(KeyguardManager.class); in onCreate() local 129 if (keyguardManager != null) { in onCreate() 130 keyguardManager.requestDismissKeyguard(this, null); in onCreate()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | CipherTest.java | 329 …KeyguardManager keyguardManager = (KeyguardManager)getContext().getSystemService(Context.KEYGUARD_… in performDeviceLock() local 330 for (int i = 0; i < 25 && !keyguardManager.isDeviceLocked(); i++) { in performDeviceLock() 340 KeyguardManager keyguardManager = (KeyguardManager)getContext().getSystemService( in performDeviceUnlock() local 342 for (int i = 0; i < 25 && keyguardManager.isDeviceLocked(); i++) { in performDeviceUnlock() 345 assertFalse(keyguardManager.isDeviceLocked()); in performDeviceUnlock() 646 KeyguardManager keyguardManager = (KeyguardManager)getContext() in testKeyguardLockAndUnlock() local 650 assertTrue(keyguardManager.isDeviceLocked()); in testKeyguardLockAndUnlock() 653 assertFalse(keyguardManager.isDeviceLocked()); in testKeyguardLockAndUnlock() 669 KeyguardManager keyguardManager = (KeyguardManager)getContext() in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired() local 1306 …KeyguardManager keyguardManager = (KeyguardManager)getContext().getSystemService(Context.KEYGUARD_… in testCanCreateAuthBoundKeyWhenScreenLocked() local [all …]
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationManagerBubbleTest.java | 310 KeyguardManager keyguardManager = mContext.getSystemService(KeyguardManager.class); in ensureDeviceUnlocked() local 311 if (keyguardManager.isKeyguardLocked()) { in ensureDeviceUnlocked() 313 keyguardManager.requestDismissKeyguard(activity, in ensureDeviceUnlocked()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodHelperActivity.java | 371 KeyguardManager keyguardManager = in onCreate() local 373 Intent launchIntent = keyguardManager.createConfirmDeviceCredentialIntent(null, null); in onCreate()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceControlViewHostTests.java | 144 KeyguardManager keyguardManager = getSystemService(KeyguardManager.class); in onCreate() local 145 if (keyguardManager.isKeyguardLocked()) { in onCreate() 146 keyguardManager.requestDismissKeyguard(this, null); in onCreate()
|