Home
last modified time | relevance | path

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

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWifiConfigCreator.java72 public int addNetwork(String ssid, boolean hidden, int securityType, in addNetwork() argument
76 WifiConfiguration wifiConf = createConfig(ssid, hidden, securityType, password); in addNetwork()
83 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork()
94 public String addHttpProxyNetworkVerifyAndRemove(String ssid, String pacProxyUrl) in addHttpProxyNetworkVerifyAndRemove() argument
99 WifiConfiguration conf = createConfig(ssid, false, SECURITY_TYPE_NONE, null); in addHttpProxyNetworkVerifyAndRemove()
105 throw new IllegalStateException("Failed to addNetwork: " + ssid); in addHttpProxyNetworkVerifyAndRemove()
108 if (w.SSID.equals(ssid)) { in addHttpProxyNetworkVerifyAndRemove()
114 throw new IllegalStateException("Failed to get WifiConfiguration for: " + ssid); in addHttpProxyNetworkVerifyAndRemove()
123 throw new IllegalStateException("Failed to remove WifiConfiguration: " + ssid); in addHttpProxyNetworkVerifyAndRemove()
135 public int updateNetwork(WifiConfiguration wifiConf, String ssid, boolean hidden, in updateNetwork() argument
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DWifiConfigCreator.java72 public int addNetwork(String ssid, boolean hidden, int securityType, in addNetwork() argument
76 WifiConfiguration wifiConf = createConfig(ssid, hidden, securityType, password); in addNetwork()
83 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork()
94 public String addHttpProxyNetworkVerifyAndRemove(String ssid, String pacProxyUrl) in addHttpProxyNetworkVerifyAndRemove() argument
99 WifiConfiguration conf = createConfig(ssid, false, SECURITY_TYPE_NONE, null); in addHttpProxyNetworkVerifyAndRemove()
105 throw new IllegalStateException("Failed to addNetwork: " + ssid); in addHttpProxyNetworkVerifyAndRemove()
108 if (w.SSID.equals(ssid)) { in addHttpProxyNetworkVerifyAndRemove()
114 throw new IllegalStateException("Failed to get WifiConfiguration for: " + ssid); in addHttpProxyNetworkVerifyAndRemove()
123 throw new IllegalStateException("Failed to remove WifiConfiguration: " + ssid); in addHttpProxyNetworkVerifyAndRemove()
135 public int updateNetwork(WifiConfiguration wifiConf, String ssid, boolean hidden, in updateNetwork() argument
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWifiTest.java137 private boolean awaitNetworkState(String ssid, boolean exists) { in awaitNetworkState() argument
142 if ((getNetworkForSsid(ssid) != null) == exists) { in awaitNetworkState()
172 private WifiConfiguration getNetworkForSsid(String ssid) { in getNetworkForSsid() argument
173 if (!ssid.startsWith("\"")) { in getNetworkForSsid()
174 ssid = '"' + ssid + '"'; in getNetworkForSsid()
179 if (ssid.equals(config.SSID)) { in getNetworkForSsid()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiInfoTest.java134 String ssid = wifiInfo.getSSID(); in testWifiInfoProperties() local
135 if (!ssid.startsWith("0x") && !ssid.equals(WifiSsid.NONE)) { in testWifiInfoProperties()
137 assertTrue(ssid.charAt(0) == '"'); in testWifiInfoProperties()
138 assertTrue(ssid.charAt(ssid.length() - 1) == '"'); in testWifiInfoProperties()
DWifiManagerTest.java263 private boolean existSSID(String ssid) { in existSSID() argument
265 if (w.SSID.equals(ssid)) in existSSID()
/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/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java138 public boolean findNetworkInScanResultsResults(@NonNull String ssid, @NonNull String bssid) { in findNetworkInScanResultsResults() argument
141 if (TextUtils.equals(scanResult.SSID, ssid) in findNetworkInScanResultsResults()
160 public boolean isConnected(@Nullable String ssid, @Nullable String bssid) { in isConnected() argument
167 if (ssid != null && !wifiInfo.getSSID().equals(ssid)) return false; in isConnected()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DMeteredDataRestrictionTest.java182 final String ssid = mWm.getConnectionInfo().getSSID(); in setWifiMeteredStatus() local
183 assertNotNull("null SSID", ssid); in setWifiMeteredStatus()
184 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus()
185 assertFalse("empty SSID", ssid.isEmpty()); in setWifiMeteredStatus()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java597 private String getWifiMeteredStatus(String ssid) throws Exception { in getWifiMeteredStatus() argument
605 final Matcher m = Pattern.compile("^" + ssid + ";(true|false|none)$", in getWifiMeteredStatus()
614 private void setWifiMeteredStatus(String ssid, String metered) throws Exception { in setWifiMeteredStatus() argument
615 final String setCommand = "cmd netpolicy set metered-network " + ssid + " " + metered; in setWifiMeteredStatus()
617 assertEquals(getWifiMeteredStatus(ssid), metered); in setWifiMeteredStatus()
620 private String unquoteSSID(String ssid) { in unquoteSSID() argument
623 if (ssid.charAt(0) == '"') { in unquoteSSID()
624 return ssid.substring(1, ssid.length() - 1); in unquoteSSID()
626 return ssid; in unquoteSSID()
701 final String ssid = unquoteSSID(mWifiManager.getConnectionInfo().getSSID()); in testGetMultipathPreference() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/
DNetworkRequestTestCase.java99 String ssid = UNAVAILABLE_SSID; in createNetworkSpecifier() local
101 if (mTestUtils.findNetworkInScanResultsResults(ssid, bssid.toString())) { in createNetworkSpecifier()
/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()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java706 final String ssid = mWfm.getConnectionInfo().getSSID(); in setWifiMeteredStatus() local
707 return setWifiMeteredStatus(ssid, metered); in setWifiMeteredStatus()
710 private String setWifiMeteredStatus(String ssid, boolean metered) throws Exception { in setWifiMeteredStatus() argument
711 assertNotNull("null SSID", ssid); in setWifiMeteredStatus()
712 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus()
713 assertFalse("empty SSID", ssid.isEmpty()); in setWifiMeteredStatus()