/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/ |
D | DeviceAdminChoosePrivateKeyAliasEventTest.java | 53 private static final String ALIAS = "alias"; field in DeviceAdminChoosePrivateKeyAliasEventTest 68 DEVICE_ADMIN_RECEIVER, sContext, intent, UID, URI, ALIAS).log(); in whereIntent_works() 83 DEVICE_ADMIN_RECEIVER, sContext, differentIntent, UID, URI, ALIAS).log(); in whereIntent_skipsNonMatching() 85 DEVICE_ADMIN_RECEIVER, sContext, intent, UID, URI, ALIAS).log(); in whereIntent_skipsNonMatching() 97 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_customValueOnLogger_works() 113 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 117 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 133 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS).log(); in whereDeviceAdminReceiver_defaultValue_works() 147 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching() 151 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching() [all …]
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | AppUriAuthenticationPolicyTest.java | 43 private final static String ALIAS = "testAlias"; field in AppUriAuthenticationPolicyTest 46 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS) 53 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS) in getAppAndUrisMappings_returnsMapping() 61 assertThat(urisToAlias.get(URI)).isEqualTo(ALIAS); in getAppAndUrisMappings_returnsMapping() 68 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS) in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris() 69 .addAppAndUriMapping(PACKAGE_NAME, URI2, ALIAS) in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris() 76 assertThat(urisToAlias.get(URI)).isEqualTo(ALIAS); in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris() 78 assertThat(urisToAlias.get(URI2)).isEqualTo(ALIAS); in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris() 85 PACKAGE_NAME, /* uris= */ null, ALIAS); in addAppAndUriMapping_nullUri_throwException() 96 /* packageName= */ null, URI, ALIAS); in addAppAndUriMapping_nullPackageName_throwException() [all …]
|
D | CredentialManagementAppTest.java | 86 private static final String ALIAS = "com.android.test.rsa"; field in CredentialManagementAppTest 91 .addAppAndUriMapping(sContext.getPackageName(), URI, ALIAS) 120 ALIAS, /* flags = */ 0)); in installKeyPair_withoutManageCredentialAppOp_throwsException() 127 () -> sDevicePolicyManager.removeKeyPair(/* admin = */ null, ALIAS)); in removeKeyPair_withoutManageCredentialAppOp_throwsException() 135 buildRsaKeySpec(ALIAS, /* useStrongBox = */ false), in generateKeyPair_withoutManageCredentialAppOp_throwsException() 143 () -> sDevicePolicyManager.setKeyPairCertificate(/* admin = */ null, ALIAS, in setKeyPairCertificate_withoutManageCredentialAppOp_throwsException() 154 ALIAS, /* flags = */ INSTALLKEY_SET_USER_SELECTABLE)); in installKeyPair_isUserSelectableFlagSet_throwsException() 175 ALIAS, 0)).isTrue(); in installKeyPair_isCredentialManagementApp_success() 178 sDevicePolicyManager.removeKeyPair(/* admin = */ null, ALIAS); in installKeyPair_isCredentialManagementApp_success() 201 ALIAS, in hasKeyPair_isCredentialManagementApp_success() [all …]
|
D | CaCertManagementTest.java | 80 private static final String ALIAS = "alias"; field in CaCertManagementTest 291 sDeviceState.dpc().componentName(), privateKey, certificate, ALIAS); in installKeyPair_installsKeyPair() 295 .removeKeyPair(sDeviceState.dpc().componentName(), ALIAS); in installKeyPair_installsKeyPair() local 310 sDeviceState.dpc().componentName(), privateKey, certificate, ALIAS)); in installKeyPair_invalidAdmin_throwsException() 324 sDeviceState.dpc().componentName(), privateKey, certificate, ALIAS); in removeKeyPair_removedKeyPair() local 327 .removeKeyPair(sDeviceState.dpc().componentName(), ALIAS); in removeKeyPair_removedKeyPair() 335 .removeKeyPair(sDeviceState.dpc().componentName(), ALIAS)); in removeKeyPair_invalidAdmin_throwsException()
|
/cts/tests/security/src/android/keystore/cts/ |
D | KeyGenerationUtils.java | 31 private static final String ALIAS = "com.android.test.generated-rsa-1"; field in KeyGenerationUtils 57 generateRsaKeyPair(dpm, admin, deviceIdAttestationFlags, ALIAS); in generateKeyWithIdFlagsExpectingSuccess() 60 assertThat(dpm.removeKeyPair(admin, ALIAS)).isTrue(); in generateKeyWithIdFlagsExpectingSuccess() 76 () -> dpm.generateKeyPair(admin, "RSA", buildRsaKeySpecWithKeyAttestation(ALIAS), in generateKeyWithDeviceIdAttestationExpectingFailure()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | KeyChainTestActivity.java | 62 public static final String ALIAS = "cts-verifier-gen-rsa-1"; field in KeyChainTestActivity 149 ALIAS, in installCertificate() 173 ALIAS, in onClick() 199 } else if (!alias.equals(ALIAS)) { in alias() 287 DeviceAdminTestReceiver.getReceiverComponentName(), ALIAS); in finish() local 288 Log.i(TAG, "Deleted alias " + ALIAS); in finish()
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/ |
D | EventLibDelegatedAdminReceiverTest.java | 49 private static final String ALIAS = "alias"; field in EventLibDelegatedAdminReceiverTest 62 receiver.onChoosePrivateKeyAlias(sContext, sIntent, UID, URI, ALIAS); in choosePrivateKeyAlias_logsChoosePrivateKeyAliasEvent()
|
D | EventLibDeviceAdminReceiverTest.java | 85 private static final String ALIAS = "alias"; field in EventLibDeviceAdminReceiverTest 298 receiver.onChoosePrivateKeyAlias(sContext, sIntent, UID, URI, ALIAS); in choosePrivateKeyAlias_logsChoosePrivateKeyAliasEvent()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | ImportWrappedKeyTest.java | 108 private static final String ALIAS = "my key"; field in ImportWrappedKeyTest 162 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_AES() 164 Key importedKey = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_AES() 286 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_3DES() 288 Key importedKey = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_3DES() 353 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_RSA() 357 Key importedKey = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_RSA() 432 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_EC() 436 Key importedKey = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_EC() 460 keyStore.setEntry(ALIAS, wrappedKeyEntry, null); in importWrappedKey()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 86 private static final String ALIAS = "alias"; field in KeyChainTest 247 ks.setKeyEntry(ALIAS, privKey, EMPTY_PASSWORD, chain); in doInBackground() 362 desiredIssuer = (X509Certificate) mKeyStore.getCertificateChain(ALIAS)[1]; in startWebServer()
|