Home
last modified time | relevance | path

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

/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/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/hostsidetests/net/app/src/com/android/cts/net/hostside/
DNetworkPolicyTestUtils.java153 final String ssid = unquoteSSID(getWifiManager().getConnectionInfo().getSSID()); in setupMeteredNetwork() local
154 assertNotEquals(WifiManager.UNKNOWN_SSID, ssid); in setupMeteredNetwork()
155 setWifiMeteredStatus(ssid, metered); in setupMeteredNetwork()
156 return Pair.create(ssid, !metered); in setupMeteredNetwork()
165 public static void resetMeteredNetwork(String ssid, boolean metered) throws Exception { in resetMeteredNetwork() argument
166 setWifiMeteredStatus(ssid, metered); in resetMeteredNetwork()
169 public static void setWifiMeteredStatus(String ssid, boolean metered) throws Exception { in setWifiMeteredStatus() argument
170 assertFalse("SSID should not be empty", TextUtils.isEmpty(ssid)); in setWifiMeteredStatus()
171 final String cmd = "cmd netpolicy set metered-network " + ssid + " " + metered; in setWifiMeteredStatus()
173 assertWifiMeteredStatus(ssid, metered); in setWifiMeteredStatus()
[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/wifi/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.java264 private boolean existSSID(String ssid) { in existSSID() argument
266 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/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java652 private String getWifiMeteredStatus(String ssid) throws Exception { in getWifiMeteredStatus() argument
660 final Matcher m = Pattern.compile("^" + ssid + ";(true|false|none)$", in getWifiMeteredStatus()
669 private void setWifiMeteredStatus(String ssid, String metered) throws Exception { in setWifiMeteredStatus() argument
670 final String setCommand = "cmd netpolicy set metered-network " + ssid + " " + metered; in setWifiMeteredStatus()
672 assertEquals(getWifiMeteredStatus(ssid), metered); in setWifiMeteredStatus()
675 private String unquoteSSID(String ssid) { in unquoteSSID() argument
678 if (ssid.charAt(0) == '"') { in unquoteSSID()
679 return ssid.substring(1, ssid.length() - 1); in unquoteSSID()
681 return ssid; in unquoteSSID()
760 final String ssid = unquoteSSID(mWifiManager.getConnectionInfo().getSSID()); in testGetMultipathPreference() local
[all …]
/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/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/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/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c1075 u32 ssid; member
1082 u64 grant(u64 avc, u32 ssid, u32 tsid, u16 class) { in grant() argument
1084 n.ssid = ssid; in grant()
1095 int hash = (ssid ^ (tsid<<2) ^ (class<<4)) & 0x1ff; in grant()