Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCandidates.java108 boolean isMetered(); in isMetered() method
198 boolean isMetered, in CandidateImpl() argument
209 this.mIsMetered = isMetered; in CandidateImpl()
270 public boolean isMetered() { in isMetered() method in WifiCandidates.CandidateImpl
361 + (isMetered() ? "metered, " : "") in toString()
490 boolean isMetered, in add() argument
498 isMetered, in add()
530 boolean isMetered, in add() argument
552 isMetered, in add()
DThroughputScorer.java106 int unmeteredAward = candidate.isMetered() in scoreCandidate()
DSavedNetworkNominator.java222 if (WifiConfiguration.isMetered(network, null) in isSimBasedNetworkAbleToAutoJoin()
DHostapdHal.java407 boolean isMetered, @NonNull Runnable onFailureListener) { in addAccessPoint() argument
455 nwParamsV1_3.isMetered = isMetered; in addAccessPoint()
DWifiNetworkSuggestionsManager.java1148 if (!WifiConfiguration.isMetered(wns.wifiConfiguration, null)) { in isValidCarrierMergedNetworkSuggestion()
1873 if (WifiConfiguration.isMetered(config, null) in isPasspointSuggestionSharedWithUser()
2452 boolean isOpenSuggestionMetered = WifiConfiguration.isMetered( in hasSecureSuggestionFromSameCarrierAvailable()
2467 if (WifiConfiguration.isMetered(ewns.wns.wifiConfiguration, null) in hasSecureSuggestionFromSameCarrierAvailable()
DNetworkSuggestionNominator.java303 if (WifiConfiguration.isMetered(config, null) in isCarrierNetworkAvailableToAutoConnect()
DWifiNetworkSelector.java679 boolean metered = WifiConfiguration.isMetered(config, info); in isEverMetered()
864 WifiConfiguration.isMetered(currentNetwork, cmmState.wifiInfo), in getCandidatesFromScan()
DWifiMetrics.java6008 boolean isMetered = detectedAsMetered;
6010 isMetered = true;
6012 isMetered = false;
6014 meteredDetail.isMetered = isMetered;
6031 if (meteredDetail.isMetered) {
6037 if (meteredDetail.isMetered) {
6048 public boolean isMetered;
DClientModeImpl.java1031 boolean isMetered = WifiConfiguration.isMetered(newConfig, mWifiInfo); in onNetworkUpdated()
1032 boolean wasMetered = WifiConfiguration.isMetered(oldConfig, mWifiInfo); in onNetworkUpdated()
1033 if (isMetered == wasMetered) { in onNetworkUpdated()
1043 if (isMetered) { in onNetworkUpdated()
3942 if (!WifiConfiguration.isMetered(currentWifiConfiguration, mWifiInfo)) {
DWifiNative.java1940 @NonNull String ifaceName, SoftApConfiguration config, boolean isMetered,
1957 if (!mHostapdHal.addAccessPoint(ifaceName, config, isMetered, listener::onFailure)) {
/packages/modules/Connectivity/framework/src/android/net/
DTestNetworkManager.java76 boolean isMetered, in setupTestNetwork() argument
80 mService.setupTestNetwork(iface, lp, isMetered, administratorUids, binder); in setupTestNetwork()
97 @NonNull LinkProperties lp, boolean isMetered, @NonNull IBinder binder) { in setupTestNetwork() argument
99 setupTestNetwork(lp.getInterfaceName(), lp, isMetered, new int[0], binder); in setupTestNetwork() local
DITestNetworkManager.aidl35 void setupTestNetwork(in String iface, in LinkProperties lp, in boolean isMetered, in setupTestNetwork() argument
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DConcreteCandidate.java64 mIsMetered = candidate.isMetered(); in ConcreteCandidate()
172 public ConcreteCandidate setMetered(boolean isMetered) { in setMetered() argument
173 mIsMetered = isMetered; in setMetered()
178 public boolean isMetered() { in isMetered() method in ConcreteCandidate
DHostapdHalTest.java1286 boolean isMetered = true; in testAddAccessPointSuccess_WithMeteredSAE()
1310 configurationBuilder.build(), isMetered, in testAddAccessPointSuccess_WithMeteredSAE()
1326 assertTrue(mNetworkParamsV13Captor.getValue().isMetered); in testAddAccessPointSuccess_WithMeteredSAE()
1334 boolean isMetered = false; in testAddAccessPointSuccess_WithNonMeteredSAE()
1358 configurationBuilder.build(), isMetered, in testAddAccessPointSuccess_WithNonMeteredSAE()
1374 assertFalse(mNetworkParamsV13Captor.getValue().isMetered); in testAddAccessPointSuccess_WithNonMeteredSAE()
1480 boolean isMetered = true; in testAddAccessPointSuccess_WithMeteredSAEOn11AXSupportedDevice()
1505 configurationBuilder.build(), isMetered, in testAddAccessPointSuccess_WithMeteredSAEOn11AXSupportedDevice()
1522 assertTrue(mNetworkParamsV13Captor.getValue().isMetered); in testAddAccessPointSuccess_WithMeteredSAEOn11AXSupportedDevice()
1533 boolean isMetered = true; in testAddAccessPointSuccess_WithMeteredSAEOn11AXSupportedDeviceBut11AXDisabled()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java236 boolean isMetered, in registerTestNetworkAgent() argument
254 if (!isMetered) { in registerTestNetworkAgent()
313 boolean isMetered, in setupTestNetwork() argument
340 isMetered, in setupTestNetwork()
DConnectivityService.java1697 final boolean metered = nc == null ? true : nc.isMetered(); in isNetworkWithCapabilitiesBlocked()
5433 final boolean curMetered = nai.networkCapabilities.isMetered(); in handleSetRequireVpnForUids()
7414 final boolean oldMetered = prevNc.isMetered(); in updateCapabilities()
7415 final boolean newMetered = newNc.isMetered(); in updateCapabilities()
8581 final boolean metered = nai.networkCapabilities.isMetered(); in notifyNetworkAvailable()
8650 final boolean metered = nai.networkCapabilities.isMetered(); in maybeNotifyNetworkBlockedForNewState()
/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/
DPeriodicProvisioner.java93 boolean isMetered = cm.isActiveNetworkMetered(); in run()
95 if (isMetered) { in run()
116 if (!isMetered) { in run()
/packages/modules/Connectivity/tests/unit/java/com/android/internal/net/
DVpnProfileTest.java75 assertFalse(p.isMetered); in testDefaults()
107 p.isMetered = true; in getSampleIkev2Profile()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiNetworkSuggestion.java687 public @NonNull Builder setIsMetered(boolean isMetered) { in setIsMetered() argument
688 if (isMetered) { in setIsMetered()
1393 public boolean isMetered() { in isMetered() method in WifiNetworkSuggestion
/packages/modules/Connectivity/tests/unit/java/android/net/
DIkev2VpnProfileTest.java115 assertTrue(profile.isMetered()); in testBuildValidProfileWithOptions()
278 assertTrue(profile.isMetered); in verifyVpnProfileCommon()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java1731 private static NetworkStateSnapshot buildWifiState(boolean isMetered, @NonNull String iface) {
1732 return buildWifiState(isMetered, iface, null);
1735 private static NetworkStateSnapshot buildWifiState(boolean isMetered, @NonNull String iface,
1740 capabilities.setCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED, !isMetered);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DAccessPointPreference.java190 } else if (mAccessPoint.isMetered()) { in bindFrictionImage()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIkev2VpnTest.java252 assertFalse(profile.isMetered()); in checkBasicIkev2VpnProfile()
DConnectivityManagerTest.java1145 private void setWifiMeteredStatusAndWait(String ssid, boolean isMetered) throws Exception { in setWifiMeteredStatusAndWait() argument
1146 setWifiMeteredStatus(ssid, Boolean.toString(isMetered) /* metered */); in setWifiMeteredStatusAndWait()
1148 isMetered /* requestedMeteredness */, in setWifiMeteredStatusAndWait()
2337 final boolean oldMeteredValue = wifiNetworkCapabilities.isMetered();
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkNominateHelperTest.java691 assertTrue(WifiConfiguration.isMetered(candidates.get(0).second, null)); in evaluateScansWithAntIsChargeablePublic()

12