/external/guice/core/test/com/google/inject/spi/ |
InjectorSpiTest.java | 9 import com.google.inject.Provider; 37 // 1) non-Provider Foo.class 42 // 2) Provider<Foo> class (should already exist, because Baz @Injects it). 43 // the assertTrue is a bit stricter than necessary, but makes sure this works for pre-existing Provider bindings 44 assertTrue(injector.getAllBindings().containsKey(Key.get(new TypeLiteral<Provider<Foo>>() {}))); 45 binding = injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Foo>>() {})); 47 assertEquals(Provider.class, binding.getKey().getTypeLiteral().getRawType()); 48 assertEquals(Foo.class, ((Provider)binding.getProvider().get()).get().getClass()); 50 // 3) non-Provider Baz.class 55 // 4) Provider<Baz> class (should not already exist, because nothing used it yet) [all...] |
/external/guice/core/src/com/google/inject/internal/ |
Lookups.java | 21 import com.google.inject.Provider; 32 <T> Provider<T> getProvider(Key<T> key);
|
InternalFactoryToProviderAdapter.java | 21 import com.google.inject.Provider; 29 private final Provider<? extends T> provider; field in class:InternalFactoryToProviderAdapter 32 public InternalFactoryToProviderAdapter(Provider<? extends T> provider, Object source) { 33 this.provider = checkNotNull(provider, "provider"); 41 return errors.checkForNull(provider.get(), source, dependency); 48 return provider.toString() [all...] |
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/ |
EnergySourceProvider.java | 20 import com.google.inject.Provider; 23 class EnergySourceProvider implements Provider<EnergySource> {
|
/external/guice/core/src/com/google/inject/binder/ |
LinkedBindingBuilder.java | 20 import com.google.inject.Provider; 59 ScopedBindingBuilder toProvider(Provider<? extends T> provider); 67 ScopedBindingBuilder toProvider(javax.inject.Provider<? extends T> provider); 73 Class<? extends javax.inject.Provider<? extends T>> providerType); 79 TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType); 85 Key<? extends javax.inject.Provider<? extends T>> providerKey);
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
ECDHKeyAgreementTest.java | 32 import java.security.Provider; 88 throw new RuntimeException("Failed to decode KAT key pairs using default provider", e); 98 for (Provider keyFactoryProvider1 : getKeyFactoryProviders()) { 101 for (Provider keyFactoryProvider2 : getKeyFactoryProviders()) { 106 for (Provider keyAgreementProvider : getKeyAgreementProviders()) { 125 Provider keyAgreementProvider) throws Exception { 136 void testGetAlgorithm(Provider provider) throws Exception { 137 assertEquals("ECDH", getKeyAgreement(provider).getAlgorithm()); 144 void testGetProvider(Provider provider) throws Exception [all...] |
KeyAgreementTest.java | 20 import java.security.Provider; 28 private static abstract class MockProvider extends Provider { 30 super(name, 1.0, "Mock provider used for testing"); 39 Provider mockProvider = new MockProvider("MockProvider") { 54 Provider mockProvider = new MockProvider("MockProvider") { 78 Provider mockProvider = new MockProvider("MockProvider") {
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
Provider2Test.java | 22 import java.security.Provider; 27 class TestProvider extends Provider { 52 * @tests java.security.Provider#entrySet() 55 // test method of java.security.provider.entrySet 67 * @tests java.security.Provider#getInfo() 70 // test method of java.security.provider.getInfo 71 assertEquals("the information of the provider is not stored properly", 77 * @tests java.security.Provider#getName() 80 // test method of java.security.provider.getName 81 assertEquals("the name of the provider is not stored properly" [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/fortress/ |
EngineTest.java | 25 import java.security.Provider; 47 Provider p = new MyProvider(); 54 if (engine.provider != p) { 55 fail("Incorrect provider"); 66 Provider p = new MyProvider(); 77 * Class under test for SpiImpl getInstance(String, Provider, Object) 80 Provider p = new MyProvider(); 86 if (engine.provider != p) { 87 fail("Incorrect provider"); 95 * Class under test for SpiImpl getInstance(String, Provider, Object [all...] |
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/nullables/ |
NullabilityTest.java | 18 import javax.inject.Provider; 54 @Override public Provider<String> stringProvider() { 55 return new Provider<String>() { 66 @Override public Provider<Number> numberProvider() { 67 return new Provider<Number>() { 97 Provider<String> stringProvider, 98 Provider<Number> numberProvider) {
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
Provider2Test.java | 22 import java.security.Provider; 27 class TestProvider extends Provider { 52 * java.security.Provider#entrySet() 55 // test method of java.security.provider.entrySet 67 * java.security.Provider#getInfo() 70 // test method of java.security.provider.getInfo 71 assertEquals("the information of the provider is not stored properly", 77 * java.security.Provider#getName() 80 // test method of java.security.provider.getName 81 assertEquals("the name of the provider is not stored properly" [all...] |
/libcore/ojluni/src/main/java/java/security/ |
AlgorithmParameterGenerator.java | 64 * (via a call to an <code>init</code> method), each provider must supply (and 65 * document) a default initialization. For example, the Sun provider uses a 117 // The provider 118 private Provider provider; field in class:AlgorithmParameterGenerator 120 // The provider implementation (delegate) 130 * @param provider the provider 134 (AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, [all...] |
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/cycle/ |
Cycles.java | 26 import javax.inject.Provider; 32 * A <- (E <- D <- B <- C <- Provider<A>, Lazy<A>), (B <- C <- Provider<A>, Lazy<A>) 33 * S <- Provider<S>, Lazy<S> 63 public final Provider<A> aProvider; 67 C(Provider<A> aProvider) { 91 public final Provider<S> sProvider; 95 S(Provider<S> sProvider) { 110 public final Map<String, Provider<X>> mapOfProvidersOfX; 111 public final Map<String, Provider<Y>> mapOfProvidersOfY [all...] |
/external/jsr330/tck/org/atinject/tck/auto/ |
Convertible.java | 26 import javax.inject.Provider; 34 @Inject Provider<Engine> engineProvider; 44 private Provider<Seat> constructorPlainSeatProvider = nullProvider(); 45 private Provider<Seat> constructorDriversSeatProvider = nullProvider(); 46 private Provider<Tire> constructorPlainTireProvider = nullProvider(); 47 private Provider<Tire> constructorSpareTireProvider = nullProvider(); 53 @Inject Provider<Seat> fieldPlainSeatProvider = nullProvider(); 54 @Inject @Drivers Provider<Seat> fieldDriversSeatProvider = nullProvider(); 55 @Inject Provider<Tire> fieldPlainTireProvider = nullProvider(); 56 @Inject @Named("spare") Provider<Tire> fieldSpareTireProvider = nullProvider() [all...] |
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/ |
ComplexGenerics.java | 20 import javax.inject.Provider; 26 final Provider<Generic2<Generic<A>>> g2gaProvider; 29 final Provider<Generic2<Generic<B>>> g2gbProvider; 37 Provider<Generic2<Generic<A>>> g2gaProvider, 40 Provider<Generic2<Generic<B>>> g2gbProvider,
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
DependencyRequestMapper.java | 23 import javax.inject.Provider; 29 * the type of code to be generated (e.g., for {@link Provider} or {@link Producer}). 51 } else if (classes.equals(ImmutableSet.of(Producer.class, Provider.class))) { 52 return Provider.class; 62 case PROVIDER: 64 return Provider.class; 85 case PROVIDER: 87 return Provider.class;
|
/external/clang/test/SemaCXX/ |
vtable-instantiation.cpp | 34 struct Provider 40 Target<T> Provider<T>::Instance; // expected-note{{in instantiation of}} 44 Target<int*>* traits = &Provider<int*>::Instance; // expected-note{{requested here}}
|
/external/dagger2/core/src/main/java/dagger/internal/ |
ScopedProvider.java | 19 import javax.inject.Provider; 22 * A {@link Provider} implementation that memoizes the result of a {@link Factory} instance. 27 public final class ScopedProvider<T> implements Provider<T>, Lazy<T> { 54 /** Returns a new scoped provider for the given factory. */ 55 public static <T> Provider<T> create(Factory<T> factory) {
|
/external/dagger2/producers/src/main/java/dagger/producers/monitoring/internal/ |
MonitorCache.java | 22 import javax.inject.Provider; 41 Provider<?> componentProvider, 42 Provider<Set<ProductionComponentMonitor.Factory>> monitorFactorySetProvider) {
|
/external/guice/core/src/com/google/inject/util/ |
Providers.java | 26 import com.google.inject.Provider; 35 * {@link Provider}. 45 * Returns a provider which always provides {@code instance}. This should not 51 * life a Guice-supplied Provider will never return null. 53 public static <T> Provider<T> of(final T instance) { 57 private static final class ConstantProvider<T> implements Provider<T> { 83 * Returns a Guice-friendly {@code com.google.inject.Provider} for the given 84 * JSR-330 {@code javax.inject.Provider}. The converse method is unnecessary, 89 public static <T> Provider<T> guicify(javax.inject.Provider<T> provider) [all...] |
/external/guice/core/test/com/google/inject/example/ |
JndiProvider.java | 20 import com.google.inject.Provider; 25 class JndiProvider<T> implements Provider<T> { 46 * Creates a JNDI provider for the given 49 static <T> Provider<T> fromJndi(
|
/external/guice/extensions/jndi/src/com/google/inject/jndi/ |
JndiIntegration.java | 20 import com.google.inject.Provider; 36 * Creates a provider which looks up objects in JNDI using the given name. 43 public static <T> Provider<T> fromJndi(Class<T> type, String name) { 47 static class JndiProvider<T> implements Provider<T> {
|
/external/libchrome/base/files/ |
file_tracing.h | 32 class Provider { 34 virtual ~Provider() = default; 57 // Sets a global file tracing provider to query categories and record events. 58 static void SetProvider(Provider* provider);
|
/libcore/luni/src/test/java/tests/targets/security/ |
MessageDigestTestMD2.java | 20 import java.security.Provider; 45 Provider provider = new MyProvider(); local 46 Security.addProvider(provider); 53 Security.removeProvider(provider.getName()); 57 public final class MyProvider extends Provider {
|
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/ |
MapBinder.java | 44 import com.google.inject.Provider; 93 * {@code Map<K, Provider<V>>} for lazy value provision: 97 * public SnackMachine(Map<String, Provider<Snack>> snackProviders) { ... } 116 * provider, that provider's get method will be called each time the map is 125 * {@code Map<K, Set<Provider<V>>} will be added. 209 @SuppressWarnings("unchecked") // a provider map <K, V> is safely a Map<K, Provider<V>> 210 static <K, V> TypeLiteral<Map<K, Provider<V>>> mapOfProviderOf( 212 return (TypeLiteral<Map<K, Provider<V>>>) TypeLiteral.get 549 ValueProvider<V> provider = (ValueProvider<V>)entry.getValue(); local 762 private final Provider<V> provider; field in class:MapBinder.RealMapBinder.ProviderMapEntry [all...] |