Home
last modified time | relevance | path

Searched refs:keyChainConnection (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DCertificateMonitor.java90 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in installCaCert() argument
91 return keyChainConnection.getService().installCaCertificate(pemCert); in installCaCert()
102 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in uninstallCaCerts() argument
104 keyChainConnection.getService().deleteCaCertificate(aliases[i]); in uninstallCaCerts()
DDevicePolicyManagerService.java5655 final KeyChainConnection keyChainConnection = in installKeyPair() local
5658 IKeyChainService keyChain = keyChainConnection.getService(); in installKeyPair()
5676 keyChainConnection.close(); in installKeyPair()
5695 final KeyChainConnection keyChainConnection = KeyChain.bindAsUser(mContext, userHandle); in removeKeyPair() local
5697 IKeyChainService keyChain = keyChainConnection.getService(); in removeKeyPair()
5709 keyChainConnection.close(); in removeKeyPair()
5840 try (KeyChainConnection keyChainConnection = in generateKeyPair() argument
5842 IKeyChainService keyChain = keyChainConnection.getService(); in generateKeyPair()
5918 try (final KeyChainConnection keyChainConnection = in setKeyPairCertificate() argument
5920 IKeyChainService keyChain = keyChainConnection.getService(); in setKeyPairCertificate()
/frameworks/base/keystore/java/android/security/
DKeyChain.java581 try (KeyChainConnection keyChainConnection = bind(context.getApplicationContext())) { in getKeyPair() argument
582 keyId = keyChainConnection.getService().requestPrivateKey(alias); in getKeyPair()
636 try (KeyChainConnection keyChainConnection = bind(context.getApplicationContext())) { in getCertificateChain() argument
637 IKeyChainService keyChainService = keyChainConnection.getService(); in getCertificateChain()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java110 public final KeyChain.KeyChainConnection keyChainConnection; field in MockSystemServices
149 keyChainConnection = mock(KeyChain.KeyChainConnection.class, RETURNS_DEEP_STUBS); in MockSystemServices()
DDevicePolicyManagerServiceTestable.java434 return services.keyChainConnection; in keyChainBindAsUser()
DDevicePolicyManagerTest.java1418 when(getServices().keyChainConnection.getService().getUserCaAliases()).thenReturn(oneCert); in testCertificateDisclosure()
1426 … when(getServices().keyChainConnection.getService().getUserCaAliases()).thenReturn(fourCerts); in testCertificateDisclosure()
4813 when(getServices().keyChainConnection.getService().installCaCertificate(caCert)) in verifyCanGetOwnerInstalledCaCerts()
4816 when(getServices().keyChainConnection.getService().getUserCaAliases()) in verifyCanGetOwnerInstalledCaCerts()
4844 reset(getServices().keyChainConnection.getService()); in verifyCanGetOwnerInstalledCaCerts()
4883 when(getServices().keyChainConnection.getService().installCaCertificate(caCert)) in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()
4889 when(getServices().keyChainConnection.getService().getUserCaAliases()) in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()