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()
5655 final KeyChainConnection keyChainConnection = in installKeyPair() local5658 IKeyChainService keyChain = keyChainConnection.getService(); in installKeyPair()5676 keyChainConnection.close(); in installKeyPair()5695 final KeyChainConnection keyChainConnection = KeyChain.bindAsUser(mContext, userHandle); in removeKeyPair() local5697 IKeyChainService keyChain = keyChainConnection.getService(); in removeKeyPair()5709 keyChainConnection.close(); in removeKeyPair()5840 try (KeyChainConnection keyChainConnection = in generateKeyPair() argument5842 IKeyChainService keyChain = keyChainConnection.getService(); in generateKeyPair()5918 try (final KeyChainConnection keyChainConnection = in setKeyPairCertificate() argument5920 IKeyChainService keyChain = keyChainConnection.getService(); in setKeyPairCertificate()
581 try (KeyChainConnection keyChainConnection = bind(context.getApplicationContext())) { in getKeyPair() argument582 keyId = keyChainConnection.getService().requestPrivateKey(alias); in getKeyPair()636 try (KeyChainConnection keyChainConnection = bind(context.getApplicationContext())) { in getCertificateChain() argument637 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()
1418 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()