Home
last modified time | relevance | path

Searched refs:probeType (Results 1 – 6 of 6) sorted by relevance

/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/
DCaptivePortalProbeResult.java75 public final int probeType; field in CaptivePortalProbeResult
86 public CaptivePortalProbeResult(int httpResponseCode, @ProbeType int probeType) { in CaptivePortalProbeResult() argument
87 this(httpResponseCode, null, null, null, probeType); in CaptivePortalProbeResult()
91 @Nullable String detectUrl, @ProbeType int probeType) { in CaptivePortalProbeResult() argument
92 this(httpResponseCode, redirectUrl, detectUrl, null, probeType); in CaptivePortalProbeResult()
97 @ProbeType int probeType) { in CaptivePortalProbeResult() argument
102 this.probeType = probeType; in CaptivePortalProbeResult()
141 public static CaptivePortalProbeResult failed(@ProbeType int probeType) { in failed() argument
142 return new CaptivePortalProbeResult(FAILED_CODE, probeType); in failed()
150 public static CaptivePortalProbeResult success(@ProbeType int probeType) { in success() argument
[all …]
/packages/modules/NetworkStack/src/android/net/captiveportal/
DCapportApiProbeResult.java35 result.probeType); in CapportApiProbeResult()
40 int probeType) { in CapportApiProbeResult() argument
41 super(httpResponseCode, redirectUrl, detectUrl, probeType); in CapportApiProbeResult()
/packages/modules/Connectivity/tests/common/java/android/net/metrics/
DValidationProbeEventTest.kt41 assertTrue(validationProbeEvent.probeType hasType REVALIDATION) in hasType()
50 assertTrue(validationProbeEvent.probeType hasType ValidationProbeEvent.PROBE_DNS) in hasType()
51 assertTrue(validationProbeEvent.probeType hasType FIRST_VALIDATION) in hasType()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java718 private void validationLog(int probeType, Object url, String msg) { in validationLog() argument
719 String probeName = ValidationProbeEvent.getProbeName(probeType); in validationLog()
2384 private CaptivePortalProbeResult sendDnsAndHttpProbes(ProxyInfo proxy, URL url, int probeType) { in sendDnsAndHttpProbes() argument
2396 if (mPrivateIpNoInternetEnabled && probeType == ValidationProbeEvent.PROBE_HTTP in sendDnsAndHttpProbes()
2398 recordProbeEventMetrics(NetworkValidationMetrics.probeTypeToEnum(probeType), in sendDnsAndHttpProbes()
2402 return sendHttpProbe(url, probeType, null); in sendDnsAndHttpProbes()
2460 protected CaptivePortalProbeResult sendHttpProbe(URL url, int probeType, in sendHttpProbe() argument
2471 final boolean followRedirect = probeType == ValidationProbeEvent.PROBE_PAC; in sendHttpProbe()
2485 validationLog(probeType, url, "time=" + (responseTimestamp - requestTimestamp) + "ms" in sendHttpProbe()
2497 if (probeType == ValidationProbeEvent.PROBE_PAC) { in sendHttpProbe()
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DNetworkValidationMetrics.java131 public static ProbeType probeTypeToEnum(final int probeType) { in probeTypeToEnum() argument
132 switch(probeType) { in probeTypeToEnum()
/packages/modules/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java473 private void logEvent(int probeType, int errorCode) {
474 int eventType = probeType | (errorCode & 0xff);