Home
last modified time | relevance | path

Searched refs:setCapability (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DNetworkTemplateTest.kt68 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in buildMobileNetworkState()
69 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true) in buildMobileNetworkState()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java1454 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered);
1455 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true);
1472 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
1473 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, !isRoaming);
1484 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
1485 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, true);
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java505 public @NonNull NetworkCapabilities setCapability(@NetCapability int capability, in setCapability() method in NetworkCapabilities
2201 mCaps.setCapability(capability, true); in addCapability()
2213 mCaps.setCapability(capability, false); in removeCapability()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java401 caps.setCapability(NET_CAPABILITY_NOT_METERED, !metered); in applyUnderlyingCapabilities()
402 caps.setCapability(NET_CAPABILITY_NOT_ROAMING, !roaming); in applyUnderlyingCapabilities()
403 caps.setCapability(NET_CAPABILITY_NOT_CONGESTED, !congested); in applyUnderlyingCapabilities()
404 caps.setCapability(NET_CAPABILITY_NOT_SUSPENDED, !suspended); in applyUnderlyingCapabilities()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java1417 result.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, in getNetworkCapabilities()
1437 result.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, in getNetworkCapabilities()
1457 result.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED, !suspended); in getNetworkCapabilities()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1272 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, in getFilteredNetworkState()
/frameworks/base/config/
Dboot-image-profile.txt10278 HSPLandroid/net/NetworkCapabilities;->setCapability(IZ)Landroid/net/NetworkCapabilities;
Dhiddenapi-greylist-max-o.txt44346 Landroid/net/NetworkCapabilities;->setCapability(IZ)Landroid/net/NetworkCapabilities;