HomeSort by relevance Sort by last modified time
    Searched refs:Provider (Results 226 - 250 of 417) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/dagger2/producers/src/main/java/dagger/producers/internal/
Producers.java 27 import javax.inject.Provider;
91 * Returns a producer that immediately executes the binding logic for the given provider every
94 public static <T> Producer<T> producerFromProvider(final Provider<T> provider) {
95 checkNotNull(provider);
99 return Futures.immediateFuture(provider.get());
  /external/guice/core/src/com/google/inject/
Scopes.java 51 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
  /external/guice/core/test/com/google/inject/
BoundInstanceInjectionTest.java 65 new Provider<O>() {
127 static class MalformedProvider implements Provider<String> {
BinderTestSuite.java 345 /** When Guice creates a value, directly or via a provider */
462 Provider<?> provider = newInjector().getProvider(key); local
465 assertEquals(value, provider.get());
468 Provider<?> bindingProvider = newInjector().getBinding(key).getProvider();
492 hasProvider.provider.get();
495 assertEquals(value, hasProvider.provider.get());
643 Provider<?> provider = newInjector().getProvider(key); local
644 Provider<?> bindingProvider = newInjector().getBinding(key).getProvider()
858 Provider<?> provider = Providers.of(new Object()); field in class:Injectable
    [all...]
OptionalBindingTest.java 27 * instance, and bind to provider instance) for all states of optional bindings (fields, methods,
28 * multiple-argument methods, provider fields, provider methods, constructors).
188 Provider<F> fProvider; // provider
190 Provider<G> gProvider; // method injection of provider
218 void methodInjectProvider(Provider<G> gProvider) {
254 implements Provider<HasOptionalInjections> {
ScopesTest.java 231 static class EProvider implements Provider<E> {
309 Provider<?> listProvider = scope.providers.get(Key.get(List.class));
471 final Map<Key<?>, Provider<?>> providers = Maps.newHashMap();
474 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
504 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
575 static class ImplementationProvider implements Provider<ProvidedBySingleton> {
600 @Inject Provider<B> bProvider;
603 public <T> Provider<T> scope(Key<T> key, final Provider<T> unscoped)
    [all...]
KeyTest.java 49 public void bar(Provider<List<String>> a) {}
72 Key.get(getClass().getMethod("bar", Provider.class).getGenericParameterTypes()[0]);
312 final AtomicReference<Provider<List<String>>> stringProvider =
313 new AtomicReference<Provider<List<String>>>();
314 final AtomicReference<Provider<List<Integer>>> intProvider =
315 new AtomicReference<Provider<List<Integer>>>();
  /external/guice/core/test/com/google/inject/spi/
HasDependenciesTest.java 26 import com.google.inject.Provider;
85 static class ProviderOfA implements Provider<A> {
  /external/guice/extensions/servlet/src/com/google/inject/servlet/
InternalServletModule.java 24 import com.google.inject.Provider;
46 * Special Provider that tries to obtain an injected servlet context, specific to the current
51 static class BackwardsCompatibleServletContextProvider implements Provider<ServletContext> {
  /external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
ShadowLocalBroadcastManager.java 15 import org.robolectric.shadows.Provider;
27 return ShadowApplication.getInstance().getSingleton(LocalBroadcastManager.class, new Provider<LocalBroadcastManager>() {
  /external/guice/core/src/com/google/inject/internal/
InjectorImpl.java 37 import com.google.inject.Provider;
188 // If Key is a Provider, we have to see if the type it is providing exists,
189 // and, if so, we have to create the binding for the provider.
192 // This is safe because isProvider above ensures that T is a Provider<?>
295 /** Returns true if the key type is Provider (but not a subclass of Provider). */
297 return key.getTypeLiteral().getRawType().equals(Provider.class);
304 private static <T> Key<T> getProvidedKey(Key<Provider<T>> key, Errors errors)
308 // If the Provider has no type parameter (raw Provider)..
377 final Provider<T> provider = providedBinding.getProvider(); local
    [all...]
  /cts/tests/tests/security/src/android/security/cts/
X509CertChainBuildingTest.java 29 import java.security.Provider;
176 private static X509TrustManager getTrustManager(KeyStore ks, Provider p) throws Exception {
200 Provider[] providers = Security.getProviders("TrustManagerFactory.PKIX");
203 for (Provider p : providers) {
222 throw new Exception("Failed with provider " + p, e);
  /device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/
ModifyIdentityPolicy.c 20 provider can't appear twice in one identity policy.
22 @param[in] NewGuid Points to the credential provider guid.
45 L"This Credential Provider Are Already Used!",
61 Add the user's credential record in the provider.
63 @param[in] Identity Identity policy item including credential provider.
80 // Find the specified credential provider.
83 UserCredential = mProviderInfo->Provider[Index];
94 Delete the User's credential record on the provider.
113 // Find the specified credential provider.
116 UserCredential = mProviderInfo->Provider[Index];
    [all...]
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DependencyVariableNamer.java 21 import javax.inject.Provider;
25 * with the {@link DependencyRequest}. I.e. strips out words like "lazy" and "provider" if we
26 * believe that those refer to {@link Lazy} and {@link Provider} rather than the type being
47 case PROVIDER:
48 return variableName.endsWith("Provider") && !variableName.equals("Provider")
  /external/dagger2/producers/src/main/java/dagger/producers/monitoring/internal/
Monitors.java 27 import javax.inject.Provider;
288 /** Returns a provider of a no-op component monitor. */
289 public static Provider<ProductionComponentMonitor> noOpProductionComponentMonitorProvider() {
318 private static final Provider<ProductionComponentMonitor>
320 new Provider() {
  /external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
HedgingPolicy.java 81 interface Provider {
ServiceConfigInterceptor.java 282 static final CallOptions.Key<RetryPolicy.Provider> RETRY_POLICY_KEY =
284 static final CallOptions.Key<HedgingPolicy.Provider> HEDGING_POLICY_KEY =
294 final class ImmediateRetryPolicyProvider implements RetryPolicy.Provider {
302 final class ImmediateHedgingPolicyProvider implements HedgingPolicy.Provider {
317 final class DelayedRetryPolicyProvider implements RetryPolicy.Provider {
333 final class DelayedHedgingPolicyProvider implements HedgingPolicy.Provider {
  /external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/
TestUtils.java 34 import java.security.Provider;
153 * providers is static, this method does nothing if the provider is not available or succeeded
173 Provider provider; local
175 provider = (Provider) newProvider.invoke(null);
181 Security.addProvider(provider);
188 public static SSLSocketFactory newSslSocketFactoryForCa(Provider provider,
202 SSLContext context = SSLContext.getInstance("TLS", provider);
    [all...]
  /external/guice/extensions/servlet/test/com/google/inject/servlet/
ContinuingRequestIntegrationTest.java 30 import com.google.inject.Provider;
226 @Inject Provider<HttpServletRequest> request;
227 @Inject Provider<HttpServletResponse> response;
228 @Inject Provider<SomeObject> someObject;
ServletTest.java 38 import com.google.inject.Provider;
191 @Inject Provider<ServletRequest> servletReqProvider;
192 @Inject Provider<HttpServletRequest> reqProvider;
193 @Inject Provider<ServletResponse> servletRespProvider;
194 @Inject Provider<HttpServletResponse> respProvider;
259 final Provider<ServletRequest> servletReqProvider = getProvider(ServletRequest.class);
260 final Provider<HttpServletRequest> reqProvider = getProvider(HttpServletRequest.class);
261 final Provider<ServletResponse> servletRespProvider =
263 final Provider<HttpServletResponse> respProvider =
  /external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/
CommentsInserterTest.java 41 Provider p = Providers.resourceProvider(
  /cts/tests/tests/keystore/src/android/keystore/cts/
MacTest.java 25 import java.security.Provider;
26 import java.security.Provider.Service;
186 // Assert that Android Keystore Provider exposes exactly the expected MAC algorithms. We
189 // If the Provider exposes extraneous algorithms, it'll be caught because it'll have to
193 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
194 Set<Service> services = provider.getServices();
210 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
211 assertNotNull(provider);
227 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
248 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
269 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
    [all...]
SignatureTest.java 24 import java.security.Provider;
25 import java.security.Provider.Service;
79 // services. Thus, our provider has to expose the "ECDSA" service whose actual proper
332 // Assert that Android Keystore Provider exposes exactly the expected signature algorithms.
335 // If the Provider exposes extraneous algorithms, it'll be caught because it'll have to
339 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
340 Set<Service> services = provider.getServices();
366 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME) local
382 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
397 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
426 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
449 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
570 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
623 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
721 Provider provider = Security.getProvider(EXPECTED_PROVIDER_NAME); local
    [all...]
  /external/caliper/caliper/src/main/java/com/google/caliper/runner/
ExperimentingRunnerModule.java 53 import javax.inject.Provider;
119 Map<Class<? extends ResultProcessor>, Provider<ResultProcessor>> availableProcessors) {
122 Provider<ResultProcessor> resultProcessorProvider = availableProcessors.get(processorClass);
183 Map<Class<? extends Instrument>, Provider<Instrument>> availableInstruments,
201 Provider<Instrument> instrumentProvider = availableInstruments.get(clazz);
  /external/javaparser/javaparser-testing/src/test/resources/com/github/javaparser/lexical_preservation_samples/
Example4_original.java.txt 42 import static com.github.javaparser.Providers.provider;
77 private ASTParser getParserForProvider(Provider provider) {
79 astParser = new ASTParser(provider);
81 astParser.reset(provider);
89 * It takes the source code from a Provider.
93 * @param provider refer to Providers to see how you can read source.
97 public <N extends Node> ParseResult<N> parse(ParseStart<N> start, Provider provider) {
99 assertNotNull(provider);
    [all...]

Completed in 682 milliseconds

1 2 3 4 5 6 7 8 91011>>