Home
last modified time | relevance | path

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

1234567

/external/guice/core/src/com/google/inject/
DAbstractModule.java158 binder().getProvider(key); in requireBinding()
169 binder().getProvider(type); in requireBinding()
176 protected <T> Provider<T> getProvider(Key<T> key) { in getProvider() method in AbstractModule
177 return binder().getProvider(key); in getProvider()
184 protected <T> Provider<T> getProvider(Class<T> type) { in getProvider() method in AbstractModule
185 return binder().getProvider(type); in getProvider()
DPrivateModule.java214 binder().getProvider(key); in requireBinding()
219 binder().getProvider(type); in requireBinding()
223 protected final <T> Provider<T> getProvider(Key<T> key) { in getProvider() method in PrivateModule
224 return binder().getProvider(key); in getProvider()
228 protected final <T> Provider<T> getProvider(Class<T> type) { in getProvider() method in PrivateModule
229 return binder().getProvider(type); in getProvider()
DBinder.java285 <T> Provider<T> getProvider(Key<T> key); in getProvider() method
296 <T> Provider<T> getProvider(Dependency<T> dependency); in getProvider() method
305 <T> Provider<T> getProvider(Class<T> type); in getProvider() method
/external/guice/core/test/com/google/inject/
DEagerSingletonTest.java44 getProvider(A.class); in testJustInTimeEagerSingletons()
67 injector.getProvider(B.class); in testJustInTimeSingletonsAreNotEager()
101 getProvider(A.class); in testJustInTimeEagerSingletons_multipleThreads()
115 injector.getProvider(jitBinding); in testJustInTimeEagerSingletons_multipleThreads()
181 injector.getProvider(B.class);
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()
62 assertEquals(5, i.getProvider().get()); in testConstantBinding()
82 assertSame(bar, fooBinding.getProvider().get()); in testLinkedBinding()
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java441 assertTrue((c == null) && cf.getProvider().getName().equals("BC")); in test_generateCertificate()
443 assertFalse(cf.getProvider().getName().equals("BC")); in test_generateCertificate()
450 assertTrue((c == null) && cf.getProvider().getName().equals("BC")); in test_generateCertificate()
452 assertFalse(cf.getProvider().getName().equals("BC")); in test_generateCertificate()
503 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
504 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
508 if ("BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
509 fail("should return null: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
519 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_InvalidStart_Failure()
520 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_InvalidStart_Failure()
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java448 assertTrue((c == null) && cf.getProvider().getName().equals("BC")); in test_generateCertificate()
450 assertFalse(cf.getProvider().getName().equals("BC")); in test_generateCertificate()
457 assertTrue((c == null) && cf.getProvider().getName().equals("BC")); in test_generateCertificate()
459 assertFalse(cf.getProvider().getName().equals("BC")); in test_generateCertificate()
509 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
510 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
514 if ("BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
515 fail("should return null: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
525 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_InvalidStart_Failure()
526 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_InvalidStart_Failure()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowContentResolver.java188 ContentProvider provider = getProvider(url);
213 ContentProvider provider = getProvider(uri);
230 ContentProvider provider = getProvider(uri);
252 ContentProvider provider = getProvider(uri);
269 ContentProvider provider = getProvider(uri);
279 ContentProvider cp = getProvider(uri);
289 ContentProvider provider = getProvider(name);
298 ContentProvider provider = getProvider(uri);
307 ContentProvider provider = getProvider(name);
316 ContentProvider provider = getProvider(uri);
[all …]
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptTest.java69 assertEquals(p, context.getProvider()); in testProviderBuilder()
76 assertEquals(p, context.getProvider()); in testProviderBuilder()
97 assertEquals(p, context.getProvider()); in testProviderBuilder()
105 assertEquals(p, context.getProvider()); in testProviderBuilder()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DConscryptTest.java74 assertEquals(p, context.getProvider()); in testProviderBuilder()
81 assertEquals(p, context.getProvider()); in testProviderBuilder()
103 assertEquals(p, context.getProvider()); in testProviderBuilder()
111 assertEquals(p, context.getProvider()); in testProviderBuilder()
/external/guice/core/src/com/google/inject/internal/
DEncounterImpl.java130 public <T> Provider<T> getProvider(Key<T> key) { in getProvider() method in EncounterImpl
132 return lookups.getProvider(key); in getProvider()
136 public <T> Provider<T> getProvider(Class<T> type) { in getProvider() method in EncounterImpl
137 return getProvider(Key.get(type)); in getProvider()
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/
DAlgorithmParametersPSSTest.java83 assertNotNull(params.getProvider()); in testGetProvider()
165 if (!"BC".equals(params.getProvider().getName())) { in testGetEncodedWithBrokenInput()
167 "Unexpected exception. Provider: " + params.getProvider(), in testGetEncodedWithBrokenInput()
179 if (!"BC".equals(params.getProvider().getName())) { in testGetEncodedWithBrokenInput()
181 "Unexpected exception. Provider: " + params.getProvider(), in testGetEncodedWithBrokenInput()
DKeyPairGeneratorTest.java112 assertEquals(provider, kpg2.getProvider()); in test_getInstance()
122 assertEquals(provider, kpg3.getProvider()); in test_getInstance()
195 && ("SUN".equalsIgnoreCase(kpg.getProvider().getName()) in test_KeyPairGenerator()
196 || "SunPKCS11-NSS".equalsIgnoreCase(kpg.getProvider().getName())) in test_KeyPairGenerator()
217 if ("SunPKCS11-NSS".equalsIgnoreCase(kpg.getProvider().getName())) { in test_KeyPairGenerator()
261 if (kpg.getProvider().getName().equalsIgnoreCase("SunMSCAPI") in test_Key()
273 if (!kpg.getProvider().getName().equalsIgnoreCase("SunPKCS11-NSS")) { in test_Key()
282 assertEquals("Provider: " + kpg.getProvider(), k, inflatedKey); in test_Key()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DAlgorithmParametersPSSTest.java87 assertNotNull(params.getProvider()); in testGetProvider()
169 if (!"BC".equals(params.getProvider().getName())) { in testGetEncodedWithBrokenInput()
171 "Unexpected exception. Provider: " + params.getProvider(), in testGetEncodedWithBrokenInput()
183 if (!"BC".equals(params.getProvider().getName())) { in testGetEncodedWithBrokenInput()
185 "Unexpected exception. Provider: " + params.getProvider(), in testGetEncodedWithBrokenInput()
DKeyPairGeneratorTest.java116 assertEquals(provider, kpg2.getProvider()); in test_getInstance()
126 assertEquals(provider, kpg3.getProvider()); in test_getInstance()
199 && ("SUN".equalsIgnoreCase(kpg.getProvider().getName()) in test_KeyPairGenerator()
200 || "SunPKCS11-NSS".equalsIgnoreCase(kpg.getProvider().getName())) in test_KeyPairGenerator()
221 if ("SunPKCS11-NSS".equalsIgnoreCase(kpg.getProvider().getName())) { in test_KeyPairGenerator()
265 if (kpg.getProvider().getName().equalsIgnoreCase("SunMSCAPI") in test_Key()
277 if (!kpg.getProvider().getName().equalsIgnoreCase("SunPKCS11-NSS")) { in test_Key()
286 assertEquals("Provider: " + kpg.getProvider(), k, inflatedKey); in test_Key()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsonschema/
DNewSchemaTest.java116 return new JsonObjectFormatVisitor.Base(getProvider()) { in expectObjectFormat()
142 final SerializerProvider prov = getProvider(); in expectObjectFormat()
153 … JsonFormatVisitorWrapper visitor = new JsonFormatVisitorWrapper.Base(getProvider()); in expectObjectFormat()
161 return new JsonArrayFormatVisitor.Base(getProvider()); in expectArrayFormat()
302 return new JsonObjectFormatVisitor.Base(getProvider()) {
311 final SerializerProvider prov = getProvider();
/external/guice/extensions/jmx/src/com/google/inject/tools/jmx/
DManagedBinding.java40 public String getProvider() { in getProvider() method in ManagedBinding
41 return binding.getProvider().toString(); in getProvider()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DKeyGeneratorTest.java54 return kg.getProvider().getName().startsWith("Sun") in isUnsupported()
55 || (StandardNames.IS_RI && kg.getProvider().getName().equals("BC")); in isUnsupported()
82 assertEquals(provider, kg2.getProvider()); in test_getInstance()
88 assertEquals(provider, kg3.getProvider()); in test_getInstance()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DKeyGeneratorTest.java57 return kg.getProvider().getName().startsWith("Sun") in isUnsupported()
58 || (StandardNames.IS_RI && kg.getProvider().getName().equals("BC")); in isUnsupported()
85 assertEquals(provider, kg2.getProvider()); in test_getInstance()
91 assertEquals(provider, kg3.getProvider()); in test_getInstance()
/external/guice/core/src/com/google/inject/spi/
DTypeEncounter.java60 <T> Provider<T> getProvider(Key<T> key); in getProvider() method
67 <T> Provider<T> getProvider(Class<T> type); in getProvider() method
/external/conscrypt/repackaged/testing/src/main/java/tests/util/
DServiceTester.java87 Provider p = Security.getProvider(name); in withProviders()
101 Provider p = Security.getProvider(provider); in skipProvider()
142 Provider p = Security.getProvider(provider); in skipCombination()
/external/conscrypt/testing/src/main/java/tests/util/
DServiceTester.java82 Provider p = Security.getProvider(name); in withProviders()
96 Provider p = Security.getProvider(provider); in skipProvider()
137 Provider p = Security.getProvider(provider); in skipCombination()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/
DTrustManagerFactoryTest.java68 && !Conscrypt.isConscrypt(tmf.getProvider())); in supportsManagerFactoryParameters()
84 assertNotNull(tmf.getProvider()); in test_TrustManagerFactory()
153 test_X509TrustManager(tmf.getProvider(), (X509TrustManager) trustManager); in test_TrustManagerFactory_getTrustManagers()
205 assertEquals(provider, tmf.getProvider()); in test_TrustManagerFactory_getInstance()
210 assertEquals(provider, tmf.getProvider()); in test_TrustManagerFactory_getInstance()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DTrustManagerFactoryTest.java72 && !Conscrypt.isConscrypt(tmf.getProvider())); in supportsManagerFactoryParameters()
88 assertNotNull(tmf.getProvider()); in test_TrustManagerFactory()
157 test_X509TrustManager(tmf.getProvider(), (X509TrustManager) trustManager); in test_TrustManagerFactory_getTrustManagers()
209 assertEquals(provider, tmf.getProvider()); in test_TrustManagerFactory_getInstance()
214 assertEquals(provider, tmf.getProvider()); in test_TrustManagerFactory_getInstance()

1234567