HomeSort by relevance Sort by last modified time
    Searched refs:Provider (Results 51 - 75 of 417) sorted by null

1 23 4 5 6 7 8 91011>>

  /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;
52 ScopedBindingBuilder toProvider(Provider<? extends T> provider);
60 ScopedBindingBuilder toProvider(javax.inject.Provider<? extends T> provider);
63 ScopedBindingBuilder toProvider(Class<? extends javax.inject.Provider<? extends T>> providerType);
67 TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType);
70 ScopedBindingBuilder toProvider(Key<? extends javax.inject.Provider<? extends T>> providerKey);
  /external/opencensus-java/api/src/test/java/io/opencensus/internal/
ProviderTest.java 26 /** Tests for {@link Provider}. */
51 Provider.createInstance(
62 Provider.createInstance(
73 Provider.createInstance(
83 Provider.createInstance(
94 Provider.createInstance(
106 Provider.createInstance(
  /external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/
ECDHKeyAgreementTest.java 34 import java.security.Provider;
117 throw new RuntimeException("Failed to decode KAT key pairs using default provider", e);
133 for (Provider keyFactoryProvider1 : getKeyFactoryProviders()) {
136 for (Provider keyFactoryProvider2 : getKeyFactoryProviders()) {
141 for (Provider keyAgreementProvider : getKeyAgreementProviders()) {
160 Provider keyAgreementProvider) throws Exception {
172 void testGetAlgorithm(Provider provider) throws Exception {
173 assertEquals("ECDH", getKeyAgreement(provider).getAlgorithm());
181 void testGetProvider(Provider provider) throws Exception
    [all...]
  /external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/crypto/
ECDHKeyAgreementTest.java 35 import java.security.Provider;
119 throw new RuntimeException("Failed to decode KAT key pairs using default provider", e);
135 for (Provider keyFactoryProvider1 : getKeyFactoryProviders()) {
138 for (Provider keyFactoryProvider2 : getKeyFactoryProviders()) {
143 for (Provider keyAgreementProvider : getKeyAgreementProviders()) {
162 Provider keyAgreementProvider) throws Exception {
174 void testGetAlgorithm(Provider provider) throws Exception {
175 assertEquals("ECDH", getKeyAgreement(provider).getAlgorithm());
183 void testGetProvider(Provider provider) throws Exception
    [all...]
  /external/guice/core/src/com/google/inject/internal/
ProvidedByInternalFactory.java 23 import javax.inject.Provider;
33 private final Class<? extends Provider<?>> providerType;
34 private final Key<? extends Provider<T>> providerKey;
35 private BindingImpl<? extends Provider<T>> providerBinding;
40 Class<? extends Provider<?>> providerType,
41 Key<? extends Provider<T>> providerKey) {
61 BindingImpl<? extends Provider<T>> localProviderBinding = providerBinding;
65 Key<? extends Provider<T>> localProviderKey = providerKey;
69 Provider<? extends T> provider local
    [all...]
InternalFactoryToProviderAdapter.java 21 import com.google.inject.Provider;
27 private final Provider<? extends T> provider; field in class:InternalFactoryToProviderAdapter
30 public InternalFactoryToProviderAdapter(Provider<? extends T> provider, Object source) {
31 this.provider = checkNotNull(provider, "provider");
39 T t = provider.get();
51 return provider.toString()
    [all...]
BoundProviderFactory.java 22 import javax.inject.Provider;
29 final Key<? extends javax.inject.Provider<? extends T>> providerKey;
30 private InternalFactory<? extends javax.inject.Provider<? extends T>> providerFactory;
34 Key<? extends javax.inject.Provider<? extends T>> providerKey,
60 javax.inject.Provider<? extends T> provider = providerFactory.get(context, dependency, true); local
61 return circularGet(provider, context, dependency, provisionCallback);
72 Provider<? extends T> provider,
77 return super.provision(provider, dependency, constructionContext)
    [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) {
  /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/google-fruit/include/fruit/impl/
provider.defn.h 23 #include <fruit/provider.h>
28 inline Provider<C>::Provider(fruit::impl::InjectorStorage* storage,
33 inline C* Provider<C>::get() {
57 inline T Provider<C>::get() {
65 inline Provider<C>::operator T() {
  /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;
33 * Static utility methods for creating and working with instances of {@link Provider}.
43 * Returns a provider which always provides {@code instance}. This should not be necessary to use
47 * to enable aggressive testing, although in real life a Guice-supplied Provider will never
50 public static <T> Provider<T> of(final T instance) {
54 private static final class ConstantProvider<T> implements Provider<T> {
84 * Returns a Guice-friendly {@code com.google.inject.Provider} for the given JSR-330 {@code
85 * javax.inject.Provider}. The converse method is unnecessary, since Guice providers directly
90 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;
24 class JndiProvider<T> implements Provider<T> {
44 /** Creates a JNDI provider for the given type and name. */
45 static <T> Provider<T> fromJndi(Class<T> type, String name) {
  /external/guice/extensions/jndi/src/com/google/inject/jndi/
JndiIntegration.java 20 import com.google.inject.Provider;
34 * Creates a provider which looks up objects in JNDI using the given name. Example usage:
40 public static <T> Provider<T> fromJndi(Class<T> type, String name) {
44 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);
  /external/skia/src/core/
SkNormalSource.h 34 class Provider {
36 virtual ~Provider() {}
44 /** Returns an instance of 'Provider' that provides normals for the CPU pipeline. The
47 virtual Provider* asProvider(const SkShaderBase::ContextRec&, SkArenaAlloc*) const = 0;
  /external/skqp/src/core/
SkNormalSource.h 34 class Provider {
36 virtual ~Provider() {}
44 /** Returns an instance of 'Provider' that provides normals for the CPU pipeline. The
47 virtual Provider* asProvider(const SkShaderBase::ContextRec&, SkArenaAlloc*) const = 0;
  /external/guice/core/src/com/google/inject/spi/
ProviderLookup.java 25 import com.google.inject.Provider;
30 * A lookup of the provider for a type. Lookups are created explicitly in a module using {@link
34 * Provider&lt;PaymentService&gt; paymentServiceProvider
43 private Provider<T> delegate;
75 * Sets the actual provider.
79 public void initializeDelegate(Provider<T> delegate) {
90 * Returns the delegate provider, or {@code null} if it has not yet been initialized. The delegate
93 public Provider<T> getDelegate() {
98 * Returns the looked up provider. The result is not valid until this lookup has been initialized,
99 * which usually happens when the injector is created. The provider will throw an {@cod
    [all...]
  /external/wycheproof/java/com/google/security/wycheproof/
TestUtil.java 20 import java.security.Provider;
73 public static void installOnlyThisProvider(Provider provider) {
74 for (Provider p : Security.getProviders()) {
77 Security.insertProviderAt(provider, 1);
81 for (Provider p : Security.getProviders()) {
84 installOpenJDKProvider("com.sun.net.ssl.internal.ssl.Provider");
85 installOpenJDKProvider("com.sun.crypto.provider.SunJCE");
86 installOpenJDKProvider("com.sun.security.sasl.Provider");
90 installOpenJDKProvider("sun.security.provider.Sun")
96 Provider provider = (Provider) Class.forName(className).getConstructor().newInstance(); local
    [all...]

Completed in 364 milliseconds

1 23 4 5 6 7 8 91011>>