/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
AlgorithmParameterGenerator3Test.java | 25 import java.security.Provider; 80 Provider[] provs = Security 89 // provider 98 // provider 119 // Test for method java.security.Provider 122 Provider p = AlgorithmParameterGenerator.getInstance("DSA") 124 assertNotNull("provider is null", p);
|
KeyPairGenerator4Test.java | 23 import java.security.Provider; 63 // Test1: Test with named provider 64 Provider[] providers = Security.getProviders("KeyPairGenerator.DSA"); 70 // Test2: Test with empty provider name - should raise 84 Provider p = KeyPairGenerator.getInstance("DSA").getProvider(); 85 assertNotNull("provider is null", p);
|
SecureRandom2Test.java | 22 import java.security.Provider; 83 Provider[] providers = Security 96 fail("getInstance did not find the provider for SHA1PRNG"); 183 public MySecureRandom(SecureRandomSpi secureRandomSpi, Provider provider) { 184 super(secureRandomSpi, provider);
|
/external/apache-harmony/security/src/test/api/java.injected/java/security/ |
SecureRandomTest.java | 36 Provider p; 132 * Class under test for SecureRandom getInstance(String, Provider) 135 Provider p = new SRProvider(); 171 class SRProvider extends Provider {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/ |
ProviderJcaJceHelper.java | 9 import java.security.Provider; 22 * {@link JcaJceHelper} that obtains all algorithms from a specific {@link Provider} instance. 27 protected final Provider provider; field in class:ProviderJcaJceHelper 29 public ProviderJcaJceHelper(Provider provider) 31 this.provider = provider; 38 return Cipher.getInstance(algorithm, provider); 44 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/src/com/google/inject/internal/ |
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/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> {
|
/frameworks/base/core/java/android/service/notification/ |
ConditionProviderService.java | 65 private Provider mProvider; 109 * Called by the system when there is a new {@link Condition} to be managed by this provider. 158 mProvider = new Provider(); 165 Log.w(TAG, "Condition provider service not yet bound."); 171 private final class Provider extends IConditionProvider.Stub {
|
/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...] |
SuperclassTest.java | 33 Provider<Sub> creator = injector.getProvider(Sub.class);
|
/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,
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
TitleViewAdapter.java | 24 * This class allows a customized widget class to implement {@link TitleViewAdapter.Provider} 37 public interface Provider {
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
SingleRowTest.java | 40 mProvider = new Provider(new int[]{80, 80, 30, 100, 40, 10}); 84 mProvider = new Provider(new int[]{80, 80, 30, 100, 40, 10}); 126 mProvider = new Provider(new int[]{80, 80, 30, 100, 40, 10}); 148 mProvider = new Provider(new int[]{80, 80, 30, 100, 40, 10});
|