Home
last modified time | relevance | path

Searched refs:installKeyPair (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DDirectDelegatedCertInstallerTest.java133 assertThat(mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, in testInstallKeyPair()
213 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testHasKeyPair_Installed()
220 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testHasKeyPair_Removed()
229 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testGetKeyPairGrants_Empty()
237 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, TEST_ALIAS, in testGetKeyPairGrants_NonEmpty()
245 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, in testIsWifiGrant_default()
252 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, in testIsWifiGrant_allowed()
260 mDpm.installKeyPair(null, mTestPrivateKey, new Certificate[]{mTestCertificate}, in testIsWifiGrant_denied()
DCertSelectionDelegateTest.java107 assertThat(mDpm.installKeyPair(null, privKey, cert, alias)).isTrue(); in testCanSelectKeychainKeypairs()
DCertInstallerReceiver.java141 sendResult(context, dpm.installKeyPair(null, privatekey, certificate, alias), in onReceive()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java143 assertThat(mDevicePolicyManager.installKeyPair(getWho(), mFakePrivKey, mFakeCert, alias)) in testCanInstallAndRemoveValidRsaKeypair()
167 mDevicePolicyManager.installKeyPair( in testCanInstallWithAutomaticAccess()
171 mDevicePolicyManager.installKeyPair( in testCanInstallWithAutomaticAccess()
210 assertThat(mDevicePolicyManager.installKeyPair(getWho(), privKey, certChain, alias, true)) in testCanInstallCertChain()
234 mDevicePolicyManager.installKeyPair( in testGrantsDoNotPersistBetweenInstallations()
247 mDevicePolicyManager.installKeyPair( in testGrantsDoNotPersistBetweenInstallations()
261 mDevicePolicyManager.installKeyPair(getWho(), null, mFakeCert, alias); in testNullKeyParamsFailPredictably()
266 mDevicePolicyManager.installKeyPair(getWho(), mFakePrivKey, null, alias); in testNullKeyParamsFailPredictably()
275 mDevicePolicyManager.installKeyPair(null, mFakePrivKey, mFakeCert, alias); in testNullAdminComponentIsDenied()
286 mDevicePolicyManager.installKeyPair( in testNotUserSelectableAliasCanBeChosenViaPolicy()
[all …]
DDelegatedCertInstallerTest.java175 installKeyPair(TestCertificates.TEST_KEY, TestCertificates.TEST_CERT, alias); in testInstallKeyPair()
184 installKeyPair(TestCertificates.TEST_KEY, TestCertificates.TEST_CERT, alias); in testInstallKeyPair()
312 private void installKeyPair(String key, String cert, String alias) { in installKeyPair() method in DelegatedCertInstallerTest
DWifiTest.java145 assertTrue(mDevicePolicyManager.installKeyPair(ADMIN, getTestKey(), in prepareTestKeyPair()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCredentialManagementAppTest.java103 () -> mDpm.installKeyPair(/* admin = */ null, PRIVATE_KEY, CERTIFICATES, in installKeyPair_withoutManageCredentialAppOp_throwsException()
140 () -> mDpm.installKeyPair(/* admin = */ null, PRIVATE_KEY, CERTIFICATES, in installKeyPair_isUserSelectableFlagSet_throwsException()
149 () -> mDpm.installKeyPair(/* admin = */ null, PRIVATE_KEY, CERTIFICATES, in installKeyPair_aliasIsNotInAuthenticationPolicy_throwsException()
159 assertThat(mDpm.installKeyPair(/* admin = */ null, PRIVATE_KEY, CERTIFICATES, in installKeyPair_isCredentialManagementApp_success()
185 mDpm.installKeyPair(/* admin = */ null, PRIVATE_KEY, CERTIFICATES, ALIAS, in hasKeyPair_isCredentialManagementApp_success()
201 mDpm.installKeyPair(/* admin = */ null, PRIVATE_KEY, CERTIFICATES, ALIAS, 0); in removeKeyPair_isCredentialManagementApp_success()
261 mDpm.installKeyPair(null, PRIVATE_KEY, new Certificate[]{CERTIFICATE}, ALIAS, 0); in choosePrivateKeyAlias_isCredentialManagementApp_aliasSelected()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DCertInstallDelegateTest.java88 mDpm.installKeyPair(null, privatekey, certificate, alias)); in testCanAccessApis()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDevicePolicyManagerWrapper.java275 doAnswer(answer).when(spy).installKeyPair(any(), any(), any(), any()); in getWrapper()