Searched refs:wifiManager (Results 1 – 3 of 3) sorted by relevance
32 private WifiManager wifiManager; field in WifiManagerTest37 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE); in setUp()38 shadowWifiManager = shadowOf(wifiManager); in setUp()43 assertEquals(wifiManager.getConnectionInfo().getClass(), WifiInfo.class); in shouldReturnWifiInfo()49 wifiManager.setWifiEnabled(true); in setWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()55 wifiManager.isWifiEnabled(); in isWifiEnabled_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()61 wifiManager.getConnectionInfo(); in getConnectionInfo_shouldThrowSecurityExceptionWhenAccessWifiStatePermissionNotGranted()67 wifiManager.enableNetwork(networkId, true); in shouldEnableNetworks()72 wifiManager.enableNetwork(anotherNetworkId, false); in shouldEnableNetworks()81 assertThat(wifiManager.getScanResults(), sameInstance(scanResults)); in shouldReturnSetScanResults()[all …]
20 WifiManager wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE); in shouldReturnMacAddress() local21 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnMacAddress()24 wifiManager = (WifiManager) application.getSystemService(WIFI_SERVICE); in shouldReturnMacAddress()25 wifiInfo = wifiManager.getConnectionInfo(); in shouldReturnMacAddress()
219 private final WifiManager wifiManager; field in NetworkMonitorAutoDetect.WifiManagerDelegate228 wifiManager = hasWifiPermission in WifiManagerDelegate()236 wifiManager = null; in WifiManagerDelegate()