/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 28 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 …]
|
D | NetworkStateSnapshotTest.kt | 54 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in <lambda>()
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | NetworkCallbackTest.java | 19 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()
|
D | NetworkPolicyTestUtils.java | 22 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 303 final boolean metered = !nc.hasCapability(NET_CAPABILITY_NOT_METERED);
|
D | VpnTest.java | 1133 return !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in isNetworkMetered()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | FullScore.java | 20 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/ |
D | FakeSystemFacade.java | 3 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/ |
D | JobInfoRowArrayAdapter.java | 19 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/ |
D | ConnectivityServiceTest.java | 86 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/ |
D | NetworkCapabilities.java | 244 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()
|
D | NetworkRequest.java | 24 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 191 NET_CAPABILITY_NOT_METERED,
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkAgentTest.kt | 38 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()
|
D | ConnectivityManagerTest.java | 52 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/ |
D | NetworkMonitorTest.java | 30 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/ |
D | DownloadThread.java | 19 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/ |
D | NetworkStatsServiceTest.java | 1740 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/ |
D | TestNetworkService.java | 255 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in registerTestNetworkAgent()
|
D | ConnectivityService.java | 65 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/ |
D | TestableNetworkCallbackTest.kt | 30 const val NOT_METERED = NetworkCapabilities.NET_CAPABILITY_NOT_METERED in <lambda>()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkTemplateTest.kt | 84 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !metered) in buildMobileNetworkState()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ClientModeImplTest.java | 5307 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/ |
D | ConnectivityFragment.java | 274 sCapabilityNames.put(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, "[NOT METERED]"); in sCapabilityNames.put() argument
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ |
D | NetworkMonitor.java | 35 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/ |
D | WifiInjector.java | 97 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in makeBaseNetworkCapatibilitiesFilterBuilder()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManagerTest.java | 1867 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getSessionNetworkRequestMore() 1917 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in getDirectNetworkRequestMore()
|