Searched refs:setCapability (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/tests/net/java/android/net/ |
D | NetworkTemplateTest.kt | 68 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/ |
D | NetworkStatsServiceTest.java | 1454 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/ |
D | NetworkCapabilities.java | 505 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/ |
D | Vpn.java | 401 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/ |
D | DataConnection.java | 1417 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/ |
D | ConnectivityService.java | 1272 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING, in getFilteredNetworkState()
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 10278 HSPLandroid/net/NetworkCapabilities;->setCapability(IZ)Landroid/net/NetworkCapabilities;
|
D | hiddenapi-greylist-max-o.txt | 44346 Landroid/net/NetworkCapabilities;->setCapability(IZ)Landroid/net/NetworkCapabilities;
|