summaryrefslogtreecommitdiffstats
path: root/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
diff options
context:
space:
mode:
authorGlen Kuhne <kuh@google.com>2017-07-27 10:10:03 -0700
committerGlen Kuhne <kuh@google.com>2017-08-02 09:46:25 -0700
commitd493cd415eaf76851f17e186b9066e89340d9a2f (patch)
treeff8f941e354a29b22190e957136738694603ebe9 /tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
parenteed767c1935faf0747e7c6a82074532442c9949c (diff)
downloadandroid_frameworks_opt_net_wifi-d493cd415eaf76851f17e186b9066e89340d9a2f.tar.gz
android_frameworks_opt_net_wifi-d493cd415eaf76851f17e186b9066e89340d9a2f.tar.bz2
android_frameworks_opt_net_wifi-d493cd415eaf76851f17e186b9066e89340d9a2f.zip
Move ScanResultMatchInfo to its own class
This class is a useful way of grouping scan results into the networks they represent, agnostic of BSSID. Shifting it so it can be used in WifiMetrics. Bug: 36819798 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: Ie4fdb488c7a7cb198e16cd5ba72c354045fbc312
Diffstat (limited to 'tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java b/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
index 62a68d47b..16c9f300c 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
@@ -225,7 +225,11 @@ public class WifiConfigurationTestUtil {
* use a static index to avoid duplicate configurations.
*/
public static WifiConfiguration createOpenNetwork() {
- return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, createNewSSID(), true, true, null,
+ return createOpenNetwork(createNewSSID());
+ }
+
+ public static WifiConfiguration createOpenNetwork(String ssid) {
+ return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null,
null, SECURITY_NONE);
}