Home
last modified time | relevance | path

Searched refs:mWifiHotspotRepository (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiHotspotSpeedViewModel.java54 protected final WifiHotspotRepository mWifiHotspotRepository; field in WifiHotspotSpeedViewModel
68 mWifiHotspotRepository = FeatureFactory.getFeatureFactory().getWifiFeatureProvider() in WifiHotspotSpeedViewModel()
70 mWifiHotspotRepository.get6gAvailable().observeForever(m6gAvailableObserver); in WifiHotspotSpeedViewModel()
71 mWifiHotspotRepository.get5gAvailable().observeForever(m5gAvailableObserver); in WifiHotspotSpeedViewModel()
72 mWifiHotspotRepository.getSpeedType().observeForever(mSpeedTypeObserver); in WifiHotspotSpeedViewModel()
73 mWifiHotspotRepository.setAutoRefresh(true); in WifiHotspotSpeedViewModel()
76 mSpeedInfo6g.mIsVisible = mWifiHotspotRepository.is6GHzBandSupported(); in WifiHotspotSpeedViewModel()
81 mWifiHotspotRepository.get6gAvailable().removeObserver(m6gAvailableObserver); in onCleared()
82 mWifiHotspotRepository.get5gAvailable().removeObserver(m5gAvailableObserver); in onCleared()
83 mWifiHotspotRepository.getSpeedType().removeObserver(mSpeedTypeObserver); in onCleared()
[all …]
DWifiTetherViewModel.java80 protected final WifiHotspotRepository mWifiHotspotRepository; field in WifiTetherViewModel
98 mWifiHotspotRepository = featureProvider.getWifiHotspotRepository(); in WifiTetherViewModel()
109 mWifiHotspotRepository.getSecurityType().removeObserver(mSecurityTypeObserver); in onCleared()
112 mWifiHotspotRepository.getSpeedType().removeObserver(mSpeedTypeObserver); in onCleared()
126 return mWifiHotspotRepository.isSpeedFeatureAvailable(); in isSpeedFeatureAvailable()
135 return mWifiHotspotRepository.getSoftApConfiguration(); in getSoftApConfiguration()
144 mWifiHotspotRepository.setSoftApConfiguration(config); in setSoftApConfiguration()
151 mWifiHotspotRepository.refresh(); in refresh()
160 mWifiHotspotRepository.getSecurityType().observeForever(mSecurityTypeObserver); in getSecuritySummary()
179 mWifiHotspotRepository.getSpeedType().observeForever(mSpeedTypeObserver); in getSpeedSummary()
[all …]
DWifiHotspotSecurityViewModel.java56 protected final WifiHotspotRepository mWifiHotspotRepository; field in WifiHotspotSecurityViewModel
68 mWifiHotspotRepository = FeatureFactory.getFeatureFactory().getWifiFeatureProvider() in WifiHotspotSecurityViewModel()
70 mWifiHotspotRepository.getSecurityType().observeForever(mSecurityTypeObserver); in WifiHotspotSecurityViewModel()
71 mWifiHotspotRepository.getSpeedType().observeForever(mSpeedTypeObserver); in WifiHotspotSecurityViewModel()
76 mWifiHotspotRepository.getSecurityType().removeObserver(mSecurityTypeObserver); in onCleared()
77 mWifiHotspotRepository.getSpeedType().removeObserver(mSpeedTypeObserver); in onCleared()
107 mWifiHotspotRepository.setSecurityType(entry.getKey()); in handleRadioButtonClicked()
136 return mWifiHotspotRepository.getRestarting(); in getRestarting()
DWifiTetherPasswordPreferenceController.java47 private final WifiHotspotRepository mWifiHotspotRepository; field in WifiTetherPasswordPreferenceController
56 mWifiHotspotRepository = featureFactory.getWifiFeatureProvider().getWifiHotspotRepository(); in WifiTetherPasswordPreferenceController()
57 mWifiHotspotRepository.queryLastPasswordIfNeeded(); in WifiTetherPasswordPreferenceController()
75 mPassword = mWifiHotspotRepository.generatePassword(); in updateDisplay()
111 mPassword = mWifiHotspotRepository.generatePassword(); in getPasswordValidated()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiHotspotSpeedViewModelTest.java61 WifiHotspotRepository mWifiHotspotRepository; field in WifiHotspotSpeedViewModelTest
79 .thenReturn(mWifiHotspotRepository); in setUp()
80 when(mWifiHotspotRepository.getSpeedType()).thenReturn(mSpeedType); in setUp()
81 when(mWifiHotspotRepository.is5GHzBandSupported()).thenReturn(true); in setUp()
82 when(mWifiHotspotRepository.get5gAvailable()).thenReturn(m5gAvailable); in setUp()
83 when(mWifiHotspotRepository.is6GHzBandSupported()).thenReturn(true); in setUp()
84 when(mWifiHotspotRepository.get6gAvailable()).thenReturn(m6gAvailable); in setUp()
85 when(mWifiHotspotRepository.getRestarting()).thenReturn(mRestarting); in setUp()
97 verify(mWifiHotspotRepository).setAutoRefresh(true); in constructor_observeDataAndSetAutoRefresh()
109 when(mWifiHotspotRepository.is6GHzBandSupported()).thenReturn(false); in constructor_notSupported6GHzBand_set6gVisible()
[all …]
DWifiHotspotSecurityViewModelTest.java63 WifiHotspotRepository mWifiHotspotRepository; field in WifiHotspotSecurityViewModelTest
77 .thenReturn(mWifiHotspotRepository); in setUp()
78 when(mWifiHotspotRepository.getSecurityType()).thenReturn(mSecurityType); in setUp()
79 when(mWifiHotspotRepository.getSpeedType()).thenReturn(mSpeedType); in setUp()
80 when(mWifiHotspotRepository.getRestarting()).thenReturn(mRestarting); in setUp()
159 verify(mWifiHotspotRepository).setSecurityType(SECURITY_TYPE_WPA3_SAE); in handleRadioButtonClicked_keyWpa3_setSecurityTypeCorrectly()
166 verify(mWifiHotspotRepository).setSecurityType(SECURITY_TYPE_WPA3_SAE_TRANSITION); in handleRadioButtonClicked_keyWpa2Wpa3_setSecurityTypeCorrectly()
173 verify(mWifiHotspotRepository).setSecurityType(SECURITY_TYPE_WPA2_PSK); in handleRadioButtonClicked_keyWpa2_setSecurityTypeCorrectly()
180 verify(mWifiHotspotRepository).setSecurityType(SECURITY_TYPE_OPEN); in handleRadioButtonClicked_keyNone_setSecurityTypeCorrectly()
DWifiTetherViewModelTest.java60 WifiHotspotRepository mWifiHotspotRepository; field in WifiTetherViewModelTest
82 .thenReturn(mWifiHotspotRepository); in setUp()
83 when(mWifiHotspotRepository.getSecurityType()).thenReturn(mSecurityType); in setUp()
84 when(mWifiHotspotRepository.getSpeedType()).thenReturn(mSpeedType); in setUp()
85 when(mWifiHotspotRepository.getRestarting()).thenReturn(mRestarting); in setUp()
116 verify(mWifiHotspotRepository).getSoftApConfiguration(); in getSoftApConfiguration_getConfigFromRepository()
125 verify(mWifiHotspotRepository).setSoftApConfiguration(config); in setSoftApConfiguration_setConfigByRepository()
132 verify(mWifiHotspotRepository).refresh(); in refresh_refreshByRepository()
161 verify(mWifiHotspotRepository).isSpeedFeatureAvailable(); in isSpeedFeatureAvailable_verifyRepositoryIsCalled()
/packages/apps/Settings/src/com/android/settings/wifi/factory/
DWifiFeatureProvider.java48 private WifiHotspotRepository mWifiHotspotRepository; field in WifiFeatureProvider
90 if (mWifiHotspotRepository == null) { in getWifiHotspotRepository()
91 mWifiHotspotRepository = new WifiHotspotRepository(mAppContext, getWifiManager(), in getWifiHotspotRepository()
93 verboseLog(TAG, "getWifiHotspotRepository():" + mWifiHotspotRepository); in getWifiHotspotRepository()
95 return mWifiHotspotRepository; in getWifiHotspotRepository()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherPasswordPreferenceControllerTest.java71 private WifiHotspotRepository mWifiHotspotRepository; field in WifiTetherPasswordPreferenceControllerTest
82 .thenReturn(mWifiHotspotRepository); in setUp()
104 verify(mWifiHotspotRepository).queryLastPasswordIfNeeded(); in constructor_shouldQueryLastPasswordIfNeeded()
DWifiTetherSettingsTest.java115 private WifiHotspotRepository mWifiHotspotRepository; field in WifiTetherSettingsTest
157 when(provider.getWifiHotspotRepository()).thenReturn(mWifiHotspotRepository); in setUp()