Home
last modified time | relevance | path

Searched refs:ProbeType (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DNetworkValidationMetricsTest.java35 import android.stats.connectivity.ProbeType;
62 verifyProbeType(ValidationProbeEvent.PROBE_DNS, ProbeType.PT_DNS); in testNetworkValidationMetrics_VerifyProbeTypeToEnum()
63 verifyProbeType(ValidationProbeEvent.PROBE_HTTP, ProbeType.PT_HTTP); in testNetworkValidationMetrics_VerifyProbeTypeToEnum()
64 verifyProbeType(ValidationProbeEvent.PROBE_HTTPS, ProbeType.PT_HTTPS); in testNetworkValidationMetrics_VerifyProbeTypeToEnum()
65 verifyProbeType(ValidationProbeEvent.PROBE_PAC, ProbeType.PT_PAC); in testNetworkValidationMetrics_VerifyProbeTypeToEnum()
66 verifyProbeType(ValidationProbeEvent.PROBE_FALLBACK, ProbeType.PT_FALLBACK); in testNetworkValidationMetrics_VerifyProbeTypeToEnum()
67 verifyProbeType(ValidationProbeEvent.PROBE_PRIVDNS, ProbeType.PT_PRIVDNS); in testNetworkValidationMetrics_VerifyProbeTypeToEnum()
70 private void verifyProbeType(int inputProbeType, ProbeType expectedEnumType) { in verifyProbeType()
141 metrics.addProbeEvent(ProbeType.PT_DNS, 1234, ProbeResult.PR_SUCCESS, null); in testNetworkValidationMetrics_VerifyConsecutiveProbeFailure()
144 metrics.addProbeEvent(ProbeType.PT_HTTP, 1234, ProbeResult.PR_FAILURE, null); in testNetworkValidationMetrics_VerifyConsecutiveProbeFailure()
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DNetworkValidationMetrics.java35 import android.stats.connectivity.ProbeType;
131 public static ProbeType probeTypeToEnum(final int probeType) { in probeTypeToEnum()
134 return ProbeType.PT_DNS; in probeTypeToEnum()
136 return ProbeType.PT_HTTP; in probeTypeToEnum()
138 return ProbeType.PT_HTTPS; in probeTypeToEnum()
140 return ProbeType.PT_PAC; in probeTypeToEnum()
142 return ProbeType.PT_FALLBACK; in probeTypeToEnum()
144 return ProbeType.PT_PRIVDNS; in probeTypeToEnum()
146 return ProbeType.PT_UNKNOWN; in probeTypeToEnum()
190 public void addProbeEvent(final ProbeType type, final long durationUs, final ProbeResult result, in addProbeEvent()
Dstats.proto40 optional .android.stats.connectivity.ProbeType probe_type = 1;
/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/
DCaptivePortalProbeResult.java74 @ProbeType
83 public @interface ProbeType { annotation in CaptivePortalProbeResult
86 public CaptivePortalProbeResult(int httpResponseCode, @ProbeType int probeType) { in CaptivePortalProbeResult()
91 @Nullable String detectUrl, @ProbeType int probeType) { in CaptivePortalProbeResult()
97 @ProbeType int probeType) { in CaptivePortalProbeResult()
141 public static CaptivePortalProbeResult failed(@ProbeType int probeType) { in failed()
150 public static CaptivePortalProbeResult success(@ProbeType int probeType) { in success()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java131 import android.stats.connectivity.ProbeType;
826 private void recordProbeEventMetrics(ProbeType type, long latencyMicros, ProbeResult result, in recordProbeEventMetrics()
1428 recordProbeEventMetrics(ProbeType.PT_PRIVDNS, 0 /* latency */, in processMessage()
1539 recordProbeEventMetrics(ProbeType.PT_PRIVDNS, time, success ? ProbeResult.PR_SUCCESS : in sendPrivateDnsProbe()
2431 recordProbeEventMetrics(ProbeType.PT_DNS, latency, in sendDnsProbe()
2787 recordProbeEventMetrics(ProbeType.PT_CAPPORT_API, capportApiWatch.stop(), in tryCapportApiProbe()