Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnSettingTest.java321 new String[]{PhoneConstants.APN_TYPE_DEFAULT}).isMetered(mPhone)); in testIsMetered()
325 isMetered(mPhone)); in testIsMetered()
328 new String[]{PhoneConstants.APN_TYPE_MMS}).isMetered(mPhone)); in testIsMetered()
332 isMetered(mPhone)); in testIsMetered()
336 isMetered(mPhone)); in testIsMetered()
339 new String[]{PhoneConstants.APN_TYPE_ALL}).isMetered(mPhone)); in testIsMetered()
343 isMetered(mPhone)); in testIsMetered()
347 isMetered(mPhone)); in testIsMetered()
375 new String[]{PhoneConstants.APN_TYPE_DEFAULT}).isMetered(mPhone)); in testIsRoamingMetered()
379 isMetered(mPhone)); in testIsRoamingMetered()
[all …]
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/
DNetworkState.java30 public NetworkState(boolean isConnected, boolean isValidated, boolean isMetered, in NetworkState() argument
34 mIsMetered = isMetered; in NetworkState()
61 public boolean isMetered() { in isMetered() method in NetworkState
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/trackers/
DNetworkStateTracker.java111 boolean isMetered = ConnectivityManagerCompat.isActiveNetworkMetered(mConnectivityManager); in getActiveNetworkState()
113 return new NetworkState(isConnected, isValidated, isMetered, isNotRoaming); in getActiveNetworkState()
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/constraints/controllers/
DNetworkUnmeteredController.java44 return !state.isConnected() || state.isMetered(); in isConstrained()
DNetworkMeteredController.java57 return !state.isConnected() || !state.isMetered(); in isConstrained()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java286 assertThat(accessPoint.isMetered()).isTrue();
303 assertThat(accessPoint.isMetered()).isTrue();
319 assertThat(ap.isMetered()).isTrue();
335 assertThat(accessPoint.isMetered()).isFalse();
DWifiTrackerTest.java544 assertFalse(ap.isMetered()); in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering()
546 assertTrue(ap.isMetered()); in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPointPreference.java205 } else if (mAccessPoint.isMetered()) { in bindFrictionImage()
DAccessPoint.java445 builder.append(",metered=").append(isMetered()); in toString()
702 public boolean isMetered() { in isMetered() method in AccessPoint
704 || WifiConfiguration.isMetered(mConfig, mInfo); in isMetered()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java1231 private static NetworkState buildWifiState(boolean isMetered) { in buildWifiState() argument
1237 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered); in buildWifiState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnSetting.java647 public boolean isMetered(Phone phone) { in isMetered() method in ApnSetting
DDataConnection.java926 if (!mApnSetting.isMetered(mPhone)) { in setNetworkRestriction()
1003 || !mApnSetting.isMetered(mPhone)) { in getNetworkCapabilities()
DDcTracker.java830 } else if (apnContext.getApnSetting().isMetered(mPhone) in reevaluateDataConnections()
1567 if (apnSetting != null && apnSetting.isMetered(mPhone)) { in cleanUpAllConnections()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java696 public static boolean isMetered(WifiConfiguration config, WifiInfo info) { in isMetered() method in WifiConfiguration
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateMachine.java4487 if (mWifiInfo != null && !WifiConfiguration.isMetered(config, mWifiInfo)) { in updateCapabilities()
/frameworks/base/config/
Dboot-image-profile.txt3998 HPLandroid/net/wifi/WifiConfiguration;->isMetered(Landroid/net/wifi/WifiConfiguration;Landroid/net/…
41028 HSPLcom/android/internal/telephony/dataconnection/ApnSetting;->isMetered(Lcom/android/internal/tele…