Home
last modified time | relevance | path

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

123456

/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java334 assertTrue((c == null) && cf.getProvider().getName().equals("BC")); in test_generateCertificate()
336 assertFalse(cf.getProvider().getName().equals("BC")); in test_generateCertificate()
343 assertTrue((c == null) && cf.getProvider().getName().equals("BC")); in test_generateCertificate()
345 assertFalse(cf.getProvider().getName().equals("BC")); in test_generateCertificate()
395 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
396 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
400 if ("BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
401 fail("should return null: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
411 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_InvalidStart_Failure()
412 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_InvalidStart_Failure()
[all …]
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java330 assertTrue((c == null) && cf.getProvider().getName().equals("BC")); in test_generateCertificate()
332 assertFalse(cf.getProvider().getName().equals("BC")); in test_generateCertificate()
339 assertTrue((c == null) && cf.getProvider().getName().equals("BC")); in test_generateCertificate()
341 assertFalse(cf.getProvider().getName().equals("BC")); in test_generateCertificate()
392 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
393 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
397 if ("BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_Empty()
398 fail("should return null: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_Empty()
408 if (!"BC".equals(cf.getProvider().getName())) { in test_generateCertificate_InputStream_InvalidStart_Failure()
409 fail("should throw CertificateException: " + cf.getProvider().getName()); in test_generateCertificate_InputStream_InvalidStart_Failure()
[all …]
/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/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()
DDeferredLookups.java50 public <T> Provider<T> getProvider(Key<T> key) { in getProvider() method in DeferredLookups
53 return lookup.getProvider(); in getProvider()
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/
DKeyPairGeneratorTest.java112 assertEquals(provider, kpg2.getProvider()); in test_getInstance()
122 assertEquals(provider, kpg3.getProvider()); in test_getInstance()
194 && ("SUN".equalsIgnoreCase(kpg.getProvider().getName()) in test_KeyPairGenerator()
195 || "SunPKCS11-NSS".equalsIgnoreCase(kpg.getProvider().getName())) in test_KeyPairGenerator()
216 if ("SunPKCS11-NSS".equalsIgnoreCase(kpg.getProvider().getName())) { in test_KeyPairGenerator()
260 if (kpg.getProvider().getName().equalsIgnoreCase("SunMSCAPI") in test_Key()
272 if (!kpg.getProvider().getName().equalsIgnoreCase("SunPKCS11-NSS")) { in test_Key()
281 assertEquals("Provider: " + kpg.getProvider(), k, inflatedKey); in test_Key()
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()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DKeyPairGeneratorTest.java116 assertEquals(provider, kpg2.getProvider()); in test_getInstance()
126 assertEquals(provider, kpg3.getProvider()); in test_getInstance()
198 && ("SUN".equalsIgnoreCase(kpg.getProvider().getName()) in test_KeyPairGenerator()
199 || "SunPKCS11-NSS".equalsIgnoreCase(kpg.getProvider().getName())) in test_KeyPairGenerator()
220 if ("SunPKCS11-NSS".equalsIgnoreCase(kpg.getProvider().getName())) { in test_KeyPairGenerator()
264 if (kpg.getProvider().getName().equalsIgnoreCase("SunMSCAPI") in test_Key()
276 if (!kpg.getProvider().getName().equalsIgnoreCase("SunPKCS11-NSS")) { in test_Key()
285 assertEquals("Provider: " + kpg.getProvider(), k, inflatedKey); in test_Key()
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()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DBCJcaJceHelper.java18 if (Security.getProvider("BC") != null) in getBouncyCastleProvider()
20 return Security.getProvider("BC"); in getBouncyCastleProvider()
/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/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/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/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/util/
DBCJcaJceHelper.java20 if (Security.getProvider("BC") != null) in getBouncyCastleProvider()
22 return Security.getProvider("BC"); in getBouncyCastleProvider()
/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/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()
/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()

123456