Home
last modified time | relevance | path

Searched refs:mSpeedType (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/wifi/repository/
DWifiHotspotRepository.java98 protected MutableLiveData<Integer> mSpeedType; field in WifiHotspotRepository
278 if (mSpeedType == null) { in getSpeedType()
280 mSpeedType = new MutableLiveData<>(); in getSpeedType()
282 log("getSpeedType():" + mSpeedType.getValue()); in getSpeedType()
284 return mSpeedType; in getSpeedType()
288 if (mSpeedType == null) { in updateSpeedType()
293 mSpeedType.setValue(SPEED_UNKNOWN); in updateSpeedType()
316 mSpeedType.setValue(sSpeedMap.get(keyBand)); in updateSpeedType()
326 if (mSpeedType == null) { in setSpeedType()
329 if (speedType == mSpeedType.getValue()) { in setSpeedType()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/repository/
DWifiHotspotRepositoryTest.java99 private MutableLiveData<Integer> mSpeedType; field in WifiHotspotRepositoryTest
109 doReturn(SPEED_6GHZ).when(mSpeedType).getValue(); in setUp()
119 mRepository.mSpeedType = mSpeedType; in setUp()
214 mRepository.mSpeedType = null; in refresh_liveDataNotUsed_doNothing()
228 verify(mSpeedType).setValue(anyInt()); in refresh_liveDataIsUsed_getConfigAndUpdateLiveData()
352 mRepository.mSpeedType = null; in getSpeedType_shouldNotReturnNull()
367 verify(mSpeedType).setValue(SPEED_2GHZ); in updateSpeedType_singleBand2g_get2gSpeedType()
379 verify(mSpeedType).setValue(SPEED_5GHZ); in updateSpeedType_singleBand5gPreferred_get5gSpeedType()
392 verify(mSpeedType).setValue(SPEED_2GHZ); in updateSpeedType_singleBand5gPreferredBut5gUnavailable_get2gSpeedType()
404 verify(mSpeedType).setValue(SPEED_6GHZ); in updateSpeedType_singleBand6gPreferred_get6gSpeedType()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiHotspotSecurityViewModelTest.java67 MutableLiveData<Integer> mSpeedType; field in WifiHotspotSecurityViewModelTest
79 when(mWifiHotspotRepository.getSpeedType()).thenReturn(mSpeedType); in setUp()
88 verify(mSpeedType).observeForever(mViewModel.mSpeedTypeObserver); in constructor_observeDataAndSetAutoRefresh()
96 verify(mSpeedType).removeObserver(mViewModel.mSpeedTypeObserver); in onCleared_removeObserverData()
DWifiTetherViewModelTest.java64 MutableLiveData<Integer> mSpeedType; field in WifiTetherViewModelTest
84 when(mWifiHotspotRepository.getSpeedType()).thenReturn(mSpeedType); in setUp()
108 verify(mSpeedType).removeObserver(mViewModel.mSpeedTypeObserver); in onCleared_removeObservers()
154 verify(mSpeedType).observeForever(mViewModel.mSpeedTypeObserver); in getSpeedSummary_returnNotNull()
DWifiHotspotSpeedViewModelTest.java63 MutableLiveData<Integer> mSpeedType; field in WifiHotspotSpeedViewModelTest
80 when(mWifiHotspotRepository.getSpeedType()).thenReturn(mSpeedType); in setUp()
94 verify(mSpeedType).observeForever(mViewModel.mSpeedTypeObserver); in constructor_observeDataAndSetAutoRefresh()
121 verify(mSpeedType).removeObserver(mViewModel.mSpeedTypeObserver); in onCleared_removeObserverData()