Searched refs:meteredOverride (Results 1 – 8 of 8) sorted by relevance
116 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredLabel_returnsCorrectValues()120 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()124 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()128 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()132 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()139 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testIsMeteredOverridden_returnsCorrectValues()143 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()147 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()151 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()155 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()
80 void setWifiMeteredOverride(String networkId, int meteredOverride); in setWifiMeteredOverride() argument
514 final int meteredOverride = mTargetWifiConfig.meteredOverride; in getMeteredChoice() local515 if (meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED) { in getMeteredChoice()517 } else if (meteredOverride == WifiConfiguration.METERED_OVERRIDE_NOT_METERED) { in getMeteredChoice()539 mTargetWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in setMeteredChoice()541 mTargetWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in setMeteredChoice()543 mTargetWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in setMeteredChoice()
361 if (arg == null || config.meteredOverride == match) { in listWifiNetworks()364 pw.println(overrideToString(config.meteredOverride)); in listWifiNetworks()
2964 config.meteredOverride = metered3601 public void setWifiMeteredOverride(String networkId, int meteredOverride) {3609 config.meteredOverride = meteredOverride;
375 return if (config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED || in <lambda>()422 return config.meteredOverride != WifiConfiguration.METERED_OVERRIDE_NONE in <lambda>()
278 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredDescription_noOverrideNoHint_returnEmptyString()291 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredDescription_overrideMetered_returnMetered()307 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredDescription__meteredHintTrueAndOverrideNone_returnMetered()322 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredDescription__meteredHintTrueAndOverrideMetered_returnMetered()337 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredDescription__meteredHintTrueAndOverrideNotMetered_returnUnmetered()
969 assertThat(oldConfig.meteredOverride).isEqualTo(WifiConfiguration.METERED_OVERRIDE_NONE); in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue()985 assertThat(configCaptor.getValue().meteredOverride) in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue()1001 assertThat(oldConfig.meteredOverride).isEqualTo(WifiConfiguration.METERED_OVERRIDE_NONE); in testGetPrivacy_afterSetPrivacy_getCorrectValue()1002 oldConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetPrivacy_afterSetPrivacy_getCorrectValue()1016 assertThat(configCaptor.getValue().meteredOverride) in testGetPrivacy_afterSetPrivacy_getCorrectValue()