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.java5671 final KeyChainConnection keyChainConnection = in installKeyPair() local
5674 IKeyChainService keyChain = keyChainConnection.getService(); in installKeyPair()
5692 keyChainConnection.close(); in installKeyPair()
5711 final KeyChainConnection keyChainConnection = KeyChain.bindAsUser(mContext, userHandle); in removeKeyPair() local
5713 IKeyChainService keyChain = keyChainConnection.getService(); in removeKeyPair()
5725 keyChainConnection.close(); in removeKeyPair()
5856 try (KeyChainConnection keyChainConnection = in generateKeyPair() argument
5858 IKeyChainService keyChain = keyChainConnection.getService(); in generateKeyPair()
5934 try (final KeyChainConnection keyChainConnection = in setKeyPairCertificate() argument
5936 IKeyChainService keyChain = keyChainConnection.getService(); in setKeyPairCertificate()
/frameworks/base/keystore/java/android/security/
DKeyChain.java591 try (KeyChainConnection keyChainConnection = bind(context.getApplicationContext())) { in getKeyPair() argument
592 keyId = keyChainConnection.getService().requestPrivateKey(alias); in getKeyPair()
646 try (KeyChainConnection keyChainConnection = bind(context.getApplicationContext())) { in getCertificateChain() argument
647 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.java1445 when(getServices().keyChainConnection.getService().getUserCaAliases()).thenReturn(oneCert); in testCertificateDisclosure()
1453 … when(getServices().keyChainConnection.getService().getUserCaAliases()).thenReturn(fourCerts); in testCertificateDisclosure()
4840 when(getServices().keyChainConnection.getService().installCaCertificate(caCert)) in verifyCanGetOwnerInstalledCaCerts()
4843 when(getServices().keyChainConnection.getService().getUserCaAliases()) in verifyCanGetOwnerInstalledCaCerts()
4871 reset(getServices().keyChainConnection.getService()); in verifyCanGetOwnerInstalledCaCerts()
4910 when(getServices().keyChainConnection.getService().installCaCertificate(caCert)) in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()
4916 when(getServices().keyChainConnection.getService().getUserCaAliases()) in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()