Home
last modified time | relevance | path

Searched refs:Provider (Results 1 – 25 of 540) sorted by relevance

12345678910>>...22

/external/dagger2/javatests/dagger/functional/
DInjectedThing.java22 import javax.inject.Provider;
35 @Inject Provider<Byte> byteProvider;
36 @Inject Provider<Character> charProvider;
37 @Inject Provider<Short> shortProvider;
38 @Inject Provider<Integer> intProvider;
39 @Inject Provider<Long> longProvider;
40 @Inject Provider<Boolean> booleanProvider;
41 @Inject Provider<Float> floatProvider;
42 @Inject Provider<Double> doubleProvider;
71 @Inject Provider<byte[]> byteArrayProvider;
[all …]
DBasicComponent.java23 import javax.inject.Provider;
50 Provider<Byte> getByteProvider(); in getByteProvider()
51 Provider<Character> getCharProvider(); in getCharProvider()
52 Provider<Short> getShortProvider(); in getShortProvider()
53 Provider<Integer> getIntProvider(); in getIntProvider()
54 Provider<Long> getLongProvider(); in getLongProvider()
55 Provider<Boolean> getBooleanProvider(); in getBooleanProvider()
56 Provider<Float> getFloatProvider(); in getFloatProvider()
57 Provider<Double> getDoubleProvider(); in getDoubleProvider()
68 Provider<byte[]> getByteArrayProvider(); in getByteArrayProvider()
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java39 import java.security.Provider;
130 for (Provider keyFactoryProvider1 : getKeyFactoryProviders()) { in testKnownAnswer()
133 for (Provider keyFactoryProvider2 : getKeyFactoryProviders()) { in testKnownAnswer()
138 for (Provider keyAgreementProvider : getKeyAgreementProviders()) { in testKnownAnswer()
157 Provider keyAgreementProvider) throws Exception { in testKnownAnswer()
169 void testGetAlgorithm(Provider provider) throws Exception { in testGetAlgorithm()
178 void testGetProvider(Provider provider) throws Exception { in testGetProvider()
187 void testInit_withNullPrivateKey(Provider provider) throws Exception { in testInit_withNullPrivateKey()
200 void testInit_withUnsupportedPrivateKeyType(Provider provider) throws Exception { in testInit_withUnsupportedPrivateKeyType()
213 void testInit_withUnsupportedAlgorithmParameterSpec(Provider provider) throws Exception { in testInit_withUnsupportedAlgorithmParameterSpec()
[all …]
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java36 import java.security.Provider;
128 for (Provider keyFactoryProvider1 : getKeyFactoryProviders()) { in testKnownAnswer()
131 for (Provider keyFactoryProvider2 : getKeyFactoryProviders()) { in testKnownAnswer()
136 for (Provider keyAgreementProvider : getKeyAgreementProviders()) { in testKnownAnswer()
155 Provider keyAgreementProvider) throws Exception { in testKnownAnswer()
167 void testGetAlgorithm(Provider provider) throws Exception { in testGetAlgorithm()
176 void testGetProvider(Provider provider) throws Exception { in testGetProvider()
185 void testInit_withNullPrivateKey(Provider provider) throws Exception { in testInit_withNullPrivateKey()
198 void testInit_withUnsupportedPrivateKeyType(Provider provider) throws Exception { in testInit_withUnsupportedPrivateKeyType()
211 void testInit_withUnsupportedAlgorithmParameterSpec(Provider provider) throws Exception { in testInit_withUnsupportedAlgorithmParameterSpec()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DProviders.java41 public static Provider provider(Reader reader) { in provider()
45 public static Provider provider(InputStream input, Charset encoding) { in provider()
57 public static Provider provider(InputStream input) { in provider()
61 public static Provider provider(File file, Charset encoding) throws FileNotFoundException { in provider()
65 public static Provider provider(File file) throws FileNotFoundException { in provider()
69 public static Provider provider(Path path, Charset encoding) throws IOException { in provider()
73 public static Provider provider(Path path) throws IOException { in provider()
77 public static Provider provider(String source) { in provider()
86 …public static Provider resourceProvider(ClassLoader classLoader, String pathToResource, Charset en… in resourceProvider()
98 …public static Provider resourceProvider(String pathToResource, Charset encoding) throws IOExceptio… in resourceProvider()
[all …]
/external/dagger2/javatests/dagger/functional/sub/
DExposed.java23 import javax.inject.Provider;
28 @Inject public Provider<PackagePrivate> ppp2;
30 @Inject public Provider<Lazy<PackagePrivate>> plpp2;
33 @Inject public Provider<Generic2<PackagePrivate>> pgpp2;
35 @Inject public Provider<Lazy<Generic2<PackagePrivate>>> plgpp2;
38 public Provider<PackagePrivate> ppp;
40 public Provider<Lazy<PackagePrivate>> plpp;
43 public Provider<Generic<PackagePrivate>> pgpp;
45 public Provider<Lazy<Generic<PackagePrivate>>> plgpp;
50 Provider<PackagePrivate> ppp, in Exposed()
[all …]
/external/dagger2/javatests/dagger/functional/nullables/
DNullFoo.java20 import javax.inject.Provider;
24 final Provider<String> stringProvider;
26 final Provider<Number> numberProvider;
30 Provider<String> stringProvider, in NullFoo()
32 Provider<Number> numberProvider) { in NullFoo()
40 Provider<String> methodInjectedStringProvider;
42 Provider<Number> methodInjectedNumberProvider;
44 Provider<String> stringProvider, in inject()
46 Provider<Number> numberProvider) { in inject()
54 @Inject Provider<String> fieldInjectedStringProvider;
[all …]
/external/jsr330/tck/org/atinject/tck/auto/
DConvertible.java26 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/auto/factory/src/test/resources/expected/
DSimpleClassProvidedDepsFactory.java20 import javax.inject.Provider;
27 private final Provider<Integer> providedPrimitiveAProvider;
28 private final Provider<Integer> providedPrimitiveBProvider;
29 private final Provider<String> providedDepAProvider;
30 private final Provider<String> providedDepBProvider;
34 @AQualifier Provider<Integer> providedPrimitiveAProvider, in SimpleClassProvidedDepsFactory()
35 @BQualifier Provider<Integer> providedPrimitiveBProvider, in SimpleClassProvidedDepsFactory()
36 @AQualifier Provider<String> providedDepAProvider, in SimpleClassProvidedDepsFactory()
37 @BQualifier Provider<String> providedDepBProvider) { in SimpleClassProvidedDepsFactory()
DMultipleFactoriesConflictingParameterNamesFactory.java20 import javax.inject.Provider;
28 private final Provider<String> stringProvider;
29 private final Provider<Object> java_lang_ObjectProvider;
30 private final Provider<String> stringProvider2;
31 private final Provider<Object> _tests_AQualifier_java_lang_ObjectProvider;
35 Provider<String> stringProvider, in MultipleFactoriesConflictingParameterNamesFactory()
36 Provider<Object> java_lang_ObjectProvider, in MultipleFactoriesConflictingParameterNamesFactory()
37 @AQualifier Provider<String> stringProvider2, in MultipleFactoriesConflictingParameterNamesFactory()
38 @AQualifier Provider<Object> _tests_AQualifier_java_lang_ObjectProvider) { in MultipleFactoriesConflictingParameterNamesFactory()
/external/dagger2/java/dagger/internal/
DMapProviderFactory.java21 import javax.inject.Provider;
27 public final class MapProviderFactory<K, V> extends AbstractMapFactory<K, V, Provider<V>>
28 implements Lazy<Map<K, Provider<V>>> {
35 private MapProviderFactory(Map<K, Provider<V>> contributingMap) { in MapProviderFactory()
44 public Map<K, Provider<V>> get() { in get()
49 public static final class Builder<K, V> extends AbstractMapFactory.Builder<K, V, Provider<V>> {
55 public Builder<K, V> put(K key, Provider<V> providerOfValue) { in put()
61 public Builder<K, V> putAll(Provider<Map<K, Provider<V>>> mapProviderFactory) { in putAll()
DSetFactory.java30 import javax.inject.Provider;
60 private final List<Provider<T>> individualProviders;
61 private final List<Provider<Collection<T>>> collectionProviders;
69 public Builder<T> addProvider(Provider<? extends T> individualProvider) { in addProvider()
72 individualProviders.add((Provider<T>) individualProvider); in addProvider()
78 Provider<? extends Collection<? extends T>> collectionProvider) { in addCollectionProvider()
80 collectionProviders.add((Provider<Collection<T>>) collectionProvider); in addCollectionProvider()
94 private final List<Provider<T>> individualProviders;
95 private final List<Provider<Collection<T>>> collectionProviders;
98 List<Provider<T>> individualProviders, List<Provider<Collection<T>>> collectionProviders) { in SetFactory()
DMapFactory.java25 import javax.inject.Provider;
32 private static final Provider<Map<Object, Object>> EMPTY =
42 public static <K, V> Provider<Map<K, V>> emptyMapProvider() { in emptyMapProvider()
43 return (Provider<Map<K, V>>) (Provider) EMPTY; in emptyMapProvider()
46 private MapFactory(Map<K, Provider<V>> map) { in MapFactory()
57 for (Entry<K, Provider<V>> entry : contributingMap().entrySet()) { in get()
70 public Builder<K, V> put(K key, Provider<V> providerOfValue) { in put()
76 public Builder<K, V> putAll(Provider<Map<K, V>> mapFactory) { in putAll()
DAbstractMapFactory.java25 import javax.inject.Provider;
35 private final Map<K, Provider<V>> contributingMap;
37 AbstractMapFactory(Map<K, Provider<V>> map) { in AbstractMapFactory()
42 final Map<K, Provider<V>> contributingMap() { in contributingMap()
48 final LinkedHashMap<K, Provider<V>> map;
63 Builder<K, V, V2> put(K key, Provider<V> providerOfValue) { in put()
68 Builder<K, V, V2> putAll(Provider<Map<K, V2>> mapOfProviders) { in putAll()
76 ((AbstractMapFactory<K, V, ?>) (Provider) mapOfProviders); in putAll()
/external/dagger2/javatests/dagger/functional/cycle/
DCycles.java29 import javax.inject.Provider;
63 public final Provider<A> aProvider;
65 @Inject public Provider<Lazy<A>> aLazyProvider;
68 C(Provider<A> aProvider) { in C()
92 public final Provider<S> sProvider;
96 S(Provider<S> sProvider) { in S()
111 public final Map<String, Provider<X>> mapOfProvidersOfX;
112 public final Map<String, Provider<Y>> mapOfProvidersOfY;
115 Y(Map<String, Provider<X>> mapOfProvidersOfX, Map<String, Provider<Y>> mapOfProvidersOfY) { in Y()
153 static Object provideObjectWithCycle(@SuppressWarnings("unused") Provider<Object> object) { in provideObjectWithCycle()
[all …]
/external/guice/core/test/com/google/inject/spi/
DInjectorSpiTest.java9 import com.google.inject.Provider;
42 assertTrue(injector.getAllBindings().containsKey(Key.get(new TypeLiteral<Provider<Foo>>() {}))); in testExistingBinding()
43 binding = injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Foo>>() {})); in testExistingBinding()
45 assertEquals(Provider.class, binding.getKey().getTypeLiteral().getRawType()); in testExistingBinding()
46 assertEquals(Foo.class, ((Provider) binding.getProvider().get()).get().getClass()); in testExistingBinding()
56 injector.getAllBindings().containsKey(Key.get(new TypeLiteral<Provider<Baz>>() {}))); in testExistingBinding()
57 binding = injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Baz>>() {})); in testExistingBinding()
59 assertEquals(Provider.class, binding.getKey().getTypeLiteral().getRawType()); in testExistingBinding()
60 assertEquals(Baz.class, ((Provider) binding.getProvider().get()).get().getClass()); in testExistingBinding()
66 assertNull(injector.getExistingBinding(Key.get(new TypeLiteral<Provider<Bar>>() {}))); in testExistingBinding()
[all …]
/external/guice/core/src/com/google/inject/internal/
DRealMapBinder.java28 import com.google.inject.Provider;
125 static <K, V> TypeLiteral<Map<K, Provider<V>>> mapOfProviderOf( in mapOfProviderOf()
127 return (TypeLiteral<Map<K, Provider<V>>>) in mapOfProviderOf()
133 static <K, V> TypeLiteral<Map<K, javax.inject.Provider<V>>> mapOfJavaxProviderOf( in mapOfJavaxProviderOf()
135 return (TypeLiteral<Map<K, javax.inject.Provider<V>>>) in mapOfJavaxProviderOf()
139 newParameterizedType(javax.inject.Provider.class, valueType.getType()))); in mapOfJavaxProviderOf()
143 static <K, V> TypeLiteral<Map<K, Set<Provider<V>>>> mapOfSetOfProviderOf( in mapOfSetOfProviderOf()
145 return (TypeLiteral<Map<K, Set<Provider<V>>>>) in mapOfSetOfProviderOf()
151 static <K, V> TypeLiteral<Map<K, Set<javax.inject.Provider<V>>>> mapOfSetOfJavaxProviderOf( in mapOfSetOfJavaxProviderOf()
153 return (TypeLiteral<Map<K, Set<javax.inject.Provider<V>>>>) in mapOfSetOfJavaxProviderOf()
[all …]
DProvidedByInternalFactory.java23 import javax.inject.Provider;
33 private final Class<? extends Provider<?>> providerType;
34 private final Key<? extends Provider<T>> providerKey;
35 private BindingImpl<? extends Provider<T>> providerBinding;
40 Class<? extends Provider<?>> providerType, in ProvidedByInternalFactory()
41 Key<? extends Provider<T>> providerKey) { in ProvidedByInternalFactory()
61 BindingImpl<? extends Provider<T>> localProviderBinding = providerBinding; in get()
65 Key<? extends Provider<T>> localProviderKey = providerKey; in get()
69 Provider<? extends T> provider = in get()
82 javax.inject.Provider<? extends T> provider, in provision()
/external/guice/core/src/com/google/inject/util/
DProviders.java26 import com.google.inject.Provider;
50 public static <T> Provider<T> of(final T instance) { in of()
54 private static final class ConstantProvider<T> implements Provider<T> {
90 public static <T> Provider<T> guicify(javax.inject.Provider<T> provider) { in guicify()
91 if (provider instanceof Provider) { in guicify()
92 return (Provider<T>) provider; in guicify()
95 final javax.inject.Provider<T> delegate = checkNotNull(provider, "provider"); in guicify()
112 private static class GuicifiedProvider<T> implements Provider<T> {
113 protected final javax.inject.Provider<T> delegate;
115 private GuicifiedProvider(javax.inject.Provider<T> delegate) { in GuicifiedProvider()
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DConfigProvider.cpp53 std::unique_ptr<Provider> Provider::fromYAMLFile(llvm::StringRef AbsPath, in fromYAMLFile()
56 class AbsFileProvider : public Provider { in fromYAMLFile()
78 std::unique_ptr<Provider>
79 Provider::fromAncestorRelativeYAMLFiles(llvm::StringRef RelPath, in fromAncestorRelativeYAMLFiles()
81 class RelFileProvider : public Provider { in fromAncestorRelativeYAMLFiles()
145 std::unique_ptr<Provider>
146 Provider::combine(std::vector<const Provider *> Providers) { in combine()
147 class CombinedProvider : public Provider { in combine()
148 std::vector<const Provider *> Providers; in combine()
153 for (const auto &Provider : Providers) { in combine() local
[all …]
/external/guice/extensions/mini/src/com/google/inject/mini/
DMiniGuice.java35 import javax.inject.Provider;
48 private final Map<Key, Provider<?>> bindings = new HashMap<>();
86 Provider<?> provider = miniGuice.bindings.get(key); in inject()
91 Map<Key, Provider<?>> providerBindings = new HashMap<>(); in addProviderBindings()
92 for (final Map.Entry<Key, Provider<?>> binding : bindings.entrySet()) { in addProviderBindings()
94 final Provider<?> value = binding.getValue(); in addProviderBindings()
95 Provider<Provider<?>> providerProvider = in addProviderBindings()
96 new Provider<Provider<?>>() { in addProviderBindings()
98 public Provider<?> get() { in addProviderBindings()
103 new Key(new ProviderType(javax.inject.Provider.class, key.type), key.annotation), in addProviderBindings()
[all …]
/external/dagger2/javatests/dagger/internal/
DMapProviderFactoryTest.java24 import javax.inject.Provider;
52 Provider<Integer> p1 = incrementingIntegerProvider(10); in iterationOrder()
53 Provider<Integer> p2 = incrementingIntegerProvider(20); in iterationOrder()
54 Provider<Integer> p3 = incrementingIntegerProvider(30); in iterationOrder()
55 Provider<Integer> p4 = incrementingIntegerProvider(40); in iterationOrder()
56 Provider<Integer> p5 = incrementingIntegerProvider(50); in iterationOrder()
58 Factory<Map<String, Provider<Integer>>> factory = MapProviderFactory in iterationOrder()
67 Map<String, Provider<Integer>> expectedMap = new LinkedHashMap<>(); in iterationOrder()
79 private static Provider<Integer> incrementingIntegerProvider(int seed) { in incrementingIntegerProvider()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/
DProviders.java21 public static Provider provider(Reader reader) { in provider()
25 public static Provider provider(InputStream input, Charset encoding) { in provider()
37 public static Provider provider(InputStream input) { in provider()
41 public static Provider provider(File file, Charset encoding) throws FileNotFoundException { in provider()
45 public static Provider provider(File file) throws FileNotFoundException { in provider()
49 public static Provider provider(Path path, Charset encoding) throws IOException { in provider()
53 public static Provider provider(Path path) throws IOException { in provider()
57 public static Provider provider(String source) { in provider()
/external/dagger2/javatests/dagger/functional/guava/
DOptionalBindingComponents.java32 import javax.inject.Provider;
48 abstract Optional<Provider<Value>> optionalProvider(); in optionalProvider()
52 abstract Optional<Provider<Lazy<Value>>> optionalLazyProvider(); in optionalLazyProvider()
85 Optional<Provider<Value>> optionalProvider, in values()
87 Optional<Provider<Lazy<Value>>> optionalLazyProvider) { in values()
96 @SomeQualifier Optional<Provider<Value>> optionalProvider, in qualifiedValues()
98 @SomeQualifier Optional<Provider<Lazy<Value>>> optionalLazyProvider) { in qualifiedValues()
109 static Value value(Optional<Provider<Value>> cycle) { in value()
134 Optional<Provider<Object>> optionalNullableProvider(); in optionalNullableProvider()
138 Optional<Provider<Lazy<Object>>> optionalNullableLazyProvider(); in optionalNullableLazyProvider()
/external/dagger2/javatests/dagger/functional/jdk8/
DOptionalBindingComponents.java32 import javax.inject.Provider;
48 abstract Optional<Provider<Value>> optionalProvider(); in optionalProvider()
52 abstract Optional<Provider<Lazy<Value>>> optionalLazyProvider(); in optionalLazyProvider()
85 Optional<Provider<Value>> optionalProvider, in values()
87 Optional<Provider<Lazy<Value>>> optionalLazyProvider) { in values()
96 @SomeQualifier Optional<Provider<Value>> optionalProvider, in qualifiedValues()
98 @SomeQualifier Optional<Provider<Lazy<Value>>> optionalLazyProvider) { in qualifiedValues()
109 static Value value(Optional<Provider<Value>> cycle) { in value()
134 Optional<Provider<Object>> optionalNullableProvider(); in optionalNullableProvider()
138 Optional<Provider<Lazy<Object>>> optionalNullableLazyProvider(); in optionalNullableLazyProvider()

12345678910>>...22