/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CertPathValidator3Test.java | 28 import java.security.Provider; 61 private static Provider defaultProvider;
|
CertPathBuilder1Test.java | 27 import java.security.Provider; 67 private static Provider defaultProvider; 166 * Test for <code>getInstance(String algorithm, String provider)</code> method 167 * Assertion: throws IllegalArgumentException when provider is null or empty 169 * FIXME: verify what exception will be thrown if provider is empty 177 String provider = null; local 180 CertPathBuilder.getInstance(validValues[i], provider); 193 * Test for <code>getInstance(String algorithm, String provider)</code> method 195 * throws NoSuchProviderException when provider has invalid value 215 * Test for <code>getInstance(String algorithm, String provider)</code> metho [all...] |
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
KeyStoreTestSupport.java | 25 import java.security.Provider; 51 public static Provider defaultProvider = null;
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
JcaContentSignerBuilder.java | 7 import java.security.Provider; 35 public JcaContentSignerBuilder setProvider(Provider provider) 37 this.helper = new OperatorHelper(new ProviderJcaJceHelper(provider));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
X509Util.java | 8 import java.security.Provider; 207 String provider) 210 if (provider != null) 212 return Signature.getInstance(algorithm, provider); 254 String provider, 267 sig = X509Util.getSignatureInstance(sigName, provider); 299 Provider provider; field in class:X509Util.Implementation 303 Provider provider) [all...] |
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/ |
MultibindingModule.java | 30 import javax.inject.Provider; 72 static Set<String> provideMapKeys(Map<String, Provider<String>> map) {
|
/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 | 54 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
|
/external/guice/core/test/com/google/inject/ |
BoundInstanceInjectionTest.java | 60 bind(O.class).toProvider(new Provider<O>() { 109 static class MalformedProvider implements Provider<String> {
|
BinderTestSuite.java | 299 /** When Guice creates a value, directly or via a provider */ 410 Provider<?> provider = newInjector().getProvider(key); local 413 assertEquals(value, provider.get()); 416 Provider<?> bindingProvider = newInjector().getBinding(key).getProvider(); 440 hasProvider.provider.get(); 443 assertEquals(value, hasProvider.provider.get()); 582 Provider<?> provider = newInjector().getProvider(key); local 583 Provider<?> bindingProvider = newInjector().getBinding(key).getProvider() 767 Provider<?> provider = Providers.of(new Object()); field in class:Injectable [all...] |
NullableInjectionPointTest.java | 56 * Provider.getInstance() is allowed to return null via direct calls to 103 bind(Foo.class).toProvider(new Provider<Foo>() { 133 bind(Foo.class).toProvider(new Provider<Foo>() { 154 bind(Foo.class).toProvider(new Provider<Foo>() { 175 bind(Foo.class).toProvider(new Provider<Foo>() {
|
OptionalBindingTest.java | 29 * injectMembers(), bind to instance, and bind to provider instance) for all 31 * provider fields, provider methods, constructors). 181 @Inject(optional=true) Provider<F> fProvider; // provider 182 Provider<G> gProvider; // method injection of provider 205 @Inject(optional=true) void methodInjectProvider(Provider<G> gProvider) { 241 extends HasOptionalInjections implements Provider<HasOptionalInjections> {
|
/external/guice/core/test/com/google/inject/spi/ |
HasDependenciesTest.java | 26 import com.google.inject.Provider; 80 static class ProviderOfA implements Provider<A> {
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
InternalServletModule.java | 24 import com.google.inject.Provider; 48 * Special Provider that tries to obtain an injected servlet context, specific 53 static class BackwardsCompatibleServletContextProvider implements Provider<ServletContext> {
|
/frameworks/base/keystore/java/android/security/keystore/ |
AndroidKeyStoreBCWorkaroundProvider.java | 19 import java.security.Provider; 22 * {@link Provider} of JCA crypto operations operating on Android KeyStore keys. 24 * <p>This provider was separated out of {@link AndroidKeyStoreProvider} to work around the issue 25 * that Bouncy Castle provider incorrectly declares that it accepts arbitrary keys (incl. Android 28 * as higher-priority than Bouncy Castle ones. The purpose of this provider is to do just that: to 30 * than the Bouncy Castle provider. 32 * <p>Once Bouncy Castle provider is fixed, this provider can be merged into the 37 class AndroidKeyStoreBCWorkaroundProvider extends Provider { 39 // IMPLEMENTATION NOTE: Class names are hard-coded in this provider to avoid loading thes [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
KeyStoreTestSupport.java | 25 import java.security.Provider; 52 public static Provider defaultProvider = null;
|
/packages/apps/Email/tests/src/com/android/email/ |
VendorPolicyLoaderTest.java | 25 import com.android.emailcommon.VendorPolicyLoader.Provider; 148 Provider p = pl.findProviderForDomain("yahoo.com");
|
/external/guice/core/src/com/google/inject/internal/ |
InjectorImpl.java | 35 import com.google.inject.Provider; 180 // If Key is a Provider, we have to see if the type it is providing exists, 181 // and, if so, we have to create the binding for the provider. 184 // This is safe because isProvider above ensures that T is a Provider<?> 286 /** Returns true if the key type is Provider (but not a subclass of Provider). */ 288 return key.getTypeLiteral().getRawType().equals(Provider.class); 295 private static <T> Key<T> getProvidedKey(Key<Provider<T>> key, Errors errors) throws ErrorsException { 298 // If the Provider has no type parameter (raw Provider).. 358 final Provider<T> provider = providedBinding.getProvider(); local [all...] |
SingletonScope.java | 11 import com.google.inject.Provider; 67 * @see #scope(Key, Provider) 102 public <T> Provider<T> scope(final Key<T> key, final Provider<T> creator) { 112 return new Provider<T>() {
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
KeyAgreementTest.java | 33 import java.security.Provider; 64 private static Provider defaultProvider = null; 68 private static final String NotSupportMsg = "There is no suitable provider for KeyAgreement"; 154 * Test for <code> getInstance(String algorithm, String provider)</code> 181 * Test for <code> getInstance(String algorithm, String provider)</code> 182 * method Assertions: throws IllegalArgumentException when provider is null 183 * or empty throws NoSuchProviderException when provider has not be 193 String provider = null; local 196 KeyAgreement.getInstance(validValues[i], provider); 197 fail("IllegalArgumentException must be thrown when provider is null") 275 Provider provider = null; local [all...] |
/libcore/ojluni/src/main/java/java/security/ |
KeyStore.java | 236 // The provider 237 private Provider provider; field in class:KeyStore 239 // The provider implementation 603 * provider implementation (SPI object) in it. 605 * @param keyStoreSpi the provider implementation. 606 * @param provider the provider. 609 protected KeyStore(KeyStoreSpi keyStoreSpi, Provider provider, String type 1566 private final Provider provider; field in class:KeyStore.FileBuilder [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
X509CertChainBuildingTest.java | 28 import java.security.Provider; 174 private static X509TrustManager getTrustManager(KeyStore ks, Provider p) throws Exception { 198 Provider[] providers = Security.getProviders("TrustManagerFactory.PKIX"); 201 for (Provider p : providers) { 220 throw new Exception("Failed with provider " + p, e);
|
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/ |
ExemptionMechanism_ImplTest.java | 26 import java.security.Provider; 65 Provider mProv; 70 "Provider for ExemptionMechanism testing", 172 assertEquals("Incorrect provider", exMech.getProvider(), mProv); 178 * Test for <code>getInstance(String algorithm, String provider)</code> 183 * throws IllegalArgumentException when provider is null; 184 * throws NoSuchProviderException when provider is available; 210 fail("IllegalArgumentException must be thrown when provider is null (algorithm: " 221 .concat(invalidValues[i]).concat(" provider: ") 233 assertEquals("Incorrect provider", exMech.getProvider().getName() [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() {
|