Home
last modified time | relevance | path

Searched refs:ssid (Results 1 – 7 of 7) sorted by relevance

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWifiConfigCreator.java58 public int addNetwork(String ssid, boolean hidden, int securityType, in addNetwork() argument
64 WifiConfiguration wifiConf = createConfig(ssid, hidden, securityType, password); in addNetwork()
71 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork()
80 public int updateNetwork(WifiConfiguration wifiConf, String ssid, boolean hidden, in updateNetwork() argument
89 WifiConfiguration conf = createConfig(ssid, hidden, securityType, password); in updateNetwork()
98 Log.w(TAG, "Unable to update SSID '" + ssid + "': netId = " + newNetId); in updateNetwork()
107 public int updateNetwork(int netId, String ssid, boolean hidden, in updateNetwork() argument
121 return updateNetwork(wifiConf, ssid, hidden, securityType, password); in updateNetwork()
137 private WifiConfiguration createConfig(String ssid, boolean hidden, int securityType, in createConfig() argument
140 if (!TextUtils.isEmpty(ssid)) { in createConfig()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWifiTest.java113 private boolean awaitNetworkState(String ssid, boolean exists) { in awaitNetworkState() argument
118 if ((getNetworkForSsid(ssid) != null) == exists) { in awaitNetworkState()
131 private WifiConfiguration getNetworkForSsid(String ssid) { in getNetworkForSsid() argument
132 if (!ssid.startsWith("\"")) { in getNetworkForSsid()
133 ssid = '"' + ssid + '"'; in getNetworkForSsid()
136 if (ssid.equals(config.SSID)) { in getNetworkForSsid()
/cts/hostsidetests/devicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/
DWifiConfigCreatorActivity.java49 String ssid = intent.getStringExtra(EXTRA_SSID); in onCreate() local
52 configCreator.addNetwork(ssid, false, securityType, password); in onCreate()
55 String ssid = intent.getStringExtra(EXTRA_SSID); in onCreate() local
58 configCreator.updateNetwork(netId, ssid, false, securityType, password); in onCreate()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiInfoTest.java125 String ssid = wifiInfo.getSSID(); in testWifiInfoProperties() local
126 if (ssid.startsWith("0x") == false) { in testWifiInfoProperties()
128 assertTrue(ssid.charAt(0) == '"'); in testWifiInfoProperties()
129 assertTrue(ssid.charAt(ssid.length() - 1) == '"'); in testWifiInfoProperties()
DWifiEnterpriseConfigTest.java124 private boolean doesSsidExist(String ssid) { in doesSsidExist() argument
126 if (w.SSID.equals(ssid)) in doesSsidExist()
DWifiManagerTest.java197 private boolean existSSID(String ssid) { in existSSID() argument
199 if (w.SSID.equals(ssid)) in existSSID()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DWifiConfigLockdownTest.java165 private void startRegularActivity(String action, int netId, String ssid, int securityType, in startRegularActivity() argument
169 createRegularConfig.putExtra(EXTRA_SSID, ssid); in startRegularActivity()