Home
last modified time | relevance | path

Searched refs:capportData (Results 1 – 7 of 7) sorted by relevance

/packages/modules/NetworkStack/src/android/net/captiveportal/
DCapportApiProbeResult.java33 @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/src/com/android/networkstack/metrics/
DNetworkValidationMetrics.java191 @Nullable final CaptivePortalDataShim capportData) { in addProbeEvent() argument
205 if (capportData != null) { in addProbeEvent()
207 (capportData.getExpiryTimeMillis() - currentTimeMillis()) / 1000; in addProbeEvent()
212 ConnectivityUtils.saturatedCast(capportData.getByteLimit() / 1000)) in addProbeEvent()
213 .setHasPortalUrl((capportData.getUserPortalUrl() != null)) in addProbeEvent()
214 .setHasVenueInfo((capportData.getVenueInfoUrl() != null)); in addProbeEvent()
/packages/modules/NetworkStack/src/com/android/networkstack/
DNetworkStackNotifier.java201 final CaptivePortalDataShim capportData = getCaptivePortalData(networkStatus); in updateNotifications() local
202 final boolean showVenueInfo = capportData != null && capportData.getVenueInfoUrl() != null in updateNotifications()
227 .setData(capportData.getVenueInfoUrl()) in updateNotifications()
240 final CharSequence friendlyName = capportData.getVenueFriendlyName(); in updateNotifications()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt285 val capportData = testCb.expectLinkPropertiesThat(na, TEST_TIMEOUT_MS) { in <lambda>() constant
288 assertNotNull(capportData) in <lambda>()
289 assertTrue(capportData.isCaptive) in <lambda>()
290 assertEquals(Uri.parse("https://login.capport.android.com"), capportData.userPortalUrl) in <lambda>()
291 assertEquals(Uri.parse("https://venueinfo.capport.android.com"), capportData.venueInfoUrl) in <lambda>()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DNetworkValidationMetricsTest.java211 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/server/connectivity/
DNetworkMonitor.java827 CaptivePortalDataShim capportData) { in recordProbeEventMetrics() argument
831 mNetworkValidationMetrics.addProbeEvent(type, latencyMicros, result, capportData); in recordProbeEventMetrics()
2765 final CaptivePortalDataShim capportData = CaptivePortalDataShimImpl.fromJson(info); in sendCapportApiProbe() local
2766 if (capportData != null && capportData.isCaptive() in sendCapportApiProbe()
2767 && capportData.getUserPortalUrl() == null) { in sendCapportApiProbe()
2771 return capportData; in sendCapportApiProbe()
2786 final CaptivePortalDataShim capportData = sendCapportApiProbe(); in tryCapportApiProbe() local
2788 capportData == null ? ProbeResult.PR_FAILURE : ProbeResult.PR_SUCCESS, in tryCapportApiProbe()
2789 capportData); in tryCapportApiProbe()
2790 return capportData; in tryCapportApiProbe()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java2633 final CaptivePortalData capportData = new CaptivePortalData.Builder() in doNetworkCallbacksSanitizationTest() local
2644 final CaptivePortalData expectedCapportData = sanitized ? null : capportData; in doNetworkCallbacksSanitizationTest()
2645 mWiFiNetworkAgent.notifyCapportApiDataChanged(capportData); in doNetworkCallbacksSanitizationTest()
3859 CaptivePortalTestData(CaptivePortalData naPasspointData, CaptivePortalData capportData, in CaptivePortalTestData() argument
3863 mCapportData = capportData; in CaptivePortalTestData()
3878 final CaptivePortalData capportData = new CaptivePortalData.Builder() in setupCaptivePortalData() local
3919 return new CaptivePortalTestData(naPasspointData, capportData, naOtherData, in setupCaptivePortalData()