Home
last modified time | relevance | path

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

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWifiConfigCreator.java70 public int addNetwork(String ssid, boolean hidden, int securityType, in addNetwork() argument
74 WifiConfiguration wifiConf = createConfig(ssid, hidden, securityType, password); in addNetwork()
81 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork()
90 public int updateNetwork(WifiConfiguration wifiConf, String ssid, boolean hidden, in updateNetwork() argument
97 WifiConfiguration conf = createConfig(ssid, hidden, securityType, password); in updateNetwork()
106 Log.w(TAG, "Unable to update SSID '" + ssid + "': netId = " + newNetId); in updateNetwork()
115 public int updateNetwork(int netId, String ssid, boolean hidden, in updateNetwork() argument
127 return updateNetwork(wifiConf, ssid, hidden, securityType, password); in updateNetwork()
143 private WifiConfiguration createConfig(String ssid, boolean hidden, int securityType, in createConfig() argument
146 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.java528 private boolean doesSsidExist(String ssid) { in doesSsidExist() argument
530 if (w.SSID.equals(ssid)) in doesSsidExist()
DWifiManagerTest.java200 private boolean existSSID(String ssid) { in existSSID() argument
202 if (w.SSID.equals(ssid)) in existSSID()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java471 final String ssid = mWfm.getConnectionInfo().getSSID(); in setWifiMeteredStatus() local
472 return setWifiMeteredStatus(ssid, metered); in setWifiMeteredStatus()
475 private String setWifiMeteredStatus(String ssid, boolean metered) throws Exception { in setWifiMeteredStatus() argument
476 assertNotNull("null SSID", ssid); in setWifiMeteredStatus()
477 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus()
478 assertFalse("empty SSID", ssid.isEmpty()); in setWifiMeteredStatus()
/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()