Home
last modified time | relevance | path

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

/frameworks/base/keystore/java/android/security/
DKeyChain.java616 try (KeyChainConnection keyChainConnection = KeyChain.bind(context)) { in isCredentialManagementApp() argument
617 isCredentialManagementApp = keyChainConnection.getService() in isCredentialManagementApp()
642 try (KeyChainConnection keyChainConnection = KeyChain.bind(context)) { in getCredentialManagementAppPolicy() argument
643 policy = keyChainConnection.getService().getCredentialManagementAppPolicy(); in getCredentialManagementAppPolicy()
673 try (KeyChainConnection keyChainConnection = KeyChain.bind(context)) { in setCredentialManagementApp() argument
674 keyChainConnection.getService() in setCredentialManagementApp()
701 try (KeyChainConnection keyChainConnection = KeyChain.bind(context)) { in removeCredentialManagementApp() argument
702 keyChainConnection.getService().removeCredentialManagementApp(); in removeCredentialManagementApp()
795 try (KeyChainConnection keyChainConnection = bind(context.getApplicationContext())) { in getKeyPair() argument
796 keyId = keyChainConnection.getService().requestPrivateKey(alias); in getKeyPair()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DCertificateMonitor.java88 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in installCaCert() argument
89 return keyChainConnection.getService().installCaCertificate(pemCert); in installCaCert()
100 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in uninstallCaCerts() argument
102 keyChainConnection.getService().deleteCaCertificate(aliases[i]); in uninstallCaCerts()
DDevicePolicyManagerService.java6495 try (KeyChainConnection keyChainConnection =
6497 IKeyChainService keyChain = keyChainConnection.getService();
6562 try (KeyChainConnection keyChainConnection =
6564 IKeyChainService keyChain = keyChainConnection.getService();
6598 try (KeyChainConnection keyChainConnection =
6600 return keyChainConnection.getService().containsKeyPair(alias);
6652 try (KeyChainConnection keyChainConnection =
6655 final int[] granteeUids = keyChainConnection.getService().getGrants(alias);
6706 try (KeyChainConnection keyChainConnection =
6708 IKeyChainService keyChain = keyChainConnection.getService();
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceTestable.java422 return services.keyChainConnection; in keyChainBind()
427 return services.keyChainConnection; in keyChainBindAsUser()
DMockSystemServices.java136 public final KeyChain.KeyChainConnection keyChainConnection; field in MockSystemServices
194 keyChainConnection = mock(KeyChain.KeyChainConnection.class, RETURNS_DEEP_STUBS); in MockSystemServices()
DDevicePolicyManagerTest.java1766 when(getServices().keyChainConnection.getService().getUserCaAliases()).thenReturn(oneCert); in testCertificateDisclosure()
1774 when(getServices().keyChainConnection.getService().getUserCaAliases()) in testCertificateDisclosure()
1802 when(getServices().keyChainConnection.getService().hasCredentialManagementApp()) in testRemoveCredentialManagementApp()
1804 when(getServices().keyChainConnection.getService().getCredentialManagementAppPackageName()) in testRemoveCredentialManagementApp()
1810 verify(getServices().keyChainConnection.getService()).hasCredentialManagementApp(); in testRemoveCredentialManagementApp()
1811 verify(getServices().keyChainConnection.getService()).removeCredentialManagementApp(); in testRemoveCredentialManagementApp()
6472 when(getServices().keyChainConnection.getService().installCaCertificate(caCert)) in verifyCanGetOwnerInstalledCaCerts()
6475 when(getServices().keyChainConnection.getService().getUserCaAliases()) in verifyCanGetOwnerInstalledCaCerts()
6505 reset(getServices().keyChainConnection.getService()); in verifyCanGetOwnerInstalledCaCerts()
6545 when(getServices().keyChainConnection.getService().installCaCertificate(caCert)) in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()
[all …]