Home
last modified time | relevance | path

Searched refs:wifiEntry (Results 1 – 7 of 7) sorted by relevance

/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DStandardNetworkDetailsTrackerTest.java166 final WifiEntry wifiEntry = tracker.getWifiEntry(); in testScanResultsAvailableAction_updates_getLevel() local
168 assertThat(wifiEntry.getLevel()).isEqualTo(WIFI_LEVEL_UNREACHABLE); in testScanResultsAvailableAction_updates_getLevel()
177 assertThat(wifiEntry.getLevel()).isNotEqualTo(WIFI_LEVEL_UNREACHABLE); in testScanResultsAvailableAction_updates_getLevel()
187 assertThat(wifiEntry.getLevel()).isEqualTo(WIFI_LEVEL_UNREACHABLE); in testScanResultsAvailableAction_updates_getLevel()
205 final WifiEntry wifiEntry = tracker.getWifiEntry(); in testConfiguredNetworksChangedAction_updates_isSaved() local
207 assertThat(wifiEntry.isSaved()).isFalse(); in testConfiguredNetworksChangedAction_updates_isSaved()
217 assertThat(wifiEntry.isSaved()).isTrue(); in testConfiguredNetworksChangedAction_updates_isSaved()
225 assertThat(wifiEntry.isSaved()).isFalse(); in testConfiguredNetworksChangedAction_updates_isSaved()
246 final WifiEntry wifiEntry = tracker.getWifiEntry(); in testWifiStateChanged_disabled_clearsLevel() local
248 assertThat(wifiEntry.getLevel()).isNotEqualTo(WIFI_LEVEL_UNREACHABLE); in testWifiStateChanged_disabled_clearsLevel()
[all …]
DWifiPickerTrackerTest.java311 for (WifiEntry wifiEntry : wifiPickerTracker.getWifiEntries()) { in testGetWifiEntries_wifiNetworkEntries_createdForEachSsidAndSecurityPair()
312 seenTitles.add(wifiEntry.getTitle()); in testGetWifiEntries_wifiNetworkEntries_createdForEachSsidAndSecurityPair()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java521 @NonNull WifiEntry wifiEntry) { in getAutoConnectDescription() argument
522 if (context == null || wifiEntry == null || !wifiEntry.canSetAutoJoinEnabled()) { in getAutoConnectDescription()
526 return wifiEntry.isAutoJoinEnabled() in getAutoConnectDescription()
530 static String getMeteredDescription(@NonNull Context context, @Nullable WifiEntry wifiEntry) { in getMeteredDescription() argument
531 if (context == null || wifiEntry == null) { in getMeteredDescription()
535 if (!wifiEntry.canSetMeteredChoice() in getMeteredDescription()
536 && wifiEntry.getMeteredChoice() != WifiEntry.METERED_CHOICE_METERED) { in getMeteredDescription()
540 if (wifiEntry.getMeteredChoice() == WifiEntry.METERED_CHOICE_METERED) { in getMeteredDescription()
542 } else if (wifiEntry.getMeteredChoice() == WifiEntry.METERED_CHOICE_UNMETERED) { in getMeteredDescription()
545 return wifiEntry.isMetered() ? context.getString( in getMeteredDescription()
[all …]
DSavedNetworkTracker.java306 final PasspointWifiEntry wifiEntry = entry.getValue(); in updatePasspointWifiEntryConfigs() local
307 final String key = wifiEntry.getKey(); in updatePasspointWifiEntryConfigs()
310 wifiEntry.updatePasspointConfig(cachedConfig); in updatePasspointWifiEntryConfigs()
DWifiPickerTracker.java752 final PasspointWifiEntry wifiEntry = entry.getValue(); in updatePasspointConfigurations() local
753 final String key = wifiEntry.getKey(); in updatePasspointConfigurations()
754 wifiEntry.updatePasspointConfig(mPasspointConfigCache.get(key)); in updatePasspointConfigurations()
755 return !wifiEntry.isSubscription() && !wifiEntry.isSuggestion(); in updatePasspointConfigurations()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DLongPressWifiEntryPreference.java32 public LongPressWifiEntryPreference(Context context, WifiEntry wifiEntry, Fragment fragment) { in LongPressWifiEntryPreference() argument
33 super(context, wifiEntry); in LongPressWifiEntryPreference()
DWifiEntryPreference.java71 public WifiEntryPreference(@NonNull Context context, @NonNull WifiEntry wifiEntry) { in WifiEntryPreference() argument
72 this(context, wifiEntry, new IconInjector(context)); in WifiEntryPreference()
76 WifiEntryPreference(@NonNull Context context, @NonNull WifiEntry wifiEntry, in WifiEntryPreference() argument
83 mWifiEntry = wifiEntry; in WifiEntryPreference()