Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java31 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
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()
167 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
172 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
180 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
186 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
210 .addCapability(NET_CAPABILITY_NOT_METERED) in testDescribeImmutableDifferences()
[all …]
DNetworkStateSnapshotTest.kt55 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in <lambda>()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DNetworkCallbackTest.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
233 .removeCapability(NET_CAPABILITY_NOT_METERED) in setUp()
240 false /* hasCapability */, NET_CAPABILITY_NOT_METERED); in setUp()
309 true /* hasCapability */, NET_CAPABILITY_NOT_METERED); in testOnBlockedStatusChanged_dataSaver()
351 true /* hasCapability */, NET_CAPABILITY_NOT_METERED); in testOnBlockedStatusChanged_powerSaver()
403 true /* hasCapability */, NET_CAPABILITY_NOT_METERED); in testOnBlockedStatusChanged_default()
DNetworkPolicyTestUtils.java22 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
313 final boolean metered = !nc.hasCapability(NET_CAPABILITY_NOT_METERED);
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/
DConnectivitySampleMetricsTest.kt9 import android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED in <lambda>()
75 hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) -> in Number()
96 .addCapability(NET_CAPABILITY_NOT_METERED) in testSampleConnectivityState_Network()
139 0L != (it.capabilities and (1L shl NET_CAPABILITY_NOT_METERED)) in testSampleConnectivityState_Network()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DFullScore.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
178 caps.hasCapability(NET_CAPABILITY_NOT_METERED), in fromNetworkScore()
252 caps.hasCapability(NET_CAPABILITY_NOT_METERED), in mixInScore()
DNetworkRequestStateInfo.java89 return mNetworkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getNetCapabilityNotMetered()
/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/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/user/
DUserDataCollectorTest.java175 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in testFilterNetworkCapabilities()
185 new int[]{NetworkCapabilities.NET_CAPABILITY_NOT_METERED}, in testFilterNetworkCapabilities()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkIdentityTest.kt97 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in <lambda>()
120 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in <lambda>()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkRequestStateInfoTest.java57 .setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, true), in testSetNetworkRequestRemoved()
DNetworkRequestStateStatsMetricsTest.java71 .setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, true)
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSNetworkRequestStateStatsMetricsTests.kt40 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in <lambda>()
DCSBlockedReasonsTest.kt35 import android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED
66 .addCapability(NET_CAPABILITY_NOT_METERED) in cellNc()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java439 NET_CAPABILITY_NOT_METERED,
539 public static final int NET_CAPABILITY_NOT_METERED = 11; field in NetworkCapabilities
841 (1L << NET_CAPABILITY_NOT_METERED) |
2293 final long mask = ~MUTABLE_CAPABILITIES & ~(1 << NET_CAPABILITY_NOT_METERED); in describeImmutableDifferences()
2612 case NET_CAPABILITY_NOT_METERED: return "NOT_METERED"; in capabilityNameOf()
2703 return !hasCapability(NET_CAPABILITY_NOT_METERED); in isMetered()
DNetworkRequest.java25 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
282 NET_CAPABILITY_NOT_METERED,
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/user/
DUserDataCollector.java329 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getFilteredNetworkCapabilities()
330 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getFilteredNetworkCapabilities()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java113 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
1578 if (!isAlwaysMetered) mNetworkCapabilities.addCapability(NET_CAPABILITY_NOT_METERED); in registerAgent()
3604 .clearCapabilities().addCapability(NET_CAPABILITY_NOT_METERED)
3616 mCellAgent.addCapability(NET_CAPABILITY_NOT_METERED);
3617 mWiFiAgent.addCapability(NET_CAPABILITY_NOT_METERED);
3618 mEthernetAgent.addCapability(NET_CAPABILITY_NOT_METERED);
3674 mWiFiAgent.removeCapability(NET_CAPABILITY_NOT_METERED);
3676 defaultCallback.expectCaps(mWiFiAgent, c -> !c.hasCapability(NET_CAPABILITY_NOT_METERED));
4372 tryNetworkFactoryRequests(NET_CAPABILITY_NOT_METERED);
7963 mCellAgent.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt42 import android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED in <lambda>()
443 nc.addCapability(NET_CAPABILITY_NOT_METERED) in testSetLegacySubtypeInNetworkAgent()
445 callback.expectCaps(agent.network!!) { it.hasCapability(NET_CAPABILITY_NOT_METERED) } in testSetLegacySubtypeInNetworkAgent()
562 nc.addCapability(NET_CAPABILITY_NOT_METERED) in agent()
564 callback.expectCaps(agent.network!!) { it.hasCapability(NET_CAPABILITY_NOT_METERED) } in agent()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
725 if (!caps.hasCapability(NET_CAPABILITY_NOT_METERED) in checkConnectivity()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpSocketTrackerTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
151 .addCapability(NET_CAPABILITY_NOT_METERED);
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java274 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in registerTestNetworkAgent()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java35 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
361 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
367 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
376 .addCapability(NET_CAPABILITY_NOT_METERED)
928 nc.addCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth()
944 nc.removeCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth()
948 nc.addCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth()
982 .addCapability(NET_CAPABILITY_NOT_METERED); in testEvaluatingBandwidthState_nonMeteredNetworkWithWrongConfig()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentity.java405 NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in setNetworkStateSnapshot()

12