Home
last modified time | relevance | path

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

12

/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()
380 assertTrue(ApnSettingUtils.isMetered(createApnSetting(ApnSetting.TYPE_DEFAULT), mPhone)); in testIsRoamingMetered()
382 assertTrue(ApnSettingUtils.isMetered( in testIsRoamingMetered()
[all …]
/frameworks/base/core/java/android/net/
DTestNetworkManager.java72 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
DIkev2VpnProfile.java121 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()
DITestNetworkManager.aidl35 void setupTestNetwork(in String iface, in LinkProperties lp, in boolean isMetered, in setupTestNetwork() argument
DVpnService.java843 public Builder setMetered(boolean isMetered) { in setMetered() argument
844 mConfig.isMetered = isMetered; in setMetered()
DNetworkCapabilities.java1965 public boolean isMetered() { in isMetered() method in NetworkCapabilities
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java137 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()
DVpnConfig.java108 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/
DTestNetworkService.java232 boolean isMetered,
254 if (!isMetered) {
306 boolean isMetered,
336 isMetered,
DConnectivityService.java2018 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/
DVpnProfileTest.java72 assertFalse(p.isMetered); in testDefaults()
103 p.isMetered = true; in getSampleIkev2Profile()
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkSuggestion.java312 public @NonNull Builder setIsMetered(boolean isMetered) { in setIsMetered() argument
313 mIsMetered = isMetered; in setIsMetered()
DWifiConfiguration.java932 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.java1282 if (!ApnSettingUtils.isMetered(mApnSetting, mPhone)) { in shouldRestrictNetwork()
1418 !ApnSettingUtils.isMetered(mApnSetting, mPhone)); in getNetworkCapabilities()
DDcTracker.java1675 if (apnSetting == null || !ApnSettingUtils.isMetered(apnSetting, mPhone)) return false; in shouldCleanUpConnection()
/frameworks/base/tests/net/java/android/net/
DIkev2VpnProfileTest.java110 assertTrue(profile.isMetered()); in testBuildValidProfileWithOptions()
265 assertTrue(profile.isMetered); in verifyVpnProfileCommon()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPointPreference.java206 } else if (mAccessPoint.isMetered()) { in bindFrictionImage()
DAccessPoint.java509 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/
DVpn.java334 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/
DAccessPointTest.java314 assertThat(accessPoint.isMetered()).isTrue();
331 assertThat(accessPoint.isMetered()).isTrue();
347 assertThat(ap.isMetered()).isTrue();
363 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.java1448 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/
DClientModeImpl.java4684 if (!WifiConfiguration.isMetered(currentWifiConfiguration, mWifiInfo)) { in getCapabilities()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1080 mConfig.isMetered = isAlwaysMetered; in connect()

12