/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | WifiUtilsTest.java | 108 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/ |
D | StandardWifiEntry.java | 502 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/ |
D | UtilsTest.java | 224 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/ |
D | WifiNetworkSuggestion.java | 558 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()
|
D | WifiConfiguration.java | 1043 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();
|
D | IWifiManager.aidl | 99 void setPasspointMeteredOverride(String fqdn, int meteredOverride); in setPasspointMeteredOverride() argument
|
/frameworks/base/core/java/android/net/ |
D | INetworkPolicyManager.aidl | 68 void setWifiMeteredOverride(String networkId, int meteredOverride); in setWifiMeteredOverride() argument
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkSuggestionTest.java | 61 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/ |
D | WifiUtils.java | 217 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/ |
D | WifiConfigurationTestUtil.java | 643 assertEquals(expected.meteredOverride, actual.meteredOverride); in assertConfigurationEqualForBackup() 662 assertEquals(expected.meteredOverride, actual.meteredOverride); in assertConfigurationEqualForConfigStore() 690 assertEquals(expected.meteredOverride, actual.meteredOverride); in assertConfigurationEqualForConfigManagerAddOrUpdate()
|
D | ClientModeImplTest.java | 5022 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 …]
|
D | WifiNetworkSelectorTest.java | 1560 scanDetailsAndConfigs.getWifiConfigs()[1].meteredOverride = in meteredStickyness() 1569 scanDetailsAndConfigs.getWifiConfigs()[0].meteredOverride = in meteredStickyness() 1575 scanDetailsAndConfigs.getWifiConfigs()[0].meteredOverride = in meteredStickyness()
|
D | WifiNetworkSuggestionsManagerTest.java | 547 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()
|
D | NetworkListStoreDataTest.java | 375 openNetwork.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in getTestNetworksConfig()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvider.java | 251 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()
|
D | PasspointManager.java | 662 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/ |
D | NetworkPolicyManagerShellCommand.java | 352 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/ |
D | BaseWifiService.java | 201 public void setMeteredOverridePasspoint(String fqdn, int meteredOverride) { in setMeteredOverridePasspoint() argument 206 public void setPasspointMeteredOverride(String fqdn, int meteredOverride) { in setPasspointMeteredOverride() argument
|
D | WifiConfigManager.java | 1058 internalConfig.meteredOverride = externalConfig.meteredOverride; in mergeWithInternalWifiConfiguration() 1178 if (before.meteredOverride != after.meteredOverride) { in logUserActionEvents() 1181 after.meteredOverride), in logUserActionEvents()
|
D | WifiNetworkSelector.java | 697 if (config.meteredOverride != WifiConfiguration.METERED_OVERRIDE_NONE) { in isEverMetered() 702 metered = config.meteredOverride == WifiConfiguration.METERED_OVERRIDE_METERED; in isEverMetered()
|
D | WifiBackupDataV1Parser.java | 357 configuration.meteredOverride = (int) value; in parseWifiConfigurationFromXmlInternal()
|
D | WifiShellCommand.java | 712 configuration.meteredOverride = METERED_OVERRIDE_METERED; in buildWifiConfiguration()
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/ |
D | PasspointConfiguration.java | 489 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/ |
D | XmlUtil.java | 471 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/ |
D | PasspointProviderTest.java | 363 wifiConfig.meteredOverride); in verifyWifiConfigWithTestData() 391 assertEquals(WifiConfiguration.METERED_OVERRIDE_NONE, wifiConfig.meteredOverride); in verifyWifiConfigWithTestData()
|