Home
last modified time | relevance | path

Searched refs:isWifiEnabled (Results 1 – 11 of 11) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DWifiPreparer.java63 if (!device.isWifiEnabled()) { in setUp()
106 if (mWifiNetwork != null && mDisconnectWifiAfterTest && device.isWifiEnabled()) { in tearDown()
DDeviceSetup.java472 if (mDisconnectWifiAfterTest && mWifiSsid != null && device.isWifiEnabled()) { in tearDown()
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiConnector.java231 return mWifiManager.isWifiEnabled(); in connectToNetwork()
317 if (mWifiManager.isWifiEnabled()) { in disconnectFromNetwork()
325 return !mWifiManager.isWifiEnabled(); in disconnectFromNetwork()
DWifiUtil.java203 result.putBoolean("result", wifiManager.isWifiEnabled()); in onStart()
/tools/tradefederation/core/src/com/android/tradefed/device/
DIWifiHelper.java155 boolean isWifiEnabled() throws DeviceNotAvailableException; in isWifiEnabled() method
DWifiHelper.java357 public boolean isWifiEnabled() throws DeviceNotAvailableException { in isWifiEnabled() method in WifiHelper
374 if (isWifiEnabled()) { in waitForWifiEnabled()
395 if (!isWifiEnabled()) { in waitForWifiDisabled()
DITestDevice.java290 public boolean isWifiEnabled() throws DeviceNotAvailableException; in isWifiEnabled() method
DNativeDevice.java2422 public boolean isWifiEnabled() throws DeviceNotAvailableException { in isWifiEnabled() method in NativeDevice
2425 return wifi.isWifiEnabled(); in isWifiEnabled()
2446 boolean test = wifi.isWifiEnabled(); in checkWifiConnection()
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
DDataIdleTest.java79 mMobileDataOnly, !mTestDevice.isWifiEnabled()); in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java773 EasyMock.expect(mMockWifi.isWifiEnabled()).andReturn(true); in testCheckWifiConnection()
787 EasyMock.expect(mMockWifi.isWifiEnabled()).andReturn(false); in testCheckWifiConnection_failure()
797 EasyMock.expect(mMockWifi.isWifiEnabled()).andReturn(true); in testIsWifiEnabled()
799 assertTrue(mTestDevice.isWifiEnabled()); in testIsWifiEnabled()
808 EasyMock.expect(mMockWifi.isWifiEnabled()).andThrow(new RuntimeException()); in testIsWifiEnabled_exception()
810 assertFalse(mTestDevice.isWifiEnabled()); in testIsWifiEnabled_exception()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDeviceSetupTest.java1095 EasyMock.expect(mMockDevice.isWifiEnabled()).andReturn(Boolean.TRUE); in testTearDown_disconnectFromWifi()