Searched refs:isCleartextTrafficPermitted (Results 1 – 5 of 5) sorted by relevance
79 public abstract boolean isCleartextTrafficPermitted(); in isCleartextTrafficPermitted() method in NetworkSecurityPolicy89 public abstract boolean isCleartextTrafficPermitted(String hostname); in isCleartextTrafficPermitted() method in NetworkSecurityPolicy103 public boolean isCleartextTrafficPermitted() { in isCleartextTrafficPermitted() method in NetworkSecurityPolicy.DefaultNetworkSecurityPolicy108 public boolean isCleartextTrafficPermitted(String hostname) { in isCleartextTrafficPermitted() method in NetworkSecurityPolicy.DefaultNetworkSecurityPolicy109 return isCleartextTrafficPermitted(); in isCleartextTrafficPermitted()
63 assertEquals(false, NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()); in testCleartextTrafficPolicySetterAndGetter()66 assertEquals(true, NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()); in testCleartextTrafficPolicySetterAndGetter()69 assertEquals(false, NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()); in testCleartextTrafficPolicySetterAndGetter()72 assertEquals(true, NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()); in testCleartextTrafficPolicySetterAndGetter()78 NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted("localhost")); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()82 NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted("localhost")); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()88 assertEquals(false, NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()90 NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted("localhost")); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()92 NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted("example.com")); in testHostnameAwareCleartextTrafficPolicySetterAndGetter()345 public void addHostMapping(String hostname, boolean isCleartextTrafficPermitted) { in addHostMapping() argument[all …]
169 if (!NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()) { in connect()
186 if (!NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted()) { in FtpURLConnection()
1006 method public abstract boolean isCleartextTrafficPermitted();1007 method public abstract boolean isCleartextTrafficPermitted(String);