Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java28 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
115 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
120 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
128 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
134 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
141 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
146 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
154 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
160 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
184 .addCapability(NET_CAPABILITY_NOT_METERED) in testDescribeImmutableDifferences()
[all …]
DNetworkStateSnapshotTest.kt54 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in <lambda>()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DNetworkCallbackTest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
212 .removeCapability(NET_CAPABILITY_NOT_METERED) in setUp()
219 false /* hasCapability */, NET_CAPABILITY_NOT_METERED); in setUp()
257 true /* hasCapability */, NET_CAPABILITY_NOT_METERED); in testOnBlockedStatusChanged_dataSaver()
290 true /* hasCapability */, NET_CAPABILITY_NOT_METERED); in testOnBlockedStatusChanged_powerSaver()
DNetworkPolicyTestUtils.java22 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
303 final boolean metered = !nc.hasCapability(NET_CAPABILITY_NOT_METERED);
DVpnTest.java1133 return !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in isNetworkMetered()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DFullScore.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
164 caps.hasCapability(NET_CAPABILITY_NOT_METERED), in fromNetworkScore()
227 caps.hasCapability(NET_CAPABILITY_NOT_METERED), in mixInScore()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java3 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
101 if (!mIsMetered) builder.addCapability(NET_CAPABILITY_NOT_METERED); in getNetworkCapabilities()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobInfoRowArrayAdapter.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
142 } else if (networkRequest.hasCapability(NET_CAPABILITY_NOT_METERED)) { in getNetworkType()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java86 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
1327 if (!isAlwaysMetered) mNetworkCapabilities.addCapability(NET_CAPABILITY_NOT_METERED); in registerAgent()
2720 .clearCapabilities().addCapability(NET_CAPABILITY_NOT_METERED) in testMultipleLingering()
2732 mCellNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
2733 mWiFiNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
2734 mEthernetNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
2790 mWiFiNetworkAgent.removeCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
2792 defaultCallback.expectCapabilitiesWithout(NET_CAPABILITY_NOT_METERED, mWiFiNetworkAgent); in testMultipleLingering()
3338 tryNetworkFactoryRequests(NET_CAPABILITY_NOT_METERED); in testNetworkFactoryRequests()
6288 mCellNetworkAgent.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in testStatsIfacesChanged()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java244 NET_CAPABILITY_NOT_METERED,
339 public static final int NET_CAPABILITY_NOT_METERED = 11; field in NetworkCapabilities
567 (1 << NET_CAPABILITY_NOT_METERED)
1828 final long mask = ~MUTABLE_CAPABILITIES & ~(1 << NET_CAPABILITY_NOT_METERED); in describeImmutableDifferences()
2119 case NET_CAPABILITY_NOT_METERED: return "NOT_METERED"; in capabilityNameOf()
2192 return !hasCapability(NET_CAPABILITY_NOT_METERED); in isMetered()
DNetworkRequest.java24 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
191 NET_CAPABILITY_NOT_METERED,
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt38 import android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED in <lambda>()
484 nc.addCapability(NET_CAPABILITY_NOT_METERED) in testSetLegacySubtypeInNetworkAgent()
487 it.hasCapability(NET_CAPABILITY_NOT_METERED) in testSetLegacySubtypeInNetworkAgent()
606 nc.addCapability(NET_CAPABILITY_NOT_METERED) in agent()
609 it.hasCapability(NET_CAPABILITY_NOT_METERED) in agent()
DConnectivityManagerTest.java52 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
1114 final boolean metered = !nc.hasCapability(NET_CAPABILITY_NOT_METERED); in waitForActiveNetworkMetered()
1217 NET_CAPABILITY_NOT_METERED), false); in testGetMultipathPreference()
1226 NET_CAPABILITY_NOT_METERED), false); in testGetMultipathPreference()
1233 NET_CAPABILITY_NOT_METERED), true); in testGetMultipathPreference()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java30 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
313 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
319 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
328 .addCapability(NET_CAPABILITY_NOT_METERED)
712 nc.addCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth()
728 nc.removeCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth()
732 nc.addCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth()
765 .addCapability(NET_CAPABILITY_NOT_METERED); in testEvaluatingBandwidthState_nonMeteredNetworkWithWrongConfig()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
724 if (!caps.hasCapability(NET_CAPABILITY_NOT_METERED) in checkConnectivity()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java1740 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered);
1755 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
1771 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
1786 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, true);
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java255 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in registerTestNetworkAgent()
DConnectivityService.java65 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
2340 return !caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in isActiveNetworkMetered()
4772 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getMultipathPreference()
6203 if (networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in enforceMeteredApnPolicy()
6211 networkCapabilities.addCapability(NET_CAPABILITY_NOT_METERED); in enforceMeteredApnPolicy()
7238 boolean metered = !agentCaps.hasCapability(NET_CAPABILITY_NOT_METERED); in applyUnderlyingCapabilities()
7264 metered |= !underlyingCaps.hasCapability(NET_CAPABILITY_NOT_METERED); in applyUnderlyingCapabilities()
7287 newNc.setCapability(NET_CAPABILITY_NOT_METERED, !metered); in applyUnderlyingCapabilities()
10293 .addCapability(NET_CAPABILITY_NOT_METERED) in createUnmeteredNetworkRequest()
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTestableNetworkCallbackTest.kt30 const val NOT_METERED = NetworkCapabilities.NET_CAPABILITY_NOT_METERED in <lambda>()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkTemplateTest.kt84 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !metered) in buildMobileNetworkState()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java5307 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyDisconnectOnMarkingNetworkMetered()
5328 assertFalse(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyUpdateCapabilitiesOnMarkingNetworkUnmetered()
5340 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyUpdateCapabilitiesOnMarkingNetworkUnmetered()
5353 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyDisconnectOnMarkingNetworkAutoMeteredWithMeteredHint()
5379 assertFalse(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyUpdateCapabilitiesOnMarkingNetworkAutoMeteredWithoutMeteredHint()
5395 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyUpdateCapabilitiesOnMarkingNetworkAutoMeteredWithoutMeteredHint()
5407 assertFalse(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyDoNothingMarkingNetworkAutoMeteredWithMeteredHint()
5434 assertTrue(cap.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in verifyDoNothingMarkingNetworkAutoMeteredWithoutMeteredHint()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java274 sCapabilityNames.put(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, "[NOT METERED]"); in sCapabilityNames.put() argument
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java35 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
1814 || !mNetworkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED) in needEvaluatingBandwidth()
3305 if (!mNetworkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED) in isDataStall()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiInjector.java97 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in makeBaseNetworkCapatibilitiesFilterBuilder()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java1867 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getSessionNetworkRequestMore()
1917 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in getDirectNetworkRequestMore()

12