Searched refs:mWifiStateWorker (Results 1 – 4 of 4) sorted by relevance
68 private WifiStateWorker mWifiStateWorker; field in WifiStateWorkerTest78 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 …]
181 private WifiStateWorker mWifiStateWorker; field in InternetDialogDelegateControllerTest228 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 …]
54 WifiStateWorker mWifiStateWorker; field in WifiStateWorkerTest61 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 …]
194 private WifiStateWorker mWifiStateWorker; field in InternetDialogController288 mWifiStateWorker = wifiStateWorker; in InternetDialogController()805 mWifiStateWorker.setWifiEnabled(enabled);816 return mWifiStateWorker.isWifiEnabled();