Home
last modified time | relevance | path

Searched refs:wifiManager (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
DBaseTestCase.java35 WifiManager wifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in setUp() local
36 if (!wifiManager.isWifiEnabled()) { in setUp()
/cts/tests/tests/permission/src/android/permission/cts/
DNoWakeLockPermissionTest.java52 final WifiManager wifiManager = (WifiManager) mContext.getSystemService( in testWifiLockAcquire() local
54 final WifiLock wifiLock = wifiManager.createWifiLock("WakeLockPermissionTest"); in testWifiLockAcquire()
/cts/tests/tests/provider/src/android/provider/cts/
DWifiSliceTest.java151 final WifiManager wifiManager = mContext.getSystemService(WifiManager.class); in isWifiEnabled() local
152 return wifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED in isWifiEnabled()
153 || wifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLING; in isWifiEnabled()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DRandomizedWifiMacAddressTest.java60 final WifiManager wifiManager = mContext.getSystemService(WifiManager.class); in testGetRandomizedMacAddress() local
62 final List<WifiConfiguration> wifiConfigs = wifiManager.getConfiguredNetworks(); in testGetRandomizedMacAddress()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java314 WifiManager wifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE); in isWifiEnabled() local
315 int wifiState = wifiManager.getWifiState(); in isWifiEnabled()
609 WifiManager wifiManager = (WifiManager) getApplicationContext() in legacyConnectToWifiNetwork() local
611 wifiManager.enableNetwork(network, true); in legacyConnectToWifiNetwork()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java911 WifiManager wifiManager = getContext().getSystemService(WifiManager.class); in getWifiMacAddress() local
913 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()