Home
last modified time | relevance | path

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

12345678910>>...17

/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/
DInjectedThing.java21 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 …]
DBasicComponent.java21 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/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java34 import java.security.Provider;
133 for (Provider keyFactoryProvider1 : getKeyFactoryProviders()) { in testKnownAnswer()
136 for (Provider keyFactoryProvider2 : getKeyFactoryProviders()) { in testKnownAnswer()
141 for (Provider keyAgreementProvider : getKeyAgreementProviders()) { in testKnownAnswer()
160 Provider keyAgreementProvider) throws Exception { in testKnownAnswer()
172 void testGetAlgorithm(Provider provider) throws Exception { in testGetAlgorithm()
181 void testGetProvider(Provider provider) throws Exception { in testGetProvider()
190 void testInit_withNullPrivateKey(Provider provider) throws Exception { in testInit_withNullPrivateKey()
203 void testInit_withUnsupportedPrivateKeyType(Provider provider) throws Exception { in testInit_withUnsupportedPrivateKeyType()
216 void testInit_withUnsupportedAlgorithmParameterSpec(Provider provider) throws Exception { in testInit_withUnsupportedAlgorithmParameterSpec()
[all …]
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java35 import java.security.Provider;
135 for (Provider keyFactoryProvider1 : getKeyFactoryProviders()) { in testKnownAnswer()
138 for (Provider keyFactoryProvider2 : getKeyFactoryProviders()) { in testKnownAnswer()
143 for (Provider keyAgreementProvider : getKeyAgreementProviders()) { in testKnownAnswer()
162 Provider keyAgreementProvider) throws Exception { in testKnownAnswer()
174 void testGetAlgorithm(Provider provider) throws Exception { in testGetAlgorithm()
183 void testGetProvider(Provider provider) throws Exception { in testGetProvider()
192 void testInit_withNullPrivateKey(Provider provider) throws Exception { in testInit_withNullPrivateKey()
205 void testInit_withUnsupportedPrivateKeyType(Provider provider) throws Exception { in testInit_withUnsupportedPrivateKeyType()
218 void testInit_withUnsupportedAlgorithmParameterSpec(Provider provider) throws Exception { in testInit_withUnsupportedAlgorithmParameterSpec()
[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/dagger2/compiler/src/it/functional-tests/src/main/java/test/nullables/
DNullFoo.java19 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/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/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/dagger2/core/src/test/java/dagger/internal/
DMapProviderFactoryTest.java21 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()
DSetFactoryTest.java24 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/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/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/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/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/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/
Dcom_github_javaparser_JavaParser.txt1 …tParser.ReInit(provider) ==> com.github.javaparser.ASTParser.ReInit(com.github.javaparser.Provider)
2 …provider) ==> com.github.javaparser.JavaParser.getParserForProvider(com.github.javaparser.Provider)
13 Line 102) provider.close() ==> com.github.javaparser.Provider.close()
14 …ser.JavaParser.simplifiedParse(com.github.javaparser.ParseStart<T>, com.github.javaparser.Provider)
17 …ser.JavaParser.simplifiedParse(com.github.javaparser.ParseStart<T>, com.github.javaparser.Provider)
19 …ser.JavaParser.simplifiedParse(com.github.javaparser.ParseStart<T>, com.github.javaparser.Provider)
21 …ser.JavaParser.simplifiedParse(com.github.javaparser.ParseStart<T>, com.github.javaparser.Provider)
23 …ser.JavaParser.simplifiedParse(com.github.javaparser.ParseStart<T>, com.github.javaparser.Provider)
25 …ser.JavaParser.simplifiedParse(com.github.javaparser.ParseStart<T>, com.github.javaparser.Provider)
27 …ser.JavaParser.simplifiedParse(com.github.javaparser.ParseStart<T>, com.github.javaparser.Provider)
[all …]
/external/libchrome/base/
Dpath_service.cc45 struct Provider { struct
47 struct Provider* next; argument
55 Provider base_provider = {PathProvider, nullptr,
62 Provider base_provider_win = {
74 Provider base_provider_mac = {
86 Provider base_provider_android = {
98 Provider base_provider_fuchsia = {PathProviderFuchsia, &base_provider,
107 Provider base_provider_posix = {
123 Provider* providers; // Linked list of path service providers.
189 Provider* provider = nullptr; in Get()
[all …]
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/cycle/
DCycles.java26 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/dagger2/core/src/main/java/dagger/internal/
DMapFactory.java20 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()
DMapProviderFactory.java20 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/libchrome/base/files/
Dfile_tracing.cc18 FileTracing::Provider* GetProvider() { in GetProvider()
20 return reinterpret_cast<FileTracing::Provider*>(provider); in GetProvider()
25 FileTracing::Provider* provider = GetProvider(); in IsCategoryEnabled()
30 void FileTracing::SetProvider(FileTracing::Provider* provider) { in SetProvider()
36 FileTracing::Provider* provider = GetProvider(); in ScopedEnabler()
42 FileTracing::Provider* provider = GetProvider(); in ~ScopedEnabler()
51 FileTracing::Provider* provider = GetProvider(); in ~ScopedTrace()
/external/skia/src/core/
DSkNormalFlatSource.h21 SkNormalSource::Provider* asProvider(const SkShaderBase::ContextRec& rec,
30 class Provider : public SkNormalSource::Provider { in SK_FLATTENABLE_HOOKS()
32 Provider(); in SK_FLATTENABLE_HOOKS()
34 ~Provider() override; in SK_FLATTENABLE_HOOKS()
39 typedef SkNormalSource::Provider INHERITED; in SK_FLATTENABLE_HOOKS()
DSkNormalFlatSource.cpp70 SkNormalFlatSourceImpl::Provider::Provider() {} in Provider() function in SkNormalFlatSourceImpl::Provider
72 SkNormalFlatSourceImpl::Provider::~Provider() {} in ~Provider()
74 SkNormalSource::Provider* SkNormalFlatSourceImpl::asProvider(const SkShaderBase::ContextRec &rec, in asProvider()
76 return alloc->make<Provider>(); in asProvider()
79 void SkNormalFlatSourceImpl::Provider::fillScanLine(int x, int y, SkPoint3 output[], in fillScanLine()
/external/skqp/src/core/
DSkNormalFlatSource.h21 SkNormalSource::Provider* asProvider(const SkShaderBase::ContextRec& rec,
30 class Provider : public SkNormalSource::Provider { in SK_FLATTENABLE_HOOKS()
32 Provider(); in SK_FLATTENABLE_HOOKS()
34 ~Provider() override; in SK_FLATTENABLE_HOOKS()
39 typedef SkNormalSource::Provider INHERITED; in SK_FLATTENABLE_HOOKS()
DSkNormalFlatSource.cpp70 SkNormalFlatSourceImpl::Provider::Provider() {} in Provider() function in SkNormalFlatSourceImpl::Provider
72 SkNormalFlatSourceImpl::Provider::~Provider() {} in ~Provider()
74 SkNormalSource::Provider* SkNormalFlatSourceImpl::asProvider(const SkShaderBase::ContextRec &rec, in asProvider()
76 return alloc->make<Provider>(); in asProvider()
79 void SkNormalFlatSourceImpl::Provider::fillScanLine(int x, int y, SkPoint3 output[], in fillScanLine()

12345678910>>...17