Home
last modified time | relevance | path

Searched refs:meteredOverride (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java108 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredLabel_returnsCorrectValues()
112 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()
116 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredLabel_returnsCorrectValues()
120 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()
124 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredLabel_returnsCorrectValues()
131 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testIsMeteredOverridden_returnsCorrectValues()
135 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()
139 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testIsMeteredOverridden_returnsCorrectValues()
143 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()
147 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testIsMeteredOverridden_returnsCorrectValues()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DStandardWifiEntry.java502 final int meteredOverride = getWifiConfiguration().meteredOverride; in getMeteredChoice() local
503 if (meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED) { in getMeteredChoice()
505 } else if (meteredOverride == WifiConfiguration.METERED_OVERRIDE_NOT_METERED) { in getMeteredChoice()
524 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in setMeteredChoice()
526 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in setMeteredChoice()
528 mWifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in setMeteredChoice()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DUtilsTest.java224 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredDescription_noOverrideNoHint_returnEmptyString()
237 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredDescription_overrideMetered_returnMetered()
252 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NONE; in testGetMeteredDescription__meteredHintTrueAndOverrideNone_returnMetered()
266 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetMeteredDescription__meteredHintTrueAndOverrideMetered_returnMetered()
280 config.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in testGetMeteredDescription__meteredHintTrueAndOverrideNotMetered_returnUnmetered()
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkSuggestion.java558 wifiConfiguration.meteredOverride = mMeteredOverride; in buildWifiConfiguration()
587 wifiConfiguration.meteredOverride = mMeteredOverride; in buildWifiConfigurationForPasspoint()
590 mPasspointConfiguration.setMeteredOverride(wifiConfiguration.meteredOverride); in buildWifiConfigurationForPasspoint()
898 return wifiConfiguration.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED; in isMetered()
DWifiConfiguration.java1043 public int meteredOverride = METERED_OVERRIDE_NONE; field in WifiConfiguration
1061 && config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED) { in isMetered()
1065 && config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_NOT_METERED) { in isMetered()
2109 meteredOverride = METERED_OVERRIDE_NONE; in WifiConfiguration()
2235 if (this.meteredOverride != METERED_OVERRIDE_NONE) { in toString()
2236 sbuf.append(" meteredOverride ").append(meteredOverride).append("\n"); in toString()
2765 meteredOverride = source.meteredOverride; in WifiConfiguration()
2842 dest.writeInt(meteredOverride); in writeToParcel()
2916 config.meteredOverride = in.readInt();
DIWifiManager.aidl99 void setPasspointMeteredOverride(String fqdn, int meteredOverride); in setPasspointMeteredOverride() argument
/frameworks/base/core/java/android/net/
DINetworkPolicyManager.aidl68 void setWifiMeteredOverride(String networkId, int meteredOverride); in setWifiMeteredOverride() argument
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkSuggestionTest.java61 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
91 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
121 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
151 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithNotMeteredAndReqUserInteraction()
365 assertEquals(suggestion.wifiConfiguration.meteredOverride, in testWifiNetworkSuggestionBuilderForPasspointNetworkWithReqAppInteractionMetered()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java217 if (config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED in getMeteredLabel()
225 return config.meteredOverride != WifiConfiguration.METERED_OVERRIDE_NONE; in isMeteredOverridden()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java643 assertEquals(expected.meteredOverride, actual.meteredOverride); in assertConfigurationEqualForBackup()
662 assertEquals(expected.meteredOverride, actual.meteredOverride); in assertConfigurationEqualForConfigStore()
690 assertEquals(expected.meteredOverride, actual.meteredOverride); in assertConfigurationEqualForConfigManagerAddOrUpdate()
DClientModeImplTest.java5022 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_METERED; in verifyDisconnectOnMarkingNetworkMetered()
5034 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_METERED; in verifyUpdateCapabilitiesOnMarkingNetworkUnmetered()
5042 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_NOT_METERED; in verifyUpdateCapabilitiesOnMarkingNetworkUnmetered()
5059 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_NOT_METERED; in verifyDisconnectOnMarkingNetworkAutoMeteredWithMeteredHint()
5068 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_NONE; in verifyDisconnectOnMarkingNetworkAutoMeteredWithMeteredHint()
5085 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_METERED; in verifyUpdateCapabilitiesOnMarkingNetworkAutoMeteredWithoutMeteredHint()
5093 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_NONE; in verifyUpdateCapabilitiesOnMarkingNetworkAutoMeteredWithoutMeteredHint()
5113 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_METERED; in verifyDoNothingMarkingNetworkAutoMeteredWithMeteredHint()
5122 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_NONE; in verifyDoNothingMarkingNetworkAutoMeteredWithMeteredHint()
5140 mConnectedNetwork.meteredOverride = METERED_OVERRIDE_NOT_METERED; in verifyDoNothingMarkingNetworkAutoMeteredWithoutMeteredHint()
[all …]
DWifiNetworkSelectorTest.java1560 scanDetailsAndConfigs.getWifiConfigs()[1].meteredOverride = in meteredStickyness()
1569 scanDetailsAndConfigs.getWifiConfigs()[0].meteredOverride = in meteredStickyness()
1575 scanDetailsAndConfigs.getWifiConfigs()[0].meteredOverride = in meteredStickyness()
DWifiNetworkSuggestionsManagerTest.java547 networkSuggestion.wifiConfiguration.meteredOverride); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenNotInWcm()
554 networkSuggestion.wifiConfiguration.meteredOverride = in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenNotInWcm()
563 .get(TEST_PACKAGE_1).get(0).wifiConfiguration.meteredOverride); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenNotInWcm()
586 networkSuggestion.wifiConfiguration.meteredOverride); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenInWcm()
599 networkSuggestion.wifiConfiguration.meteredOverride = in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenInWcm()
610 .get(TEST_PACKAGE_1).get(0).wifiConfiguration.meteredOverride); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenInWcm()
619 configCaptor.getValue().meteredOverride); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenInWcm()
3925 network2.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testShouldNotBeIgnoredBySecureSuggestionFromSameCarrierWithDifferentMeterness()
DNetworkListStoreDataTest.java375 openNetwork.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in getTestNetworksConfig()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java251 public boolean setMeteredOverride(@MeteredOverride int meteredOverride) { in setMeteredOverride() argument
252 boolean changed = mConfig.getMeteredOverride() != meteredOverride; in setMeteredOverride()
253 mConfig.setMeteredOverride(meteredOverride); in setMeteredOverride()
473 wifiConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in getWifiConfig()
529 wifiConfig.meteredOverride = mConfig.getMeteredOverride(); in getWifiConfig()
DPasspointManager.java662 public boolean setMeteredOverride(@NonNull String fqdn, @MeteredOverride int meteredOverride) { in setMeteredOverride() argument
669 if (provider.setMeteredOverride(meteredOverride)) { in setMeteredOverride()
672 meteredOverride), in setMeteredOverride()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java352 if (arg == null || config.meteredOverride == match) { in listWifiNetworks()
355 pw.println(overrideToString(config.meteredOverride)); in listWifiNetworks()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DBaseWifiService.java201 public void setMeteredOverridePasspoint(String fqdn, int meteredOverride) { in setMeteredOverridePasspoint() argument
206 public void setPasspointMeteredOverride(String fqdn, int meteredOverride) { in setPasspointMeteredOverride() argument
DWifiConfigManager.java1058 internalConfig.meteredOverride = externalConfig.meteredOverride; in mergeWithInternalWifiConfiguration()
1178 if (before.meteredOverride != after.meteredOverride) { in logUserActionEvents()
1181 after.meteredOverride), in logUserActionEvents()
DWifiNetworkSelector.java697 if (config.meteredOverride != WifiConfiguration.METERED_OVERRIDE_NONE) { in isEverMetered()
702 metered = config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED; in isEverMetered()
DWifiBackupDataV1Parser.java357 configuration.meteredOverride = (int) value; in parseWifiConfigurationFromXmlInternal()
DWifiShellCommand.java712 configuration.meteredOverride = METERED_OVERRIDE_METERED; in buildWifiConfiguration()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/
DPasspointConfiguration.java489 public void setMeteredOverride(@MeteredOverride int meteredOverride) { in setMeteredOverride() argument
490 mMeteredOverride = meteredOverride; in setMeteredOverride()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java471 XmlUtil.writeNextValue(out, XML_TAG_METERED_OVERRIDE, configuration.meteredOverride); in writeToXmlForBackup()
503 XmlUtil.writeNextValue(out, XML_TAG_METERED_OVERRIDE, configuration.meteredOverride); in writeToXmlForConfigStore()
670 configuration.meteredOverride = (int) value; in parseFromXml()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java363 wifiConfig.meteredOverride); in verifyWifiConfigWithTestData()
391 assertEquals(WifiConfiguration.METERED_OVERRIDE_NONE, wifiConfig.meteredOverride); in verifyWifiConfigWithTestData()

12