Searched refs:wifiManager (Results 1 – 6 of 6) sorted by relevance
35 WifiManager wifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() local36 if (!wifiManager.isWifiEnabled()) { in setUp()
52 final WifiManager wifiManager = (WifiManager) mContext.getSystemService( in testWifiLockAcquire() local54 final WifiLock wifiLock = wifiManager.createWifiLock("WakeLockPermissionTest"); in testWifiLockAcquire()
151 final WifiManager wifiManager = mContext.getSystemService(WifiManager.class); in isWifiEnabled() local152 return wifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED in isWifiEnabled()153 || wifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLING; in isWifiEnabled()
60 final WifiManager wifiManager = mContext.getSystemService(WifiManager.class); in testGetRandomizedMacAddress() local62 final List<WifiConfiguration> wifiConfigs = wifiManager.getConfiguredNetworks(); in testGetRandomizedMacAddress()
314 WifiManager wifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE); in isWifiEnabled() local315 int wifiState = wifiManager.getWifiState(); in isWifiEnabled()609 WifiManager wifiManager = (WifiManager) getApplicationContext() in legacyConnectToWifiNetwork() local611 wifiManager.enableNetwork(network, true); in legacyConnectToWifiNetwork()
911 WifiManager wifiManager = getContext().getSystemService(WifiManager.class); in getWifiMacAddress() local913 boolean enabled = wifiManager.isWifiEnabled(); in getWifiMacAddress()917 wifiManager.setWifiEnabled(true); in getWifiMacAddress()920 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in getWifiMacAddress()925 wifiManager.setWifiEnabled(false); in getWifiMacAddress()