/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | KeyManagementTest.java | 113 final String alias = "com.android.test.valid-rsa-key-1"; in testCanInstallAndRemoveValidRsaKeypair() local 118 assertThat(mDevicePolicyManager.installKeyPair(getWho(), privKey, cert, alias)).isTrue(); in testCanInstallAndRemoveValidRsaKeypair() 121 assertGranted(alias, false); in testCanInstallAndRemoveValidRsaKeypair() 122 assertThat(new KeyChainAliasFuture(alias).get()).isEqualTo(alias); in testCanInstallAndRemoveValidRsaKeypair() 123 assertGranted(alias, true); in testCanInstallAndRemoveValidRsaKeypair() 126 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanInstallAndRemoveValidRsaKeypair() 129 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), alias)).isTrue(); in testCanInstallAndRemoveValidRsaKeypair() 132 assertGranted(alias, false); in testCanInstallAndRemoveValidRsaKeypair() 183 final String alias = "com.android.test.clientkeychain"; in testCanInstallCertChain() local 186 assertThat(mDevicePolicyManager.installKeyPair(getWho(), privKey, certChain, alias, true)) in testCanInstallCertChain() local [all …]
|
D | DelegatedCertInstallerTest.java | 213 final String alias = keyStore.getCertificateAlias(caCert); in testCaCertsOperations() local 214 assertNotNull(alias); in testCaCertsOperations() 215 verifyOwnerInstalledStatus(alias, true); in testCaCertsOperations() 225 verifyOwnerInstalledStatus(alias, false); in testCaCertsOperations() 236 final String alias = "delegated-cert-installer-test-key"; in testInstallKeyPair() local 242 installKeyPair(TEST_KEY, TEST_CERT, alias); in testInstallKeyPair() 251 installKeyPair(TEST_KEY, TEST_CERT, alias); in testInstallKeyPair() 343 private void verifyOwnerInstalledStatus(String alias, boolean expectOwnerInstalled) { in verifyOwnerInstalledStatus() argument 347 assertEquals(expectOwnerInstalled, ownerInstalledCerts.contains(alias)); in verifyOwnerInstalledStatus() 366 private void installKeyPair(String key, String cert, String alias) { in installKeyPair() argument [all …]
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | CertSelectionDelegateTest.java | 70 String alias) { in onChoosePrivateKeyAlias() argument 101 final String alias = "com.android.test.valid-rsa-key-1"; in testCanSelectKeychainKeypairs() local 105 assertThat(mDpm.installKeyPair(null, privKey, cert, alias)).isTrue(); in testCanSelectKeychainKeypairs() 107 assertThat(new KeyChainAliasFuture(alias).get()).isEqualTo(alias); in testCanSelectKeychainKeypairs() 110 assertThat(KeyChain.getPrivateKey(mActivity, alias).getAlgorithm()).isEqualTo("RSA"); in testCanSelectKeychainKeypairs() 113 assertThat(mDpm.removeKeyPair(null, alias)).isTrue(); in testCanSelectKeychainKeypairs() 122 public void alias(final String chosenAlias) { in alias() method in CertSelectionDelegateTest.KeyChainAliasFuture 127 public KeyChainAliasFuture(String alias) in KeyChainAliasFuture() argument 133 + URLEncoder.encode(alias, "UTF-8")); in KeyChainAliasFuture()
|
D | DirectDelegatedCertInstallerTest.java | 167 final String alias = "delegated-cert-installer-test-key"; in testInstallKeyPair() local 177 assertThat(mDpm.installKeyPair(null, privatekey, new Certificate[]{certificate}, alias, in testInstallKeyPair() 181 PrivateKey obtainedKey = KeyChain.getPrivateKey(getContext(), alias); in testInstallKeyPair() 186 assertThat(mDpm.removeKeyPair(null, alias)).isTrue(); in testInstallKeyPair() 187 assertThat(KeyChain.getPrivateKey(getContext(), alias)).isNull(); in testInstallKeyPair() 192 final String alias = "com.android.test.generated-rsa-1"; in testGenerateKeyPairWithoutDeviceIdAttestation() local 195 alias, in testGenerateKeyPairWithoutDeviceIdAttestation() 209 assertThat(mDpm.removeKeyPair(null, alias)).isTrue(); in testGenerateKeyPairWithoutDeviceIdAttestation()
|
D | CertInstallerReceiver.java | 119 String alias = intent.getStringExtra(EXTRA_KEY_ALIAS); in onReceive() local 138 sendResult(context, dpm.installKeyPair(null, privatekey, certificate, alias), in onReceive()
|
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ |
D | AdminActionBookkeepingTest.java | 101 final String alias = keyStore.getCertificateAlias(cert); in testGetPolicyInstalledCaCerts() local 102 assertNotNull(alias); in testGetPolicyInstalledCaCerts() 105 verifyOwnerInstalledStatus(alias, true); in testGetPolicyInstalledCaCerts() 111 verifyOwnerInstalledStatus(alias, false); in testGetPolicyInstalledCaCerts() 114 private void verifyOwnerInstalledStatus(String alias, boolean expectOwnerInstalled) { in verifyOwnerInstalledStatus() argument 118 assertEquals(expectOwnerInstalled, ownerInstalledCerts.contains(alias)); in verifyOwnerInstalledStatus()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | KeyChainTestActivity.java | 199 public void alias(String alias) { in alias() argument 200 Log.i(TAG, "Got alias: " + alias); in alias() 201 if (alias == null) { in alias() 204 } else if (!alias.equals(ALIAS)) { in alias() 210 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, alias); in alias() 241 public void alias(String alias) { in alias() method in KeyChainTestActivity.SelectCertificateExpectingNone 242 Log.i(TAG, "Got alias: " + alias); in alias() 243 if (alias != null) { in alias()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | ImportedKey.java | 32 public ImportedKey(String alias, KeyPair original, KeyPair keystoreBacked) { in ImportedKey() argument 33 mAlias = alias; in ImportedKey() 41 public ImportedKey(String alias, SecretKey original, SecretKey keystoreBacked) { in ImportedKey() argument 42 mAlias = alias; in ImportedKey()
|
D | KeyStoreTest.java | 303 String alias = aliases.nextElement(); in clearKeyStore() local 304 ks.deleteEntry(alias); in clearKeyStore() 310 … public static void setPrivateKeyNoPassword(KeyStore ks, String alias, PrivateKeyEntry privateKey) in setPrivateKeyNoPassword() argument 312 ks.setKeyEntry(alias, privateKey.getPrivateKey(), null, privateKey.getCertificateChain()); in setPrivateKeyNoPassword() 317 public static void setPrivateKey(KeyStore ks, String alias) throws Exception { in setPrivateKey() argument 318 setPrivateKey(ks, alias, getPrivateKey()); in setPrivateKey() 321 String alias, in setPrivateKey() argument 324 ks.setKeyEntry(alias, in setPrivateKey() 333 public static void setPrivateKeyBytes(KeyStore ks, String alias) throws Exception { in setPrivateKeyBytes() argument 334 setPrivateKeyBytes(ks, alias, getPrivateKey()); in setPrivateKeyBytes() [all …]
|
D | AndroidKeyStoreTest.java | 732 String alias = aliases.nextElement(); in setUp() local 733 ksTemp.deleteEntry(alias); in setUp() 753 String alias = aliases.nextElement(); in tearDown() local 754 keyStore.deleteEntry(alias); in tearDown() 798 final String alias = aliases.nextElement(); in assertAliases() local 799 assertTrue("The alias should be in the expected set", expectedSet.contains(alias)); in assertAliases() 800 expectedSet.remove(alias); in assertAliases() 1889 String alias = "MyKey"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local 1905 .setAlias(alias) in testKeyStore_Encrypting_RSA_NONE_NOPADDING() 1914 PrivateKey privateKey = (PrivateKey) ks.getKey(alias, null); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() [all …]
|
D | TestUtils.java | 157 static void assertKeyStoreKeyPair(KeyStore keyStore, String alias, KeyPair keyPair) { in assertKeyStoreKeyPair() argument 166 entry = keyStore.getEntry(alias, null); in assertKeyStoreKeyPair() 167 cert = keyStore.getCertificate(alias); in assertKeyStoreKeyPair() 169 throw new RuntimeException("Failed to load entry: " + alias, e); in assertKeyStoreKeyPair() 424 String alias, in importIntoAndroidKeyStore() argument 430 keyStore.setEntry(alias, in importIntoAndroidKeyStore() 434 keyStore.getCertificate(alias).getPublicKey(), in importIntoAndroidKeyStore() 435 (PrivateKey) keyStore.getKey(alias, null)); in importIntoAndroidKeyStore() 439 String alias, in importIntoAndroidKeyStore() argument 444 keyStore.setEntry(alias, in importIntoAndroidKeyStore() [all …]
|
D | KeyPairGeneratorTest.java | 1657 KeyPair keyPair, String alias, in assertGeneratedKeyPairAndSelfSignedCertificate() argument 1669 TestUtils.assertKeyStoreKeyPair(mKeyStore, alias, keyPair); in assertGeneratedKeyPairAndSelfSignedCertificate() 1671 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in assertGeneratedKeyPairAndSelfSignedCertificate() 1680 Arrays.asList(mKeyStore.getCertificateChain(alias)), cert); in assertGeneratedKeyPairAndSelfSignedCertificate() 1683 private void assertSelfSignedCertificateSignatureVerifies(String alias) throws Exception { in assertSelfSignedCertificateSignatureVerifies() argument 1684 assertSelfSignedCertificateSignatureVerifies(mKeyStore.getCertificate(alias)); in assertSelfSignedCertificateSignatureVerifies() 1687 private void assertKeyPairAndCertificateUsableForTLSPeerAuthentication(String alias) in assertKeyPairAndCertificateUsableForTLSPeerAuthentication() argument 1690 (PrivateKey) mKeyStore.getKey(alias, null), in assertKeyPairAndCertificateUsableForTLSPeerAuthentication() 1691 mKeyStore.getCertificateChain(alias)); in assertKeyPairAndCertificateUsableForTLSPeerAuthentication() 1833 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument [all …]
|
D | ImportWrappedKeyTest.java | 406 private KeyPair genKeyPair(String alias, boolean isStrongBoxBacked) throws Exception { in genKeyPair() argument 410 new KeyGenParameterSpec.Builder(alias, KeyProperties.PURPOSE_WRAP_KEY) in genKeyPair()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AdminActionBookkeepingTest.java | 230 final String alias = keyStore.getCertificateAlias(cert); in testGetPolicyInstalledCaCerts() local 231 assertNotNull(alias); in testGetPolicyInstalledCaCerts() 234 verifyOwnerInstalledStatus(alias, true); in testGetPolicyInstalledCaCerts() 240 verifyOwnerInstalledStatus(alias, false); in testGetPolicyInstalledCaCerts() 243 private void verifyOwnerInstalledStatus(String alias, boolean expectOwnerInstalled) { in verifyOwnerInstalledStatus() argument 247 assertEquals(expectOwnerInstalled, ownerInstalledCerts.contains(alias)); in verifyOwnerInstalledStatus()
|
D | SecurityLoggingTest.java | 510 private void verifyKeyGeneratedEventPresent(List<SecurityEvent> events, String alias) { in verifyKeyGeneratedEventPresent() argument 514 && getString(e, ALIAS_INDEX).contains(alias) in verifyKeyGeneratedEventPresent() 518 private void importKey(String alias) throws Exception{ in importKey() argument 521 ks.setEntry(alias, new KeyStore.SecretKeyEntry(new SecretKeySpec(new byte[32], "AES")), in importKey() 525 private void verifyKeyImportedEventPresent(List<SecurityEvent> events, String alias) { in verifyKeyImportedEventPresent() argument 529 && getString(e, ALIAS_INDEX).contains(alias) in verifyKeyImportedEventPresent() 539 private void verifyKeyDeletedEventPresent(List<SecurityEvent> events, String alias) { in verifyKeyDeletedEventPresent() argument 543 && getString(e, ALIAS_INDEX).contains(alias) in verifyKeyDeletedEventPresent()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CertificateTest.java | 159 for (String alias : aliases) { in getDeviceWfaCertificates() 160 assertTrue(wfaKeyStore.isCertificateEntry(alias)); in getDeviceWfaCertificates() 161 X509Certificate certificate = (X509Certificate) wfaKeyStore.getCertificate(alias); in getDeviceWfaCertificates() 180 for (String alias : aliases) { in getDeviceCertificates() 181 assertTrue(keyStore.isCertificateEntry(alias)); in getDeviceCertificates() 182 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias); in getDeviceCertificates()
|
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
D | CertInstallDelegateTest.java | 157 final String alias = "delegated-cert-installer-test-key"; in testCanAccessApis() local 168 mDpm.installKeyPair(null, privatekey, certificate, alias)); in testCanAccessApis() 171 assertTrue("Key pair not removed successfully", mDpm.removeKeyPair(null, alias)); in testCanAccessApis()
|
/cts/tests/security/src/android/keystore/cts/ |
D | KeyGenerationUtils.java | 33 private static KeyGenParameterSpec buildRsaKeySpecWithKeyAttestation(String alias) { in buildRsaKeySpecWithKeyAttestation() argument 35 alias, in buildRsaKeySpecWithKeyAttestation()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | UserAuthTest.java | 129 private boolean checkAuthBoundKey(String alias) { in checkAuthBoundKey() argument 135 KeyStore.Entry entry = ks.getEntry(alias, null); in checkAuthBoundKey() 150 void createAuthBoundKey(String alias, int timeoutSeconds) { in createAuthBoundKey() argument 156 alias, in createAuthBoundKey() 174 String alias = "authbound"; in testUserAuth() local
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 433 .alias(aliasCaptor.capture()); in chooseClientAlias() 448 public X509Certificate[] getCertificateChain(String alias) { in getCertificateChain() argument 452 KeyChain.getCertificateChain(KeyChainTest.this, alias); in getCertificateChain() 483 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() argument 485 log("KeyChainKeyManager.getPrivateKey(\"" + alias + "\")"); in getPrivateKey() 486 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTest.this, alias); in getPrivateKey()
|
/cts/tests/tests/telephony/current/preconditions/src/android/telephony/cts/preconditions/ |
D | TelephonyPreparer.java | 24 @OptionClass(alias="telephony-preparer")
|
/cts/tools/vm-tests-tf/targetprep/src/android/core/vm/targetprep/ |
D | VmTestPreparer.java | 39 @OptionClass(alias="vm-test-preparer")
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BackupPreparer.java | 39 @OptionClass(alias = "backup-preparer")
|
/cts/hostsidetests/hdmicec/ |
D | cec_adapter.md | 10 …dapter on Amazon](https://www.amazon.com/s/ref=nb_sb_ss_i_1_22?url=search-alias%3Daps&field-keywor…
|
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ |
D | MediaBitstreamsTest.java | 70 @OptionClass(alias="media-bitstreams-test")
|