Home
last modified time | relevance | path

Searched refs:NET_CAPABILITY_NOT_METERED (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java28 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
122 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
127 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
135 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
141 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
148 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
153 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
161 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
167 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
191 .addCapability(NET_CAPABILITY_NOT_METERED) in testDescribeImmutableDifferences()
[all …]
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java158 NET_CAPABILITY_NOT_METERED,
246 public static final int NET_CAPABILITY_NOT_METERED = 11; field in NetworkCapabilities
436 (1 << NET_CAPABILITY_NOT_METERED)
1626 final long mask = ~MUTABLE_CAPABILITIES & ~(1 << NET_CAPABILITY_NOT_METERED); in describeImmutableDifferences()
1902 case NET_CAPABILITY_NOT_METERED: return "NOT_METERED"; in capabilityNameOf()
1966 return !hasCapability(NET_CAPABILITY_NOT_METERED); in isMetered()
DNetworkIdentity.java195 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in buildNetworkIdentity()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataConnectionTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
623 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testMeteredCapability()
638 assertTrue(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testNonMeteredCapability()
670 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testOverrideCongested()
676 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testOverrideCongested()
681 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testOverrideCongested()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java57 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
1931 .clearCapabilities().addCapability(NET_CAPABILITY_NOT_METERED) in testMultipleLingering()
1943 mCellNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
1944 mWiFiNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
1945 mEthernetNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
2001 mWiFiNetworkAgent.removeCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
2003 defaultCallback.expectCapabilitiesWithout(NET_CAPABILITY_NOT_METERED, mWiFiNetworkAgent); in testMultipleLingering()
2441 tryNetworkFactoryRequests(NET_CAPABILITY_NOT_METERED); in testNetworkFactoryRequests()
4815 mCellNetworkAgent.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in testStatsIfacesChanged()
4822 mCellNetworkAgent.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in testStatsIfacesChanged()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java26 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
609 .addCapability(NET_CAPABILITY_NOT_METERED) in testCapabilities()
625 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
640 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
652 assertTrue(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
664 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
679 assertFalse(caps.hasCapability(NET_CAPABILITY_NOT_METERED)); in testCapabilities()
/frameworks/base/core/java/android/app/job/
DJobInfo.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
462 } else if (networkRequest.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in getNetworkType()
1133 builder.addCapability(NET_CAPABILITY_NOT_METERED); in setRequiredNetworkType()
/frameworks/base/tests/net/java/android/net/
DNetworkTemplateTest.kt68 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in buildMobileNetworkState()
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java127 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in hasCapabilitiesChanged()
141 if (capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getCapabilityFlags()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java23 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
271 !nc.hasCapability(NET_CAPABILITY_NOT_METERED), in getTemplateMatchingNetworkIdentity()
DVpn.java22 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
378 metered |= !underlyingCaps.hasCapability(NET_CAPABILITY_NOT_METERED); in applyUnderlyingCapabilities()
401 caps.setCapability(NET_CAPABILITY_NOT_METERED, !metered); in applyUnderlyingCapabilities()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
195 .addCapability(NET_CAPABILITY_NOT_METERED); in testRelaxed()
226 .addCapability(NET_CAPABILITY_NOT_METERED); in testUpdates()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
382 .removeCapability(NET_CAPABILITY_NOT_METERED); in isRelaxedSatisfied()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java255 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
DConnectivityService.java43 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
1796 return !caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in isActiveNetworkMetered()
4064 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getMultipathPreference()
5591 if (networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in enforceMeteredApnPolicy()
5597 networkCapabilities.addCapability(NET_CAPABILITY_NOT_METERED); in enforceMeteredApnPolicy()
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto85 NET_CAPABILITY_NOT_METERED = 11; enumerator
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java1454 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered);
1472 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
1484 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java466 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in createDefaultNetworkCapabilities()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java1664 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getSessionNetworkRequestMore()
1712 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in getDirectNetworkRequestMore()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java150 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in start()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java50 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
1108 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
1954 && !state.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeImpl.java843 mNetworkCapabilitiesFilter.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in ClientModeImpl()
4685 result.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getCapabilities()
4687 result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getCapabilities()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java1417 result.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, in getNetworkCapabilities()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17124 field public static final int NET_CAPABILITY_NOT_METERED = 11; // 0xb
/frameworks/base/non-updatable-api/
Dcurrent.txt29041 field public static final int NET_CAPABILITY_NOT_METERED = 11; // 0xb

12