/cts/tests/tests/app/src/android/app/cts/ |
D | KeyguardWeakEscrowTokenTest.java | 64 private KeyguardManager mKeyguardManager; field in KeyguardWeakEscrowTokenTest 71 mKeyguardManager = mContext.getSystemService(KeyguardManager.class); in setUp() 79 if (!isAutomotiveDevice() || mKeyguardManager == null) return; in cleanUp() 82 mKeyguardManager in cleanUp() 98 long handle = mKeyguardManager.addWeakEscrowToken(mTestToken1, mTestUser, mTestExecutor, in testAddWeakEscrowToken_noCredentialSetUp_tokenActivatedImmediately() 100 boolean isActive = mKeyguardManager.isWeakEscrowTokenActive(handle, mTestUser); in testAddWeakEscrowToken_noCredentialSetUp_tokenActivatedImmediately() 101 boolean isValid = mKeyguardManager.isWeakEscrowTokenValid(handle, mTestToken1, in testAddWeakEscrowToken_noCredentialSetUp_tokenActivatedImmediately() 110 mKeyguardManager.removeWeakEscrowToken(handle, mTestUser); in testAddWeakEscrowToken_noCredentialSetUp_tokenActivatedImmediately() 121 long handle = mKeyguardManager.addWeakEscrowToken(mTestToken1, mTestUser, mTestExecutor, in testAddWeakEscrowToken_hasCredentialSetUp_tokenActivatedAfterVerification() 123 boolean isActiveBeforeVerification = mKeyguardManager.isWeakEscrowTokenActive(handle, in testAddWeakEscrowToken_hasCredentialSetUp_tokenActivatedAfterVerification() [all …]
|
D | NoWeakEscrowTokenPermissionTest.java | 58 private KeyguardManager mKeyguardManager; field in NoWeakEscrowTokenPermissionTest 66 mKeyguardManager = mContext.getSystemService(KeyguardManager.class); in setUp() 73 if (!isAutomotiveDevice() || mKeyguardManager == null) return; in cleanUp() 76 mKeyguardManager in cleanUp() 88 mKeyguardManager.addWeakEscrowToken(mTestToken, TEST_USER, mTestExecutor, in testAddWeakEscrowToken() 96 mKeyguardManager.addWeakEscrowToken(mTestToken, TEST_USER, mTestExecutor, in testRemoveWeakEscrowToken() 104 mKeyguardManager.isWeakEscrowTokenActive(TEST_HANDLE, TEST_USER)); in testIsWeakEscrowTokenActive() 111 mKeyguardManager.isWeakEscrowTokenValid(TEST_HANDLE, mTestToken, TEST_USER)); in testIsWeakEscrowTokenValid() 118 mKeyguardManager.registerWeakEscrowTokenRemovedListener(mTestExecutor, in testRegisterWeakEscrowTokenRemovedListener() 127 mKeyguardManager.registerWeakEscrowTokenRemovedListener(mTestExecutor, in testUnregisterWeakEscrowTokenRemovedListener() [all …]
|
D | WeakEscrowTokenAutoFeatureTest.java | 53 private KeyguardManager mKeyguardManager; field in WeakEscrowTokenAutoFeatureTest 60 mKeyguardManager = mContext.getSystemService(KeyguardManager.class); in setUp() 71 mKeyguardManager.addWeakEscrowToken(mTestToken, TEST_USER, mTestExecutor, in testAddWeakEscrowToken() 82 mKeyguardManager.removeWeakEscrowToken(TEST_HANDLE, TEST_USER)), in testRemoveWeakEscrowToken() 92 mKeyguardManager.isWeakEscrowTokenActive(TEST_HANDLE, TEST_USER)), in testIsWeakEscrowTokenActive() 103 () -> mKeyguardManager.isWeakEscrowTokenValid(TEST_HANDLE, mTestToken, in testIsWeakEscrowTokenValid() 115 () -> mKeyguardManager.registerWeakEscrowTokenRemovedListener(mTestExecutor, in testRegisterWeakEscrowTokenRemovedListener() 127 mKeyguardManager == null); in assumeKeyguardManagerAvailable()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | KeyguardManagerActivity.java | 28 private KeyguardManager mKeyguardManager; field in KeyguardManagerActivity 34 mKeyguardManager = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE); in onCreate() 45 mKeyLock = mKeyguardManager.newKeyguardLock(TAG); in onResume()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/keyguard/ |
D | KeyguardLockedTests.java | 97 assertTrue(mKeyguardManager.isKeyguardLocked()); in testLockAndUnlock() 98 assertTrue(mKeyguardManager.isDeviceLocked()); in testLockAndUnlock() 99 assertTrue(mKeyguardManager.isDeviceSecure()); in testLockAndUnlock() 100 assertTrue(mKeyguardManager.isKeyguardSecure()); in testLockAndUnlock() 106 assertFalse(mKeyguardManager.isDeviceLocked()); in testLockAndUnlock() 107 assertFalse(mKeyguardManager.isKeyguardLocked()); in testLockAndUnlock() 125 assertTrue(mKeyguardManager.isKeyguardLocked()); in testDisableKeyguard_thenSettingCredential_reenablesKeyguard_b119322269() 126 assertTrue(mKeyguardManager.isDeviceLocked()); in testDisableKeyguard_thenSettingCredential_reenablesKeyguard_b119322269() 127 assertTrue(mKeyguardManager.isDeviceSecure()); in testDisableKeyguard_thenSettingCredential_reenablesKeyguard_b119322269() 128 assertTrue(mKeyguardManager.isKeyguardSecure()); in testDisableKeyguard_thenSettingCredential_reenablesKeyguard_b119322269()
|
D | KeyguardTests.java | 105 assertTrue(mKeyguardManager.isKeyguardLocked()); in testKeyguardHidesActivity() 109 assertFalse(mKeyguardManager.isKeyguardLocked()); in testKeyguardHidesActivity() 388 assertTrue(mKeyguardManager.isKeyguardLocked()); in testInheritShowWhenLockedRemove() 431 assertTrue(mKeyguardManager.isKeyguardLocked()); in testNoInheritShowWhenLocked() 820 mKeyguardManager.addKeyguardLockedStateListener(mContext.getMainExecutor(), listener); in testAddKeyguardLockedStateListener_hideToShow_callbackInvoked() 828 mKeyguardManager.removeKeyguardLockedStateListener(listener); in testAddKeyguardLockedStateListener_hideToShow_callbackInvoked() 838 mKeyguardManager.addKeyguardLockedStateListener(mContext.getMainExecutor(), listener); in testAddKeyguardLockedStateListener_showToHide_callbackInvoked() 847 mKeyguardManager.removeKeyguardLockedStateListener(listener); in testAddKeyguardLockedStateListener_showToHide_callbackInvoked() 857 mKeyguardManager.addKeyguardLockedStateListener(mContext.getMainExecutor(), listener); in testAddRemoveKeyguardLockedStateListener_callbackNotInvoked() 858 mKeyguardManager.removeKeyguardLockedStateListener(listener); in testAddRemoveKeyguardLockedStateListener_callbackNotInvoked()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | LskfBoundKeysTest.java | 61 private KeyguardManager mKeyguardManager; field in LskfBoundKeysTest 70 mKeyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); in onCreate() 94 if (!mKeyguardManager.isKeyguardSecure()) { in onCreate() 177 Intent intent = mKeyguardManager.createConfirmDeviceCredentialIntent(null, null); in showAuthenticationScreen()
|
D | UnlockedDeviceRequiredKeysTest.java | 350 private KeyguardManager mKeyguardManager; field in UnlockedDeviceRequiredKeysTest.TestController 357 mKeyguardManager = activity.getSystemService(KeyguardManager.class); in TestController() 458 if (mKeyguardManager.isDeviceLocked() == enteringLockState) { in runDeviceTest() 540 boolean lockState = mKeyguardManager.isDeviceLocked(); in waitForDeviceState() 598 if (!mKeyguardManager.isDeviceSecure()) { in verifyTestRequirements()
|
D | IdentityCredentialAuthentication.java | 66 private KeyguardManager mKeyguardManager; field in IdentityCredentialAuthentication 92 mKeyguardManager = getSystemService(KeyguardManager.class); in onRequestPermissionsResult() 95 if (!mKeyguardManager.isKeyguardSecure()) { in onRequestPermissionsResult()
|
D | IdentityCredentialAuthenticationMultiDocument.java | 68 private KeyguardManager mKeyguardManager; field in IdentityCredentialAuthenticationMultiDocument 119 mKeyguardManager = getSystemService(KeyguardManager.class); in onRequestPermissionsResult() 122 if (!mKeyguardManager.isKeyguardSecure()) { in onRequestPermissionsResult()
|
D | FingerprintBoundKeysTest.java | 78 private KeyguardManager mKeyguardManager; field in FingerprintBoundKeysTest 110 mKeyguardManager = getSystemService(KeyguardManager.class); in onRequestPermissionsResult() 113 if (!mKeyguardManager.isKeyguardSecure()) { in onRequestPermissionsResult()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | ScreenLockTestActivity.java | 45 private KeyguardManager mKeyguardManager; field in ScreenLockTestActivity 55 mKeyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); in onCreate() 116 boolean lockSuccess = mKeyguardManager.inKeyguardRestrictedInputMode(); in onReceive()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | KeyguardTestBase.java | 29 public final KeyguardManager mKeyguardManager = mKm; field in KeyguardTestBase
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | AuthenticationBoundKeyTestActivity.java | 78 private KeyguardManager mKeyguardManager; field in AuthenticationBoundKeyTestActivity 97 mKeyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); in onCreate() 137 Intent intent = mKeyguardManager.createConfirmDeviceCredentialIntent(null, null); in onFinish() 204 if (!mKeyguardManager.isKeyguardSecure()) { in checkPreconditions()
|
D | ByodFlowTestActivity.java | 84 private KeyguardManager mKeyguardManager; field in ByodFlowTestActivity 161 mKeyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); in onCreate() 776 if (!mKeyguardManager.isDeviceSecure()) { in handleDiskEncryptionStatus() 788 if (mKeyguardManager.isDeviceSecure()) { in handleDiskEncryptionStatus() 794 if (mKeyguardManager.isDeviceSecure()) { in handleSetLockForEncryption()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | DeviceSuspendTestActivity.java | 47 private KeyguardManager mKeyguardManager; field in DeviceSuspendTestActivity 60 mKeyguardManager = getSystemService(KeyguardManager.class); in activitySetUp() 78 mKeyguardManager.requestDismissKeyguard(this, null); in activityCleanUp()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/area/ |
D | ExtensionRearDisplayTest.java | 106 private final KeyguardManager mKeyguardManager = mInstrumentationContext.getSystemService( field in ExtensionRearDisplayTest
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 229 private KeyguardManager mKeyguardManager; field in UsageStatsTest 246 mKeyguardManager = mContext.getSystemService(KeyguardManager.class); in setUp() 1755 if (mKeyguardManager.isKeyguardLocked()) { in testInteractiveEvents() 2723 if (mKeyguardManager.isKeyguardLocked()) { in dismissKeyguard()
|