Home
last modified time | relevance | path

Searched refs:connectedWifiEntry (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiScanWorker.java132 final WifiEntry connectedWifiEntry = mWifiPickerTracker.getConnectedWifiEntry(); in getWifiEntry() local
133 if (connectedWifiEntry != null && TextUtils.equals(key, connectedWifiEntry.getKey())) { in getWifiEntry()
134 keyWifiEntry = connectedWifiEntry; in getWifiEntry()
155 final WifiEntry connectedWifiEntry = mWifiPickerTracker.getConnectedWifiEntry(); in updateResults() local
156 if (connectedWifiEntry != null) { in updateResults()
157 connectedWifiEntry.setListener(this); in updateResults()
158 resultList.add(new WifiSliceItem(getContext(), connectedWifiEntry)); in updateResults()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiEntryListPreferenceController.java103 WifiEntry connectedWifiEntry = getCarWifiManager().getConnectedWifiEntry(); in updateState() local
105 if (wifiEntry.equals(connectedWifiEntry)) { in updateState()
142 WifiEntry connectedWifiEntry = getCarWifiManager().getConnectedWifiEntry(); in fetchWifiEntries() local
144 if (connectedWifiEntry != null) { in fetchWifiEntries()
145 wifiEntries.add(0, connectedWifiEntry); in fetchWifiEntries()
DWifiSettingsFragment.java102 WifiEntry connectedWifiEntry = mCarWifiManager.getConnectedWifiEntry(); in onWifiEntriesChanged() local
103 if (connectedWifiEntry != null) { in onWifiEntriesChanged()
104 String connectedWifiEntryKey = connectedWifiEntry.getKey(); in onWifiEntriesChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiScanWorkerTest.java99 final WifiEntry connectedWifiEntry = mock(WifiEntry.class); in getWifiEntry_connectedWifiKey_shouldGetConnectedWifi() local
100 when(connectedWifiEntry.getKey()).thenReturn(key); in getWifiEntry_connectedWifiKey_shouldGetConnectedWifi()
101 when(mWifiPickerTracker.getConnectedWifiEntry()).thenReturn(connectedWifiEntry); in getWifiEntry_connectedWifiKey_shouldGetConnectedWifi()
103 assertThat(mWifiScanWorker.getWifiEntry(key)).isEqualTo(connectedWifiEntry); in getWifiEntry_connectedWifiKey_shouldGetConnectedWifi()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConnectionPreferenceController.java182 final WifiEntry connectedWifiEntry = mWifiPickerTracker.getConnectedWifiEntry(); in update() local
183 if (connectedWifiEntry == null) { in update()
186 if (mPreference == null || !mPreference.getWifiEntry().equals(connectedWifiEntry)) { in update()
187 updatePreference(connectedWifiEntry); in update()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DNetworkProviderWorkerTest.java123 final WifiEntry connectedWifiEntry = mock(WifiEntry.class); in getWifiEntry_connectedWifiKey_shouldGetConnectedWifi() local
124 when(connectedWifiEntry.getKey()).thenReturn(key); in getWifiEntry_connectedWifiKey_shouldGetConnectedWifi()
125 when(mMockWifiPickerTracker.getConnectedWifiEntry()).thenReturn(connectedWifiEntry); in getWifiEntry_connectedWifiKey_shouldGetConnectedWifi()
127 assertThat(mMockNetworkProviderWorker.getWifiEntry(key)).isEqualTo(connectedWifiEntry); in getWifiEntry_connectedWifiKey_shouldGetConnectedWifi()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeScannerFragment.java235 final WifiEntry connectedWifiEntry = mWifiPickerTracker.getConnectedWifiEntry(); in isReachableWifiNetwork() local
236 if (connectedWifiEntry != null) { in isReachableWifiNetwork()
238 wifiEntries.add(connectedWifiEntry); in isReachableWifiNetwork()
/packages/apps/Settings/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragment.java760 final WifiEntry connectedWifiEntry = mWifiPickerTracker.getConnectedWifiEntry();
761 if (connectedWifiEntry != null) {
762 reachableWifiEntries.add(connectedWifiEntry);