Searched refs:NetworkSecurityPolicy (Results 1 – 6 of 6) sorted by relevance
29 public abstract class NetworkSecurityPolicy { class31 private static volatile NetworkSecurityPolicy instance = new DefaultNetworkSecurityPolicy();33 public static NetworkSecurityPolicy getInstance() { in getInstance()37 public static void setInstance(NetworkSecurityPolicy policy) { in setInstance()82 public static final class DefaultNetworkSecurityPolicy extends NetworkSecurityPolicy {
22 import libcore.net.NetworkSecurityPolicy;122 if (!NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(host)) { in checkURLPermitted()
23 import libcore.net.NetworkSecurityPolicy;126 if (!NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(host)) { in checkURLPermitted()
63 import libcore.net.NetworkSecurityPolicy;489 return NetworkSecurityPolicy.getInstance().isCertificateTransparencyVerificationRequired( in isCTVerificationRequired()
71 import libcore.net.NetworkSecurityPolicy;490 return NetworkSecurityPolicy.getInstance().isCertificateTransparencyVerificationRequired( in isCTVerificationRequired()
42 import android.security.NetworkSecurityPolicy;2274 && !NetworkSecurityPolicy.getInstance() in isTrafficRestricted()