/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 28 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/ |
D | NetworkCapabilities.java | 158 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()
|
D | NetworkIdentity.java | 195 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in buildNetworkIdentity()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DataConnectionTest.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 623 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testMeteredCapability() 638 assertTrue(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testNonMeteredCapability() 670 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testOverrideCongested() 676 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testOverrideCongested() 681 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_NOT_METERED)); in testOverrideCongested()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 57 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() 4815 mCellNetworkAgent.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in testStatsIfacesChanged() 4822 mCellNetworkAgent.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in testStatsIfacesChanged() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 26 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/core/java/android/app/job/ |
D | JobInfo.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 462 } else if (networkRequest.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in getNetworkType() 1133 builder.addCapability(NET_CAPABILITY_NOT_METERED); in setRequiredNetworkType()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkTemplateTest.kt | 68 setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false) in buildMobileNetworkState()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssNetworkConnectivityHandler.java | 127 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in hasCapabilitiesChanged() 141 if (capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getCapabilityFlags()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 23 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 271 !nc.hasCapability(NET_CAPABILITY_NOT_METERED), in getTemplateMatchingNetworkIdentity()
|
D | Vpn.java | 22 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/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 21 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 195 .addCapability(NET_CAPABILITY_NOT_METERED); in testRelaxed() 226 .addCapability(NET_CAPABILITY_NOT_METERED); in testUpdates()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | ConnectivityController.java | 21 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 382 .removeCapability(NET_CAPABILITY_NOT_METERED); in isRelaxedSatisfied()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 255 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
|
D | ConnectivityService.java | 43 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 1796 return !caps.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in isActiveNetworkMetered() 4064 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getMultipathPreference() 5591 if (networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) { in enforceMeteredApnPolicy() 5597 networkCapabilities.addCapability(NET_CAPABILITY_NOT_METERED); in enforceMeteredApnPolicy()
|
/frameworks/base/core/proto/android/net/ |
D | networkcapabilities.proto | 85 NET_CAPABILITY_NOT_METERED = 11; enumerator
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 1454 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered); 1472 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false); 1484 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, false);
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetTracker.java | 466 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in createDefaultNetworkCapabilities()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManagerTest.java | 1664 NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getSessionNetworkRequestMore() 1712 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in getDirectNetworkRequestMore()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManager.java | 150 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in start()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 50 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED; 1108 .hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); 1954 && !state.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED)) {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeImpl.java | 843 mNetworkCapabilitiesFilter.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in ClientModeImpl() 4685 result.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getCapabilities() 4687 result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in getCapabilities()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 1417 result.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, in getNetworkCapabilities()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 17124 field public static final int NET_CAPABILITY_NOT_METERED = 11; // 0xb
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 29041 field public static final int NET_CAPABILITY_NOT_METERED = 11; // 0xb
|