Searched refs:keyChainConnection (Results 1 – 6 of 6) sorted by relevance
90 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in installCaCert() argument91 return keyChainConnection.getService().installCaCertificate(pemCert); in installCaCert()102 try (KeyChainConnection keyChainConnection = mInjector.keyChainBindAsUser(userHandle)) { in uninstallCaCerts() argument104 keyChainConnection.getService().deleteCaCertificate(aliases[i]); in uninstallCaCerts()
5671 final KeyChainConnection keyChainConnection = in installKeyPair() local5674 IKeyChainService keyChain = keyChainConnection.getService(); in installKeyPair()5692 keyChainConnection.close(); in installKeyPair()5711 final KeyChainConnection keyChainConnection = KeyChain.bindAsUser(mContext, userHandle); in removeKeyPair() local5713 IKeyChainService keyChain = keyChainConnection.getService(); in removeKeyPair()5725 keyChainConnection.close(); in removeKeyPair()5856 try (KeyChainConnection keyChainConnection = in generateKeyPair() argument5858 IKeyChainService keyChain = keyChainConnection.getService(); in generateKeyPair()5934 try (final KeyChainConnection keyChainConnection = in setKeyPairCertificate() argument5936 IKeyChainService keyChain = keyChainConnection.getService(); in setKeyPairCertificate()
591 try (KeyChainConnection keyChainConnection = bind(context.getApplicationContext())) { in getKeyPair() argument592 keyId = keyChainConnection.getService().requestPrivateKey(alias); in getKeyPair()646 try (KeyChainConnection keyChainConnection = bind(context.getApplicationContext())) { in getCertificateChain() argument647 IKeyChainService keyChainService = keyChainConnection.getService(); in getCertificateChain()
110 public final KeyChain.KeyChainConnection keyChainConnection; field in MockSystemServices149 keyChainConnection = mock(KeyChain.KeyChainConnection.class, RETURNS_DEEP_STUBS); in MockSystemServices()
434 return services.keyChainConnection; in keyChainBindAsUser()
1445 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()