/external/dagger2/compiler/src/it/producers-functional-tests/src/main/java/producerstest/ |
SimpleProducerModule.java | 28 import javax.inject.Provider; 108 static String strWithArgs(int i, Produced<Double> b, Producer<Object> c, Provider<Boolean> d) { 115 int i, Produced<Double> b, Producer<Object> c, Provider<Boolean> d) throws IOException { 122 int i, Produced<Double> b, Producer<Object> c, Provider<Boolean> d) { 129 int i, Produced<Double> b, Producer<Object> c, Provider<Boolean> d) throws IOException {
|
/external/guice/examples/src/example/xml/ |
XmlBeanModule.java | 5 import com.google.inject.Provider; 144 Provider<?> provider = sourced.getProvider(Key.get(parameterTypes[0])); local 146 new Property(setter, provider)); 158 final Provider<?> provider; field in class:XmlBeanModule.Property 160 Property(Method setter, Provider<?> provider) { 162 this.provider = provider; [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
MessageDigestTest.java | 23 import java.security.Provider; 55 Provider[] providers = Security.getProviders(); 56 for (Provider provider : providers) { 57 Set<Provider.Service> services = provider.getServices(); 58 for (Provider.Service service : services) { 70 // MessageDigest.getInstance(String, Provider) 71 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); 73 assertEquals(provider, md2.getProvider()) [all...] |
/libcore/luni/src/test/java/tests/java/security/ |
SecureRandomTest.java | 27 import java.security.Provider; 42 Provider p; 200 * Class under test for SecureRandom getInstance(String, Provider) 203 Provider p = new SRProvider(); 233 SecureRandom r = SecureRandom.getInstance("anyRandom", (Provider)null); 278 public class SRProvider extends Provider {
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertificateTest.java | 21 import java.security.Provider; [all...] |
/libcore/ojluni/src/main/java/java/security/ |
KeyFactory.java | 29 import java.security.Provider.Service; 127 // The provider 128 private Provider provider; field in class:KeyFactory 130 // The provider implementation (delegate) 133 // lock for mutex during provider selection 136 // remaining services to try in provider selection 137 // null once provider is selected 144 * @param provider the provider [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
KeyAgreement.java | 32 import java.security.Provider.Service; 95 // The provider 96 private Provider provider; field in class:KeyAgreement 98 // The provider implementation (delegate) 110 * @param provider the provider 113 protected KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, 116 this.provider = provider [all...] |
KeyGenerator.java | 31 import java.security.Provider.Service; 60 * of the highest-priority installed provider as the source of randomness 67 * provider what to do about the algorithm-specific parameters (if any) to be 78 * of the highest-priority installed provider as the source of randomness 84 * (via a call to an <code>init</code> method), each provider must 175 // The provider 176 private Provider provider; field in class:KeyGenerator 178 // The provider implementation (delegate) 197 * @param provider the provide [all...] |
Mac.java | 32 import java.security.Provider.Service; 144 // The provider 145 private Provider provider; field in class:Mac 147 // The provider implementation (delegate) 162 * @param provider the provider 165 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { 167 this.provider = provider [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
Signature2Test.java | 24 import java.security.Provider; 79 Provider[] providers = Security.getProviders("Signature.DSA"); 115 Provider p = Signature.getInstance("DSA").getProvider(); 116 assertNotNull("provider is null", p);
|
KeyFactory2Test.java | 27 import java.security.Provider; 124 fail("getInstance did not find provider " + providerName); 160 fail("getInstance did not find provider " + providerName); 182 fail("getInstance did not find provider " + providerName); 212 Provider[] providers = Security.getProviders("KeyFactory.DSA"); 223 fail("getInstance did not find the provider"); 226 // Test2: Test with null provider name 286 fail("getInstance did not find provider " + providerName); 297 // Test for method java.security.Provider 302 Provider p = fact.getProvider() 365 Provider provider = Security.getProvider(providerName); local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
X509SignatureUtil.java | 1 package org.bouncycastle.jcajce.provider.asymmetric.x509; 8 import java.security.Provider; 31 import org.bouncycastle.jce.provider.BouncyCastleProvider; 90 Provider prov = Security.getProvider(BouncyCastleProvider.PROVIDER_NAME); 102 Provider[] provs = Security.getProviders(); 105 // search every provider looking for a real algorithm
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
MonitoringModuleGenerator.java | 35 import javax.inject.Provider; 91 ParameterizedTypeName.create(Provider.class, ClassName.fromTypeElement(componentElement)), 94 ParameterizedTypeName.create(Provider.class, SET_OF_FACTORIES), "factories");
|
/external/guice/core/src/com/google/inject/internal/ |
EncounterImpl.java | 26 import com.google.inject.Provider; 127 public <T> Provider<T> getProvider(Key<T> key) { 132 public <T> Provider<T> getProvider(Class<T> type) {
|
InstanceBindingImpl.java | 23 import com.google.inject.Provider; 36 final Provider<T> provider; field in class:InstanceBindingImpl 45 this.provider = Providers.of(instance); 53 this.provider = Providers.of(instance); 56 @Override public Provider<T> getProvider() { 57 return this.provider;
|
ProviderMethod.java | 26 import com.google.inject.Provider; 46 * A provider that invokes a method and returns its result. 62 ImmutableSet<Dependency<?>> dependencies, List<Provider<?>> parameterProviders, 102 private final List<Provider<?>> parameterProviders; 110 ImmutableSet<Dependency<?>> dependencies, List<Provider<?>> parameterProviders, 235 * to invoke the provider method. 245 List<Provider<?>> parameterProviders, 285 List<Provider<?>> parameterProviders,
|
/external/guice/core/test/com/google/inject/spi/ |
ToolStageInjectorTest.java | 10 import com.google.inject.Provider; 134 private static class Foo implements Provider<Object> { 147 private static class Tooled implements Provider<Object> {
|
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/ |
Multibinder.java | 39 import com.google.inject.Provider; 83 * If desired, {@link Collection}{@code <Provider<Snack>>} can also be injected. 101 * provider, that provider's get method will be called each time the set is 199 static <T> TypeLiteral<Collection<Provider<T>>> collectionOfProvidersOf( 203 return (TypeLiteral<Collection<Provider<T>>>) TypeLiteral.get(type); 207 static <T> TypeLiteral<Collection<javax.inject.Provider<T>>> collectionOfJavaxProvidersOf( 210 Types.newParameterizedType(javax.inject.Provider.class, elementType.getType()); 212 return (TypeLiteral<Collection<javax.inject.Provider<T>>>) TypeLiteral.get(type); 253 * <p>As a Provider, this constructs the set instances [all...] |
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
ManagedFilterPipeline.java | 23 import com.google.inject.Provider; 51 private final Provider<ServletContext> servletContext; 63 Provider<ServletContext> servletContext) {
|
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/ |
CheckedProviderMethod.java | 24 import com.google.inject.Provider; 39 * A provider that invokes a method and returns its result. 49 private final List<Provider<?>> parameterProviders; 60 List<Provider<?>> parameterProviders,
|
/external/guice/jdk8-tests/test/com/google/inject/jdk8/ |
Java8LanguageFeatureBindingTest.java | 25 import com.google.inject.Provider; 124 private static final class StringProvider implements Provider<String> { 161 Provider<String> provider = injector.getProvider(String.class); local 162 assertEquals("Hello", provider.get());
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
Grid.java | 24 * To use the Grid, user must implement a Provider to create or remove visible item. 29 * uses size of visible item returned from Provider.createItem() to decide which row 46 public static interface Provider { 54 * Create visible item and where the provider should measure it. 56 * @param index 0-based index of the item in provider 67 * @param index 0-based index of the item in provider 76 * @param index 0-based index of the item in provider 83 * @param index 0-based index of the item in provider 89 * @param index 0-based index of the item in provider 108 protected Provider mProvider [all...] |
/libcore/ojluni/src/main/java/sun/security/ec/ |
ECKeyFactory.java | 55 // Used by translateKey() and the SunPKCS11 provider 58 // Internal provider object we can obtain the KeyFactory and 60 // This can go away once we have EC always available in the SUN provider. 62 public final static Provider ecInternalProvider; 65 final Provider p = new Provider("SunEC-Internal", 1.0d, null) {};
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CertStore1Test.java | 27 import java.security.Provider; 72 private static Provider defaultProvider; 74 private static Provider defaultProviderCol; 98 private Provider dProv = null; 174 assertEquals("Incorrect provider", certS.getProvider(), dProv); 184 assertNull("Incorrect provider", certS.getProvider()); 237 * <code>getInstance(String type, CertStoreParameters params, String provider)</code> 238 * Assertion: throws IllegalArgumentException when provider is null or empty 240 * FIXME: verify IllegalArgumentException when provider is empty 248 String provider = null local 341 Provider provider = null; local [all...] |
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherTest.java | 27 import java.security.Provider; 76 Provider[] providers = Security.getProviders("Cipher.DES"); 112 *java.security.Provider) 117 Provider[] providers = Security.getProviders("Cipher.DES"); 132 Provider[] providers = Security.getProviders("Cipher.AES"); 137 Provider provider = providers[i]; local 138 Cipher cipher = Cipher.getInstance("AES", provider.getName()); 139 Provider cipherProvider = cipher.getProvider(); 140 assertTrue("Cipher provider is not the same as that [all...] |