/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
Util.java | 27 import javax.inject.Provider; 49 * Returns the {@code V} type for a {@link Map} type like {@code Map<K, Provider<V>>} if the map 67 * Returns the key type for a {@link Map} type like Map<K, Provider<V>>} 75 * Returns true if {@code type} is a {@link Map} whose value type is not a {@link Provider}. 80 && !MoreTypes.isTypeOf(Provider.class, asDeclared(type).getTypeArguments().get(1)); 84 * Returns true if {@code type} is a {@link Map} whose value type is a {@link Provider}. 89 && MoreTypes.isTypeOf(Provider.class, asDeclared(type).getTypeArguments().get(1));
|
/external/guice/core/src/com/google/inject/internal/ |
InternalInjectorCreator.java | 26 import com.google.inject.Provider; 147 stopwatch.resetAndLog("Provider verification"); 282 public <T> Provider<T> getProvider(Key<T> key) { 286 public <T> Provider<T> getProvider(Class<T> type) {
|
/external/guice/core/test/com/google/inject/util/ |
OverrideModuleTest.java | 39 import com.google.inject.Provider; 280 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) { 307 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) { 446 final AtomicReference<Provider<Character>> charAProvider 447 = new AtomicReference<Provider<Character>>(); 471 final AtomicReference<Provider<Character>> charBProvider 472 = new AtomicReference<Provider<Character>>(); 505 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) [all...] |
/external/guice/extensions/grapher/test/com/google/inject/grapher/ |
TransitiveDependencyVisitorTest.java | 26 import com.google.inject.Provider; 104 Binding<?> binding = getBinding(Key.get(new TypeLiteral<Provider<ConstructedClass>>() {})); 159 private static class ConstructedClassProvider implements Provider<ConstructedClass> {
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
ScopeRequestIntegrationTest.java | 26 import com.google.inject.Provider; 146 @Inject Provider<SomeObject> someObject; 162 @Inject Provider<SomeObject> someObject;
|
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/ |
CheckedProviderMethodsModule.java | 26 import com.google.inject.Provider; 43 * and binding annotations on the provider method to configure the binding. 59 * Returns a module which creates bindings for provider methods from the given module. 98 List<Provider<?>> parameterProviders = Lists.newArrayList(); 105 // provider that provides a logger with a proper name. 146 /** A provider that returns a logger based on the method name. */ 147 private static final class LogProvider implements Provider<Logger> {
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
Grid.java | 29 * To use the Grid, user must implement a Provider to create or remove visible item. 34 * uses size of visible item returned from Provider.createItem() to decide which row 53 public static interface Provider { 71 * Create visible item and where the provider should measure it. 73 * @param index 0-based index of the item in provider 87 * @param index 0-based index of the item in provider 96 * @param index 0-based index of the item in provider 103 * @param index 0-based index of the item in provider 109 * @param index 0-based index of the item in provider 128 protected Provider mProvider [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
KeyManagerFactory2Test.java | 25 import java.security.Provider; 59 Provider mProv; 64 "Provider for testing", srvKeyManagerFactory.concat(".") 147 assertEquals("Incorrect provider", keyMF.getProvider(), mProv); 153 * Test for <code>getInstance(String algorithm, String provider)</code> 158 * throws IllegalArgumentException when provider is null or empty; 159 * throws NoSuchProviderException when provider is available; 184 fail("IllegalArgumentException must be thrown when provider is null (algorithm: " 190 fail("IllegalArgumentException must be thrown when provider is empty (algorithm: " 201 .concat(invalidValues[i]).concat(" provider: " [all...] |
SSLContext2Test.java | 23 import java.security.Provider; 57 Provider mProv; 61 mProv = (new SpiEngUtils()).new MyProvider("MySSLContextProvider", "Provider for testing", 172 assertEquals("Incorrect provider", sslC.getProvider(), mProv); 178 * Test for <code>getInstance(String protocol, String provider)</code> 183 * throws IllegalArgumentException when provider is null or empty; 184 * throws NoSuchProviderException when provider is available; 209 fail("IllegalArgumentException must be thrown when provider is null (protocol: " 215 fail("IllegalArgumentException must be thrown when provider is empty (protocol: " 225 .concat(invalidValues[i]).concat(" provider: " [all...] |
TrustManagerFactory2Test.java | 25 import java.security.Provider; 56 Provider mProv; 61 "Provider for testing", srvTrustManagerFactory.concat(".") 139 assertEquals("Incorrect provider", tmf.getProvider(), mProv); 145 * Test for <code>getInstance(String algorithm, String provider)</code> 150 * throws IllegalArgumentException when provider is null or empty; 151 * throws NoSuchProviderException when provider is available; 174 fail("IllegalArgumentException must be thrown when provider is null (algorithm: " 180 fail("IllegalArgumentException must be thrown when provider is empty (algorithm: " 191 .concat(invalidValues[i]).concat(" provider: " [all...] |
TrustManagerFactory1Test.java | 27 import java.security.Provider; 58 private static Provider DEFAULT_PROVIDER; 69 private static Provider getDefaultProvider() { 107 assertEquals("Incorrect provider", tmF.getProvider(), getDefaultProvider()); 112 assertNull("Provider must be null", tmF.getProvider()); 205 * Test for <code>getInstance(String algorithm, String provider)</code> 207 * Assertion: throws IllegalArgumentException when provider is null 226 * Test for <code>getInstance(String algorithm, String provider)</code> 251 * Test for <code>getInstance(String algorithm, String provider)</code> 253 * Assertion: throws NoSuchProviderException when provider ha [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLSocketFactoryTest.java | 27 import java.security.Provider; 46 private static final String SSL_PROPERTY = "ssl.SocketFactory.provider"; 54 public static class FakeSSLSocketProvider extends Provider { 56 super("FakeSSLSocketProvider", 1.0, "Testing provider"); 147 Provider fakeProvider = new FakeSSLSocketProvider(); 205 throw new RuntimeException("Could not clear security provider", e);
|
SSLContextTest.java | 25 import java.security.Provider; 251 Provider provider = SSLContext.getDefault().getProvider(); local 252 assertNotNull(provider); 253 assertEquals(StandardNames.JSSE_PROVIDER_NAME, provider.getName()); 297 // This test thus installs a Provider of KeyManagerFactory and TrustManagerFactory whose 299 Provider provider = new ThrowExceptionKeyAndTrustManagerFactoryProvider(); local 300 invokeWithHighestPrioritySecurityProvider(provider, new Callable<Void>() { 333 // This test thus installs a Provider of KeyManagerFactory and TrustManagerFactory whos 335 Provider provider = new ThrowExceptionKeyAndTrustManagerFactoryProvider(); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
AlgorithmParameterGenerator2Test.java | 30 import java.security.Provider; 61 Provider mProv; 65 mProv = (new SpiEngUtils()).new MyProvider("MyAPGProvider", "Testing provider", 138 assertEquals("Incorrect provider", apG.getProvider(), mProv); 144 * Test for <code>getInstance(String algorithm, String provider)</code> 149 * throws IllegalArgumentException when provider is null; 150 * throws NoSuchProviderException when provider is available; 175 fail("IllegalArgumentException must be thrown when provider is null (algorithm: " 186 .concat(invalidValues[i]).concat(" provider: ") 198 assertEquals("Incorrect provider", apG.getProvider().getName() [all...] |
AlgorithmParametersTest.java | 29 import java.security.Provider; 50 * Provider 52 Provider p; 159 assertNull(format); // null is passed to spi-provider 291 assertNull(paramSpec); // null is passed to spi-provider 302 * java.security.AlgorithmParameters#getInstance(String, Provider) 306 Provider pp = null; 330 fail("IllegalArgumentException was not thrown for NULL provider"); 411 assertNull(paramSpec);// null is passed to spi-provider 479 assertNull(params); // null is passed to spi-provider [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
CertPathValidator2Test.java | 34 import java.security.Provider; 62 Provider mProv; 67 "Provider for testing", CertPathValidator1Test.srvCertPathValidator.concat(".") 128 assertEquals("Incorrect provider", cerPV.getProvider(), mProv); 134 * Test for <code>getInstance(String algorithm, String provider)</code> 137 * IllegalArgumentException when provider is null or empty; throws 138 * NoSuchProviderException when provider is available; returns 162 fail("IllegalArgumentException must be thrown when provider is null (type: " 168 fail("IllegalArgumentException must be thrown when provider is empty (type: " 178 .concat(" provider: ").concat(invalidValues[j]).concat(")")) [all...] |
CertificateFactory4Test.java | 31 import java.security.Provider; 167 Provider[] providers = Security 193 // Test for method java.security.Provider 195 Provider p = CertificateFactory.getInstance("X.509").getProvider(); 196 assertNotNull("provider is null", p); [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
EncryptedPrivateKeyInfo.java | 262 Provider provider) throws NoSuchAlgorithmException, 267 if (provider == null) { 271 c = Cipher.getInstance(algid.getName(), provider); 313 * @param providerName the name of provider whose Cipher 318 * @exception NoSuchProviderException if no provider 335 throw new NullPointerException("provider is null"); 337 Provider provider = Security.getProvider(providerName); local 338 if (provider == null) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
AddWorkspaceItemsTask.java | 37 import com.android.launcher3.util.Provider; 47 private final Provider<List<ItemInfo>> mAppsProvider; 52 public AddWorkspaceItemsTask(Provider<List<ItemInfo>> appsProvider) {
|
/external/guice/core/test/com/google/inject/spi/ |
InjectionPointTest.java | 30 import com.google.inject.Provider; 290 assertPointDependencies(points, new TypeLiteral<Provider<String>>() {}); 295 assertPointDependencies(points, new TypeLiteral<Provider<String>>() {}); 358 @com.google.inject.Inject public void gInject(Provider<String> p) {} 359 @javax.inject.Inject public void jInject(Provider<String> p) {}
|
ElementsTest.java | 35 import com.google.inject.Provider; 368 final Provider<String> aProvider = new Provider<String>() { 374 final javax.inject.Provider<Integer> intJavaxProvider = new javax.inject.Provider<Integer>() { 380 final javax.inject.Provider<Double> doubleJavaxProvider = new javax.inject.Provider<Double>() { 790 Provider<String> keyGetProvider 795 assertEquals("This Provider cannot be used until the Injector has been created.", 799 Provider<String> typeGetProvider = getProvider(String.class) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SecretKeyFactoryTest.java | 29 import java.security.Provider; 62 private static Provider defaultProvider = null; 131 assertEquals("Incorrect provider", secKF.getProvider(), defaultProvider); 137 assertNull("Provider must be null", secKF.getProvider()); 185 * Test for <code>getInstance(String algorithm, String provider)</code> 215 * Test for <code>getInstance(String algorithm, String provider)</code> 218 * throws IllegalArgumentException when provider is null or empty; 219 * throws NoSuchProviderException when provider has invalid value 232 .concat(validValues[i]).concat(" provider: null")); 238 .concat(validValues[i]).concat(" provider: empty")) [all...] |
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
ApkSignerTool.java | 42 import java.security.Provider; 169 } else if ("ks-provider-name".equals(optionName)) { 171 optionsParser.getRequiredValue("JCA KeyStore Provider name"); 172 } else if ("ks-provider-class".equals(optionName)) { 174 optionsParser.getRequiredValue("JCA KeyStore Provider class name"); 175 } else if ("ks-provider-arg".equals(optionName)) { 178 "JCA KeyStore Provider constructor argument"); 185 } else if ("next-provider".equals(optionName)) { 190 } else if ("provider-class".equals(optionName)) { 192 optionsParser.getRequiredValue("JCA Provider class name") 581 Provider provider; local [all...] |
/external/guice/core/test/com/google/inject/ |
TypeListenerTest.java | 137 Provider<A> aProvider = injector.getProvider(A.class); 273 Provider<B> bProvider = injector.getProvider(B.class); 342 // getting a provider shouldn't 343 Provider<A> aProvider = injector.getProvider(A.class); 347 // exercise the provider 362 final AtomicReference<Provider<B>> bProviderReference = new AtomicReference<Provider<B>>(); 380 Provider<B> bProvider = encounter.getProvider(B.class); 385 assertEquals("This Provider cannot be used until the Injector has been created.", 514 Provider<B> bProvider = injector.getProvider(B.class) [all...] |
/libcore/ojluni/src/main/java/java/security/ |
Signature.java | 38 import java.security.Provider.Service; 257 Debug.getInstance("provider", "Provider"); 270 // The provider 271 Provider provider; field in class:Signature 331 * starting with the most preferred Provider. 334 * Provider that supports the specified algorithm is returned. 347 * @exception NoSuchAlgorithmException if no Provider supports a 351 * @see Provider [all...] |