Home
last modified time | relevance | path

Searched refs:Providers (Results 1 – 25 of 89) sorted by relevance

1234

/external/guice/core/test/com/google/inject/util/
DProvidersTest.java34 Provider<String> p = Providers.of(foo); in testOfInstance()
40 Provider<String> p = Providers.of(null); in testOfNull()
46 .addEqualityGroup(Providers.of(null), Providers.of(null)) in testOfEquality()
47 .addEqualityGroup(Providers.of("Hello"), Providers.of("Hello")) in testOfEquality()
54 Providers.guicify(new JavaxProvider(10)), Providers.guicify(new JavaxProvider(10))) in testGuicifyEquality()
56 Providers.guicify(new JavaxProvider(11)), Providers.guicify(new JavaxProvider(11))) in testGuicifyEquality()
58 Providers.guicify(new JavaxProviderWithDependencies()), in testGuicifyEquality()
59 Providers.guicify(new JavaxProviderWithDependencies())) in testGuicifyEquality()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_JavaParser.txt15 …Line 119) provider(in, encoding) ==> com.github.javaparser.Providers.provider(java.io.InputStream,…
18 …Line 146) provider(file, encoding) ==> com.github.javaparser.Providers.provider(java.io.File, java…
20 Line 160) provider(file) ==> com.github.javaparser.Providers.provider(java.io.File)
22 …Line 174) provider(path, encoding) ==> com.github.javaparser.Providers.provider(java.nio.file.Path…
24 Line 188) provider(path) ==> com.github.javaparser.Providers.provider(java.nio.file.Path)
26 Line 200) provider(reader) ==> com.github.javaparser.Providers.provider(java.io.Reader)
28 Line 212) provider(code) ==> com.github.javaparser.Providers.provider(java.lang.String)
30 Line 224) provider(blockStatement) ==> com.github.javaparser.Providers.provider(java.lang.String)
32 Line 236) provider(statement) ==> com.github.javaparser.Providers.provider(java.lang.String)
39 …Line 256) provider(importDeclaration) ==> com.github.javaparser.Providers.provider(java.lang.Strin…
[all …]
Dcom_github_javaparser_Providers.txt6 …Line 38) provider(input, UTF8) ==> com.github.javaparser.Providers.provider(java.io.InputStream, j…
7 …ssertNotNull(file)), assertNotNull(encoding)) ==> com.github.javaparser.Providers.provider(java.io…
10 …Line 46) provider(assertNotNull(file), UTF8) ==> com.github.javaparser.Providers.provider(java.io.…
12 …ssertNotNull(path)), assertNotNull(encoding)) ==> com.github.javaparser.Providers.provider(java.io…
16 …Line 54) provider(assertNotNull(path), UTF8) ==> com.github.javaparser.Providers.provider(java.nio…
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletScopesTest.java38 import com.google.inject.util.Providers;
67 bind(c).toProvider(Providers.of("c")).in(ServletScopes.REQUEST); in testIsRequestScopedPositive()
68 bind(d).toProvider(Providers.of("d")).in(RequestScoped.class); in testIsRequestScopedPositive()
74 bind(f).toProvider(Providers.of("f")).in(RequestScoped.class); in testIsRequestScopedPositive()
129 bind(c).toProvider(Providers.of("c")).in(Scopes.NO_SCOPE); in testIsRequestScopedNegative()
131 bind(e).toProvider(Providers.of("e")).asEagerSingleton(); in testIsRequestScopedNegative()
132 bind(f).toProvider(Providers.of("f")).in(Scopes.SINGLETON); in testIsRequestScopedNegative()
133 bind(g).toProvider(Providers.of("g")).in(Singleton.class); in testIsRequestScopedNegative()
134 bind(h).toProvider(Providers.of("h")).in(CustomScoped.class); in testIsRequestScopedNegative()
140 bind(i).toProvider(Providers.of("i")).in(CustomScoped.class); in testIsRequestScopedNegative()
DServletPipelineRequestDispatcherTest.java36 import com.google.inject.util.Providers;
102 Provider<ServletDefinition> bindingProvider = Providers.of(servletDefinition); in testIncludeManagedServlet()
169 Provider<ServletDefinition> bindingProvider = Providers.of(servletDefinition); in testForwardToManagedServlet()
239 Provider<ServletDefinition> bindingProvider = Providers.of(servletDefinition); in forwardToManagedServletFailureOnCommittedBuffer()
/external/llvm-project/clang-tools-extra/clangd/
DConfigProvider.cpp146 Provider::combine(std::vector<const Provider *> Providers) { in combine() argument
148 std::vector<const Provider *> Providers; in combine() member in clang::clangd::config::Provider::combine::CombinedProvider
153 for (const auto &Provider : Providers) { in combine()
161 CombinedProvider(std::vector<const Provider *> Providers) in combine() argument
162 : Providers(std::move(Providers)) {} in combine()
165 return std::make_unique<CombinedProvider>(std::move(Providers)); in combine()
DTidyProvider.cpp249 TidyProvider combine(std::vector<TidyProvider> Providers) { in combine() argument
253 return [Providers(std::move(Providers))](tidy::ClangTidyOptions &Opts, in combine()
255 for (const auto &Provider : Providers) in combine()
/external/guice/core/test/com/google/inject/
DBinderTest.java30 import com.google.inject.util.Providers;
543 bind(new TypeLiteral<Provider<String>>() {}).toInstance(Providers.of("A")); in testBindingToProvider()
568 bind(AbstractModule.class).annotatedWith(red).toProvider(Providers.<AbstractModule>of(null)); in configure()
569 bind(Binder.class).annotatedWith(red).toProvider(Providers.<Binder>of(null)); in configure()
570 bind(Binding.class).annotatedWith(red).toProvider(Providers.<Binding>of(null)); in configure()
571 bind(Injector.class).annotatedWith(red).toProvider(Providers.<Injector>of(null)); in configure()
572 bind(Key.class).annotatedWith(red).toProvider(Providers.<Key>of(null)); in configure()
573 bind(Module.class).annotatedWith(red).toProvider(Providers.<Module>of(null)); in configure()
574 bind(Provider.class).annotatedWith(red).toProvider(Providers.<Provider>of(null)); in configure()
575 bind(Scope.class).annotatedWith(red).toProvider(Providers.<Scope>of(null)); in configure()
[all …]
DNullableInjectionPointTest.java10 import com.google.inject.util.Providers;
101 bind(Foo.class).toProvider(Providers.<Foo>of(null)); in createInjector()
132 bind(Foo.class).toProvider(Providers.<Foo>of(null));
152 bind(Foo.class).toProvider(Providers.<Foo>of(null)).in(Scopes.SINGLETON);
172 bind(Foo.class).toProvider(Providers.<Foo>of(null)).asEagerSingleton();
198 bind(Foo.class).toProvider(Providers.<Foo>of(null));
DScopesTest.java39 import com.google.inject.util.Providers;
631 bind(c).toProvider(Providers.of("c")).in(Scopes.SINGLETON);
633 bind(e).toProvider(Providers.of("e")).asEagerSingleton();
634 bind(f).toProvider(Providers.of("f")).in(Singleton.class);
640 bind(i).toProvider(Providers.of("i")).in(Singleton.class);
693 bind(c).toProvider(Providers.of("c")).in(Scopes.NO_SCOPE);
694 bind(d).toProvider(Providers.of("d")).in(CustomScoped.class);
700 bind(f).toProvider(Providers.of("f")).in(CustomScoped.class);
749 bind(c).toProvider(Providers.of("c")).in(CUSTOM_SCOPE);
750 bind(d).toProvider(Providers.of("d")).in(CustomScoped.class);
[all …]
DMembersInjectorTest.java23 import com.google.inject.util.Providers;
199 bind(MembersInjector.class).toProvider(Providers.<MembersInjector>of(null)); in testCannotBindMembersInjector()
215 .toProvider(Providers.<MembersInjector<A<C>>>of(null)); in testCannotBindMembersInjector()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/
DAncestorDescendantTests.java18 Provider provider = Providers.resourceProvider("com/github/javaparser/range/A.java"); in nodeIsNotAncestorOfItself()
36 Provider provider = Providers.resourceProvider("com/github/javaparser/range/A.java"); in nodeIsNotDescendantOfItself()
54 Provider provider = Providers.resourceProvider("com/github/javaparser/range/A.java"); in nodeInSameFileIsDescendantOfAncestor()
77 Provider providerA = Providers.resourceProvider("com/github/javaparser/range/A.java"); in nodesInTwoDifferentFilesAreNotDescendantOrAncestorOfEachOther()
82 Provider providerB = Providers.resourceProvider("com/github/javaparser/range/B.java"); in nodesInTwoDifferentFilesAreNotDescendantOrAncestorOfEachOther()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/
DProvidersTest.java36 …Provider provider = Providers.resourceProvider("com/github/javaparser/issue_samples/Issue290.java.… in testResourceProvider()
45 … Provider provider = Providers.resourceProvider("com/github/javaparser/TestFileIso88591.java"); in testResourceProviderWithWrongEncoding()
54 Provider provider = Providers.resourceProvider( in testResourceProviderWithEncoding()
/external/libchrome/components/policy/core/common/
Dpolicy_service_impl.h32 using Providers = std::vector<ConfigurationPolicyProvider*>;
36 explicit PolicyServiceImpl(Providers providers);
72 Providers providers_;
/external/llvm-project/clang-tools-extra/clangd/tool/
DClangdMain.cpp843 std::vector<TidyProvider> Providers; in main() local
844 Providers.reserve(4 + EnableConfig); in main()
845 Providers.push_back(provideEnvironment()); in main()
846 Providers.push_back(provideClangTidyFiles(TFS)); in main()
848 Providers.push_back(provideClangdConfig()); in main()
850 Providers.push_back(addTidyChecks(ClangTidyChecks)); in main()
852 Providers.push_back(provideDefaultChecks()); in main()
853 Providers.push_back(disableUnusableChecks()); in main()
854 ClangTidyOptProvider = combine(std::move(Providers)); in main()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/
DProviders.java15 public final class Providers { class
18 private Providers() { in Providers() method in Providers
DJavaParser.java40 import static com.github.javaparser.Providers.UTF8;
41 import static com.github.javaparser.Providers.provider;
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DParserConfiguration.java33 import com.github.javaparser.Providers.PreProcessor;
152 private Charset characterEncoding = Providers.UTF8;
154 private final List<Providers.PreProcessor> preProcessors = new ArrayList<>();
305 public List<Providers.PreProcessor> getPreProcessors() { in getPreProcessors()
DProviders.java35 public final class Providers { class
38 private Providers() { in Providers() method in Providers
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DIssue1364Test.java7 import com.github.javaparser.Providers;
71 …ilationUnit> parseResult = javaParser.parse(ParseStart.COMPILATION_UNIT, Providers.provider(code)); in resolveSubClassOfObject()
/external/guice/extensions/dagger-adapter/test/com/google/inject/daggeradapter/
DDaggerAdapterTest.java28 import com.google.inject.util.Providers;
121 mb.addBinding().toProvider(Providers.of(8)); // mix'n'match. in configure()
/external/guice/core/src/com/google/inject/util/
DProviders.java38 public final class Providers { class
40 private Providers() {} in Providers() method in Providers
/external/guava/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java33 import sun.security.jca.Providers;
82 ProviderList providers = Providers.getProviderList(); in testNoProviders()
83 Providers.setProviderList(ProviderList.newList()); in testNoProviders()
89 Providers.setProviderList(providers); in testNoProviders()
/external/guava/android/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java33 import sun.security.jca.Providers;
82 ProviderList providers = Providers.getProviderList(); in testNoProviders()
83 Providers.setProviderList(ProviderList.newList()); in testNoProviders()
89 Providers.setProviderList(providers); in testNoProviders()
/external/guice/core/src/com/google/inject/internal/
DProviderInstanceBindingImpl.java31 import com.google.inject.util.Providers;
75 return Providers.guicify(providerInstance); in getProviderInstance()

1234