Home
last modified time | relevance | path

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

1234567

/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()
/external/guice/core/src/com/google/inject/
DAbstractModule.java184 binder().getProvider(key); in requireBinding()
196 binder().getProvider(type); in requireBinding()
203 protected <T> Provider<T> getProvider(Key<T> key) { in getProvider() method in AbstractModule
204 return binder().getProvider(key); in getProvider()
211 protected <T> Provider<T> getProvider(Class<T> type) { in getProvider() method in AbstractModule
212 return binder().getProvider(type); in getProvider()
DPrivateModule.java237 binder().getProvider(key); in requireBinding()
244 binder().getProvider(type); in requireBinding()
250 protected final <T> Provider<T> getProvider(Key<T> key) { in getProvider() method in PrivateModule
251 return binder().getProvider(key); in getProvider()
257 protected final <T> Provider<T> getProvider(Class<T> type) { in getProvider() method in PrivateModule
258 return binder().getProvider(type); in getProvider()
DBinder.java325 <T> Provider<T> getProvider(Key<T> key); in getProvider() method
337 <T> Provider<T> getProvider(Dependency<T> dependency); in getProvider() method
347 <T> Provider<T> getProvider(Class<T> type); in getProvider() method
DInjector.java171 <T> Provider<T> getProvider(Key<T> key); in getProvider() method
180 <T> Provider<T> getProvider(Class<T> type); in getProvider() method
/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/guice/core/test/com/google/inject/
DEagerSingletonTest.java36 getProvider(A.class); in testJustInTimeEagerSingletons()
55 injector.getProvider(B.class); in testJustInTimeSingletonsAreNotEager()
76 injector.getProvider(B.class); in A()
DLoggerInjectionTest.java43 assertNull(injector.getProvider(Logger.class).get().getName()); in testLoggerWithoutMember()
44 assertNull(injector.getBinding(Logger.class).getProvider().get().getName()); in testLoggerWithoutMember()
45 assertEquals("Provider<Logger>", injector.getProvider(Logger.class).toString()); in testLoggerWithoutMember()
DReflectionTest.java45 assertSame(foo, fooBinding.getProvider().get()); in testNormalBinding()
59 assertEquals(5, i.getProvider().get()); in testConstantBinding()
76 assertSame(bar, fooBinding.getProvider().get()); in testLinkedBinding()
DTypeListenerTest.java137 Provider<A> aProvider = injector.getProvider(A.class); in testInstallingInjectionListener()
215 injector.getProvider(B.class);
273 Provider<B> bProvider = injector.getProvider(B.class);
343 Provider<A> aProvider = injector.getProvider(A.class);
380 Provider<B> bProvider = encounter.getProvider(B.class);
418 assertNotNull(encounter.getProvider(B.class).get());
514 Provider<B> bProvider = injector.getProvider(B.class);
601 encounter.getProvider(B.class);
/external/guice/core/src/com/google/inject/internal/
DEncounterImpl.java127 public <T> Provider<T> getProvider(Key<T> key) { in getProvider() method in EncounterImpl
129 return lookups.getProvider(key); in getProvider()
132 public <T> Provider<T> getProvider(Class<T> type) { in getProvider() method in EncounterImpl
133 return getProvider(Key.get(type)); in getProvider()
DDeferredLookups.java52 public <T> Provider<T> getProvider(Key<T> key) { in getProvider() method in DeferredLookups
55 return lookup.getProvider(); in getProvider()
/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/guice/extensions/jmx/src/com/google/inject/tools/jmx/
DManagedBinding.java37 public String getProvider() { in getProvider() method in ManagedBinding
38 return binding.getProvider().toString(); in getProvider()
/external/robolectric/v1/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/guice/core/src/com/google/inject/spi/
DTypeEncounter.java63 <T> Provider<T> getProvider(Key<T> key); in getProvider() method
70 <T> Provider<T> getProvider(Class<T> type); in getProvider() method
/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()
/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()
/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()
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
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()
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()

1234567