Searched refs:capportData (Results 1 – 5 of 5) sorted by relevance
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | NetworkValidationMetrics.java | 191 @Nullable final CaptivePortalDataShim capportData) { in addProbeEvent() argument 205 if (capportData != null) { in addProbeEvent() 207 (capportData.getExpiryTimeMillis() - currentTimeMillis()) / 1000; in addProbeEvent() 212 NetworkStackUtils.saturatedCast(capportData.getByteLimit() / 1000)) in addProbeEvent() 213 .setHasPortalUrl((capportData.getUserPortalUrl() != null)) in addProbeEvent() 214 .setHasVenueInfo((capportData.getVenueInfoUrl() != null)); in addProbeEvent()
|
/packages/modules/NetworkStack/src/android/net/captiveportal/ |
D | CapportApiProbeResult.java | 33 @Nullable CaptivePortalDataShim capportData) { in CapportApiProbeResult() argument 34 this(result.mHttpResponseCode, result.redirectUrl, result.detectUrl, capportData, in CapportApiProbeResult() 39 @Nullable String detectUrl, @Nullable CaptivePortalDataShim capportData, in CapportApiProbeResult() argument 42 mCapportData = capportData; in CapportApiProbeResult()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/ |
D | NetworkValidationMetricsTest.java | 211 final CapportApiData capportData = probeEvent.getCapportApiData(); in testNetworkValidationMetrics_VerifyCollectMetrics() local 212 assertTrue(capportData.getRemainingTtlSecs() <= secondsRemaining); in testNetworkValidationMetrics_VerifyCollectMetrics() 213 assertTrue(capportData.getRemainingTtlSecs() + TTL_TOLERANCE_SECS > secondsRemaining); in testNetworkValidationMetrics_VerifyCollectMetrics() 214 assertEquals(captivePortalData.getByteLimit() / 1000, capportData.getRemainingBytes()); in testNetworkValidationMetrics_VerifyCollectMetrics()
|
/packages/modules/NetworkStack/src/com/android/networkstack/ |
D | NetworkStackNotifier.java | 202 final CaptivePortalDataShim capportData = getCaptivePortalData(networkStatus); in updateNotifications() local 203 final boolean showVenueInfo = capportData != null && capportData.getVenueInfoUrl() != null in updateNotifications() 228 .setData(capportData.getVenueInfoUrl()) in updateNotifications()
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 815 CaptivePortalDataShim capportData) { in recordProbeEventMetrics() argument 819 mNetworkValidationMetrics.addProbeEvent(type, latencyMicros, result, capportData); in recordProbeEventMetrics() 2719 final CaptivePortalDataShim capportData = CaptivePortalDataShimImpl.fromJson(info); in sendCapportApiProbe() local 2720 if (capportData != null && capportData.isCaptive() in sendCapportApiProbe() 2721 && capportData.getUserPortalUrl() == null) { in sendCapportApiProbe() 2725 return capportData; in sendCapportApiProbe() 2740 final CaptivePortalDataShim capportData = sendCapportApiProbe(); in tryCapportApiProbe() local 2742 capportData == null ? ProbeResult.PR_FAILURE : ProbeResult.PR_SUCCESS, in tryCapportApiProbe() 2743 capportData); in tryCapportApiProbe() 2744 return capportData; in tryCapportApiProbe() [all …]
|