/external/dagger2/core/src/test/java/dagger/internal/ |
SetFactoryTest.java | 24 import javax.inject.Provider; 41 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 53 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 65 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 81 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 115 private static Provider<Set<Integer>> incrementingIntegerProvider(int seed) { 117 return new Provider<Set<Integer>>() { 125 private static Provider<Set<Integer>> integerSetProvider(Range<Integer> range) { 127 return new Provider<Set<Integer>>() {
|
/external/guice/extensions/mini/src/com/google/inject/mini/ |
MiniGuice.java | 36 import javax.inject.Provider; 48 private final Map<Key, Provider<?>> bindings = new HashMap<Key, Provider<?>>(); 69 * <li>Injection of {@link Provider}s. 88 Provider<?> provider = miniGuice.bindings.get(key); local 89 return type.cast(provider.get()); 93 Map<Key, Provider<?>> providerBindings = new HashMap<Key, Provider<?>>(); 94 for (final Map.Entry<Key, Provider<?>> binding : bindings.entrySet()) 121 Provider<?> provider = bindings.get(key); local [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
SecureRandomTest.java | 19 import java.security.Provider; 36 Provider[] providers = Security.getProviders(); 37 for (Provider provider : providers) { 38 Set<Provider.Service> services = provider.getServices(); 39 for (Provider.Service service : services) { 51 // SecureRandom.getInstance(String, Provider) 52 SecureRandom sr2 = SecureRandom.getInstance(algorithm, provider); 54 assertEquals(provider, sr2.getProvider()) [all...] |
/libcore/tools/docs/crypto/src/java/libcore/java/security/ |
ListProviders.java | 22 import java.security.Provider; 84 private static void print(Provider p, String type, String algorithm) { 90 for (Provider p : Security.getProviders()) { 91 Set<Provider.Service> services = new TreeSet<Provider.Service>( 92 new Comparator<Provider.Service>() { 93 public int compare(Provider.Service a, Provider.Service b) { 102 for (Provider.Service s : services) { 133 // SSLEngine and SSLSocket algorithms are handled outside the default provider syste [all...] |
/external/dagger2/core/src/main/java/dagger/internal/ |
SetFactory.java | 23 import javax.inject.Provider; 31 * whose elements are populated by subsequent calls to their {@link Provider#get} methods. 54 * {@link Provider} instances. Callers must not modify the providers array after invoking this 58 @SuppressWarnings("unchecked") Provider<Set<T>>... providers) { 61 List<Provider<Set<T>>> contributingProviders = Arrays.asList(providers); 64 : "Codegen error? Null within provider list."; 66 : "Codegen error? Duplicates in the provider list"; 79 private final List<Provider<Set<T>>> contributingProviders; 81 private SetFactory(List<Provider<Set<T>>> contributingProviders) { 102 Provider<Set<T>> provider = contributingProviders.get(i) local [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherTest.java | 22 import java.security.Provider; 34 private static abstract class MockProvider extends Provider { 36 super(name, 1.0, "Mock provider used for testing"); 44 Provider mockProvider = new MockProvider("MockProvider") { 58 Provider mockProvider = new MockProvider("MockProvider") { 77 Provider mockProvider = new MockProvider("MockProvider") { 92 Provider mockProvider = new MockProvider("MockProvider") { 101 Provider mockProvider2 = new MockProvider("MockProvider") { 115 Provider mockProviderSpecific = new MockProvider("MockProviderSpecific") { 121 Provider mockProviderSpecific2 = new MockProvider("MockProviderSpecific2") [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_TestProvider.java | 22 import java.security.Provider; 25 * This class implements a dummy provider. 27 public class Support_TestProvider extends Provider { 30 // Provider name 41 * Constructs a new instance of the dummy provider. 56 "made.up.provider.name.MessageDigestSHA"); 58 "made.up.provider.name.MessageDigestMD2"); 67 "made.up.provider.name.AlgorithmParameterGeneratorDSA"); 71 "made.up.provider.name.AlgorithmParametersDSA"); 78 "made.up.provider.name.KeyPairGeneratorDSA") [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
PlatformModule.java | 29 import javax.inject.Provider; 32 * Provider of a {@link Platform} instance appropriate for the current platform. 44 Provider<JvmPlatform> jvmPlatformProvider) {
|
/external/guice/core/src/com/google/inject/internal/ |
LookupProcessor.java | 20 import com.google.inject.Provider; 49 // ensure the provider can be created 51 Provider<T> provider = injector.getProviderOrThrow(lookup.getDependency(), errors); local 52 lookup.initializeDelegate(provider);
|
ProviderToInternalFactoryAdapter.java | 19 import com.google.inject.Provider; 26 final class ProviderToInternalFactoryAdapter<T> implements Provider<T> {
|
/external/libcxx/test/support/ |
test_memory_resource.hpp | 50 using Provider = ProviderT; 101 mutable Provider P; 105 template <class Provider, int N> 106 int TestResourceImp<Provider, N>::resource_alive = 0; 108 template <class Provider, int N> 109 int TestResourceImp<Provider, N>::resource_constructed = 0; 111 template <class Provider, int N> 112 int TestResourceImp<Provider, N>::resource_destructed = 0;
|
/external/wycheproof/java/com/google/security/wycheproof/ |
BouncyCastleAllTests.java | 19 import com.google.security.wycheproof.WycheproofRunner.Provider; 22 import com.android.org.bouncycastle.jce.provider.BouncyCastleProvider; 48 @Provider(ProviderType.BOUNCY_CASTLE)
|
BouncyCastleTest.java | 20 import com.google.security.wycheproof.WycheproofRunner.Provider; 23 import com.android.org.bouncycastle.jce.provider.BouncyCastleProvider; 49 @Provider(ProviderType.BOUNCY_CASTLE)
|
ConscryptTest.java | 20 import com.google.security.wycheproof.WycheproofRunner.Provider; 29 * Conscrypt is a Java security provider that uses OpenSSL. See {@link https://conscrypt.org/}. 45 @Provider(ProviderType.CONSCRYPT)
|
OpenJDKTest.java | 4 import com.google.security.wycheproof.WycheproofRunner.Provider; 29 @Provider(ProviderType.OPENJDK)
|
SpongyCastleAllTests.java | 19 import com.google.security.wycheproof.WycheproofRunner.Provider; 24 import org.spongycastle.jce.provider.BouncyCastleProvider; 48 @Provider(ProviderType.SPONGY_CASTLE)
|
SpongyCastleTest.java | 20 import com.google.security.wycheproof.WycheproofRunner.Provider; 25 import org.spongycastle.jce.provider.BouncyCastleProvider; 49 @Provider(ProviderType.SPONGY_CASTLE)
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
GuidedStepFragmentTestBase.java | 54 GuidedStepTestFragment.Provider mProvider; 56 public ExpandTransitionFinish(GuidedStepTestFragment.Provider provider) { 57 mProvider = provider; 78 public static void waitOnDestroy(GuidedStepTestFragment.Provider provider, 80 verify(provider, timeout((int)TIMEOUT).times(times)).onDestroy(); 87 GuidedStepTestFragment.Provider mProvider; 89 public EnterTransitionFinish(GuidedStepTestFragment.Provider provider) { [all...] |
GuidedStepSupportFragmentTestBase.java | 51 GuidedStepTestSupportFragment.Provider mProvider; 53 public ExpandTransitionFinish(GuidedStepTestSupportFragment.Provider provider) { 54 mProvider = provider; 75 public static void waitOnDestroy(GuidedStepTestSupportFragment.Provider provider, 77 verify(provider, timeout((int)TIMEOUT).times(times)).onDestroy(); 84 GuidedStepTestSupportFragment.Provider mProvider; 86 public EnterTransitionFinish(GuidedStepTestSupportFragment.Provider provider) { [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
ProviderTest.java | 32 import java.security.Provider; 35 import java.security.Provider.Service; 47 * Tests for <code>Provider</code> constructor and methods 55 * destroys the existing provider infrastructure. 58 Provider[] storedProviders; 60 Provider p; 79 for (Provider p: Security.getProviders()) { 83 for (Provider p: storedProviders) { 91 * Class under test for void Provider() 94 if (!p.getProperty("Provider.id name").equals [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_TestProvider.java | 22 import java.security.Provider; 25 * This class implements a dummy provider. 27 public class Support_TestProvider extends Provider { 30 // Provider name 41 * Constructs a new instance of the dummy provider. 56 "made.up.provider.name.MessageDigestSHA"); 58 "made.up.provider.name.MessageDigestMD5"); 67 "made.up.provider.name.AlgorithmParameterGeneratorDSA"); 71 "made.up.provider.name.AlgorithmParametersDSA"); 78 "made.up.provider.name.KeyPairGeneratorDSA") [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/support/ |
test_memory_resource.hpp | 50 using Provider = ProviderT; 101 mutable Provider P; 105 template <class Provider, int N> 106 int TestResourceImp<Provider, N>::resource_alive = 0; 108 template <class Provider, int N> 109 int TestResourceImp<Provider, N>::resource_constructed = 0; 111 template <class Provider, int N> 112 int TestResourceImp<Provider, N>::resource_destructed = 0;
|
/tools/tradefederation/core/src/com/android/tradefed/guice/ |
InvocationScope.java | 27 import com.google.inject.Provider; 53 private static final Provider<Object> SEEDED_KEY_PROVIDER = 54 new Provider<Object>() { 140 public <T> Provider<T> scope(final Key<T> key, final Provider<T> unscoped) { 141 return new Provider<T>() { 172 * Returns a provider that always throws exception complaining that the object in question must 175 * @return typed provider 178 public static <T> Provider<T> seededKeyProvider() { 179 return (Provider<T>) SEEDED_KEY_PROVIDER [all...] |
/external/dagger2/lib/ |
javax-inject.jar | |
/external/guice/core/src/com/google/inject/ |
Binding.java | 39 * <li>For {@link Provider providers}, by delegating to the binding for the provided type.</li> 68 * Returns the scoped provider guice uses to fulfill requests for this 75 Provider<T> getProvider();
|