/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnSettingTest.java | 333 assertTrue(ApnSettingUtils.isMetered(createApnSetting(ApnSetting.TYPE_DEFAULT), mPhone)); in testIsMetered() 335 assertTrue(ApnSettingUtils.isMetered( in testIsMetered() 338 assertTrue(ApnSettingUtils.isMetered(createApnSetting(ApnSetting.TYPE_MMS), mPhone)); in testIsMetered() 340 assertTrue(ApnSettingUtils.isMetered( in testIsMetered() 343 assertTrue(ApnSettingUtils.isMetered( in testIsMetered() 346 assertTrue(ApnSettingUtils.isMetered(createApnSetting(ApnSetting.TYPE_ALL), mPhone)); in testIsMetered() 348 assertFalse(ApnSettingUtils.isMetered( in testIsMetered() 351 assertFalse(ApnSettingUtils.isMetered( in testIsMetered() 380 assertTrue(ApnSettingUtils.isMetered(createApnSetting(ApnSetting.TYPE_DEFAULT), mPhone)); in testIsRoamingMetered() 382 assertTrue(ApnSettingUtils.isMetered( in testIsRoamingMetered() [all …]
|
/frameworks/base/core/java/android/net/ |
D | TestNetworkManager.java | 72 boolean isMetered, in setupTestNetwork() argument 76 mService.setupTestNetwork(iface, lp, isMetered, administratorUids, binder); in setupTestNetwork() 93 @NonNull LinkProperties lp, boolean isMetered, @NonNull IBinder binder) { in setupTestNetwork() argument 95 setupTestNetwork(lp.getInterfaceName(), lp, isMetered, new int[0], binder); in setupTestNetwork() local
|
D | Ikev2VpnProfile.java | 121 boolean isMetered, in Ikev2VpnProfile() argument 145 mIsMetered = isMetered; in Ikev2VpnProfile() 328 public boolean isMetered() { in isMetered() method in Ikev2VpnProfile 408 profile.isMetered = mIsMetered; in toVpnProfile() 467 builder.setMetered(profile.isMetered); in fromVpnProfile() 838 public Builder setMetered(boolean isMetered) { in setMetered() argument 839 mIsMetered = isMetered; in setMetered()
|
D | ITestNetworkManager.aidl | 35 void setupTestNetwork(in String iface, in LinkProperties lp, in boolean isMetered, in setupTestNetwork() argument
|
D | VpnService.java | 843 public Builder setMetered(boolean isMetered) { in setMetered() argument 844 mConfig.isMetered = isMetered; in setMetered()
|
D | NetworkCapabilities.java | 1965 public boolean isMetered() { in isMetered() method in NetworkCapabilities
|
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnProfile.java | 137 public boolean isMetered = false; // 21 field in VpnProfile 178 isMetered = in.readBoolean(); in VpnProfile() 228 out.writeBoolean(isMetered); in writeToParcel() 299 profile.isMetered = Boolean.parseBoolean(values[21]); in decode() 350 builder.append(VALUE_DELIMITER).append(isMetered); in encode() 445 proxy, mAllowedAlgorithms, isBypassable, isMetered, maxMtu, areAuthParamsInline, in hashCode() 476 && isMetered == other.isMetered in equals()
|
D | VpnConfig.java | 108 public boolean isMetered = true; field in VpnConfig 174 out.writeInt(isMetered ? 1 : 0); in writeToParcel() 201 config.isMetered = in.readInt() != 0;
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 232 boolean isMetered, 254 if (!isMetered) { 306 boolean isMetered, 336 isMetered,
|
D | ConnectivityService.java | 2018 final boolean curMetered = nai.networkCapabilities.isMetered(); in handleRestrictBackgroundChanged() 6359 final boolean oldMetered = prevNc.isMetered(); in updateCapabilities() 6360 final boolean newMetered = newNc.isMetered(); in updateCapabilities() 7253 final boolean metered = nai.networkCapabilities.isMetered(); in notifyNetworkAvailable() 7305 final boolean metered = nai.networkCapabilities.isMetered(); in maybeNotifyNetworkBlockedForNewUidRules()
|
/frameworks/base/tests/net/java/com/android/internal/net/ |
D | VpnProfileTest.java | 72 assertFalse(p.isMetered); in testDefaults() 103 p.isMetered = true; in getSampleIkev2Profile()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiNetworkSuggestion.java | 312 public @NonNull Builder setIsMetered(boolean isMetered) { in setIsMetered() argument 313 mIsMetered = isMetered; in setIsMetered()
|
D | WifiConfiguration.java | 932 public static boolean isMetered(WifiConfiguration config, WifiInfo info) { in isMetered() method in WifiConfiguration
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | ApnSettingUtils.java | 188 public static boolean isMetered(ApnSetting apn, Phone phone) { in isMetered() method in ApnSettingUtils
|
D | DataConnection.java | 1282 if (!ApnSettingUtils.isMetered(mApnSetting, mPhone)) { in shouldRestrictNetwork() 1418 !ApnSettingUtils.isMetered(mApnSetting, mPhone)); in getNetworkCapabilities()
|
D | DcTracker.java | 1675 if (apnSetting == null || !ApnSettingUtils.isMetered(apnSetting, mPhone)) return false; in shouldCleanUpConnection()
|
/frameworks/base/tests/net/java/android/net/ |
D | Ikev2VpnProfileTest.java | 110 assertTrue(profile.isMetered()); in testBuildValidProfileWithOptions() 265 assertTrue(profile.isMetered); in verifyVpnProfileCommon()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPointPreference.java | 206 } else if (mAccessPoint.isMetered()) { in bindFrictionImage()
|
D | AccessPoint.java | 509 builder.append(",metered=").append(isMetered()); in toString() 956 public boolean isMetered() { in isMetered() method in AccessPoint 958 || WifiConfiguration.isMetered(mConfig, mInfo); in isMetered()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 334 final boolean isAlwaysMetered = mIsPackageTargetingAtLeastQ && mConfig.isMetered; in updateCapabilities() 2042 config.isMetered = false; 3041 mConfig.isMetered = true; 3044 mConfig.isMetered = profile.isMetered;
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 314 assertThat(accessPoint.isMetered()).isTrue(); 331 assertThat(accessPoint.isMetered()).isTrue(); 347 assertThat(ap.isMetered()).isTrue(); 363 assertThat(accessPoint.isMetered()).isFalse();
|
D | WifiTrackerTest.java | 634 assertFalse(ap.isMetered()); in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering() 636 assertTrue(ap.isMetered()); in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 1448 private static NetworkState buildWifiState(boolean isMetered) { 1454 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeImpl.java | 4684 if (!WifiConfiguration.isMetered(currentWifiConfiguration, mWifiInfo)) { in getCapabilities()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 1080 mConfig.isMetered = isAlwaysMetered; in connect()
|