Searched refs:getWifiApState (Results 1 – 12 of 12) sorted by relevance
68 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in getQCItem_titleAndIconSet()77 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in getQCItem_hotspotDisabled_tileUnchecked()86 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_hotspotEnabled_tileChecked()95 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLING); in getQCItem_hotspotBusy_tileDisabled()102 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in getQCItem_hotspotUnsupported_tileUnavailable()126 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in onNotifyChange_togglesHotspot()137 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_createsTile_zoneWrite()145 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_createsTile_zoneRead()154 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_createsTile_zoneHidden()
81 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in getQCItem_setsTitleAndIcon()90 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in getQCItem_hotspotDisabled_returnsRow()100 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_hotspotEnabled_noDevices_returnsRow()110 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in getQCItem_hotspotEnabled_hasDevices_returnsRow()139 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_DISABLED); in onNotifyChange_togglesHotspot()
88 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_ENABLED); in startTether_wifiApIsActivated_doNothing()97 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_DISABLED); in startTether_wifiApNotActivated_startTethering()106 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_ENABLED); in stopTether_wifiApIsActivated_stopTethering()115 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_DISABLED); in stopTether_wifiApNotActivated_doNothing()124 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_DISABLED); in startTether_fail_resetSwitchBar()168 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_ENABLED); in onSwitchChanged_isNotChecked_stopTethering()
93 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_ENABLED); in setUp()
69 handleWifiApStateChanged(mWifiManager.getWifiApState());84 mSwitchBar.setChecked(mWifiManager.getWifiApState() == WIFI_AP_STATE_ENABLED); in WifiTetherSwitchBarController()94 handleWifiApStateChanged(mWifiManager.getWifiApState()); in onStart()131 final int wifiApState = mWifiManager.getWifiApState(); in isWifiApActivated()
238 int wifiApState = mWifiManager.getWifiApState(); in updateSwitch()
35 int state = wifiManager.getWifiApState(); in isHotspotEnabled()44 int state = wifiManager.getWifiApState(); in isHotspotBusy()
67 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in onSwitchToggled_avoidBadWifiConfigIsFalse_shouldReturnTrue()
563 int apState = mWifiManager.getWifiApState(); in updateApState()
680 if (mWifiManager.getWifiApState() == WIFI_AP_STATE_ENABLED) { in startTetheredApLocked()
6136 public int getWifiApState() { in getWifiApState() method in WifiManager6154 return getWifiApState() == WIFI_AP_STATE_ENABLED; in isWifiApEnabled()
747 …hod @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public int getWifiApState();