/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 31 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 …]
|
D | NetworkStateSnapshotTest.kt | 55 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in <lambda>()
|
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/ |
D | NetworkCallbackTest.java | 21 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()
|
D | NetworkPolicyTestUtils.java | 22 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/ |
D | ConnectivitySampleMetricsTest.kt | 9 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/ |
D | FullScore.java | 20 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()
|
D | NetworkRequestStateInfo.java | 89 return mNetworkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getNetCapabilityNotMetered()
|
/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/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/user/ |
D | UserDataCollectorTest.java | 175 .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/ |
D | NetworkIdentityTest.kt | 97 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/ |
D | NetworkRequestStateInfoTest.java | 57 .setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, true), in testSetNetworkRequestRemoved()
|
D | NetworkRequestStateStatsMetricsTest.java | 71 .setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, true)
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/ |
D | CSNetworkRequestStateStatsMetricsTests.kt | 40 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in <lambda>()
|
D | CSBlockedReasonsTest.kt | 35 import android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED 66 .addCapability(NET_CAPABILITY_NOT_METERED) in cellNc()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkCapabilities.java | 439 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()
|
D | NetworkRequest.java | 25 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 282 NET_CAPABILITY_NOT_METERED,
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/user/ |
D | UserDataCollector.java | 329 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/ |
D | ConnectivityServiceTest.java | 113 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/ |
D | NetworkAgentTest.kt | 42 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/ |
D | DownloadThread.java | 19 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/ |
D | TcpSocketTrackerTest.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 151 .addCapability(NET_CAPABILITY_NOT_METERED);
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | TestNetworkService.java | 274 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in registerTestNetworkAgent()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 35 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/ |
D | NetworkIdentity.java | 405 NetworkCapabilities.NET_CAPABILITY_NOT_METERED)); in setNetworkStateSnapshot()
|