Home
last modified time | relevance | path

Searched refs:NET_CAPABILITY_CAPTIVE_PORTAL (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java22 import static android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL;
492 nc.addCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in testConnectivityManagedCapabilities()
494 nc.removeCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in testConnectivityManagedCapabilities()
585 nc1.addForbiddenCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in testCombineCapabilities()
593 assertTrue(nc2.hasForbiddenCapability(NET_CAPABILITY_CAPTIVE_PORTAL)); in testCombineCapabilities()
779 nc1.addForbiddenCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in testSet()
787 assertTrue(nc2.hasForbiddenCapability(NET_CAPABILITY_CAPTIVE_PORTAL)); in testSet()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DCaptivePortalTest.kt29 import android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL
169 if (nc.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL)) { in testCaptivePortalIsNotDefaultNetwork()
DNetworkValidationTest.kt26 import android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL
189 it.caps.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL) in testCapportApiCallbacks()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkRequest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL;
186 NET_CAPABILITY_CAPTIVE_PORTAL,
DNetworkCapabilities.java250 NET_CAPABILITY_CAPTIVE_PORTAL,
379 public static final int NET_CAPABILITY_CAPTIVE_PORTAL = 17; field in NetworkCapabilities
516 | (1 << NET_CAPABILITY_CAPTIVE_PORTAL)
556 | (1 << NET_CAPABILITY_CAPTIVE_PORTAL)
2125 case NET_CAPABILITY_CAPTIVE_PORTAL: return "CAPTIVE_PORTAL"; in capabilityNameOf()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt32 import android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL in <lambda>()
293 val nc = testCb.expectCapabilitiesWith(NET_CAPABILITY_CAPTIVE_PORTAL, na, TEST_TIMEOUT_MS) in <lambda>()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DContextualWifiSlice.java147 && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL) in hasInternetAccess()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java134 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL)); in canSignIntoNetwork()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java178 || c == NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL in isRequestableCapability()
263 sCapabilityNames.put(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL, "[CAPTIVE PORTAL]"); in sCapabilityNames.put() argument
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DLingerMonitor.java273 NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL); in noteLingerDefaultNetwork()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiUtil.java185 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL)); in canSignIntoNetwork()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DConnectState.java227 NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL)) { in inferConnectionStatus()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/service/network/
DNetworkMainState.java348 return nc != null && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL); in isCaptivePortal()
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java18 import static android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL;
273 || hasCapabilityChanged(nc, NET_CAPABILITY_CAPTIVE_PORTAL)
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java1411 .addCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL).build(); in captivePortal_shouldShowSignInButton()
1419 .removeCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL).build(); in captivePortal_shouldShowSignInButton()
1472 .addCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL).build(); in testSignInButton_shouldHideSignInButtonForDisconnectedNetwork()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkFragment.java435 return nc != null && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL); in isCaptivePortal()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt305 field public static final int NET_CAPABILITY_CAPTIVE_PORTAL = 17; // 0x11
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java74 import static android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL;
3424 .addCapability(NET_CAPABILITY_CAPTIVE_PORTAL) in testNoMutableNetworkRequests()
3631 .addCapability(NET_CAPABILITY_CAPTIVE_PORTAL).build(); in testCaptivePortalOnPartialConnectivity()
3680 .addCapability(NET_CAPABILITY_CAPTIVE_PORTAL).build(); in testCaptivePortal()
3729 .addCapability(NET_CAPABILITY_CAPTIVE_PORTAL).build(); in testCaptivePortalApp()
3787 .addCapability(NET_CAPABILITY_CAPTIVE_PORTAL).build(); in testAvoidOrIgnoreCaptivePortals()
3814 .addCapability(NET_CAPABILITY_CAPTIVE_PORTAL).build(); in testCaptivePortalApi()
3848 .addCapability(NET_CAPABILITY_CAPTIVE_PORTAL).build(); in setupNetworkCallbackAndConnectToWifi()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java60 import static android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL;
4510 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL)) return; in startCaptivePortalApp()
7325 newNc.addCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in mixInCapabilities()
7327 newNc.removeCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in mixInCapabilities()
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt668 Landroid/net/NetworkCapabilitiesProto;->NET_CAPABILITY_CAPTIVE_PORTAL:I