Home
last modified time | relevance | path

Searched refs:ALIAS (Results 1 – 10 of 10) sorted by relevance

/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/
DDeviceAdminChoosePrivateKeyAliasEventTest.java53 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/
DAppUriAuthenticationPolicyTest.java43 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 …]
DCredentialManagementAppTest.java86 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 …]
DCaCertManagementTest.java80 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/
DKeyGenerationUtils.java31 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/
DKeyChainTestActivity.java62 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/
DEventLibDelegatedAdminReceiverTest.java49 private static final String ALIAS = "alias"; field in EventLibDelegatedAdminReceiverTest
62 receiver.onChoosePrivateKeyAlias(sContext, sIntent, UID, URI, ALIAS); in choosePrivateKeyAlias_logsChoosePrivateKeyAliasEvent()
DEventLibDeviceAdminReceiverTest.java85 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/
DImportWrappedKeyTest.java108 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/
DKeyChainTest.java86 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()