Home
last modified time | relevance | path

Searched refs:isMetered (Results 1 – 20 of 20) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnSettingTest.java333 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/
DVpnConfig.java107 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/
DVpnService.java843 public Builder setMetered(boolean isMetered) { in setMetered() argument
844 mConfig.isMetered = isMetered; in setMetered()
DNetworkCapabilities.java1706 public boolean isMetered() { in isMetered() method in NetworkCapabilities
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkSuggestion.java312 public @NonNull Builder setIsMetered(boolean isMetered) { in setIsMetered() argument
313 mIsMetered = isMetered; in setIsMetered()
DWifiConfiguration.java931 public static boolean isMetered(WifiConfiguration config, WifiInfo info) { in isMetered() method in WifiConfiguration
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnSettingUtils.java188 public static boolean isMetered(ApnSetting apn, Phone phone) { in isMetered() method in ApnSettingUtils
DDataConnection.java1110 if (!ApnSettingUtils.isMetered(mApnSetting, mPhone)) { in shouldRestrictNetwork()
1239 || !ApnSettingUtils.isMetered(mApnSetting, mPhone)) { in getNetworkCapabilities()
DDcTracker.java1618 if (apnSetting == null || !ApnSettingUtils.isMetered(apnSetting, mPhone)) return false; in shouldCleanUpConnection()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPointPreference.java207 } else if (mAccessPoint.isMetered()) { in bindFrictionImage()
DAccessPoint.java499 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/
DAccessPointTest.java313 assertThat(accessPoint.isMetered()).isTrue();
330 assertThat(accessPoint.isMetered()).isTrue();
346 assertThat(ap.isMetered()).isTrue();
362 assertThat(accessPoint.isMetered()).isFalse();
DWifiTrackerTest.java634 assertFalse(ap.isMetered()); in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering()
636 assertTrue(ap.isMetered()); in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java1334 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/
DVpn.java292 final boolean isAlwaysMetered = mIsPackageTargetingAtLeastQ && mConfig.isMetered; in updateCapabilities()
1830 config.isMetered = false; in startLegacyVpnPrivileged()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1861 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/
DClientModeImpl.java4651 if (!WifiConfiguration.isMetered(currentWifiConfiguration, mWifiInfo)) { in getCapabilities()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1040 mConfig.isMetered = isAlwaysMetered; in connect()
/frameworks/base/config/
Dboot-image-profile.txt10269 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…
Dhiddenapi-greylist-max-o.txt50549 Landroid/net/wifi/WifiConfiguration;->isMetered(Landroid/net/wifi/WifiConfiguration;Landroid/net/wi…