/external/guice/extensions/mini/src/com/google/inject/mini/ |
MiniGuice.java | 36 import javax.inject.Provider; 48 private final Map<Key, Provider<?>> bindings = new HashMap<Key, Provider<?>>(); 69 * <li>Injection of {@link Provider}s. 88 Provider<?> provider = miniGuice.bindings.get(key); local 89 return type.cast(provider.get()); 93 Map<Key, Provider<?>> providerBindings = new HashMap<Key, Provider<?>>(); 94 for (final Map.Entry<Key, Provider<?>> binding : bindings.entrySet()) 121 Provider<?> provider = bindings.get(key); local [all...] |
/external/conscrypt/src/main/java/org/conscrypt/ |
CryptoUpcalls.java | 22 import java.security.Provider; 41 private static boolean isOurProvider(Provider p) { 48 private static ArrayList<Provider> getExternalProviders(String algorithm) { 49 ArrayList<Provider> providers = new ArrayList<>(1); 50 for (Provider p : Security.getProviders(algorithm)) { 56 System.err.println("Could not find external provider for algorithm: " + algorithm); 83 // try to get the most preferred provider as long as it isn't us. 96 System.err.println("Preferred provider doesn't support key:"); 101 // If the preferred provider was us, fall back to trying to find the 102 // first not-us provider that initializes correctly [all...] |
/external/dagger2/core/src/test/java/dagger/internal/ |
SetFactoryTest.java | 24 import javax.inject.Provider; 41 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 53 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 65 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 81 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 115 private static Provider<Set<Integer>> incrementingIntegerProvider(int seed) { 117 return new Provider<Set<Integer>>() { 125 private static Provider<Set<Integer>> integerSetProvider(Range<Integer> range) { 127 return new Provider<Set<Integer>>() {
|
ScopedProviderTest.java | 18 import javax.inject.Provider; 41 Provider<Object> scopedProvider = ScopedProvider.create(new Factory<Object>() { 54 Provider<Integer> scopedProvider = ScopedProvider.create(new Factory<Integer>() {
|
/external/apache-harmony/security/src/test/api/java.injected/java/security/ |
ProviderTest.java | 40 * Tests for <code>Provider</code> constructor and methods 44 Provider p; 60 .getResourceStream("java/security/Provider.prop.dat")); 66 !String.valueOf(p.getName()).equals(p.getProperty("Provider.id name").trim()) || 67 !String.valueOf(p.getVersion()).equals(p.getProperty("Provider.id version").trim()) || 68 !String.valueOf(p.getInfo()).equals(p.getProperty("Provider.id info").trim()) || 69 !p.getClass().getName().equals(p.getProperty("Provider.id className").trim()) || 87 Provider.Service s = new Provider.Service(p, "Type", "Algorithm", 95 Provider.Service s1 = p.getService("MessageDigest", "AbC") [all...] |
/external/dagger2/core/src/main/java/dagger/internal/ |
SetFactory.java | 23 import javax.inject.Provider; 31 * whose elements are populated by subsequent calls to their {@link Provider#get} methods. 54 * {@link Provider} instances. Callers must not modify the providers array after invoking this 58 @SuppressWarnings("unchecked") Provider<Set<T>>... providers) { 61 List<Provider<Set<T>>> contributingProviders = Arrays.asList(providers); 64 : "Codegen error? Null within provider list."; 66 : "Codegen error? Duplicates in the provider list"; 79 private final List<Provider<Set<T>>> contributingProviders; 81 private SetFactory(List<Provider<Set<T>>> contributingProviders) { 102 Provider<Set<T>> provider = contributingProviders.get(i) local [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_TestProvider.java | 22 import java.security.Provider; 25 * This class implements a dummy provider. 27 public class Support_TestProvider extends Provider { 30 // Provider name 41 * Constructs a new instance of the dummy provider. 56 "made.up.provider.name.MessageDigestSHA"); 58 "made.up.provider.name.MessageDigestMD2"); 67 "made.up.provider.name.AlgorithmParameterGeneratorDSA"); 71 "made.up.provider.name.AlgorithmParametersDSA"); 78 "made.up.provider.name.KeyPairGeneratorDSA") [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
PlatformModule.java | 29 import javax.inject.Provider; 32 * Provider of a {@link Platform} instance appropriate for the current platform. 44 Provider<JvmPlatform> jvmPlatformProvider) {
|
/external/guice/core/src/com/google/inject/internal/ |
LookupProcessor.java | 20 import com.google.inject.Provider; 49 // ensure the provider can be created 51 Provider<T> provider = injector.getProviderOrThrow(lookup.getDependency(), errors); local 52 lookup.initializeDelegate(provider);
|
ProviderToInternalFactoryAdapter.java | 19 import com.google.inject.Provider; 26 final class ProviderToInternalFactoryAdapter<T> implements Provider<T> {
|
/external/libchrome/base/files/ |
file_tracing.cc | 12 FileTracing::Provider* g_provider = nullptr; 21 void FileTracing::SetProvider(FileTracing::Provider* provider) { 22 g_provider = provider;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
ProviderTest.java | 32 import java.security.Provider; 35 import java.security.Provider.Service; 47 * Tests for <code>Provider</code> constructor and methods 55 * destroys the existing provider infrastructure. 58 Provider[] storedProviders; 60 Provider p; 79 for (Provider p: Security.getProviders()) { 83 for (Provider p: storedProviders) { 91 * Class under test for void Provider() 94 if (!p.getProperty("Provider.id name").equals [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_TestProvider.java | 22 import java.security.Provider; 25 * This class implements a dummy provider. 27 public class Support_TestProvider extends Provider { 30 // Provider name 41 * Constructs a new instance of the dummy provider. 56 "made.up.provider.name.MessageDigestSHA"); 58 "made.up.provider.name.MessageDigestMD5"); 67 "made.up.provider.name.AlgorithmParameterGeneratorDSA"); 71 "made.up.provider.name.AlgorithmParametersDSA"); 78 "made.up.provider.name.KeyPairGeneratorDSA") [all...] |
/external/apache-harmony/security/src/test/impl/java.injected/java/security/ |
Security_ImplTest.java | 41 assertNull("Incorrect result (provider not added)", Security 44 Provider p = new MyProvider(); 47 assertEquals("Incorrect result (provider added)", 55 * Class under test for Provider[] getProviders() 58 Provider[] providers; 63 assertEquals("Incorrect provider number", i + 1, providers[i] 108 Provider p = new MyProvider(); 121 class MyProvider extends Provider { 123 super("MyProvider", 1.0, "Provider for testing");
|
/external/dagger2/lib/ |
javax-inject.jar | |
/external/guice/core/src/com/google/inject/ |
Binding.java | 39 * <li>For {@link Provider providers}, by delegating to the binding for the provided type.</li> 68 * Returns the scoped provider guice uses to fulfill requests for this 75 Provider<T> getProvider();
|
/external/guice/core/src/com/google/inject/spi/ |
ProvisionListener.java | 20 import com.google.inject.Provider; 37 * bound to a Provider, provisioning encapsulates the {@link Provider#get} 62 * You must not call {@link Provider#get()} on the provider returned by
|
/external/guice/lib/ |
javax.inject.jar | |
/libcore/ojluni/src/main/java/java/security/ |
AuthProvider.java | 35 public abstract class AuthProvider extends Provider {
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
KeyManagerFactory.java | 37 * material is based on a KeyStore and/or provider specific sources. 43 // The provider 44 private Provider provider; field in class:KeyManagerFactory 46 // The provider implementation (delegate) 86 * @param provider the provider 90 Provider provider, String algorithm) { 92 this.provider = provider [all...] |
TrustManagerFactory.java | 37 * material is based on a KeyStore and/or provider specific sources. 43 // The provider 44 private Provider provider; field in class:TrustManagerFactory 46 // The provider implementation (delegate) 83 * @param provider the provider 87 Provider provider, String algorithm) { 89 this.provider = provider [all...] |
/prebuilts/eclipse/maven/apache-maven-3.2.1/lib/ |
javax.inject-1.jar | |
/prebuilts/tools/common/m2/repository/javax/inject/javax.inject/1/ |
javax.inject-1.jar | |
/system/update_engine/update_manager/ |
shill_provider.h | 22 #include "update_engine/update_manager/provider.h" 43 // Provider for networking related information. 44 class ShillProvider : public Provider {
|
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/ |
KeyAgreement_Impl1Test.java | 26 import java.security.Provider; 47 private static Provider defaultProvider = null; 51 private static final String NotSupportMsg = "There is no suitable provider for KeyAgreement"; 75 assertEquals("Incorrect provider", keyA.getProvider(), defaultProvider); 81 assertNull("Provider must be null", keyA.getProvider()); 96 public myKeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, 98 super(keyAgreeSpi, provider, algorithm);
|