Home
last modified time | relevance | path

Searched refs:getWifiApState (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DHotspotTileTest.java68 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()
DHotspotRowTest.java81 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarControllerTest.java88 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()
DWifiTetherPreferenceControllerTest.java93 when(mWifiManager.getWifiApState()).thenReturn(WIFI_AP_STATE_ENABLED); in setUp()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarController.java69 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()
DWifiTetherPreferenceController.java238 int wifiApState = mWifiManager.getWifiApState(); in updateSwitch()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DHotspotQCUtils.java35 int state = wifiManager.getWifiApState(); in isHotspotEnabled()
44 int state = wifiManager.getWifiApState(); in isHotspotBusy()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiEnablerTest.java67 when(mWifiManager.getWifiApState()).thenReturn(WifiManager.WIFI_AP_STATE_ENABLED); in onSwitchToggled_avoidBadWifiConfigIsFalse_shouldReturnTrue()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java563 int apState = mWifiManager.getWifiApState(); in updateApState()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java680 if (mWifiManager.getWifiApState() == WIFI_AP_STATE_ENABLED) { in startTetheredApLocked()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiManager.java6136 public int getWifiApState() { in getWifiApState() method in WifiManager
6154 return getWifiApState() == WIFI_AP_STATE_ENABLED; in isWifiApEnabled()
/packages/modules/Wifi/framework/api/
Dsystem-current.txt747 …hod @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public int getWifiApState();