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;
619 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testMeteredCapability()
634 assertTrue(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testNonMeteredCapability()
666 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testOverrideCongested()
672 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testOverrideCongested()
677 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()
4807 mCellNetworkAgent.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in testStatsIfacesChanged()
4814 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/apex/jobscheduler/service/java/com/android/server/job/controllers/
DConnectivityController.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
382 .addCapability(NET_CAPABILITY_NOT_METERED); in isStrictSatisfied()
400 .removeCapability(NET_CAPABILITY_NOT_METERED); in isRelaxedSatisfied()
/frameworks/base/tests/net/java/android/net/
DNetworkTemplateTest.kt68 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in buildMobileNetworkState()
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobInfo.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
465 } else if (networkRequest.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in getNetworkType()
1117 builder.addCapability(NET_CAPABILITY_NOT_METERED); in setRequiredNetworkType()
/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/core/java/com/android/server/location/gnss/
DGnssNetworkConnectivityHandler.java143 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in hasCapabilitiesChanged()
157 if (capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getCapabilityFlags()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
246 .addCapability(NET_CAPABILITY_NOT_METERED); in testRelaxed()
277 .addCapability(NET_CAPABILITY_NOT_METERED); in testUpdates()
/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()
4072 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getMultipathPreference()
5608 if (networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in enforceMeteredApnPolicy()
5614 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.java1341 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered);
1359 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
1371 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/
DClientModeImplTest.java5018 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyDisconnectOnMarkingNetworkMetered()
5037 assertFalse(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyUpdateCapabilitiesOnMarkingNetworkUnmetered()
5049 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyUpdateCapabilitiesOnMarkingNetworkUnmetered()
5062 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyDisconnectOnMarkingNetworkAutoMeteredWithMeteredHint()
5088 assertFalse(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyUpdateCapabilitiesOnMarkingNetworkAutoMeteredWithoutMeteredHint()
5104 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyUpdateCapabilitiesOnMarkingNetworkAutoMeteredWithoutMeteredHint()
5116 assertFalse(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyDoNothingMarkingNetworkAutoMeteredWithMeteredHint()
5143 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyDoNothingMarkingNetworkAutoMeteredWithoutMeteredHint()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java1700 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getSessionNetworkRequestMore()
1750 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in getDirectNetworkRequestMore()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java134 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in makeNetworkCapabilitiesFilter()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java50 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
1114 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
1961 && !state.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeImpl.java819 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in ClientModeImpl()
4474 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getCapabilities()
4476 builder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getCapabilities()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java1399 result.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, in getNetworkCapabilities()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...

12