Home
last modified time | relevance | path

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

123

/external/conscrypt/src/main/java/org/conscrypt/
DCryptoUpcalls.java49 ArrayList<Provider> providers = new ArrayList<>(1); in getExternalProviders() local
52 providers.add(p); in getExternalProviders()
55 if (providers.isEmpty()) { in getExternalProviders()
58 return providers; in getExternalProviders()
104 ArrayList<Provider> providers = getExternalProviders("Signature." + algorithm); in rawSignDigestWithPrivateKey() local
105 for (Provider p : providers) { in rawSignDigestWithPrivateKey()
182 ArrayList<Provider> providers = getExternalProviders("Cipher." + transformation); in rsaDecryptWithPrivateKey() local
183 for (Provider p : providers) { in rsaDecryptWithPrivateKey()
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java76 Provider[] providers = Security.getProviders("Cipher.DES"); in test_getInstanceLjava_lang_StringLjava_lang_String() local
78 assertNotNull("No installed providers support Cipher.DES", providers); in test_getInstanceLjava_lang_StringLjava_lang_String()
80 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
81 Cipher cipher = Cipher.getInstance("DES", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
86 cipher = Cipher.getInstance("DoBeDoBeDo", providers[i]); in test_getInstanceLjava_lang_StringLjava_lang_String()
117 Provider[] providers = Security.getProviders("Cipher.DES"); in test_getInstanceLjava_lang_StringLjava_security_Provider() local
119 assertNotNull("No installed providers support Cipher.DES", providers); in test_getInstanceLjava_lang_StringLjava_security_Provider()
121 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_security_Provider()
122 Cipher cipher = Cipher.getInstance("DES", providers[i]); in test_getInstanceLjava_lang_StringLjava_security_Provider()
132 Provider[] providers = Security.getProviders("Cipher.AES"); in test_getProvider() local
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DSecurityTest.java136 Provider[] providers; in testRemoveProvider() local
139 providers = Security.getProviders(); in testRemoveProvider()
142 for (int i = 0; i < providers.length; i++) { in testRemoveProvider()
143 Security.removeProvider(providers[i].getName()); in testRemoveProvider()
148 for (int i = 0; i < providers.length; i++) { in testRemoveProvider()
149 Security.addProvider(providers[i]); in testRemoveProvider()
153 assertEquals("Providers not restored correctly", providers[i], in testRemoveProvider()
171 Provider[] providers = Security.getProviders(); in test_getProviderLjava_lang_String() local
173 providers.length > 0); in test_getProviderLjava_lang_String()
174 for (Provider p : providers) { in test_getProviderLjava_lang_String()
DSecureRandom2Test.java83 Provider[] providers = Security in test_getInstanceLjava_lang_StringLjava_lang_String() local
85 if (providers != null) { in test_getInstanceLjava_lang_StringLjava_lang_String()
86 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
88 .getInstance("SHA1PRNG", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
DKeyPairGenerator4Test.java64 Provider[] providers = Security.getProviders("KeyPairGenerator.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() local
66 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
67 KeyPairGenerator.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
DKeyFactory2Test.java212 Provider[] providers = Security.getProviders("KeyFactory.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() local
213 if (providers != null) { in test_getInstanceLjava_lang_StringLjava_lang_String()
214 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
215 KeyFactory.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
346 Provider[] providers = Security.getProviders(); in setUp() local
349 for (Provider provider : providers) { in setUp()
DSignature2Test.java79 Provider[] providers = Security.getProviders("Signature.DSA"); in test_getInstanceLjava_lang_StringLjava_lang_String() local
81 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
82 Signature.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
DMessageDigest2Test.java422 Provider[] providers = Security.getProviders("MessageDigest.SHA"); in setUp() local
423 if (providers == null) { in setUp()
428 providerName = providers[0].getName(); in setUp()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DSecureRandom_ImplTest.java39 Provider providers[] = Security.getProviders(); field in SecureRandom_ImplTest
47 for (int i = 0; i < providers.length; i++) { in setUp()
48 Security.removeProvider(providers[i].getName()); in setUp()
58 for (int i = 0; i < providers.length; i++) { in tearDown()
59 Security.addProvider(providers[i]); in tearDown()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowLocationManager.java155 List<String> providers = getProviders(enabled); in getBestProviderWithCriteria() local
158 for (String provider : providers) { in getBestProviderWithCriteria()
178 for (String provider : providers) { in getBestProviderWithCriteria()
187 return providers.isEmpty()? null : providers.get(0); in getBestProviderWithCriteria()
191 List<String> providers = getProviders(enabled); in getBestProviderWithNoCriteria() local
197 } else if (providers.contains(LocationManager.GPS_PROVIDER)) { in getBestProviderWithNoCriteria()
199 } else if (providers.contains(LocationManager.NETWORK_PROVIDER)) { in getBestProviderWithNoCriteria()
365 Set<String> providers = requestLocationUpdateListenersMap.get(listener); in getProvidersForListener() local
366 … return providers == null ? Collections.<String>emptyList() : new ArrayList<String>(providers); in getProvidersForListener()
DShadowContentResolver.java34 …private static final Map<String, ContentProvider> providers = new HashMap<String, ContentProvider>… field in ShadowContentResolver
39 providers.clear(); in reset()
256 return providers.get(uri.getAuthority());
261 providers.put(authority, provider);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassPath.java176 List<ClassProvider> providers = Lists.newArrayList(); in fromClassPath() local
192 providers.add(new DexClassProvider(classPathDexFile)); in fromClassPath()
195 providers.add(new DexClassProvider(dexFile)); in fromClassPath()
196 return new ClassPath(providers, checkPackagePrivateAccess, oatVersion); in fromClassPath()
203 List<ClassProvider> providers = Lists.newArrayList(); in fromClassPath() local
209 providers.add(new DexClassProvider(classPathDexFile)); in fromClassPath()
212 providers.add(new DexClassProvider(dexFile)); in fromClassPath()
213 return new ClassPath(providers, checkPackagePrivateAccess, oatVersion); in fromClassPath()
/external/apache-harmony/security/src/test/impl/java.injected/java/security/
DSecurity_ImplTest.java58 Provider[] providers; in testGetProviders() local
60 providers = Security.getProviders(); in testGetProviders()
61 for (int i = 0; i < providers.length; i++) { in testGetProviders()
63 assertEquals("Incorrect provider number", i + 1, providers[i] in testGetProviders()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DLocationManagerTest.java84 List<String> providers = locationManager.getProviders(true); in shouldReturnEnabledProviders() local
85 assertTrue(providers.contains(NETWORK_PROVIDER)); in shouldReturnEnabledProviders()
86 assertThat(providers.size(), equalTo(1)); in shouldReturnEnabledProviders()
89 providers = locationManager.getProviders(true); in shouldReturnEnabledProviders()
90 assertTrue(providers.contains(NETWORK_PROVIDER)); in shouldReturnEnabledProviders()
91 assertTrue(providers.contains(GPS_PROVIDER)); in shouldReturnEnabledProviders()
92 assertThat(providers.size(), equalTo(2)); in shouldReturnEnabledProviders()
95 providers = locationManager.getProviders(true); in shouldReturnEnabledProviders()
96 assertTrue(providers.contains(NETWORK_PROVIDER)); in shouldReturnEnabledProviders()
97 assertTrue(providers.contains(GPS_PROVIDER)); in shouldReturnEnabledProviders()
[all …]
/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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
DCertificateFactory4Test.java166 Provider[] providers = Security in test_getInstanceLjava_lang_StringLjava_lang_String() local
169 if (providers != null) { in test_getInstanceLjava_lang_StringLjava_lang_String()
170 for (int i = 0; i < providers.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
172 "X.509", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider2.java136 final List<ThreadLocalProvider> providers; field in FactoryProvider2.AssistData
143 boolean optimized, List<ThreadLocalProvider> providers) { in AssistData() argument
151 this.providers = providers; in AssistData()
164 .add("providers", providers) in toString()
294 List<ThreadLocalProvider> providers = Collections.emptyList(); in FactoryProvider2() local
307 providers = providerListBuilder.build(); in FactoryProvider2()
318 providers); in FactoryProvider2()
710 binder.bind((Key) paramKey).toProvider(data.providers.get(p++)); in getBindingFromNewInjector()
767 for(ThreadLocalProvider tlp : data.providers) { in invoke()
782 for(ThreadLocalProvider tlp : data.providers) { in invoke()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/category/
DPropertyCategoryProviders.java62 public static PropertyCategoryProvider combine(final PropertyCategoryProvider... providers) { in combine() argument
65 for (PropertyCategoryProvider provider : providers) { in combine()
/external/svox/pico/src/com/svox/pico/providers/
DSettingsProvider.java16 package com.svox.pico.providers;
/external/dagger2/lib/
Dauto-service-1.0-rc2.jar ... private com.google.common.collect.Multimap providers public void <init> () public com. ...
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DMultibinder.java468 Provider<T>[] providers = new Provider[size]; in get() local
470 providers[i] = bindings.get(i).getProvider(); in get()
472 return ImmutableList.copyOf(providers); in get()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.help_3.5.0.v20100524.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DMultibinderTest.java1153 Collection<Provider<String>> providers = in testMultibinderCanInjectCollectionOfProviders() local
1155 assertEquals(expectedValues, collectValues(providers)); in testMultibinderCanInjectCollectionOfProviders()
1177 Collection<Provider<String>> providers = in testMultibinderCanInjectCollectionOfProvidersWithAnnotation() local
1179 Collection<String> values = collectValues(providers); in testMultibinderCanInjectCollectionOfProvidersWithAnnotation()
1214 Collection<? extends javax.inject.Provider<T>> providers) { in collectValues() argument
1216 for (javax.inject.Provider<T> provider : providers) { in collectValues()
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/
DInterpreterConfiguration.java157 ProviderInfo provider = packInfo.providers[0]; in buildInterpreter()

123