HomeSort by relevance Sort by last modified time
    Searched refs:Provider (Results 176 - 200 of 670) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/guice/core/src/com/google/inject/internal/
BindingBuilder.java 25 import com.google.inject.Provider;
99 public BindingBuilder<T> toProvider(Provider<? extends T> provider) {
100 return toProvider((javax.inject.Provider<T>) provider);
103 public BindingBuilder<T> toProvider(javax.inject.Provider<? extends T> provider) {
104 checkNotNull(provider, "provider");
110 injectionPoints = InjectionPoint.forInstanceMethodsAndFields(provider.getClass())
    [all...]
BindingImpl.java 22 import com.google.inject.Provider;
63 private volatile Provider<T> provider; field in class:BindingImpl
65 public Provider<T> getProvider() {
66 if (provider == null) {
71 provider = injector.getProvider(key);
73 return provider;
  /external/guice/extensions/mini/test/com/google/inject/mini/
MiniGuiceTest.java 27 import javax.inject.Provider;
97 @Inject Provider<A> aProvider;
117 @Inject Provider<F> fProvider;
118 @Inject Provider<I> iProvider;
151 @Provides @Singleton @Named("one") F provideF(Provider<A> aProvider) {
167 @Inject Provider<L> lProvider;
196 @Inject Provider<F> fProvider;
  /external/skia/src/core/
SkNormalBevelSource.cpp 257 SkNormalBevelSourceImpl::Provider::Provider() {}
259 SkNormalBevelSourceImpl::Provider::~Provider() {}
261 SkNormalSource::Provider* SkNormalBevelSourceImpl::asProvider(const SkShader::ContextRec &rec,
263 return alloc->make<Provider>();
267 void SkNormalBevelSourceImpl::Provider::fillScanLine(int x, int y, SkPoint3 output[],
  /libcore/ojluni/src/main/java/sun/security/jca/
GetInstance.java 31 import java.security.Provider.Service;
51 public final Provider provider; field in class:GetInstance.Instance
53 private Instance(Provider provider, Object impl) {
54 this.provider = provider;
57 // Return Provider and implementation as an array as used in the
60 return new Object[] {impl, provider};
76 String provider) throws NoSuchAlgorithmException
    [all...]
  /packages/apps/Email/tests/src/com/android/email/activity/setup/
AccountSettingsUtilsTests.java 23 import com.android.emailcommon.VendorPolicyLoader.Provider;
78 Provider testProvider;
79 // <provider id="gmail" label="Gmail" domain="gmail.com">
82 // </provider>
90 // <provider id="rr-generic" label="RoadRunner" domain="*.rr.com">
93 // </provider>
148 Provider testProvider;
149 // <provider id="cox" label="Cox" domain="cox.net">
152 // </provider>
153 testProvider = new Provider();
    [all...]
  /libcore/luni/src/test/java/libcore/javax/net/ssl/
TrustManagerFactoryTest.java 23 import java.security.Provider;
177 Provider[] providers = Security.getProviders();
178 for (Provider provider : providers) {
179 Set<Provider.Service> services = provider.getServices();
180 for (Provider.Service service : services) {
194 provider);
196 assertEquals(provider, tmf.getProvider());
202 provider.getName())
    [all...]
  /libcore/luni/src/test/java/tests/security/cert/
CertPathBuilder1Test.java 34 import java.security.Provider;
63 private static Provider defaultProvider;
144 * Test for <code>getInstance(String algorithm, String provider)</code> method
145 * Assertion: throws IllegalArgumentException when provider is null or empty
147 * FIXME: verify what exception will be thrown if provider is empty
155 String provider = null; local
158 CertPathBuilder.getInstance(validValues[i], provider);
171 * Test for <code>getInstance(String algorithm, String provider)</code> method
173 * throws NoSuchProviderException when provider has invalid value
192 * Test for <code>getInstance(String algorithm, String provider)</code> metho
437 private static Provider provider; field in class:myCertPathBuilder
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
ProviderJcaJceHelper.java 9 import java.security.Provider;
23 * {@link JcaJceHelper} that obtains all algorithms from a specific {@link Provider} instance.
28 protected final Provider provider; field in class:ProviderJcaJceHelper
30 public ProviderJcaJceHelper(Provider provider)
32 this.provider = provider;
39 return Cipher.getInstance(algorithm, provider);
45 return Mac.getInstance(algorithm, provider);
    [all...]
  /external/dagger2/compiler/src/it/functional-tests/src/test/java/test/membersinject/
MembersInjectTest.java 19 import javax.inject.Provider;
84 Provider<String> provider = local
85 new Provider<String>() {
91 MembersInjector<NonRequestedChild> injector = new NonRequestedChild_MembersInjector(provider);
  /external/dagger2/core/src/test/java/dagger/internal/
DoubleCheckLazyTest.java 30 import javax.inject.Provider;
46 LatchedProvider provider = new LatchedProvider(latch); local
47 final Lazy<Object> lazy = DoubleCheckLazy.create(provider);
61 assert_().that(provider.provisions.get()).isEqualTo(1);
71 Lazy<Object> lazy = DoubleCheckLazy.create(new Provider<Object> () {
82 private static class LatchedProvider implements Provider<Object> {
  /external/guice/core/src/com/google/inject/
Binder.java 76 * {@code Provider<Service>}. This binding specifies that Guice should resolve
79 * {@link Provider#get get()} on the resulting Provider instance to obtain the
82 * <p>The {@link Provider} you use here does not have to be a "factory"; that
83 * is, a provider which always <i>creates</i> each instance it provides.
187 * classes and is a bit simpler than using a {@link Provider}.
318 * Returns the provider used to obtain instances for the given injection key.
319 * The returned provider will not be valid until the {@link Injector} has been
320 * created. The provider will throw an {@code IllegalStateException} if you
325 <T> Provider<T> getProvider(Key<T> key)
    [all...]
  /external/guice/core/test/com/google/inject/spi/
ModuleRewriterTest.java 28 import com.google.inject.Provider;
86 final Provider<String> stringProvider = getProvider(String.class);
88 bind(String.class).annotatedWith(Names.named("2")).toProvider(new Provider<String>() {
  /external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
Parameter.java 24 import com.google.inject.Provider;
44 private volatile Provider<? extends Object> provider; field in class:Parameter
86 if (null == provider) {
88 if (null == provider) {
89 provider = isProvider
96 return isProvider ? provider : provider.get();
139 && ((ParameterizedType) type).getRawType() == Provider.class;
  /external/guice/extensions/persist/src/com/google/inject/persist/jpa/
JpaPersistService.java 22 import com.google.inject.Provider;
42 class JpaPersistService implements Provider<EntityManager>, UnitOfWork, PersistService {
120 public static class EntityManagerFactoryProvider implements Provider<EntityManagerFactory> {
  /external/guice/extensions/persist/test/com/google/inject/persist/jpa/
DynamicFinderTest.java 22 import com.google.inject.Provider;
83 private final Provider<EntityManager> em;
87 public JpaDao(Provider<EntityManager> em) {
  /external/guice/extensions/spring/src/com/google/inject/spring/
SpringIntegration.java 23 import com.google.inject.Provider;
38 * Creates a provider which looks up objects from Spring using the given name.
47 public static <T> Provider<T> fromSpring(Class<T> type, String name) {
70 SpringProvider<T> provider local
73 provider.initialize(beanFactory);
82 .toProvider(provider);
85 static class SpringProvider<T> implements Provider<T> {
  /external/wycheproof/java/com/google/security/wycheproof/
WycheproofRunner.java 33 * provider. To use it, annotate a runner class with {@code RunWith(WycheproofRunner.class)}, and
37 * <p>To exclude certain tests, a runner class should be annotated with {@code @Provider} which
38 * indicates the target provider. Test exclusion is defined as follows:
58 * Annotation to specify the target provider of a test runner.
60 * <p>Usage: @Provider(ProviderType.BOUNCY_CASTLE)
64 public @interface Provider {
137 Provider targetProvider;
143 this.targetProvider = runnerClass.getAnnotation(Provider.class);
160 // Run all test functions if the test runner is not annotated with {@code @Provider}.
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyPairGenerator4Test.java 21 import java.security.Provider;
61 // Test1: Test with named provider
62 Provider[] providers = Security.getProviders("KeyPairGenerator.DSA");
68 // Test2: Test with empty provider name - should raise
82 Provider p = KeyPairGenerator.getInstance("DSA").getProvider();
83 assertNotNull("provider is null", p);
  /libcore/luni/src/test/java/tests/targets/security/
SignatureTestMD2withRSA.java 22 import java.security.Provider;
94 Provider provider = new MyProvider(); local
95 Security.addProvider(provider);
106 Security.removeProvider(provider.getName());
109 public final class MyProvider extends Provider {
  /packages/apps/Camera2/src/com/android/camera/one/v2/commands/
CameraCommandExecutor.java 28 import com.android.camera.util.Provider;
79 private final Provider<ExecutorService> mExecutorProvider;
88 Provider<ExecutorService> threadPoolExecutor) {
  /external/guice/core/test/com/google/inject/
DuplicateBindingsTest.java 47 private Provider<Foo> pFoo = Providers.<Foo>of(new FooImpl());
48 private Class<? extends Provider<? extends Foo>> pclFoo = FooProvider.class;
346 protected final Provider<Foo> pFoo;
347 protected final Class<? extends Provider<? extends Foo>> pclFoo;
351 FooModule(FooImpl foo, Provider<Foo> pFoo, Class<? extends Provider<? extends Foo>> pclFoo,
362 FailedModule(FooImpl foo, Provider<Foo> pFoo, Class<? extends Provider<? extends Foo>> pclFoo,
411 SimpleModule(FooImpl foo, Provider<Foo> pFoo, Class<? extends Provider<? extends Foo>> pclFoo
    [all...]
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/jcajce/
JcaSignerInfoVerifierBuilder.java 3 import java.security.Provider;
32 public JcaSignerInfoVerifierBuilder setProvider(Provider provider)
34 this.helper = new ProviderHelper(provider);
149 private final Provider provider; field in class:JcaSignerInfoVerifierBuilder.ProviderHelper
151 public ProviderHelper(Provider provider)
153 this.provider = provider;
    [all...]
JcaSimpleSignerInfoVerifierBuilder.java 3 import java.security.Provider;
22 public JcaSimpleSignerInfoVerifierBuilder setProvider(Provider provider)
24 this.helper = new ProviderHelper(provider);
119 private final Provider provider; field in class:JcaSimpleSignerInfoVerifierBuilder.ProviderHelper
121 public ProviderHelper(Provider provider)
123 this.provider = provider;
    [all...]
  /external/dagger2/producers/src/test/java/dagger/producers/internal/
AbstractProducerTest.java 26 import javax.inject.Provider;
49 private Provider<ProductionComponentMonitor> componentMonitorProvider;
57 new Provider<ProductionComponentMonitor>() {
133 Provider<ProductionComponentMonitor> componentMonitorProvider,

Completed in 393 milliseconds

1 2 3 4 5 6 78 91011>>