/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
AlgorithmParametersTestGCM.java | 20 import java.security.Provider; 58 for (Provider p : Security.getProviders()) { 63 // This provider doesn't support AES/GCM, ignore 69 assertTrue("Provider: " + p.getName() + ", encoded: " + encoded, 75 assertEquals("Provider: " + p.getName(), TLEN, spec.getTLen()); 76 assertTrue("Provider: " + p.getName(), Arrays.equals(IV, spec.getIV())); 81 assertEquals("Provider: " + p.getName(), TLEN, spec.getTLen()); 82 assertTrue("Provider: " + p.getName(), Arrays.equals(IV, spec.getIV()));
|
/libcore/luni/src/test/java/tests/security/cert/ |
CertPathValidator3Test.java | 36 import java.security.Provider; 52 private static Provider defaultProvider;
|
/libcore/ojluni/src/main/java/java/security/cert/ |
X509CRL.java | 33 import java.security.Provider; 189 * @exception NoSuchProviderException if there's no default provider. 202 * supplied by the given provider. 205 * @param sigProvider the name of the signature provider. 210 * @exception NoSuchProviderException on incorrect provider. 223 * supplied by the given provider. Note that the specified Provider object 224 * does not have to be registered in the provider list. 232 * @param sigProvider the signature provider. 241 public void verify(PublicKey key, Provider sigProvider [all...] |
/external/guice/core/src/com/google/inject/internal/ |
BindingProcessor.java | 22 import com.google.inject.Provider; 65 if (rawType == Provider.class) { 106 javax.inject.Provider<? extends T> provider = binding.getUserSuppliedProvider(); local 108 Initializable<? extends javax.inject.Provider<? extends T>> initializable = 109 initializer.<javax.inject.Provider<? extends T>>requestInjection( 110 injector, provider, null, source, injectionPoints); 119 provider, injectionPoints)); 126 Key<? extends javax.inject.Provider<? extends T>> providerKey = binding.getProviderKey();
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/ |
AbstractInjectorGrapherTest.java | 27 import com.google.inject.Provider; 96 @Inject public A2(Provider<String> strProvider) {} 115 ImmutableList.<Member>of(A2.class.getConstructor(Provider.class))); 145 final Wrapper<Provider<A2>> wrapper = new Wrapper<Provider<A2>>(); 161 new BindingEdge(iaNode.getId(), a2ProviderNode.getId(), BindingEdge.Type.PROVIDER), 163 InjectionPoint.forConstructor(A2.class.getConstructor(Provider.class))),
|
/external/guice/extensions/testlib/src/com/google/inject/testing/fieldbinder/ |
BoundFieldModule.java | 24 import com.google.inject.Provider; 62 * If the field is of type {@link Provider}, the field's value will be bound as a {@link Provider} 63 * using {@link LinkedBindingBuilder#toProvider} to the provider's parameterized type. For example, 64 * {@code Provider<Integer>} binds to {@link Integer}. Attempting to bind a non-parameterized 65 * {@link Provider} without a {@link Bind#to} clause is an error. 75 * // bind(String.class).toProvider(new Provider() { public String get() { return userName; }}); 87 * {@literal @}Bind private Provider{@code <Object>} myProvider = getProvider(); 154 * {@link Number}, and {@code @Bind(to = Object.class) Provider<Number> one = new Integer(1);} 184 "Non parameterized Provider fields must have an explicit [all...] |
/external/libmojo/mojo/public/cpp/bindings/tests/ |
binding_callback_unittest.cc | 47 // An implementation of sample::Provider used on the server side. 50 class InterfaceImpl : public sample::Provider { 78 // sample::Provider implementation 143 Binding<sample::Provider> binding(&server_impl, GetProxy(&interface_ptr_)); 202 Binding<sample::Provider> binding(&server_impl, GetProxy(&interface_ptr_)); 247 Binding<sample::Provider> binding(&server_impl, GetProxy(&interface_ptr_)); 278 Binding<sample::Provider> binding(&server_impl, GetProxy(&interface_ptr_)); 313 Binding<sample::Provider> binding(&server_impl, GetProxy(&interface_ptr_));
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SecureRandom2Test.java | 22 import java.security.Provider; 88 * java.security.SecureRandom#SecureRandom(java.security.SecureRandomSpi, java.security.Provider) 155 Provider[] providers = Security 168 fail("getInstance did not find the provider for SHA1PRNG"); 312 public MySecureRandom(SecureRandomSpi secureRandomSpi, Provider provider) { 313 super(secureRandomSpi, provider); 342 class MyProvider extends Provider { 345 super("MyProvider", 1.0, "Provider for testing"); 355 public void putService(Provider.Service s) [all...] |
KeyFactory2Test.java | 29 import java.security.Provider; 94 Provider[] providers = Security.getProviders("KeyFactory.DSA"); 156 + keyfactAlgs[i] + " (provider=" 186 Provider[] providers = Security.getProviders("KeyFactory.DSA"); 194 // Test2: Test with null provider name 207 // java.security.Provider) 208 Provider[] providers = Security.getProviders("KeyFactory.DSA"); 215 // Test2: Test with null provider name 217 KeyFactory.getInstance("DSA", (Provider) null); 251 + keyfactAlgs[i] + " (provider= 325 Provider provider = Security.getProvider(providerName); local [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
JceSecurity.java | 34 import java.security.Provider.Service; 57 // Map<Provider,?> of the providers we already have verified 60 private final static Map<Provider, Object> verificationResults = 63 // Map<Provider,?> of the providers currently being verified 64 private final static Map<Provider, Object> verifyingProviders = 105 String provider) throws NoSuchAlgorithmException, 107 Service s = GetInstance.getService(type, algorithm, provider); 110 String msg = "JCE cannot authenticate the provider " + provider; 118 Provider provider) throws NoSuchAlgorithmException [all...] |
Cipher.java | 37 import java.security.Provider.Service; 56 * requested <i>transformation</i> to it. Optionally, the name of a provider 74 * provider-specific default values for the mode and padding scheme are used). 87 * number is specified, a provider-specific default is used. (For 88 * example, the SunJCE provider uses a default of 64 bits for DES.) 117 * // If the GCM parameters were generated by the provider, it can 257 // Android-note: Android reimplements provider selection. 259 // Android uses different provider/impl selection code than upstream does. Provider 275 Debug.getInstance("provider", "Provider") 316 private Provider provider; field in class:Cipher 2928 Provider provider; field in class:Cipher.CipherSpiAndProvider [all...] |
/external/guice/extensions/testlib/test/com/google/inject/testing/fieldbinder/ |
BoundFieldModuleTest.java | 29 import com.google.inject.Provider; 149 @Bind(to = String.class) private Provider<Integer> anIntProvider = new Provider<Integer>() { 339 @Bind private Provider<Integer> anInt = new Provider<Integer>() { 371 @Bind private Provider<Integer> anIntProvider = null; 386 private static class IntegerProvider implements Provider<Integer> { 473 @Bind private Provider anIntProvider = new Provider() { 487 "Non parameterized Provider fields must have an [all...] |
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
OptionalBinderTest.java | 41 import com.google.inject.Provider; 98 final TypeLiteral<Optional<Provider<String>>> optionalOfProviderString = 99 new TypeLiteral<Optional<Provider<String>>>() {}; 102 final TypeLiteral<Optional<javax.inject.Provider<String>>> optionalOfJavaxProviderString = 103 new TypeLiteral<Optional<javax.inject.Provider<String>>>() {}; 111 final TypeLiteral<Optional<Provider<Integer>>> optionalOfProviderInteger = 112 new TypeLiteral<Optional<Provider<Integer>>>() {}; 115 final TypeLiteral<Optional<javax.inject.Provider<Integer>>> optionalOfJavaxProviderInteger = 116 new TypeLiteral<Optional<javax.inject.Provider<Integer>>>() {}; 157 Optional<Provider<String>> optionalP = injector.getInstance(Key.get(optionalOfProviderString)) [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
KeyPairGeneratorTest.java | 29 import java.security.Provider; 30 import java.security.Provider.Service; 62 private List<Provider> providers = new ArrayList<Provider>(); 72 Provider[] providers = Security.getProviders(); 73 for (Provider p : providers) { 74 // Do not test AndroidKeyStore Provider. It does not accept vanilla public keys for 92 // We expect there to be at least one provider. 142 // specify a fixed number and silenty pass if the provider at the 147 Provider provider = providers.get(providerIndex) [all...] |
MessageDigestTest.java | 23 import java.security.Provider; 74 Provider[] providers = Security.getProviders(); 75 for (Provider provider : providers) { 76 Set<Provider.Service> services = provider.getServices(); 77 for (Provider.Service service : services) { 89 // MessageDigest.getInstance(String, Provider) 90 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); 92 assertEquals(provider, md2.getProvider()) [all...] |
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
ServletScopes.java | 27 import com.google.inject.Provider; 62 public <T> Provider<T> scope(final Key<T> key, final Provider<T> creator) { 63 return new Provider<T>() { 92 // Store a sentinel for provider-given null values. 148 public <T> Provider<T> scope(final Key<T> key, final Provider<T> creator) { 150 return new Provider<T>() {
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/ |
JavaCharStream.java | 91 protected Provider inputStream; 412 public JavaCharStream(Provider dstream, 427 public JavaCharStream(Provider dstream, 434 public JavaCharStream(Provider dstream) 439 public void ReInit(Provider dstream, 460 public void ReInit(Provider dstream, 467 public void ReInit(Provider dstream)
|
/external/guice/core/test/com/google/inject/spi/ |
SpiBindingsTest.java | 32 import com.google.inject.Provider; 104 final Provider<String> stringProvider = new StringProvider(); 272 Key<Provider<String>> providerOfStringKey = new Key<Provider<String>>() {}; 273 Binding<Provider<String>> binding = injector.getBinding(providerOfStringKey); 277 binding.acceptTargetVisitor(new FailingTargetVisitor<Provider<String>>() { 279 ProviderBinding<? extends Provider<String>> binding) { 383 // Check for Provider<String> binding -- that is still a ProviderBinding. 384 Key<Provider<String>> providerOfStringKey = new Key<Provider<String>>() {} [all...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/ |
KeyGeneratorTest.java | 22 import java.security.Provider; 74 Provider[] providers = Security.getProviders(); 75 for (Provider provider : providers) { 76 Set<Provider.Service> services = provider.getServices(); 77 for (Provider.Service service : services) { 87 if ("AndroidKeyStore".equals(provider.getName())) { 98 // KeyGenerator.getInstance(String, Provider) 99 KeyGenerator kg2 = KeyGenerator.getInstance(algorithm, provider); [all...] |
/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...] |
/external/pdfium/core/fpdfdoc/ |
cpdf_variabletext.h | 51 class Provider { 53 explicit Provider(IPVT_FontMap* pFontMap); 54 virtual ~Provider(); 72 void SetProvider(CPDF_VariableText::Provider* pProvider); 212 CPDF_VariableText::Provider* m_pVTProvider;
|
/libcore/luni/src/test/java/libcore/sun/security/jca/ |
ProvidersTest.java | 19 import com.android.org.bouncycastle.jce.provider.BouncyCastleProvider; 32 import java.security.Provider; 47 * Tests that the deprecation of algorithms from the BC provider works as expected. Requests 69 // A concrete algorithm, provider by name 76 // A concrete algorithm, provider by instance 83 // An alias for another algorithm, provider by name 90 // An alias for another algorithm, provider by instance 97 // An alias with unusual characters, provider by name 104 // An alias with unusual characters, provider by instance 111 // An alias by OID, provider by nam [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...] |