/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
GuidedStepTestSupportFragment.java | 34 private static final HashMap<String, Provider> sTestMap = new HashMap<String, Provider>(); 36 public static class Provider { 104 public static void setupTest(String testName, Provider provider) { 105 sTestMap.put(testName, provider); 113 Provider mProvider;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
TrustManagerFactorySpiTest.java | 23 import java.security.Provider; 56 Provider provider = new MyProvider(); local 58 provider); 83 Provider provider = new MyProvider(); local 85 provider); 109 Provider provider = new MyProvider(); local 111 provider); [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
ExemptionMechanism.java | 29 import java.security.Provider; 53 // The provider 54 private Provider provider; field in class:ExemptionMechanism 56 // The provider implementation (delegate) 76 * @param provider the provider 80 Provider provider, 83 this.provider = provider [all...] |
SecretKeyFactory.java | 31 import java.security.Provider.Service; 50 * <P> Application developers should refer to their provider's documentation 55 * For example, the DES secret-key factory supplied by the "SunJCE" provider 57 * keys, and that provider's secret-key factory for Triple DES keys supports 269 // The provider 270 private Provider provider; field in class:SecretKeyFactory 275 // The provider implementation (delegate) 278 // lock for mutex during provider selection 281 // remaining services to try in provider selectio [all...] |
/external/guice/core/test/com/googlecode/guice/ |
Jsr330Test.java | 45 import javax.inject.Provider; 236 * This test verifies that we can compile bindings to provider instances 237 * whose compile-time type implements javax.inject.Provider but not 238 * com.google.inject.Provider. For binary compatibility, we don't (and won't) 239 * support binding to instances of javax.inject.Provider. 258 Provider<String> jsr330Provider = new Provider<String>() { 268 com.google.inject.Provider<String> guicified = Providers.guicify(jsr330Provider); 279 Provider<String> jsr330Provider = new Provider<String>() [all...] |
/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;
|
/libcore/ojluni/src/main/java/java/security/ |
SecureRandom.java | 31 import java.security.Provider.Service; 88 * The SHA1PRNG algorithm from the Crypto provider has been deprecated as it was insecure, and also 90 * <a href="http://android-developers.blogspot.com/2016/06/security-crypto-provider-deprecated-in.html"> 91 * Security "Crypto" provider deprecated in Android N</a> for details. 105 Debug.getInstance("provider", "Provider"); 112 * The provider. 117 private Provider provider = null; field in class:SecureRandom 120 * The provider implementation [all...] |
/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...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
TrustManagerFactoryTest.java | 29 import java.security.Provider; 193 Provider[] providers = Security.getProviders(); 194 for (Provider provider : providers) { 195 Set<Provider.Service> services = provider.getServices(); 196 for (Provider.Service service : services) { 209 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm, provider); 211 assertEquals(provider, tmf.getProvider()); 217 TrustManagerFactory.getInstance(algorithm, 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/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/ |
OpenJdkEndpointFactory.java | 4 import java.security.Provider; 54 Provider provider = TestUtils.getJdkProvider(); local 55 SSLContext clientContext = TestUtils.newClientSslContext(provider); 56 SSLContext serverContext = TestUtils.newServerSslContext(provider); 64 Provider provider = TestUtils.getConscryptProvider(); local 65 SSLContext clientContext = TestUtils.newClientSslContext(provider); 66 SSLContext serverContext = TestUtils.newServerSslContext(provider);
|
/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/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ |
TextElementIteratorsFactory.java | 31 interface Provider<E> { 35 private final Provider<E> nextProvider; 41 public CascadingIterator(Iterator<E> current, Provider<E> nextProvider) {
|
/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}.
|