/external/dagger2/producers/src/main/java/dagger/producers/internal/ |
AbstractProducer.java | 28 import javax.inject.Provider; 37 private final Provider<ProductionComponentMonitor> monitorProvider; 46 Provider<ProductionComponentMonitor> monitorProvider, @Nullable ProducerToken token) {
|
/external/guice/core/src/com/google/inject/internal/ |
InternalFactoryToInitializableAdapter.java | 33 private final Initializable<? extends javax.inject.Provider<? extends T>> initializable; 36 Initializable<? extends javax.inject.Provider<? extends T>> initializable, 40 this.initializable = checkNotNull(initializable, "provider"); 50 protected T provision(javax.inject.Provider<? extends T> provider, Errors errors, 53 return super.provision(provider, errors, dependency, constructionContext);
|
ProviderInternalFactory.java | 25 import javax.inject.Provider; 41 protected T circularGet(final Provider<? extends T> provider, final Errors errors, 61 return provision(provider, errors, dependency, constructionContext); 65 return provision(provider, errors, dependency, constructionContext); 79 protected T provision(Provider<? extends T> provider, Errors errors, Dependency<?> dependency, 81 T t = errors.checkForNull(provider.get(), source, dependency);
|
LinkedProviderBindingImpl.java | 33 final Key<? extends javax.inject.Provider<? extends T>> providerKey; 38 Key<? extends javax.inject.Provider<? extends T>> providerKey, 47 Key<? extends javax.inject.Provider<? extends T>> providerKey) { 52 Key<? extends javax.inject.Provider<? extends T>> providerKey) { 60 Key<? extends javax.inject.Provider<? extends T>> providerKey, 70 public Key<? extends javax.inject.Provider<? extends T>> getProviderKey() { 102 .add("provider", providerKey)
|
ProviderInstanceBindingImpl.java | 23 import com.google.inject.Provider; 37 final javax.inject.Provider<? extends T> providerInstance; 42 javax.inject.Provider<? extends T> providerInstance, 50 Set<InjectionPoint> injectionPoints, javax.inject.Provider<? extends T> providerInstance) { 56 @SuppressWarnings("unchecked") // the extension type is always consistent with the provider type 66 public Provider<? extends T> getProviderInstance() { 70 public javax.inject.Provider<? extends T> getUserSuppliedProvider() { 105 .add("provider", providerInstance)
|
/external/guice/core/src/com/google/inject/spi/ |
TypeEncounter.java | 21 import com.google.inject.Provider; 59 * Returns the provider used to obtain instances for the given injection key. The returned 60 * provider will not be valid until the injector has been created. The provider will throw an 63 <T> Provider<T> getProvider(Key<T> key); 66 * Returns the provider used to obtain instances for the given injection type. The returned 67 * provider will not be valid until the injector has been created. The provider will throw an 70 <T> Provider<T> getProvider(Class<T> type);
|
/external/caliper/caliper/src/main/java/com/google/caliper/worker/ |
WorkerModule.java | 34 import javax.inject.Provider; 65 Worker provideWorker(Map<Class<? extends Worker>, Provider<Worker>> availableWorkers) { 66 Provider<Worker> workerProvider = availableWorkers.get(workerClass); 126 Provider<AllAllocationsRecorder> allAllocationsRecorderProvider, 127 Provider<AggregateAllocationsRecorder> aggregateAllocationsRecorderProvider) {
|
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/ |
BindingFieldTest.java | 26 import javax.inject.Provider; 67 assertThat(FrameworkField.createWithTypeFromKey(Provider.class, 71 ClassName.fromClass(Provider.class), xClass)); 82 assertThat(FrameworkField.createWithTypeFromKey(Provider.class, 85 assertThat(FrameworkField.createWithTypeFromKey(Provider.class,
|
DependencyRequestMapperTest.java | 29 import javax.inject.Provider; 106 .isEqualTo(Provider.class); 108 .isEqualTo(Provider.class); 110 .isEqualTo(Provider.class); 120 .isEqualTo(Provider.class); 122 .isEqualTo(Provider.class); 134 Integer a, Lazy<Integer> b, Provider<Integer> c, MembersInjector<Y> d) {
|
/libcore/ojluni/src/main/java/java/security/cert/ |
CertStore.java | 33 import java.security.Provider; 44 * This class uses a provider-based architecture. 48 * and optionally the name of the provider desired. 111 private Provider provider; field in class:CertStore 117 * encapsulates the given provider implementation (SPI object) in it. 119 * @param storeSpi the provider implementation 120 * @param provider the provider 124 protected CertStore(CertStoreSpi storeSpi, Provider provider [all...] |
CertificateFactory.java | 32 import java.security.Provider; 154 // The provider 155 private Provider provider; field in class:CertificateFactory 157 // The provider implementation 162 * the given provider implementation (SPI object) in it. 164 * @param certFacSpi the provider implementation. 165 * @param provider the provider. 169 Provider provider, String type [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
Security2Test.java | 21 import java.security.Provider; 41 Provider[] allProviders = Security.getProviders(); 45 Provider provider = allProviders[i]; local 46 Iterator it = provider.entrySet().iterator(); 50 // No aliases and no provider data 61 Provider provider = allProviders[i]; local 62 Iterator it = provider.entrySet().iterator(); 76 // Add 1 to the provider count of the thing bein 149 Provider provider = allProviders[i]; local [all...] |
KeyPairGenerator5Test.java | 23 import java.security.Provider;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
Security2Test.java | 21 import java.security.Provider; 40 Provider[] allProviders = Security.getProviders(); 43 for (Provider provider : allProviders) { 44 for (Object k : provider.keySet()) { 46 // No aliases and no provider data 56 for (Provider provider : allProviders) { 57 for (Map.Entry entry : provider.entrySet()) { 67 // Add 1 to the provider count of the thing being aliase [all...] |
MessageDigest2Test.java | 26 import java.security.Provider; 39 private Map<Provider, List<String>> digestAlgs = new HashMap<Provider, List<String>>(); 80 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { 242 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { 255 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { 287 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { 299 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { 311 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { 330 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest_Impl2Test.java | 25 import java.security.Provider; 39 * Provider 41 Provider p; 93 * Class under test for MessageDigest getInstance(String, Provider) 96 Provider p = new MyProvider(); 102 * Class under test for MessageDigest getInstance(String, Provider) 105 Provider p = new MyProvider(); 118 private void checkMD1(MessageDigest md1, Provider p) throws Exception { 144 private void checkMD2(MessageDigest md2, Provider p) throws Exception { 169 private class MyProvider extends Provider { [all...] |
/libcore/ojluni/src/main/java/java/security/ |
Security.java | 56 Provider provider; field in class:Security.ProviderProperty 95 props.put("security.provider.1", "com.android.org.conscrypt.OpenSSLProvider"); 96 props.put("security.provider.2", "sun.security.provider.CertPathProvider"); 97 props.put("security.provider.3", "com.android.org.bouncycastle.jce.provider.BouncyCastleProvider"); 98 props.put("security.provider.4", "com.android.org.conscrypt.JSSEProvider"); 109 * provider) mapping the key, if any. 111 * provider-preference order, as specificed in the securit [all...] |
/external/guice/core/test/com/google/inject/ |
CircularDependencyTest.java | 72 bind(A.class).toProvider(new Provider<A>() { 73 @Inject Provider<B> bp; 78 bind(B.class).toProvider(new Provider<B>() { 79 @Inject Provider<A> ap; 140 static class AP implements Provider<A> { 141 @Inject Provider<B> bp; 148 static class AutoAP implements Provider<A> { 149 @Inject Provider<B> bp; 182 static class BP implements Provider<B> { 183 Provider<A> ap [all...] |
ProviderInjectionTest.java | 57 bind(Bar.class).toProvider(new Provider<Bar>() { 79 * injected before use. In this testcase, we verify that a provider for 86 bind(String.class).toProvider(new Provider<String>() { 97 bind(List.class).toProvider(new Provider<List>() { 129 // provider injection 130 bind(Count.class).annotatedWith(named("b")).toProvider(new Provider<Count>() { 177 @Inject Provider<Bar> barProvider; 178 @Inject Provider<SampleSingleton> singletonProvider;
|
/external/apache-harmony/security/src/test/impl/java.injected/java/security/ |
Signature_Impl2Test.java | 35 * Provider 37 Provider p; 90 * Class under test for Signature getInstance(String, Provider) 93 Provider p1 = new MyProvider(); 99 * Class under test for Signature getInstance(String, Provider) 102 Provider p2 = new MyProvider(); 107 private void checkSig1(Signature s, Provider p) throws Exception { 157 private void checkSig2(Signature s, Provider p) throws Exception { 199 private class MyProvider extends Provider { 201 super("MyProvider", 1.0, "Provider for testing") [all...] |
/external/guice/extensions/persist/test/com/google/inject/persist/jpa/ |
EntityManagerProvisionTest.java | 22 import com.google.inject.Provider; 92 private final Provider<EntityManager> em; 96 public JpaDao(Provider<EntityManager> em) {
|
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
ExemptionMechanismTest.java | 23 import java.security.Provider; 48 * Assertion: creates new object using provider and mechanism name 51 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", 52 "Provider for ExemptionMechanism testing", 60 assertEquals("Incorrect provider", em.getProvider(), mProv); 78 assertNull("Incorrect provider", em.getProvider()); 92 * @tests javax/crypto/ExemptionMechanism#getInstance(String algorithm, String provider) 111 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", 112 "Provider for ExemptionMechanism testing", 144 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider" [all...] |
/external/dagger2/core/src/main/java/dagger/ |
Component.java | 22 import javax.inject.Provider; 43 * {@linkplain Provider provision} or {@linkplain MembersInjector members-injection} contracts. 57 * <p>Provision methods, like typical {@link Inject injection} sites, may use {@link Provider} or 58 * {@link Lazy} to more explicitly control provision requests. A {@link Provider} allows the user 59 * of the component to request provision any number of times by calling {@link Provider#get}. A 64 * {@literal Provider<SomeType>} getSomeTypeProvider(); 202 * on the dependency is bound as a provider. Note that <em>only</em> the bindings exposed as
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
ExemptionMechanismTest.java | 27 import java.security.Provider; 57 * Assertion: creates new object using provider and mechanism name 60 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", 61 "Provider for ExemptionMechanism testing", 68 assertEquals("Incorrect provider", em.getProvider(), mProv); 83 assertNull("Incorrect provider", em.getProvider()); 95 * javax/crypto/ExemptionMechanism#getInstance(String algorithm, String provider) 120 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", 121 "Provider for ExemptionMechanism testing", 152 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider" [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
SSLContext.java | 88 private final Provider provider; field in class:SSLContext 98 * @param provider the provider 101 protected SSLContext(SSLContextSpi contextSpi, Provider provider, 104 this.provider = provider; 163 * starting with the most preferred Provider. 166 * Provider that supports the specified protocol is returned [all...] |