Home
last modified time | relevance | path

Searched refs:mWifiStateWorker (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DWifiStateWorkerTest.java68 private WifiStateWorker mWifiStateWorker; field in WifiStateWorkerTest
78 mWifiStateWorker = new WifiStateWorker(mBroadcastDispatcher, mBackgroundExecutor, in setup()
90 mWifiStateWorker = new WifiStateWorker(mBroadcastDispatcher, mBackgroundExecutor, in setWifiEnabled_wifiManagerIsNull_shouldNotSetWifiEnabled()
93 mWifiStateWorker.setWifiEnabled(true); in setWifiEnabled_wifiManagerIsNull_shouldNotSetWifiEnabled()
101 mWifiStateWorker.setWifiEnabled(true); in setWifiEnabled_enabledIsTrue_shouldSetWifiEnabled()
109 mWifiStateWorker.setWifiEnabled(false); in setWifiEnabled_enabledIsFalse_shouldSetWifiDisabled()
118 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateDisabling_getWifiStateDisabling()
120 assertThat(mWifiStateWorker.getWifiState()).isEqualTo(WIFI_STATE_DISABLING); in getWifiState_receiveWifiStateDisabling_getWifiStateDisabling()
126 mWifiStateWorker.onReceive(mContext, mIntent); in getWifiState_receiveWifiStateDisabled_getWifiStateDisabled()
128 assertThat(mWifiStateWorker.getWifiState()).isEqualTo(WIFI_STATE_DISABLED); in getWifiState_receiveWifiStateDisabled_getWifiStateDisabled()
[all …]
DInternetDialogDelegateControllerTest.java181 private WifiStateWorker mWifiStateWorker; field in InternetDialogDelegateControllerTest
228 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in setUp()
236 mLocationController, mDialogTransitionAnimator, mWifiStateWorker, mFlags); in setUp()
369 when(mWifiStateWorker.isWifiEnabled()).thenReturn(false); in getSubtitleText_withApmOnAndWifiOff_returnWifiIsOff()
384 when(mWifiStateWorker.isWifiEnabled()).thenReturn(false); in getSubtitleText_withWifiOff_returnWifiIsOff()
399 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withNoWifiEntry_returnSearchWifi()
416 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withWifiEntry_returnTapToConnect()
431 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_deviceLockedWithWifiOn_returnUnlockToViewNetworks()
443 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withNoService_returnNoNetworksAvailable()
465 when(mWifiStateWorker.isWifiEnabled()).thenReturn(true); in getSubtitleText_withNoService_returnNoNetworksAvailable_flagOff()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiStateWorkerTest.java54 WifiStateWorker mWifiStateWorker; field in WifiStateWorkerTest
61 mWifiStateWorker = WifiStateWorker.getInstance(mContext); in setUp()
70 assertThat(mWifiStateWorker).isEqualTo(instance); in getInstance_diffContext_getSameInstance()
78 assertThat(mWifiStateWorker.getWifiState()).isEqualTo(WIFI_STATE_DISABLING); in getWifiState_wifiStateDisabling_returnWifiStateDisabling()
86 assertThat(mWifiStateWorker.getWifiState()).isEqualTo(WIFI_STATE_DISABLED); in getWifiState_wifiStateDisabled_returnWifiStateDisabled()
94 assertThat(mWifiStateWorker.getWifiState()).isEqualTo(WIFI_STATE_ENABLING); in getWifiState_wifiStateEnabling_returnWifiStateEnabling()
102 assertThat(mWifiStateWorker.getWifiState()).isEqualTo(WIFI_STATE_ENABLED); in getWifiState_wifiStateEnabled_returnWifiStateEnabled()
110 assertThat(mWifiStateWorker.isWifiEnabled()).isFalse(); in isWifiEnabled_wifiStateDisabling_returnFalse()
118 assertThat(mWifiStateWorker.isWifiEnabled()).isFalse(); in isWifiEnabled_wifiStateDisabled_returnFalse()
126 assertThat(mWifiStateWorker.isWifiEnabled()).isFalse(); in isWifiEnabled_wifiStateEnabling_returnFalse()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogController.java194 private WifiStateWorker mWifiStateWorker; field in InternetDialogController
288 mWifiStateWorker = wifiStateWorker; in InternetDialogController()
805 mWifiStateWorker.setWifiEnabled(enabled);
816 return mWifiStateWorker.isWifiEnabled();