Home
last modified time | relevance | path

Searched refs:getProvider (Results 1 – 25 of 84) sorted by relevance

1234

/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipher_ImplTest.java93 assertSame(p2, c.getProvider()); in testGetInstanceString1()
103 assertSame("Case1:", p1, c.getProvider()); in testGetInstanceString2()
108 assertSame("Case2:", p2, c.getProvider()); in testGetInstanceString2()
175 assertSame("Case1:", p2, c.getProvider()); in testGetInstanceStringString2()
178 assertSame("Case2:", p2, c.getProvider()); in testGetInstanceStringString2()
219 assertSame("Case1:", p2, c.getProvider()); in testGetInstanceStringProvider2()
222 assertSame("Case2:", p2, c.getProvider()); in testGetInstanceStringProvider2()
DKeyAgreement_Impl1Test.java75 assertEquals("Incorrect provider", keyA.getProvider(), defaultProvider); in testKeyAgreement()
81 assertNull("Provider must be null", keyA.getProvider()); in testKeyAgreement()
DSecretKeyFactory_ImplTest.java119 assertEquals("Incorrect provider", skf.getProvider(), mProv); in testGetInstance01()
183 assertEquals("Incorrect provider", skf.getProvider().getName(), in testGetInstance02()
229 assertEquals("Incorrect provider", skf.getProvider(), mProv); in testGetInstance03()
DKeyAgreement_ImplTest.java148 assertEquals("Incorrect provider", keyAgr.getProvider(), mProv); in testGetInstance01()
213 assertEquals("Incorrect provider", keyAgr.getProvider().getName(), in testGetInstance02()
260 assertEquals("Incorrect provider", keyAgr.getProvider(), mProv); in testGetInstance03()
DKeyGenerator_ImplTest.java152 assertEquals("Incorrect provider", keyGen.getProvider(), mProv); in testGetInstance01()
216 assertEquals("Incorrect provider", keyGen.getProvider().getName(), in testGetInstance02()
262 assertEquals("Incorrect provider", keyGen.getProvider(), mProv); in testGetInstance03()
DMac_ImplTest.java151 assertEquals("Incorrect provider", keyAgr.getProvider(), mProv); in testGetInstance01()
212 assertEquals("Incorrect provider", keyAgr.getProvider().getName(), in testGetInstance02()
259 assertEquals("Incorrect provider", keyAgr.getProvider(), mProv); in testGetInstance03()
/external/apache-harmony/security/src/test/api/java.injected/java/security/
DSecureRandomTest.java90 sr.getProvider() != p) { in testSecureRandom()
116 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceString()
126 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceStringString()
137 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceStringProvider()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DBCJcaJceHelper.java16 if (Security.getProvider("BC") != null) in getBouncyCastleProvider()
18 return Security.getProvider("BC"); in getBouncyCastleProvider()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowContentResolver.java95 ContentProvider provider = getProvider(url);
107 ContentProvider provider = getProvider(uri);
120 ContentProvider provider = getProvider(uri);
137 ContentProvider provider = getProvider(url);
149 ContentProvider provider = getProvider(url);
250 public static ContentProvider getProvider(Uri uri) {
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParameterGenerator1Test.java228 assertEquals("Incorrect provider", apg.getProvider().getName(), in testAlgorithmParameterGenerator06()
299 assertEquals("Incorrect provider", apg.getProvider(), validProvider); in testAlgorithmParameterGenerator09()
359 assertEquals("Incorrect provider", apg.getProvider(), validProvider); in testAlgorithmParameterGeneratorConstr()
368 assertNull("Incorrect provider", apg.getProvider()); in testAlgorithmParameterGeneratorConstr()
DSecurityTest.java165 assertNull(Security.getProvider("SOMEINCORRECTPROVIDERNAME")); in test_getProviderLjava_lang_String()
168 assertNull(Security.getProvider(null)); in test_getProviderLjava_lang_String()
176 assertSame(p, Security.getProvider(providerName)); in test_getProviderLjava_lang_String()
184 assertSame(p, Security.getProvider(p.getName())); in test_getProviderLjava_lang_String()
DAlgorithmParameterGenerator2Test.java141 assertEquals("Incorrect provider", apG.getProvider(), mProv); in testGetInstance01()
201 assertEquals("Incorrect provider", apG.getProvider().getName(), in testGetInstance02()
247 assertEquals("Incorrect provider", apG.getProvider(), mProv); in testGetInstance03()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
DCertPathBuilder1Test.java254 … assertEquals("Incorrect provider name", certPB.getProvider().getName(), defaultProviderName); in testCertPathBuilder07()
318 assertEquals("Incorrect provider name", certPB.getProvider(), defaultProvider); in testCertPathBuilder10()
361 assertEquals("Incorrect provider", certPB.getProvider(), defaultProvider); in testCertPathBuilder12()
369 assertNull("Incorrect provider", certPB.getProvider()); in testCertPathBuilder12()
DCertPathValidator1Test.java260 assertEquals("Incorrect provider name", certPV.getProvider() in testCertPathValidator07()
328 assertEquals("Incorrect provider name", certPV.getProvider(), in testCertPathValidator10()
378 assertEquals("Incorrect provider", certPV.getProvider(), defaultProvider); in testCertPathValidator12()
387 assertNull("Incorrect provider", certPV.getProvider()); in testCertPathValidator12()
DCertPathValidator2Test.java138 assertEquals("Incorrect provider", cerPV.getProvider(), mProv); in testGetInstance01()
202 assertEquals("Incorrect provider", cerPV.getProvider().getName(), in testGetInstance02()
247 assertEquals("Incorrect provider", cerPV.getProvider(), mProv); in testGetInstance03()
DCertPathBuilder2Test.java139 assertEquals("Incorrect provider", cerPB.getProvider(), mProv); in testGetInstance01()
203 assertEquals("Incorrect provider", cerPB.getProvider().getName(), in testGetInstance02()
247 assertEquals("Incorrect provider", cerPB.getProvider(), mProv); in testGetInstance03()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DSecureRandom_ImplTest.java98 assertNull("Non null provider", new SecureRandom().getProvider()); in testGetProvider()
105 assertNull("Incorrect provider", sr.getProvider()); in testGetAlgorithm()
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyGeneratorTest.java116 assertEquals("Incorrect provider", keyG.getProvider(), defaultProvider); in testKeyGenerator()
131 assertNull("Provider must be null", keyG.getProvider()); in testKeyGenerator()
261 assertEquals("Incorrect provider", keyG.getProvider().getName(), defaultProviderName); in testGetInstanceStringString03()
327 assertEquals("Incorrect provider", keyA.getProvider(), defaultProvider); in testGetInstanceStringProvider03()
DSecretKeyFactoryTest.java128 assertEquals("Incorrect provider", secKF.getProvider(), defaultProvider); in testSecretKeyFactory01()
134 assertNull("Provider must be null", secKF.getProvider()); in testSecretKeyFactory01()
267 assertEquals("Incorrect provider", secKF.getProvider().getName(), in testSecretKeyFactory06()
335 assertEquals("Incorrect provider", secKF.getProvider(), in testSecretKeyFactory09()
DExemptionMechanismTest.java60 assertEquals("Incorrect provider", em.getProvider(), mProv); in testExemptionMechanism()
78 assertNull("Incorrect provider", em.getProvider()); in testExemptionMechanism()
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
DTrustManagerFactory1Test.java263 assertEquals("Invalid provider", trustMF.getProvider(), in testTrustManagerFactory06()
335 assertEquals("Invalid provider", trustMF.getProvider(), in testTrustManagerFactory09()
357 assertEquals("Incorrect provider", tmF.getProvider(), defaultProvider); in testTrustManagerFactory10()
362 assertNull("Provider must be null", tmF.getProvider()); in testTrustManagerFactory10()
DKeyManagerFactory1Test.java263 assertEquals("Incorrect provider", kMF.getProvider().getName(), in testKeyManagerFactory06()
333 assertEquals(kMF.getProvider(), defaultProvider); in testKeyManagerFactory09()
352 assertEquals("Incorrect provider", keyMF.getProvider(), defaultProvider); in testKeyManagerFactory10()
363 assertNull("Provider must be null", keyMF.getProvider()); in testKeyManagerFactory10()
DTrustManagerFactory2Test.java141 assertEquals("Incorrect provider", tmf.getProvider(), mProv); in testGetInstance01()
207 assertEquals("Incorrect provider", tmf.getProvider().getName(), in testGetInstance02()
253 assertEquals("Incorrect provider", tmf.getProvider(), mProv); in testGetInstance03()
DKeyManagerFactory2Test.java152 assertEquals("Incorrect provider", keyMF.getProvider(), mProv); in testGetInstance01()
218 assertEquals("Incorrect provider", keyMF.getProvider().getName(), in testGetInstance02()
264 assertEquals("Incorrect provider", keyMF.getProvider(), mProv); in testGetInstance03()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/fortress/
DEngineTest.java110 Provider p = Security.getProvider("SUN"); in testGetInstanceStringProvider1()
120 Provider p = Security.getProvider("SUN"); in testGetInstanceStringProvider2()

1234