/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() 379 assertTrue(ApnSettingUtils.isMetered(createApnSetting(ApnSetting.TYPE_DEFAULT), mPhone)); in testIsRoamingMetered() 381 assertTrue(ApnSettingUtils.isMetered( in testIsRoamingMetered() [all …]
|
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnConfig.java | 107 public boolean isMetered = true; field in VpnConfig 169 out.writeInt(isMetered ? 1 : 0); in writeToParcel() 196 config.isMetered = in.readInt() != 0;
|
/frameworks/base/core/java/android/net/ |
D | VpnService.java | 843 public Builder setMetered(boolean isMetered) { in setMetered() argument 844 mConfig.isMetered = isMetered; in setMetered()
|
D | NetworkCapabilities.java | 1706 public boolean isMetered() { in isMetered() method in NetworkCapabilities
|
/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 | 931 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 | 1110 if (!ApnSettingUtils.isMetered(mApnSetting, mPhone)) { in shouldRestrictNetwork() 1239 || !ApnSettingUtils.isMetered(mApnSetting, mPhone)) { in getNetworkCapabilities()
|
D | DcTracker.java | 1618 if (apnSetting == null || !ApnSettingUtils.isMetered(apnSetting, mPhone)) return false; in shouldCleanUpConnection()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPointPreference.java | 207 } else if (mAccessPoint.isMetered()) { in bindFrictionImage()
|
D | AccessPoint.java | 499 builder.append(",metered=").append(isMetered()); in toString() 842 public boolean isMetered() { in isMetered() method in AccessPoint 844 || WifiConfiguration.isMetered(mConfig, mInfo); in isMetered()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 313 assertThat(accessPoint.isMetered()).isTrue(); 330 assertThat(accessPoint.isMetered()).isTrue(); 346 assertThat(ap.isMetered()).isTrue(); 362 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 | 1334 private static NetworkState buildWifiState(boolean isMetered) { in buildWifiState() argument 1340 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered); in buildWifiState()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 292 final boolean isAlwaysMetered = mIsPackageTargetingAtLeastQ && mConfig.isMetered; in updateCapabilities() 1830 config.isMetered = false; in startLegacyVpnPrivileged()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 1861 final boolean curMetered = nai.networkCapabilities.isMetered(); in handleRestrictBackgroundChanged() 5843 final boolean oldMetered = prevNc.isMetered(); in updateCapabilities() 5844 final boolean newMetered = newNc.isMetered(); in updateCapabilities() 6632 final boolean metered = nai.networkCapabilities.isMetered(); in notifyNetworkAvailable() 6678 final boolean metered = nai.networkCapabilities.isMetered(); in maybeNotifyNetworkBlockedForNewUidRules()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeImpl.java | 4651 if (!WifiConfiguration.isMetered(currentWifiConfiguration, mWifiInfo)) { in getCapabilities()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 1040 mConfig.isMetered = isAlwaysMetered; in connect()
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 10269 HSPLandroid/net/NetworkCapabilities;->isMetered()Z 10875 HSPLandroid/net/wifi/WifiConfiguration;->isMetered(Landroid/net/wifi/WifiConfiguration;Landroid/net… 23128 HSPLcom/android/internal/telephony/dataconnection/ApnSettingUtils;->isMetered(Landroid/telephony/da…
|
D | hiddenapi-greylist-max-o.txt | 50549 Landroid/net/wifi/WifiConfiguration;->isMetered(Landroid/net/wifi/WifiConfiguration;Landroid/net/wi…
|