Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDeviceSetupTest.java235 EasyMock.expect(mMockDevice.connectToWifiNetwork("wifi_network", "psk")).andReturn(true); in testSetup_wifi_network_name()
252 EasyMock.expect(mMockDevice.connectToWifiNetwork("old_network", "abc")).andReturn(false); in testSetup_wifi_multiple_network_names()
253 EasyMock.expect(mMockDevice.connectToWifiNetwork("network", "def")).andReturn(false); in testSetup_wifi_multiple_network_names()
254 EasyMock.expect(mMockDevice.connectToWifiNetwork("new_network", "ghi")).andReturn(true); in testSetup_wifi_multiple_network_names()
275 EasyMock.expect(mMockDevice.connectToWifiNetwork("old_network", null)).andReturn(false); in testSetup_wifi_multiple_network_names_unsecured()
276 EasyMock.expect(mMockDevice.connectToWifiNetwork("network", null)).andReturn(false); in testSetup_wifi_multiple_network_names_unsecured()
277 EasyMock.expect(mMockDevice.connectToWifiNetwork("new_network", null)).andReturn(true); in testSetup_wifi_multiple_network_names_unsecured()
/tools/tradefederation/core/src/com/android/tradefed/device/
DITestDevice.java416 public boolean connectToWifiNetwork(String wifiSsid, String wifiPsk) in connectToWifiNetwork() method
435 public boolean connectToWifiNetwork(String wifiSsid, String wifiPsk, boolean scanSsid) in connectToWifiNetwork() method
DNativeDevice.java2527 public boolean connectToWifiNetwork(String wifiSsid, String wifiPsk) in connectToWifiNetwork() method in NativeDevice
2529 return connectToWifiNetwork(wifiSsid, wifiPsk, false); in connectToWifiNetwork()
2536 public boolean connectToWifiNetwork(String wifiSsid, String wifiPsk, boolean scanSsid) in connectToWifiNetwork() method in NativeDevice
2617 return connectToWifiNetwork(wifiSsid, wifiPsk, scanSsid); in connectToWifiNetworkIfNeeded()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceSetup.java891 if (mWifiSsid != null && device.connectToWifiNetwork(mWifiSsid, mWifiPsk)) { in connectWifi()
896 if (device.connectToWifiNetwork(ssidToPsk.getKey(), psk)) { in connectWifi()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java756 assertTrue(mTestDevice.connectToWifiNetwork(FAKE_NETWORK_SSID, in testConnectToWifiNetwork_success()
777 assertFalse(mTestDevice.connectToWifiNetwork(FAKE_NETWORK_SSID, in testConnectToWifiNetwork_failure()
808 assertFalse(mTestDevice.connectToWifiNetwork(FAKE_NETWORK_SSID, FAKE_NETWORK_PASSWORD)); in testConnectToWifiNetwork_maxConnectTime()
822 assertTrue(mTestDevice.connectToWifiNetwork(FAKE_NETWORK_SSID, in testConnectToWifiNetwork_scanSsid()
/tools/tradefederation/contrib/src/com/android/framework/tests/
DPackageManagerHostTestUtils.java494 if (device.connectToWifiNetwork(wifiNetwork, wifiPsk)) { in connectToWifi()