Searched refs:mSpeedType (Results 1 – 5 of 5) sorted by relevance
98 protected MutableLiveData<Integer> mSpeedType; field in WifiHotspotRepository278 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 …]
99 private MutableLiveData<Integer> mSpeedType; field in WifiHotspotRepositoryTest109 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 …]
67 MutableLiveData<Integer> mSpeedType; field in WifiHotspotSecurityViewModelTest79 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()
64 MutableLiveData<Integer> mSpeedType; field in WifiTetherViewModelTest84 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()
63 MutableLiveData<Integer> mSpeedType; field in WifiHotspotSpeedViewModelTest80 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()