Home
last modified time | relevance | path

Searched refs:NetworkSecurityPolicy (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/libcore/libcore/net/
DNetworkSecurityPolicyTest.java21 import libcore.net.NetworkSecurityPolicy;
44 private NetworkSecurityPolicy mOriginalPolicy;
49 mOriginalPolicy = NetworkSecurityPolicy.getInstance(); in setUp()
55 NetworkSecurityPolicy.setInstance(mOriginalPolicy); in tearDown()
62 NetworkSecurityPolicy.setInstance(new TestNetworkSecurityPolicy(false)); in testCleartextTrafficPolicySetterAndGetter()
63 assertEquals(false, NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()); in testCleartextTrafficPolicySetterAndGetter()
65 NetworkSecurityPolicy.setInstance(new TestNetworkSecurityPolicy(true)); in testCleartextTrafficPolicySetterAndGetter()
66 assertEquals(true, NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()); in testCleartextTrafficPolicySetterAndGetter()
68 NetworkSecurityPolicy.setInstance(new TestNetworkSecurityPolicy(false)); in testCleartextTrafficPolicySetterAndGetter()
69 assertEquals(false, NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()); in testCleartextTrafficPolicySetterAndGetter()
[all …]
/libcore/luni/src/main/java/libcore/net/
DNetworkSecurityPolicy.java35 public abstract class NetworkSecurityPolicy { class
37 private static volatile NetworkSecurityPolicy instance = new DefaultNetworkSecurityPolicy();
41 public NetworkSecurityPolicy() { in NetworkSecurityPolicy() method in NetworkSecurityPolicy
46 public static NetworkSecurityPolicy getInstance() { in getInstance()
51 public static void setInstance(NetworkSecurityPolicy policy) { in setInstance()
101 public static final class DefaultNetworkSecurityPolicy extends NetworkSecurityPolicy {
/libcore/ojluni/src/main/java/java/util/logging/
DSocketHandler.java32 import libcore.net.NetworkSecurityPolicy;
169 if (!NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()) { in connect()
/libcore/mmodules/intracoreapi/api/intra/
Dlast-api.txt66 …libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public abstract class NetworkSecurityPolicy {
67 …rePlatformApi @libcore.api.IntraCoreApi public static libcore.net.NetworkSecurityPolicy getInstanc…
Dcurrent-api.txt126 …libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public abstract class NetworkSecurityPolicy {
127 ctor @libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public NetworkSecurityPolicy();
128 …rePlatformApi @libcore.api.IntraCoreApi public static libcore.net.NetworkSecurityPolicy getInstanc…
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DFtpURLConnection.java50 import libcore.net.NetworkSecurityPolicy;
186 if (!NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()) { in FtpURLConnection()
/libcore/mmodules/core_platform_api/api/legacy_platform/
Dcurrent-api.txt1002 public abstract class NetworkSecurityPolicy {
1003 ctor public NetworkSecurityPolicy();
1004 method public static libcore.net.NetworkSecurityPolicy getInstance();
1008 method public static void setInstance(libcore.net.NetworkSecurityPolicy);
/libcore/
Dnon_openjdk_java_files.bp247 "luni/src/main/java/libcore/net/NetworkSecurityPolicy.java",