/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 | 83 private static final String ALIAS = "com.android.test.rsa"; field in CredentialManagementAppTest 89 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS) 104 ALIAS, /* flags = */ 0)); in installKeyPair_withoutManageCredentialAppOp_throwsException() 112 () -> mDpm.removeKeyPair(/* admin = */ null, ALIAS)); in removeKeyPair_withoutManageCredentialAppOp_throwsException() 121 buildRsaKeySpec(ALIAS, /* useStrongBox = */ false), in generateKeyPair_withoutManageCredentialAppOp_throwsException() 131 () -> mDpm.setKeyPairCertificate(/* admin = */ null, ALIAS, in setKeyPairCertificate_withoutManageCredentialAppOp_throwsException() 141 ALIAS, /* flags = */ INSTALLKEY_SET_USER_SELECTABLE)); in installKeyPair_isUserSelectableFlagSet_throwsException() 160 ALIAS, 0)).isTrue(); in installKeyPair_isCredentialManagementApp_success() 163 mDpm.removeKeyPair(/* admin = */ null, ALIAS); in installKeyPair_isCredentialManagementApp_success() 185 mDpm.installKeyPair(/* admin = */ null, PRIVATE_KEY, CERTIFICATES, ALIAS, in hasKeyPair_isCredentialManagementApp_success() [all …]
|
D | NegativeCallAuthorizationTest.java | 47 private static final String ALIAS = "some-alias"; field in NegativeCallAuthorizationTest 58 assertThrows(SecurityException.class, () -> sDpm.hasKeyPair(ALIAS)); in testHasKeyPair_failIfNotOwner() 64 assertThrows(SecurityException.class, () -> sDpm.getKeyPairGrants(ALIAS)); in testGetKeyPairGrants_failIfNotOwner()
|
/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/tests/tests/keystore/src/android/keystore/cts/ |
D | ImportWrappedKeyTest.java | 79 private static final String ALIAS = "my key"; field in ImportWrappedKeyTest 115 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey() 117 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey() 178 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_3DES() 180 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_3DES() 215 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_3DES_StrongBox() 217 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_3DES_StrongBox() 255 assertTrue("Failed to load key after wrapped import", keyStore.containsAlias(ALIAS)); in testKeyStore_ImportWrappedKey_AES_StrongBox() 257 Key key = keyStore.getKey(ALIAS, null); in testKeyStore_ImportWrappedKey_AES_StrongBox() 298 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()
|