Searched refs:wifiManager (Results 1 – 4 of 4) sorted by relevance
31 private WifiManager wifiManager; field in ShadowWifiManagerTest35 wifiManager = in setUp()42 assertThat(wifiManager.getConnectionInfo().getClass()).isEqualTo(WifiInfo.class); in shouldReturnWifiInfo()48 shadowOf(wifiManager).setConnectionInfo(wifiInfo); in setWifiInfo_shouldUpdateWifiInfo()49 assertThat(wifiManager.getConnectionInfo()).isSameAs(wifiInfo); in setWifiInfo_shouldUpdateWifiInfo()55 shadowOf(wifiManager).setAccessWifiStatePermission(false); in setWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()57 wifiManager.setWifiEnabled(true); in setWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()67 shadowOf(wifiManager).setAccessWifiStatePermission(false); in isWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()69 wifiManager.isWifiEnabled(); in isWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()79 shadowOf(wifiManager).setAccessWifiStatePermission(false); in getWifiState_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()[all …]
21 private WifiManager wifiManager; field in ShadowWifiInfoTest25 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE); in setUp()38 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnIpAddress()46 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnMacAddress()50 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnMacAddress()56 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnSSID()60 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnSSID()66 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnBSSID()71 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnBSSID()77 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnRssi()[all …]
50 @RealObject WifiManager wifiManager; field in ShadowWifiManager162 shadowOf(wifiLock).setWifiManager(wifiManager); in createWifiLock()174 shadowOf(multicastLock).setWifiManager(wifiManager); in createMulticastLock()345 private WifiManager wifiManager; field in ShadowWifiManager.ShadowWifiLock348 private void setWifiManager(WifiManager wifiManager) { in setWifiManager() argument349 this.wifiManager = wifiManager; in setWifiManager()354 if (wifiManager != null) { in acquire()355 shadowOf(wifiManager).activeLockCount.getAndIncrement(); in acquire()366 if (wifiManager != null) { in release()367 shadowOf(wifiManager).activeLockCount.getAndDecrement(); in release()[all …]
219 private final WifiManager wifiManager; field in NetworkMonitorAutoDetect.WifiManagerDelegate228 wifiManager = hasWifiPermission in WifiManagerDelegate()236 wifiManager = null; in WifiManagerDelegate()