/external/apache-harmony/support/src/test/java/tests/support/ |
Support_ProviderTrust.java | 22 import java.security.Provider; 25 * This class implements a dummy provider. 27 public class Support_ProviderTrust extends Provider { 30 // Provider name 40 * Constructs a new instance of the dummy provider. 55 "made.up.provider.name.MessageDigestSHA"); 57 "made.up.provider.name.MessageDigestMD5"); 61 "made.up.provider.name.AlgorithmParameterGeneratorDSA"); 65 "made.up.provider.name.AlgorithmParametersDSA"); 69 "made.up.provider.name.KeyPairGeneratorDSA") [all...] |
/external/guice/core/src/com/google/inject/internal/ |
ProvidedByInternalFactory.java | 24 import com.google.inject.Provider; 37 private final Class<? extends Provider<?>> providerType; 38 private final Key<? extends Provider<T>> providerKey; 39 private BindingImpl<? extends Provider<T>> providerBinding; 44 Class<? extends Provider<?>> providerType, 45 Key<? extends Provider<T>> providerKey) { 68 Provider<? extends T> provider = providerBinding.getInternalFactory().get( local 70 return circularGet(provider, errors, context, dependency, provisionCallback); 77 protected T provision(javax.inject.Provider<? extends T> provider, Errors errors [all...] |
/external/wycheproof/java/com/google/security/wycheproof/ |
OpenJDKAllTests.java | 3 import com.google.security.wycheproof.WycheproofRunner.Provider; 28 @Provider(ProviderType.OPENJDK)
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
BasicTest.java | 19 import java.security.Provider; 24 /** Not a true test: reports information about the provider. */ 29 for (Provider p : Security.getProviders()) { 31 System.out.println("Provider:" + p.getName());
|
/frameworks/base/core/java/android/security/net/config/ |
NetworkSecurityConfigProvider.java | 21 import java.security.Provider; 24 public final class NetworkSecurityConfigProvider extends Provider { 30 super("AndroidNSSP", 1.0, "Android Network Security Policy Provider"); 40 throw new RuntimeException("Failed to install provider as highest priority provider." 41 + " Provider was installed at position " + pos);
|
/libcore/benchmarks/src/benchmarks/regression/ |
ProviderBenchmark.java | 19 import java.security.Provider; 41 private static class MockProvider extends Provider {
|
/libcore/support/src/test/java/tests/support/ |
Support_ProviderTrust.java | 22 import java.security.Provider; 25 * This class implements a dummy provider. 28 public class Support_ProviderTrust extends Provider { 31 // Provider name 41 * Constructs a new instance of the dummy provider. 57 "made.up.provider.name.MessageDigestSHA"); 59 "made.up.provider.name.MessageDigestMD5"); 63 "made.up.provider.name.AlgorithmParameterGeneratorDSA"); 67 "made.up.provider.name.AlgorithmParametersDSA"); 71 "made.up.provider.name.KeyPairGeneratorDSA") [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SecurityTest.java | 26 import java.security.Provider; 39 * java.security.Security#insertProviderAt(Provider, int) 49 Provider p = new MyProvider(); 52 Provider initialSecondProviderName = Security.getProviders()[1]; 56 // Insert at position -1, the provider is inserted at the end 60 // A provider cannot be added if it is already installed 75 assertSame(initialSecondProviderName, // provider shifted down 83 * java.security.Security#addProvider(Provider) 93 Provider p = new MyProvider(); 102 // A provider cannot be added if it is already installe 118 Provider provider = new MyProvider(); local 357 MyProvider provider = new MyProvider(); local [all...] |
/external/guice/core/src/com/google/inject/ |
ProvidedBy.java | 26 * A pointer to the default provider type for a type. 37 Class<? extends Provider<?>> value();
|
/external/guice/core/src/com/google/inject/spi/ |
ProviderKeyBinding.java | 23 * A binding to a provider key. To resolve injections, the provider key is first resolved, then that 24 * provider's {@code get} method is invoked. 32 * Returns the key used to resolve the provider's binding. That binding can be retrieved from an 36 Key<? extends javax.inject.Provider<? extends T>> getProviderKey();
|
ProviderLookup.java | 25 import com.google.inject.Provider; 31 * A lookup of the provider for a type. Lookups are created explicitly in a module using 34 * Provider<PaymentService> paymentServiceProvider 43 private Provider<T> delegate; 73 * Sets the actual provider. 77 public void initializeDelegate(Provider<T> delegate) { 87 * Returns the delegate provider, or {@code null} if it has not yet been initialized. The delegate 90 public Provider<T> getDelegate() { 95 * Returns the looked up provider. The result is not valid until this lookup has been initialized, 96 * which usually happens when the injector is created. The provider will throw an {@cod [all...] |
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/ |
TestScope.java | 22 import com.google.inject.Provider; 42 public <T> Provider<T> scope( 43 final Key<T> key, final Provider<T> provider) { 44 return new Provider<T>() { 49 t = provider.get();
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
GridTest.java | 23 static class Provider implements Grid.Provider { 29 Provider(int[] items) { 80 Provider mProvider;
|
/system/update_engine/update_manager/ |
shill_provider.h | 23 #include "update_engine/update_manager/provider.h" 28 // Provider for networking related information. 29 class ShillProvider : public Provider {
|
system_provider.h | 20 #include "update_engine/update_manager/provider.h" 25 // Provider for system information, mostly constant, such as the information 27 class SystemProvider : public Provider {
|
/libcore/ojluni/src/main/java/java/security/ |
AlgorithmParameters.java | 166 // The provider 167 private Provider provider; field in class:AlgorithmParameters 169 // The provider implementation (delegate) 182 * @param provider the provider 186 Provider provider, String algorithm) 189 this.provider = provider; [all...] |
/libcore/ojluni/src/main/java/sun/security/jca/ |
ProviderConfig.java | 36 * Class representing a configured provider. Encapsulates configuration 37 * (className plus optional argument), the provider loading logic, and 38 * the loaded Provider object itself. 48 // classname of the SunPKCS11-Solaris provider 52 // config file argument of the SunPKCS11-Solaris provider 56 // maximum number of times to try loading a provider before giving up 59 // parameters for the Provider(String) constructor, 63 // name of the provider class 66 // argument to the provider constructor, 70 // number of times we have already tried to load this provider 74 private volatile Provider provider; field in class:ProviderConfig [all...] |
ProviderList.java | 31 import java.security.Provider.Service; 34 * List of Providers. Used to represent the provider preferences. 63 private final static Provider[] P0 = new Provider[0]; 68 // dummy provider object to use during initialization 70 private static final Provider EMPTY_PROVIDER = 71 new Provider("##Empty##", 1.0d, "initialization in progress") { 86 // (static provider configuration in the java.security file) 97 public static ProviderList add(ProviderList providerList, Provider p) { 101 public static ProviderList insertAt(ProviderList providerList, Provider p [all...] |
/external/guice/core/test/com/google/inject/util/ |
ProvidersTest.java | 21 import com.google.inject.Provider; 36 Provider<String> p = Providers.of(foo); 42 Provider<String> p = Providers.of(null); 71 private static class JavaxProvider implements javax.inject.Provider<Integer> { 91 private static class JavaxProviderWithDependencies implements javax.inject.Provider<Integer> {
|
/libcore/ojluni/src/main/java/java/security/cert/ |
CertPathBuilder.java | 33 import java.security.Provider; 43 * This class uses a provider-based architecture. 47 * the name of the provider desired. 100 * Unless otherwise documented by a specific provider, threads that need to 124 private final Provider provider; field in class:CertPathBuilder 129 * and encapsulates the given provider implementation (SPI object) in it. 131 * @param builderSpi the provider implementation 132 * @param provider the provider [all...] |
CertPathValidator.java | 33 import java.security.Provider; 44 * This class uses a provider-based architecture. 48 * optionally the name of the provider desired. 100 * Unless otherwise documented by a specific provider, threads that need to 123 private final Provider provider; field in class:CertPathValidator 128 * and encapsulates the given provider implementation (SPI object) in it. 130 * @param validatorSpi the provider implementation 131 * @param provider the provider [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
ProviderTest.java | 22 import java.security.Provider; 80 Provider[] providers = Security.getProviders(); 81 for (Provider provider : providers) { 82 String providerName = provider.getName(); 83 // ignore BouncyCastle provider if it is installed on the RI 87 Set<Provider.Service> services = provider.getServices(); 91 Set<Provider.Service> originalServices = services; 92 services = new TreeSet<Provider.Service> 427 Provider provider = new MockProvider("MockProvider") { local 445 Provider provider = new MockProvider("MockProvider") { local 472 Provider provider = new MockProvider("MockProvider") { local 494 Provider provider = new MockProvider("MockProvider") { local 513 Provider provider = new MockProvider("MockProvider") { local 535 Provider provider = new MockProvider("MockProvider") { local 557 Provider provider = new MockProvider("MockProvider") { local 576 Provider provider = new MockProvider("MockProvider") { local 595 Provider provider = new MockProvider("MockProvider") { local 614 Provider provider = new MockProvider("MockProvider") { local 633 Provider provider = new MockProvider("MockProvider") { local 652 MockProvider provider = new MockProvider("MockProvider"); local 675 MockProvider provider = new MockProvider("MockProvider"); local 695 MockProvider provider = new MockProvider("MockProvider"); local 722 Provider provider = new MockProvider("MockProvider") { local 748 Provider provider = new MockProvider("MockProvider") { local 765 MockProvider provider = new MockProvider("MockProvider"); local 1015 private final Provider provider; field in class:ProviderTest.ProviderAndOperationParameter [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
CryptoUpcalls.java | 22 import java.security.Provider; 44 private static boolean isOurProvider(Provider p) { 51 private static ArrayList<Provider> getExternalProviders(String algorithm) { 52 ArrayList<Provider> providers = new ArrayList<>(1); 53 for (Provider p : Security.getProviders(algorithm)) { 59 System.err.println("Could not find external provider for algorithm: " + algorithm); 86 // try to get the most preferred provider as long as it isn't us. 99 System.err.println("Preferred provider doesn't support key:"); 104 // If the preferred provider was us, fall back to trying to find the 105 // first not-us provider that initializes correctly [all...] |
/external/dagger2/core/src/test/java/dagger/internal/ |
SetFactoryTest.java | 24 import javax.inject.Provider; 41 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 53 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 65 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 81 Factory<Set<Integer>> factory = SetFactory.create(new Provider<Set<Integer>>() { 115 private static Provider<Set<Integer>> incrementingIntegerProvider(int seed) { 117 return new Provider<Set<Integer>>() { 125 private static Provider<Set<Integer>> integerSetProvider(Range<Integer> range) { 127 return new Provider<Set<Integer>>() {
|
/external/guice/extensions/mini/src/com/google/inject/mini/ |
MiniGuice.java | 36 import javax.inject.Provider; 48 private final Map<Key, Provider<?>> bindings = new HashMap<Key, Provider<?>>(); 69 * <li>Injection of {@link Provider}s. 88 Provider<?> provider = miniGuice.bindings.get(key); local 89 return type.cast(provider.get()); 93 Map<Key, Provider<?>> providerBindings = new HashMap<Key, Provider<?>>(); 94 for (final Map.Entry<Key, Provider<?>> binding : bindings.entrySet()) 121 Provider<?> provider = bindings.get(key); local [all...] |