Home
last modified time | relevance | path

Searched refs:providers (Results 1 – 25 of 92) sorted by relevance

1234

/external/grpc-grpc-java/core/src/main/java/io/grpc/
DNameResolverProvider.java53 private static final List<NameResolverProvider> providers = ServiceProviders.loadAll( field in NameResolverProvider
59 private static final NameResolver.Factory factory = new NameResolverFactory(providers);
66 public static List<NameResolverProvider> providers() { in providers() method in NameResolverProvider
67 return providers; in providers()
78 static NameResolver.Factory asFactory(List<NameResolverProvider> providers) { in asFactory() argument
79 return new NameResolverFactory(providers); in asFactory()
101 private final List<NameResolverProvider> providers; field in NameResolverProvider.NameResolverFactory
103 NameResolverFactory(List<NameResolverProvider> providers) { in NameResolverFactory() argument
104 this.providers = Collections.unmodifiableList(new ArrayList<>(providers)); in NameResolverFactory()
111 for (NameResolverProvider provider : providers) { in newNameResolver()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DNameResolverProviderTest.java44 List<NameResolverProvider> providers = Collections.<NameResolverProvider>emptyList(); in getDefaultScheme_noProvider() local
45 NameResolver.Factory factory = NameResolverProvider.asFactory(providers); in getDefaultScheme_noProvider()
56 List<NameResolverProvider> providers = Collections.<NameResolverProvider>singletonList( in newNameResolver_providerReturnsNull() local
65 assertNull(NameResolverProvider.asFactory(providers).newNameResolver(uri, attributes)); in newNameResolver_providerReturnsNull()
70 List<NameResolverProvider> providers = Collections.<NameResolverProvider>emptyList(); in newNameResolver_noProvider() local
71 NameResolver.Factory factory = NameResolverProvider.asFactory(providers); in newNameResolver_noProvider()
82 List<NameResolverProvider> providers = NameResolverProvider.providers(); in baseProviders() local
83 assertEquals(1, providers.size()); in baseProviders()
84 assertSame(DnsNameResolverProvider.class, providers.get(0).getClass()); in baseProviders()
DServiceProvidersTest.java104 List<ServiceProvidersTestAbstractProvider> providers = ServiceProviders.loadAll( in multipleProvider() local
106 assertEquals(3, providers.size()); in multipleProvider()
107 assertEquals(Available7Provider.class, providers.get(0).getClass()); in multipleProvider()
108 assertEquals(Available5Provider.class, providers.get(1).getClass()); in multipleProvider()
109 assertEquals(Available0Provider.class, providers.get(2).getClass()); in multipleProvider()
/external/libchrome/base/
Dpath_service.cc123 Provider* providers; // Linked list of path service providers. member
128 providers = &base_provider_win; in PathData()
130 providers = &base_provider_mac; in PathData()
132 providers = &base_provider_android; in PathData()
134 providers = &base_provider_fuchsia; in PathData()
136 providers = &base_provider_posix; in PathData()
199 provider = path_data->providers; in Get()
317 Provider *iter = path_data->providers; in RegisterProvider()
325 p->next = path_data->providers; in RegisterProvider()
326 path_data->providers = p; in RegisterProvider()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DCryptoUpcalls.java48 ArrayList<Provider> providers = new ArrayList<Provider>(1); in getExternalProviders() local
51 providers.add(p); in getExternalProviders()
54 if (providers.isEmpty()) { in getExternalProviders()
57 return providers; in getExternalProviders()
98 ArrayList<Provider> providers = getExternalProviders("Signature." + algorithm); in signDigestWithPrivateKey() local
99 for (Provider p : providers) { in signDigestWithPrivateKey()
193 ArrayList<Provider> providers = getExternalProviders("Cipher." + transformation); in rsaOpWithPrivateKey() local
194 for (Provider p : providers) { in rsaOpWithPrivateKey()
/external/conscrypt/common/src/main/java/org/conscrypt/
DCryptoUpcalls.java47 ArrayList<Provider> providers = new ArrayList<Provider>(1); in getExternalProviders() local
50 providers.add(p); in getExternalProviders()
53 if (providers.isEmpty()) { in getExternalProviders()
56 return providers; in getExternalProviders()
97 ArrayList<Provider> providers = getExternalProviders("Signature." + algorithm); in signDigestWithPrivateKey() local
98 for (Provider p : providers) { in signDigestWithPrivateKey()
192 ArrayList<Provider> providers = getExternalProviders("Cipher." + transformation); in rsaOpWithPrivateKey() local
193 for (Provider p : providers) { in rsaOpWithPrivateKey()
/external/wycheproof/java/com/google/security/wycheproof/
DWycheproofRunner.java97 ProviderType[] providers(); in providers() method
112 ProviderType[] providers(); in providers() method
126 ProviderType[] providers(); in providers() method
166 && Arrays.asList(excludedTest.providers()).contains(targetProvider.value())) { in isOkayToRunTest()
174 && Arrays.asList(ignoreOn.providers()).contains(targetProvider.value())) { in isOkayToRunTest()
183 && Arrays.asList(ignoreOn.providers()).contains(targetProvider.value())) { in isOkayToRunTest()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java431 Provider[] providers = Security.getProviders("KeyAgreement.ECDH"); in getKeyAgreementProviders() local
432 if (providers == null) { in getKeyAgreementProviders()
437 return sortByName(providers); in getKeyAgreementProviders()
441 Provider[] providers = Security.getProviders("KeyFactory.EC"); in getKeyFactoryProviders() local
442 if (providers == null) { in getKeyFactoryProviders()
449 List<Provider> filteredProvidersList = new ArrayList<Provider>(providers.length); in getKeyFactoryProviders()
450 for (Provider provider : providers) { in getKeyFactoryProviders()
456 providers = filteredProvidersList.toArray(new Provider[filteredProvidersList.size()]); in getKeyFactoryProviders()
460 return sortByName(providers); in getKeyFactoryProviders()
500 private static Provider[] sortByName(Provider[] providers) { in sortByName() argument
[all …]
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/
DKeyPairGeneratorTest.java88 private List<Provider> providers = new ArrayList<Provider>(); field in KeyPairGeneratorTest
92 Provider[] providers = Security.getProviders(); in setUp() local
93 for (Provider p : providers) { in setUp()
98 this.providers.add(p); in setUp()
105 providers.clear(); in tearDown()
111 assertTrue(providers.size() > 0); in test_providerCount()
114 assertTrue("Saw " + providers.size() + " providers", providers.size() <= 15); in test_providerCount()
193 if (providerIndex >= providers.size()) { in test_getInstance()
200 Provider provider = providers.get(providerIndex); in test_getInstance()
428 for (Provider p : providers) { in test_KeyWithAllKeyFactories()
[all …]
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java433 Provider[] providers = Security.getProviders("KeyAgreement.ECDH"); in getKeyAgreementProviders() local
434 if (providers == null) { in getKeyAgreementProviders()
439 return sortByName(providers); in getKeyAgreementProviders()
443 Provider[] providers = Security.getProviders("KeyFactory.EC"); in getKeyFactoryProviders() local
444 if (providers == null) { in getKeyFactoryProviders()
451 List<Provider> filteredProvidersList = new ArrayList<Provider>(providers.length); in getKeyFactoryProviders()
452 for (Provider provider : providers) { in getKeyFactoryProviders()
458 providers = filteredProvidersList.toArray(new Provider[filteredProvidersList.size()]); in getKeyFactoryProviders()
462 return sortByName(providers); in getKeyFactoryProviders()
502 private static Provider[] sortByName(Provider[] providers) { in sortByName() argument
[all …]
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/
DKeyPairGeneratorTest.java92 private List<Provider> providers = new ArrayList<Provider>(); field in KeyPairGeneratorTest
96 Provider[] providers = Security.getProviders(); in setUp() local
97 for (Provider p : providers) { in setUp()
102 this.providers.add(p); in setUp()
109 providers.clear(); in tearDown()
115 assertTrue(providers.size() > 0); in test_providerCount()
118 assertTrue("Saw " + providers.size() + " providers", providers.size() <= 15); in test_providerCount()
197 if (providerIndex >= providers.size()) { in test_getInstance()
204 Provider provider = providers.get(providerIndex); in test_getInstance()
431 for (Provider p : providers) { in test_KeyWithAllKeyFactories()
[all …]
DMessageDigestTest.java76 Provider[] providers = Security.getProviders(); in test_getInstance() local
77 for (Provider provider : providers) { in test_getInstance()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/cert/
DX509CertificateTest.java148 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in testMismatchedAlgorithm() local
149 for (Provider p : providers) { in testMismatchedAlgorithm()
170 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in testExplicitEcParams() local
171 for (Provider p : providers) { in testExplicitEcParams()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/cert/
DX509CertificateTest.java152 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in testMismatchedAlgorithm() local
153 for (Provider p : providers) { in testMismatchedAlgorithm()
174 Provider[] providers = Security.getProviders("CertificateFactory.X509"); in testExplicitEcParams() local
175 for (Provider p : providers) { in testExplicitEcParams()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLocationManagerTest.java105 List<String> providers = locationManager.getProviders(true); in getProviders_returnsProvidersBasedOnEnabledParameter() local
106 assertTrue(providers.contains(NETWORK_PROVIDER)); in getProviders_returnsProvidersBasedOnEnabledParameter()
107 assertThat(providers.size()).isEqualTo(1); in getProviders_returnsProvidersBasedOnEnabledParameter()
110 providers = locationManager.getProviders(true); in getProviders_returnsProvidersBasedOnEnabledParameter()
111 assertTrue(providers.contains(NETWORK_PROVIDER)); in getProviders_returnsProvidersBasedOnEnabledParameter()
112 assertTrue(providers.contains(GPS_PROVIDER)); in getProviders_returnsProvidersBasedOnEnabledParameter()
113 assertThat(providers.size()).isEqualTo(2); in getProviders_returnsProvidersBasedOnEnabledParameter()
116 providers = locationManager.getProviders(true); in getProviders_returnsProvidersBasedOnEnabledParameter()
117 assertTrue(providers.contains(NETWORK_PROVIDER)); in getProviders_returnsProvidersBasedOnEnabledParameter()
118 assertTrue(providers.contains(GPS_PROVIDER)); in getProviders_returnsProvidersBasedOnEnabledParameter()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLocationManager.java182 List<String> providers = getProviders(enabled); in getBestProviderWithCriteria() local
185 for (String provider : providers) { in getBestProviderWithCriteria()
205 for (String provider : providers) { in getBestProviderWithCriteria()
214 return providers.isEmpty()? null : providers.get(0); in getBestProviderWithCriteria()
218 List<String> providers = getProviders(enabled); in getBestProviderWithNoCriteria() local
224 } else if (providers.contains(LocationManager.GPS_PROVIDER)) { in getBestProviderWithNoCriteria()
226 } else if (providers.contains(LocationManager.NETWORK_PROVIDER)) { in getBestProviderWithNoCriteria()
495 Set<String> providers = new HashSet<>(); in getProvidersForListener() local
499 providers.add(listenerRegistration.provider); in getProvidersForListener()
503 return providers; in getProvidersForListener()
DShadowSettings.java125 Set<String> providers = new HashSet<>(); in updateEnabledProviders() local
129 providers.addAll(Arrays.asList(oldProviders.split(","))); in updateEnabledProviders()
133 providers.add(provider); in updateEnabledProviders()
135 providers.remove(provider); in updateEnabledProviders()
138 String newProviders = TextUtils.join(",", providers.toArray()); in updateEnabledProviders()
DShadowContentResolver.java75 private static final Map<String, ContentProvider> providers = new HashMap<>(); field in ShadowContentResolver
83 providers.clear(); in reset()
638 if (!providers.containsKey(authority)) {
642 providers.put(providerInfo.authority, createAndInitialize(providerInfo));
645 return providers.get(authority);
660 providers.put(authority, provider);
/external/glide/library/src/main/java/com/bumptech/glide/provider/
DDataLoadProviderRegistry.java15 private final Map<MultiClassKey, DataLoadProvider<?, ?>> providers = field in DataLoadProviderRegistry
30 providers.put(new MultiClassKey(dataClass, resourceClass), provider); in register()
46 result = providers.get(GET_KEY); in get()
/external/dagger2/core/src/main/java/dagger/internal/
DSetFactory.java58 @SuppressWarnings("unchecked") Provider<Set<T>>... providers) { in create()
59 assert providers != null : ARGUMENTS_MUST_BE_NON_NULL; in create()
61 List<Provider<Set<T>>> contributingProviders = Arrays.asList(providers); in create()
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider2.java149 final List<ThreadLocalProvider> providers; field in FactoryProvider2.AssistData
161 List<ThreadLocalProvider> providers) { in AssistData() argument
169 this.providers = providers; in AssistData()
182 .add("providers", providers) in toString()
324 List<ThreadLocalProvider> providers = Collections.emptyList(); in FactoryProvider2() local
337 providers = providerListBuilder.build(); in FactoryProvider2()
350 providers); in FactoryProvider2()
774 binder.bind((Key) paramKey).toProvider(data.providers.get(p++)); in getBindingFromNewInjector()
833 for (ThreadLocalProvider tlp : data.providers) { in invoke()
848 for (ThreadLocalProvider tlp : data.providers) { in invoke()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DTrustManagerFactoryTest.java196 Provider[] providers = Security.getProviders(); in test_TrustManagerFactory_getInstance() local
197 for (Provider provider : providers) { in test_TrustManagerFactory_getInstance()
242 Provider[] providers = Security.getProviders(); in test_TrustManagerFactory_intermediate() local
243 for (Provider provider : providers) { in test_TrustManagerFactory_intermediate()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DTrustManagerFactoryTest.java200 Provider[] providers = Security.getProviders(); in test_TrustManagerFactory_getInstance() local
201 for (Provider provider : providers) { in test_TrustManagerFactory_getInstance()
246 Provider[] providers = Security.getProviders(); in test_TrustManagerFactory_intermediate() local
247 for (Provider provider : providers) { in test_TrustManagerFactory_intermediate()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DDsaTest.java794 @SlowTest(providers = {ProviderType.BOUNCY_CASTLE, ProviderType.SPONGY_CASTLE})
883 @SlowTest(providers = {ProviderType.BOUNCY_CASTLE, ProviderType.SPONGY_CASTLE})
969 @SlowTest(providers = {ProviderType.BOUNCY_CASTLE, ProviderType.SPONGY_CASTLE})
1057 @SlowTest(providers = {ProviderType.BOUNCY_CASTLE, ProviderType.OPENJDK,
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/META-INF/services/
Dcom.sun.jdi.connect.Connector27 # List all Sun provided connector providers here. If there
28 # are providers that are only available on a particular OS

1234