/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/ |
D | InjectedThing.java | 21 import javax.inject.Provider; 34 @Inject Provider<Byte> byteProvider; 35 @Inject Provider<Character> charProvider; 36 @Inject Provider<Short> shortProvider; 37 @Inject Provider<Integer> intProvider; 38 @Inject Provider<Long> longProvider; 39 @Inject Provider<Boolean> booleanProvider; 40 @Inject Provider<Float> floatProvider; 41 @Inject Provider<Double> doubleProvider; 70 @Inject Provider<byte[]> byteArrayProvider; [all …]
|
D | BasicComponent.java | 21 import javax.inject.Provider; 43 Provider<Byte> getByteProvider(); in getByteProvider() 44 Provider<Character> getCharProvider(); in getCharProvider() 45 Provider<Short> getShortProvider(); in getShortProvider() 46 Provider<Integer> getIntProvider(); in getIntProvider() 47 Provider<Long> getLongProvider(); in getLongProvider() 48 Provider<Boolean> getBooleanProvider(); in getBooleanProvider() 49 Provider<Float> getFloatProvider(); in getFloatProvider() 50 Provider<Double> getDoubleProvider(); in getDoubleProvider() 61 Provider<byte[]> getByteArrayProvider(); in getByteArrayProvider() [all …]
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderServiceTest.java | 24 import java.security.Provider; 39 Provider p = new MyProvider(); in testService() 41 new Provider.Service(null, "type", "algorithm", in testService() 47 new Provider.Service(p, null, "algorithm", in testService() 53 new Provider.Service(p, "type", null, in testService() 59 new Provider.Service(p, "type", "algorithm", in testService() 65 Provider.Service s = new Provider.Service(p, in testService() 77 Provider p = new MyProvider(); in testGetAttribute() 78 Provider.Service s = new Provider.Service(p, in testGetAttribute() 93 s = new Provider.Service(p, "type", "algorithm", "className", in testGetAttribute() [all …]
|
D | SecurityTest.java | 28 import java.security.Provider; 77 Provider p = new MyProvider(); in test_insertProviderAtLjava_security_ProviderLI() 79 Provider initialSecondProviderName = Security.getProviders()[1]; in test_insertProviderAtLjava_security_ProviderLI() 120 Provider p = new MyProvider(); in test_addProviderLjava_security_Provider() 136 Provider[] providers; in testRemoveProvider() 137 Provider[] providers1; in testRemoveProvider() 171 Provider[] providers = Security.getProviders(); in test_getProviderLjava_lang_String() 174 for (Provider p : providers) { in test_getProviderLjava_lang_String() 180 Provider p = new MyProvider(); in test_getProviderLjava_lang_String() 207 Provider p = new MyProvider(); in test_getProvidersLjava_lang_String() [all …]
|
D | Provider2Test.java | 22 import java.security.Provider; 27 class TestProvider extends Provider { 137 Provider.Service service = new Provider.Service(mockProvider, in test_getAlias() 151 public static class MockProvider extends Provider { 160 public void putService(Provider.Service service) { in putService() 164 public void removeService(Provider.Service service) { in removeService()
|
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/ |
D | MapBinder.java | 44 import com.google.inject.Provider; 210 static <K, V> TypeLiteral<Map<K, Provider<V>>> mapOfProviderOf( in mapOfProviderOf() 212 return (TypeLiteral<Map<K, Provider<V>>>) TypeLiteral.get( in mapOfProviderOf() 218 static <K, V> TypeLiteral<Map<K, javax.inject.Provider<V>>> mapOfJavaxProviderOf( in mapOfJavaxProviderOf() 220 return (TypeLiteral<Map<K, javax.inject.Provider<V>>>) TypeLiteral.get( in mapOfJavaxProviderOf() 222 newParameterizedType(javax.inject.Provider.class, valueType.getType()))); in mapOfJavaxProviderOf() 226 static <K, V> TypeLiteral<Map<K, Set<Provider<V>>>> mapOfSetOfProviderOf( in mapOfSetOfProviderOf() 228 return (TypeLiteral<Map<K, Set<Provider<V>>>>) TypeLiteral.get( in mapOfSetOfProviderOf() 233 static <K, V> TypeLiteral<Map.Entry<K, Provider<V>>> entryOfProviderOf( in entryOfProviderOf() 235 return (TypeLiteral<Entry<K, Provider<V>>>) TypeLiteral.get(newParameterizedTypeWithOwner( in entryOfProviderOf() [all …]
|
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/nullables/ |
D | NullFoo.java | 19 import javax.inject.Provider; 23 final Provider<String> stringProvider; 25 final Provider<Number> numberProvider; 29 Provider<String> stringProvider, in NullFoo() 31 Provider<Number> numberProvider) { in NullFoo() 39 Provider<String> methodInjectedStringProvider; 41 Provider<Number> methodInjectedNumberProvider; 43 Provider<String> stringProvider, in inject() 45 Provider<Number> numberProvider) { in inject() 53 @Inject Provider<String> fieldInjectedStringProvider; [all …]
|
/external/jsr330/tck/org/atinject/tck/auto/ |
D | 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/core/src/test/java/dagger/internal/ |
D | MapProviderFactoryTest.java | 21 import javax.inject.Provider; 50 Provider<Integer> p1 = incrementingIntegerProvider(10); in iterationOrder() 51 Provider<Integer> p2 = incrementingIntegerProvider(20); in iterationOrder() 52 Provider<Integer> p3 = incrementingIntegerProvider(30); in iterationOrder() 53 Provider<Integer> p4 = incrementingIntegerProvider(40); in iterationOrder() 54 Provider<Integer> p5 = incrementingIntegerProvider(50); in iterationOrder() 56 Factory<Map<String, Provider<Integer>>> factory = MapProviderFactory in iterationOrder() 65 Map<String, Provider<Integer>> expectedMap = new LinkedHashMap<String, Provider<Integer>>(); in iterationOrder() 77 private static Provider<Integer> incrementingIntegerProvider(int seed) { in incrementingIntegerProvider() 79 return new Provider<Integer>() { in incrementingIntegerProvider()
|
D | SetFactoryTest.java | 24 import javax.inject.Provider; 41 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { in providerReturnsNullSet() 53 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { in providerReturnsNullSet_single() 65 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { in providerReturnsSetWithNullElement() 81 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { in providerReturnsSetWithNullElement_single() 115 private static Provider<Set<Integer>> incrementingIntegerProvider(int seed) { in incrementingIntegerProvider() 117 return new Provider<Set<Integer>>() { in incrementingIntegerProvider() 125 private static Provider<Set<Integer>> integerSetProvider(Range<Integer> range) { 127 return new Provider<Set<Integer>>() {
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/provider/ |
D | test_provider.py | 85 p = provider.Provider('aws', 'access_key', 'secret_key', 'security_token') 93 p = provider.Provider('aws') 102 p = provider.Provider('aws') 108 p = provider.Provider( 135 p = provider.Provider('aws', profile_name='prod') 138 p = provider.Provider('aws', profile_name='prod_withtoken') 142 q = provider.Provider('aws', profile_name='dev') 161 provider.Provider('aws', profile_name='doesntexist') 170 p = provider.Provider('aws') 183 p = provider.Provider('aws') [all …]
|
/external/guice/core/src/com/google/inject/util/ |
D | Providers.java | 26 import com.google.inject.Provider; 53 public static <T> Provider<T> of(final T instance) { in of() 57 private static final class ConstantProvider<T> implements Provider<T> { 89 public static <T> Provider<T> guicify(javax.inject.Provider<T> provider) { in guicify() 90 if (provider instanceof Provider) { in guicify() 91 return (Provider<T>) provider; in guicify() 94 final javax.inject.Provider<T> delegate = checkNotNull(provider, "provider"); in guicify() 111 private static class GuicifiedProvider<T> implements Provider<T> { 112 protected final javax.inject.Provider<T> delegate; 114 private GuicifiedProvider(javax.inject.Provider<T> delegate) { in GuicifiedProvider() [all …]
|
/external/guice/core/test/com/google/inject/spi/ |
D | InjectorSpiTest.java | 9 import com.google.inject.Provider; 44 assertTrue(injector.getAllBindings().containsKey(Key.get(new TypeLiteral<Provider<Foo>>() {}))); in testExistingBinding() 45 binding = injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Foo>>() {})); in testExistingBinding() 47 assertEquals(Provider.class, binding.getKey().getTypeLiteral().getRawType()); in testExistingBinding() 48 assertEquals(Foo.class, ((Provider)binding.getProvider().get()).get().getClass()); in testExistingBinding() 57 …assertFalse(injector.getAllBindings().containsKey(Key.get(new TypeLiteral<Provider<Baz>>() {}))); … in testExistingBinding() 58 binding = injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Baz>>() {})); in testExistingBinding() 60 assertEquals(Provider.class, binding.getKey().getTypeLiteral().getRawType()); in testExistingBinding() 61 assertEquals(Baz.class, ((Provider)binding.getProvider().get()).get().getClass()); in testExistingBinding() 67 assertNull(injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Bar>>() {}))); in testExistingBinding() [all …]
|
/external/guice/extensions/mini/src/com/google/inject/mini/ |
D | MiniGuice.java | 36 import javax.inject.Provider; 48 private final Map<Key, Provider<?>> bindings = new HashMap<Key, Provider<?>>(); 88 Provider<?> provider = miniGuice.bindings.get(key); in inject() 93 Map<Key, Provider<?>> providerBindings = new HashMap<Key, Provider<?>>(); in addProviderBindings() 94 for (final Map.Entry<Key, Provider<?>> binding : bindings.entrySet()) { in addProviderBindings() 96 final Provider<?> value = binding.getValue(); in addProviderBindings() 97 Provider<Provider<?>> providerProvider = new Provider<Provider<?>>() { in addProviderBindings() 98 public Provider<?> get() { in addProviderBindings() 102 providerBindings.put(new Key(new ProviderType(javax.inject.Provider.class, key.type), in addProviderBindings() 110 && (((ParameterizedType) key.type).getRawType() == Provider.class in requireKey() [all …]
|
/external/apache-harmony/security/src/test/api/java.injected/java/security/ |
D | ProviderTest.java | 44 Provider p; 87 Provider.Service s = new Provider.Service(p, "Type", "Algorithm", in testGetService() 95 Provider.Service s1 = p.getService("MessageDigest", "AbC"); in testGetService() 100 s = new Provider.Service(p, "MessageDigest", "SHA-1", in testGetService() 113 Provider.Service s = new Provider.Service(p, "Type", "Algorithm", in testGetServices() 128 s = (Provider.Service) it.next(); in testGetServices() 152 Provider.Service s = new Provider.Service(p, "Type", "Algorithm", in testPutService() 167 Provider.Service s = new Provider.Service(p, "Type", "Algorithm", in testRemoveService() 177 s = (Provider.Service) it.next(); in testRemoveService() 196 class MyProvider extends Provider {
|
/external/dagger2/core/src/main/java/dagger/internal/ |
D | MapFactory.java | 20 import javax.inject.Provider; 34 private final Map<K, Provider<V>> contributingMap; 36 private MapFactory(Map<K, Provider<V>> map) { in MapFactory() 43 public static <K, V> MapFactory<K, V> create(Provider<Map<K, Provider<V>>> mapProviderFactory) { in create() 44 Map<K, Provider<V>> map = mapProviderFactory.get(); in create() 55 for (Entry<K, Provider<V>> entry: contributingMap.entrySet()) { in get()
|
D | MapProviderFactory.java | 20 import javax.inject.Provider; 33 public final class MapProviderFactory<K, V> implements Factory<Map<K, Provider<V>>> { 34 private final Map<K, Provider<V>> contributingMap; 43 private MapProviderFactory(LinkedHashMap<K, Provider<V>> contributingMap) { in MapProviderFactory() 53 public Map<K, Provider<V>> get() { in get() 61 private final LinkedHashMap<K, Provider<V>> mapBuilder; 78 public Builder<K, V> put(K key, Provider<V> providerOfValue) { in put()
|
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/cycle/ |
D | Cycles.java | 26 import javax.inject.Provider; 63 public final Provider<A> aProvider; 67 C(Provider<A> aProvider) { in C() 91 public final Provider<S> sProvider; 95 S(Provider<S> sProvider) { in S() 110 public final Map<String, Provider<X>> mapOfProvidersOfX; 111 public final Map<String, Provider<Y>> mapOfProvidersOfY; 114 Y(Map<String, Provider<X>> mapOfProvidersOfX, Map<String, Provider<Y>> mapOfProvidersOfY) { in Y()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/fortress/ |
D | ServicesTest.java | 24 import java.security.Provider; 36 Provider p = new MyProvider(); in testInitServiceInfo() 38 Provider ap = new AnotherProvider(); in testInitServiceInfo() 41 Provider.Service serv = Services.getService("Service.ALGORITHM"); in testInitServiceInfo() 57 Provider p = new MyProvider(); in testRefresh() 60 Provider.Service serv = Services.getService("Service.ALGORITHM"); in testRefresh() 75 class AnotherProvider extends Provider {
|
D | EngineTest.java | 25 import java.security.Provider; 47 Provider p = new MyProvider(); in testGetInstanceStringObject1() 66 Provider p = new MyProvider(); in testGetInstanceStringObject2() 80 Provider p = new MyProvider(); in testGetInstanceStringProviderObject1() 98 Provider p = new MyProvider(); in testGetInstanceStringProviderObject2() 110 Provider p = Security.getProvider("SUN"); in testGetInstanceStringProvider1() 120 Provider p = Security.getProvider("SUN"); in testGetInstanceStringProvider2()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderService_ImplTest.java | 24 import java.security.Provider; 39 Provider p = new MyProvider(); in testToString() 40 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testToString() 51 s = new Provider.Service(p, "type", "algorithm", "className", in testToString() 58 class MyProvider extends Provider {
|
/external/guice/core/src/com/google/inject/internal/ |
D | ProvidedByInternalFactory.java | 24 import com.google.inject.Provider; 37 private final Class<? extends Provider<?>> providerType; 38 private final Key<? extends Provider<T>> providerKey; 39 private BindingImpl<? extends Provider<T>> providerBinding; 44 Class<? extends Provider<?>> providerType, in ProvidedByInternalFactory() 45 Key<? extends Provider<T>> providerKey) { in ProvidedByInternalFactory() 68 Provider<? extends T> provider = providerBinding.getInternalFactory().get( in get() 77 protected T provision(javax.inject.Provider<? extends T> provider, Errors errors, in provision()
|
/external/guice/core/src/com/google/inject/binder/ |
D | LinkedBindingBuilder.java | 20 import com.google.inject.Provider; 59 ScopedBindingBuilder toProvider(Provider<? extends T> provider); in toProvider() 67 ScopedBindingBuilder toProvider(javax.inject.Provider<? extends T> provider); in toProvider() 73 Class<? extends javax.inject.Provider<? extends T>> providerType); in toProvider() 79 TypeLiteral<? extends javax.inject.Provider<? extends T>> providerType); in toProvider() 85 Key<? extends javax.inject.Provider<? extends T>> providerKey); in toProvider()
|
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/nullables/ |
D | NullabilityTest.java | 18 import javax.inject.Provider; 54 @Override public Provider<String> stringProvider() { in testNullability_components() 55 return new Provider<String>() { in testNullability_components() 66 @Override public Provider<Number> numberProvider() { in testNullability_components() 67 return new Provider<Number>() { in testNullability_components() 97 Provider<String> stringProvider, in validate() 98 Provider<Number> numberProvider) { in validate()
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | CryptoUpcalls.java | 22 import java.security.Provider; 41 private static boolean isOurProvider(Provider p) { in isOurProvider() 48 private static ArrayList<Provider> getExternalProviders(String algorithm) { in getExternalProviders() 49 ArrayList<Provider> providers = new ArrayList<>(1); in getExternalProviders() 50 for (Provider p : Security.getProviders(algorithm)) { in getExternalProviders() 104 ArrayList<Provider> providers = getExternalProviders("Signature." + algorithm); in rawSignDigestWithPrivateKey() 105 for (Provider p : providers) { in rawSignDigestWithPrivateKey() 182 ArrayList<Provider> providers = getExternalProviders("Cipher." + transformation); in rsaDecryptWithPrivateKey() 183 for (Provider p : providers) { in rsaDecryptWithPrivateKey()
|