/libcore/ojluni/src/main/java/java/nio/file/ |
D | FileSystems.java | 95 FileSystemProvider provider = AccessController in defaultFileSystem() local 103 return provider.getFileSystem(URI.create("file:///")); in defaultFileSystem() 108 FileSystemProvider provider = sun.nio.fs.DefaultFileSystemProvider.create(); in getDefaultProvider() local 121 provider = (FileSystemProvider)ctor.newInstance(provider); in getDefaultProvider() 124 if (!provider.getScheme().equals("file")) in getDefaultProvider() 132 return provider; in getDefaultProvider() 219 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) { in getFileSystem() 220 if (scheme.equalsIgnoreCase(provider.getScheme())) { in getFileSystem() 221 return provider.getFileSystem(uri); in getFileSystem() 324 for (FileSystemProvider provider: FileSystemProvider.installedProviders()) { in newFileSystem() [all …]
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | ProviderTest.java | 91 for (Provider provider : providers) { in test_Provider_getServices() 92 String providerName = provider.getName(); in test_Provider_getServices() 97 Set<Provider.Service> services = provider.getServices(); in test_Provider_getServices() 149 Cipher.getInstance(remainingAlgo, provider); in test_Provider_getServices() 163 provider.getClass().getClassLoader())); in test_Provider_getServices() 177 provider.getService(entry.getKey(), algorithm) != null) in test_Provider_getServices() 254 for (Provider provider : providers) { in test_Provider_Properties() 256 assertEquals(provider.getName(), in test_Provider_Properties() 257 provider.get("Provider.id name")); in test_Provider_Properties() 258 assertEquals(String.valueOf(provider.getVersion()), in test_Provider_Properties() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | DefaultFileSystemProviderTest.java | 83 private FileSystemProvider provider; field in DefaultFileSystemProviderTest 87 provider = filesSetup.getDataFilePath().getFileSystem().provider(); in setUp() 92 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream() 100 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), WRITE)) { in test_newInputStream_openOption() 105 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), APPEND)) { in test_newInputStream_openOption() 110 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), in test_newInputStream_openOption() 117 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), DELETE_ON_CLOSE, in test_newInputStream_openOption() 125 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ); in test_newInputStream_twice() 127 InputStream is2 = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream_twice() 136 try (InputStream is = provider.newInputStream(null)){ in test_newInputStream_NPE() [all …]
|
D | DefaultFileSystemProvider2Test.java | 85 private FileSystemProvider provider; field in DefaultFileSystemProvider2Test 89 provider = filesSetup.getDataFilePath().getFileSystem().provider(); in setUp() 94 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move() 102 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move() 110 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath(), REPLACE_EXISTING); in test_move() 116 provider.move(filesSetup.getTestPath(), filesSetup.getDataFilePath(), REPLACE_EXISTING); in test_move() 125 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath()); in test_move_CopyOption() 133 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath(), ATOMIC_MOVE); in test_move_CopyOption() 138 provider.move(filesSetup.getDataFilePath(), filesSetup.getTestPath(), in test_move_CopyOption() 147 provider.move(null, filesSetup.getTestPath()); in test_move_NPE() [all …]
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneRulesProvider.java | 142 ZoneRulesProvider provider = new IcuZoneRulesProvider(); 143 registerProvider(provider); 223 ZoneRulesProvider provider = ZONES.get(zoneId); in getProvider() local 224 if (provider == null) { in getProvider() 230 return provider; in getProvider() 249 public static void registerProvider(ZoneRulesProvider provider) { in registerProvider() argument 250 Objects.requireNonNull(provider, "provider"); in registerProvider() 251 registerProvider0(provider); in registerProvider() 252 PROVIDERS.add(provider); in registerProvider() 261 private static void registerProvider0(ZoneRulesProvider provider) { in registerProvider0() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/spi/ |
D | AsynchronousChannelProviderTest.java | 29 AsynchronousChannelProvider provider = AsynchronousChannelProvider.provider(); in test_open_methods() local 31 assertNotNull(provider); in test_open_methods() 32 assertSame(AsynchronousChannelProvider.provider(), provider); in test_open_methods() local 34 assertNotNull(provider.openAsynchronousChannelGroup(1, new TestThreadFactory())); in test_open_methods() 36 assertNotNull(provider.openAsynchronousChannelGroup(Executors.newSingleThreadExecutor(), in test_open_methods() 39 assertNotNull(provider.openAsynchronousServerSocketChannel( in test_open_methods() 42 assertNotNull(provider.openAsynchronousSocketChannel( in test_open_methods() 45 assertNotNull(provider.openAsynchronousChannelGroup(1, new TestThreadFactory())); in test_open_methods()
|
/libcore/ojluni/src/main/java/sun/security/jca/ |
D | GetInstance.java | 51 public final Provider provider; field in GetInstance.Instance 53 private Instance(Provider provider, Object impl) { in Instance() argument 54 this.provider = provider; in Instance() 60 return new Object[] {impl, provider}; in toArray() 76 String provider) throws NoSuchAlgorithmException, in getService() argument 78 if ((provider == null) || (provider.length() == 0)) { in getService() 81 Provider p = Providers.getProviderList().getProvider(provider); in getService() 83 throw new NoSuchProviderException("no such provider: " + provider); in getService() 88 + algorithm + " for provider " + provider); in getService() 94 Provider provider) throws NoSuchAlgorithmException { in getService() argument [all …]
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | AsynchronousServerSocketChannel.java | 97 private final AsynchronousChannelProvider provider; field in AsynchronousServerSocketChannel 105 protected AsynchronousServerSocketChannel(AsynchronousChannelProvider provider) { in AsynchronousServerSocketChannel() argument 106 this.provider = provider; in AsynchronousServerSocketChannel() 114 public final AsynchronousChannelProvider provider() { in provider() method in AsynchronousServerSocketChannel 115 return provider; in provider() 143 AsynchronousChannelProvider provider = (group == null) ? in open() local 144 AsynchronousChannelProvider.provider() : group.provider(); in open() 145 return provider.openAsynchronousServerSocketChannel(group); in open()
|
D | AsynchronousChannelGroup.java | 134 private final AsynchronousChannelProvider provider; field in AsynchronousChannelGroup 142 protected AsynchronousChannelGroup(AsynchronousChannelProvider provider) { in AsynchronousChannelGroup() argument 143 this.provider = provider; in AsynchronousChannelGroup() 151 public final AsynchronousChannelProvider provider() { in provider() method in AsynchronousChannelGroup 152 return provider; in provider() 185 return AsynchronousChannelProvider.provider() in withFixedThreadPool() 232 return AsynchronousChannelProvider.provider() in withCachedThreadPool() 272 return AsynchronousChannelProvider.provider() in withThreadPool()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | KeyManagerFactory.java | 60 private Provider provider; field in KeyManagerFactory 103 Provider provider, String algorithm) { in KeyManagerFactory() argument 105 this.provider = provider; in KeyManagerFactory() 156 instance.provider, algorithm); in getInstance() 194 String provider) throws NoSuchAlgorithmException, in getInstance() argument 198 algorithm, provider); in getInstance() 200 instance.provider, algorithm); in getInstance() 232 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument 235 algorithm, provider); in getInstance() 237 instance.provider, algorithm); in getInstance() [all …]
|
D | TrustManagerFactory.java | 60 private Provider provider; field in TrustManagerFactory 103 Provider provider, String algorithm) { in TrustManagerFactory() argument 105 this.provider = provider; in TrustManagerFactory() 158 instance.provider, algorithm); in getInstance() 196 String provider) throws NoSuchAlgorithmException, in getInstance() argument 200 algorithm, provider); in getInstance() 202 instance.provider, algorithm); in getInstance() 234 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument 237 algorithm, provider); in getInstance() 239 instance.provider, algorithm); in getInstance() [all …]
|
D | SSLContext.java | 92 private final Provider provider; field in SSLContext 105 protected SSLContext(SSLContextSpi contextSpi, Provider provider, in SSLContext() argument 108 this.provider = provider; in SSLContext() 201 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance() 240 public static SSLContext getInstance(String protocol, String provider) in getInstance() argument 243 ("SSLContext", SSLContextSpi.class, protocol, provider); in getInstance() 244 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance() 277 public static SSLContext getInstance(String protocol, Provider provider) in getInstance() argument 280 ("SSLContext", SSLContextSpi.class, protocol, provider); in getInstance() 281 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | AlgorithmParameterGenerator.java | 118 private Provider provider; field in AlgorithmParameterGenerator 134 (AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, in AlgorithmParameterGenerator() argument 137 this.provider = provider; in AlgorithmParameterGenerator() 230 String provider) in getInstance() argument 233 if (provider == null || provider.length() == 0) in getInstance() 237 provider); in getInstance() 274 Provider provider) in getInstance() argument 277 if (provider == null) in getInstance() 281 provider); in getInstance() 293 return this.provider; in getProvider()
|
D | AlgorithmParameters.java | 173 private Provider provider; field in AlgorithmParameters 192 Provider provider, String algorithm) in AlgorithmParameters() argument 195 this.provider = provider; in AlgorithmParameters() 289 String provider) in getInstance() argument 292 if (provider == null || provider.length() == 0) in getInstance() 295 Providers.checkBouncyCastleDeprecation(provider, "AlgorithmParameters", algorithm); in getInstance() 297 provider); in getInstance() 336 Provider provider) in getInstance() argument 339 if (provider == null) in getInstance() 342 Providers.checkBouncyCastleDeprecation(provider, "AlgorithmParameters", algorithm); in getInstance() [all …]
|
D | MessageDigest.java | 151 private Provider provider; field in MessageDigest 204 md.provider = (Provider)objs[1]; in getInstance() 255 public static MessageDigest getInstance(String algorithm, String provider) in getInstance() argument 258 if (provider == null || provider.length() == 0) in getInstance() 261 Providers.checkBouncyCastleDeprecation(provider, "MessageDigest", algorithm); in getInstance() 262 Object[] objs = Security.getImpl(algorithm, "MessageDigest", provider); in getInstance() 265 md.provider = (Provider)objs[1]; in getInstance() 270 delegate.provider = (Provider)objs[1]; in getInstance() 305 Provider provider) in getInstance() argument 308 if (provider == null) in getInstance() [all …]
|
D | SecureRandom.java | 117 private Provider provider = null; field in SecureRandom 212 this.provider = random.getProvider(); in getDefaultPRNG() 238 Provider provider) { in SecureRandom() argument 239 this(secureRandomSpi, provider, null); in SecureRandom() 242 private SecureRandom(SecureRandomSpi secureRandomSpi, Provider provider, in SecureRandom() argument 246 this.provider = provider; in SecureRandom() 300 instance.provider, algorithm); in getInstance() 346 public static SecureRandom getInstance(String algorithm, String provider) in getInstance() argument 349 SecureRandomSpi.class, algorithm, provider); in getInstance() 351 instance.provider, algorithm); in getInstance() [all …]
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertPathValidator.java | 123 private final Provider provider; field in CertPathValidator 135 Provider provider, String algorithm) in CertPathValidator() argument 138 this.provider = provider; in CertPathValidator() 175 instance.provider, algorithm); in getInstance() 214 String provider) throws NoSuchAlgorithmException, in getInstance() argument 217 CertPathValidatorSpi.class, algorithm, provider); in getInstance() 219 instance.provider, algorithm); in getInstance() 252 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument 254 CertPathValidatorSpi.class, algorithm, provider); in getInstance() 256 instance.provider, algorithm); in getInstance() [all …]
|
D | CertPathBuilder.java | 124 private final Provider provider; field in CertPathBuilder 135 protected CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, in CertPathBuilder() argument 139 this.provider = provider; in CertPathBuilder() 176 instance.provider, algorithm); in getInstance() 214 public static CertPathBuilder getInstance(String algorithm, String provider) in getInstance() argument 217 CertPathBuilderSpi.class, algorithm, provider); in getInstance() 219 instance.provider, algorithm); in getInstance() 252 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument 254 CertPathBuilderSpi.class, algorithm, provider); in getInstance() 256 instance.provider, algorithm); in getInstance() [all …]
|
D | CertificateFactory.java | 155 private Provider provider; field in CertificateFactory 169 Provider provider, String type) in CertificateFactory() argument 172 this.provider = provider; in CertificateFactory() 209 instance.provider, type); in getInstance() 250 String provider) throws CertificateException, in getInstance() argument 254 Providers.checkBouncyCastleDeprecation(provider, "CertificateFactory", type); in getInstance() 256 CertificateFactorySpi.class, type, provider); in getInstance() 258 instance.provider, type); in getInstance() 294 Provider provider) throws CertificateException { in getInstance() argument 297 Providers.checkBouncyCastleDeprecation(provider, "CertificateFactory", type); in getInstance() [all …]
|
D | CertStore.java | 111 private Provider provider; field in CertStore 124 protected CertStore(CertStoreSpi storeSpi, Provider provider, in CertStore() argument 127 this.provider = provider; in CertStore() 240 instance.provider, type, params); in getInstance() 303 CertStoreParameters params, String provider) in getInstance() argument 308 CertStoreSpi.class, type, params, provider); in getInstance() 310 instance.provider, type, params); in getInstance() 358 Provider provider) throws NoSuchAlgorithmException, in getInstance() argument 362 CertStoreSpi.class, type, params, provider); in getInstance() 364 instance.provider, type, params); in getInstance() [all …]
|
/libcore/ojluni/src/main/java/sun/net/ftp/ |
D | FtpClientProvider.java | 49 private static FtpClientProvider provider = null; field in FtpClientProvider 71 provider = (FtpClientProvider) c.newInstance(); in loadProviderFromProperty() 136 public static FtpClientProvider provider() { in provider() method in FtpClientProvider 138 if (provider != null) { in provider() 139 return provider; in provider() 146 return provider; in provider() 149 return provider; in provider() 151 provider = new sun.net.ftp.impl.DefaultFtpClientProvider(); in provider() 152 return provider; in provider()
|
/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/ |
D | SelectorProviderTest.java | 34 assertNotNull(SelectorProvider.provider()); in test_open_methods() 37 SelectorProvider.provider().inheritedChannel(); in test_open_methods() 39 assertNotNull(SelectorProvider.provider().openDatagramChannel()); in test_open_methods() 40 assertNotNull(SelectorProvider.provider().openPipe()); in test_open_methods() 41 assertNotNull(SelectorProvider.provider().openServerSocketChannel()); in test_open_methods() 42 assertNotNull(SelectorProvider.provider().openSocketChannel()); in test_open_methods() 43 assertNotNull(SelectorProvider.provider().openSelector()); in test_open_methods()
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | SelectorProvider.java | 72 private static SelectorProvider provider = null; field in SelectorProvider 94 provider = (SelectorProvider)c.newInstance(); in loadProviderFromProperty() 117 provider = i.next(); in loadProviderAsService() 164 public static SelectorProvider provider() { in provider() method in SelectorProvider 166 if (provider != null) in provider() 167 return provider; in provider() 172 return provider; in provider() 174 return provider; in provider() 175 provider = sun.nio.ch.DefaultSelectorProvider.create(); in provider() 176 return provider; in provider()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | SecretKeyFactory.java | 270 private Provider provider; field in SecretKeyFactory 293 Provider provider, String algorithm) { in SecretKeyFactory() argument 295 this.provider = provider; in SecretKeyFactory() 386 String provider) throws NoSuchAlgorithmException, in getInstance() argument 389 Providers.checkBouncyCastleDeprecation(provider, "SecretKeyFactory", algorithm); in getInstance() 391 SecretKeyFactorySpi.class, algorithm, provider); in getInstance() 393 instance.provider, algorithm); in getInstance() 429 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument 431 Providers.checkBouncyCastleDeprecation(provider, "SecretKeyFactory", algorithm); in getInstance() 433 SecretKeyFactorySpi.class, algorithm, provider); in getInstance() [all …]
|
D | ExemptionMechanism.java | 54 private Provider provider; field in ExemptionMechanism 80 Provider provider, in ExemptionMechanism() argument 83 this.provider = provider; in ExemptionMechanism() 139 instance.provider, algorithm); in getInstance() 182 String provider) throws NoSuchAlgorithmException, in getInstance() argument 185 ExemptionMechanismSpi.class, algorithm, provider); in getInstance() 187 instance.provider, algorithm); in getInstance() 223 Provider provider) throws NoSuchAlgorithmException { in getInstance() argument 225 ExemptionMechanismSpi.class, algorithm, provider); in getInstance() 227 instance.provider, algorithm); in getInstance() [all …]
|