Searched refs:NetworkSecurityPolicy (Results 1 – 8 of 8) sorted by relevance
21 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 …]
35 public abstract class NetworkSecurityPolicy { class37 private static volatile NetworkSecurityPolicy instance = new DefaultNetworkSecurityPolicy();41 public NetworkSecurityPolicy() { in NetworkSecurityPolicy() method in NetworkSecurityPolicy46 public static NetworkSecurityPolicy getInstance() { in getInstance()51 public static void setInstance(NetworkSecurityPolicy policy) { in setInstance()101 public static final class DefaultNetworkSecurityPolicy extends NetworkSecurityPolicy {
32 import libcore.net.NetworkSecurityPolicy;169 if (!NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()) { in connect()
66 …libcore.api.CorePlatformApi @libcore.api.IntraCoreApi public abstract class NetworkSecurityPolicy {67 …rePlatformApi @libcore.api.IntraCoreApi public static libcore.net.NetworkSecurityPolicy getInstanc…
126 …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…
50 import libcore.net.NetworkSecurityPolicy;186 if (!NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()) { in FtpURLConnection()
1002 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);
247 "luni/src/main/java/libcore/net/NetworkSecurityPolicy.java",