Searched refs:TEST_ALIAS (Results 1 – 4 of 4) sorted by relevance
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | DirectDelegatedCertInstallerTest.java | 68 private static final String TEST_ALIAS = "DirectDelegatedCertInstallerTest-keypair"; field in DirectDelegatedCertInstallerTest 94 mDpm.removeKeyPair(null, TEST_ALIAS); in tearDown() 213 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testHasKeyPair_Installed() 216 assertThat(mDpm.hasKeyPair(TEST_ALIAS)).isTrue(); in testHasKeyPair_Installed() 220 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testHasKeyPair_Removed() 222 mDpm.removeKeyPair(null, TEST_ALIAS); in testHasKeyPair_Removed() 224 assertThat(mDpm.hasKeyPair(TEST_ALIAS)).isFalse(); in testHasKeyPair_Removed() 229 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testGetKeyPairGrants_Empty() 232 assertThat(mDpm.getKeyPairGrants(TEST_ALIAS)).isEmpty(); in testGetKeyPairGrants_Empty() 237 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testGetKeyPairGrants_NonEmpty() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | WifiTest.java | 47 private static final String TEST_ALIAS = "test_alias"; field in WifiTest 67 mDevicePolicyManager.removeKeyPair(ADMIN, TEST_ALIAS); in tearDown() 133 enterpriseConfig.setClientKeyPairAlias(TEST_ALIAS); in makeWifiEnterpriseConfig() 146 new Certificate[]{getUserCert()}, TEST_ALIAS, in prepareTestKeyPair() 149 assertTrue(mDevicePolicyManager.grantKeyPairToWifiAuth(TEST_ALIAS)); in prepareTestKeyPair()
|
D | KeyManagementTest.java | 84 private static final String TEST_ALIAS = "KeyManagementTest-keypair"; field in KeyManagementTest 131 mDevicePolicyManager.removeKeyPair(getWho(), TEST_ALIAS); in tearDown() local 729 TEST_ALIAS, /* requestAccess= */ false); in testGetKeyPairGrants_SharedUid() 730 mDevicePolicyManager.grantKeyPairToApp(getWho(), TEST_ALIAS, SHARED_UID_APP1_PKG); in testGetKeyPairGrants_SharedUid() local 734 assertThat(mDevicePolicyManager.getKeyPairGrants(TEST_ALIAS)) in testGetKeyPairGrants_SharedUid() 740 TEST_ALIAS, /* requestAccess= */ true); in testGetKeyPairGrants_DifferentUids() 741 mDevicePolicyManager.grantKeyPairToApp(getWho(), TEST_ALIAS, SHARED_UID_APP1_PKG); in testGetKeyPairGrants_DifferentUids() local 745 assertThat(mDevicePolicyManager.getKeyPairGrants(TEST_ALIAS)).isEqualTo(Map.of( in testGetKeyPairGrants_DifferentUids()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | CredentialManagementAppActivity.java | 78 private static final String TEST_ALIAS = "testAlias"; field in CredentialManagementAppActivity 81 .addAppAndUriMapping(TEST_APP_PACKAGE_NAME, TEST_URI, TEST_ALIAS) 236 TEST_ALIAS, KeyProperties.PURPOSE_SIGN | KeyProperties.PURPOSE_VERIFY) in generateKeyPair() 255 mDevicePolicyManager.setKeyPairCertificate(null, TEST_ALIAS, in createAndInstallCertificate() 363 setResult(mRequestCertificateForAuthentication, mChosenAlias.equals(TEST_ALIAS)); in alias()
|