Searched refs:ssidToPsk (Results 1 – 3 of 3) sorted by relevance
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | DeviceSetupTest.java | 258 LinkedHashMap<String, String> ssidToPsk = new LinkedHashMap<>(); in testSetup_wifi_network_name() local 259 ssidToPsk.put("wifi_network", "psk"); in testSetup_wifi_network_name() 260 when(mMockDevice.connectToWifiNetwork(ssidToPsk)).thenReturn(true); in testSetup_wifi_network_name() 277 LinkedHashMap<String, String> ssidToPsk = new LinkedHashMap<>(); in testSetup_wifi_network_name_emptyPsk() local 278 ssidToPsk.put("wifi_network", ""); in testSetup_wifi_network_name_emptyPsk() 279 when(mMockDevice.connectToWifiNetwork(ssidToPsk)).thenReturn(true); in testSetup_wifi_network_name_emptyPsk() 320 LinkedHashMap<String, String> ssidToPsk = new LinkedHashMap<>(); in testSetup_wifi_multiple_network_names() local 321 ssidToPsk.put("network", "def"); in testSetup_wifi_multiple_network_names() 322 ssidToPsk.put("new_network", "ghi"); in testSetup_wifi_multiple_network_names() 323 mDeviceSetup.setWifiSsidToPsk(ssidToPsk); in testSetup_wifi_multiple_network_names() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 909 LinkedHashMap<String, String> ssidToPsk = new LinkedHashMap<>(); in testConnectToWifiNetworkGivenMap_success() local 910 ssidToPsk.put(FAKE_NETWORK_SSID, FAKE_NETWORK_PASSWORD); in testConnectToWifiNetworkGivenMap_success() 911 assertTrue(mTestDevice.connectToWifiNetwork(ssidToPsk)); in testConnectToWifiNetworkGivenMap_success() 961 LinkedHashMap<String, String> ssidToPsk = new LinkedHashMap<>(); in testConnectToWifiNetworkGivenMap_failure() local 962 ssidToPsk.put(FAKE_NETWORK_SSID, FAKE_NETWORK_PASSWORD); in testConnectToWifiNetworkGivenMap_failure() 963 assertFalse(mTestDevice.connectToWifiNetwork(ssidToPsk)); in testConnectToWifiNetworkGivenMap_failure() 1036 LinkedHashMap<String, String> ssidToPsk = new LinkedHashMap<>(); in testConnectToWifiNetworkGivenMap_maxConnectTime() local 1037 ssidToPsk.put(FAKE_NETWORK_SSID, FAKE_NETWORK_PASSWORD); in testConnectToWifiNetworkGivenMap_maxConnectTime() 1038 assertFalse(mTestDevice.connectToWifiNetwork(ssidToPsk)); in testConnectToWifiNetworkGivenMap_maxConnectTime() 1082 LinkedHashMap<String, String> ssidToPsk = new LinkedHashMap<>(); in testConnectToWifiNetworkGivenMap_scanSsid() local [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 3155 LinkedHashMap<String, String> ssidToPsk = new LinkedHashMap<>(); in connectToWifiNetwork() local 3156 ssidToPsk.put(wifiSsid, wifiPsk); in connectToWifiNetwork() 3157 return connectToWifiNetwork(ssidToPsk, scanSsid); in connectToWifiNetwork() 3185 for (Map.Entry<String, String> ssidToPsk : wifiSsidToPsk.entrySet()) { in connectToWifiNetwork() 3186 String wifiSsid = ssidToPsk.getKey(); in connectToWifiNetwork() 3187 String wifiPsk = Strings.emptyToNull(ssidToPsk.getValue()); in connectToWifiNetwork()
|