/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 78 public int addNetwork(String ssid, boolean hidden, int securityType, in addNetwork() argument 82 WifiConfiguration wifiConf = createConfig(ssid, hidden, securityType, password); in addNetwork() 87 Log.i(TAG, "Added SSID '" + ssid + "': netId = " + netId + "; enabling it"); in addNetwork() 89 Log.i(TAG, "SSID '" + ssid + "' enabled!"); in addNetwork() 91 Log.w(TAG, "Unable to add SSID '" + ssid + "': netId = " + netId); in addNetwork() 102 public String addHttpProxyNetworkVerifyAndRemove(String ssid, String pacProxyUrl) in addHttpProxyNetworkVerifyAndRemove() argument 108 netId = addNetworkWithProxy(ssid, pacProxyUrl); in addHttpProxyNetworkVerifyAndRemove() 109 WifiConfiguration conf = getWifiConfigurationBySsid(ssid); in addHttpProxyNetworkVerifyAndRemove() 114 throw new IllegalStateException("Failed to remove WifiConfiguration: " + ssid); in addHttpProxyNetworkVerifyAndRemove() 130 private int addNetworkWithProxy(String ssid, String pacProxyUrl) { in addNetworkWithProxy() argument [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | MeteredDataRestrictionTest.java | 173 final String ssid = setWifiMeteredStatus(true); in setMeteredNetwork() local 176 mMeteredWifi = ssid; in setMeteredNetwork() 184 assertWifiMeteredStatus(ssid, true); in setMeteredNetwork() 204 String ssid = connectionInfo.getSSID(); in setWifiMeteredStatus() local 205 assertNotNull("null SSID", ssid); in setWifiMeteredStatus() 206 assertNotEquals("unknown SSID", WifiManager.UNKNOWN_SSID, ssid); in setWifiMeteredStatus() 208 final String netId = ssid.trim().replaceAll("\"", ""); // remove quotes, if any. in setWifiMeteredStatus() 209 assertFalse("empty SSID", ssid.isEmpty()); in setWifiMeteredStatus() 216 private void setWifiMeteredStatus(String ssid, Boolean metered) throws Exception { in setWifiMeteredStatus() argument 217 Log.i(TAG, "Setting wi-fi network " + ssid + " metered status to " + metered); in setWifiMeteredStatus() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | WifiTest.java | 124 private boolean awaitNetworkState(String ssid, boolean exists) { in awaitNetworkState() argument 129 if ((getNetworkForSsid(ssid) != null) == exists) { in awaitNetworkState() 159 private WifiConfiguration getNetworkForSsid(String ssid) { in getNetworkForSsid() argument 160 if (!ssid.startsWith("\"")) { in getNetworkForSsid() 161 ssid = '"' + ssid + '"'; in getNetworkForSsid() 166 if (ssid.equals(config.SSID)) { in getNetworkForSsid()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/ |
D | TestUtils.java | 156 String ssid, @ScanResultType int type) in startScanAndFindAnyMatchingNetworkInResults() argument 165 if (TextUtils.equals(ssid, scanResult.SSID) in startScanAndFindAnyMatchingNetworkInResults() 184 public boolean findNetworkInScanResultsResults(@NonNull String ssid, @NonNull String bssid) { in findNetworkInScanResultsResults() argument 187 if (TextUtils.equals(scanResult.SSID, ssid) in findNetworkInScanResultsResults() 206 public boolean isConnected(@Nullable String ssid, @Nullable String bssid) { in isConnected() argument 213 if (ssid != null && !wifiInfo.getSSID().equals(ssid)) return false; in isConnected()
|
D | BaseTestCase.java | 103 public void start(@NonNull Listener listener, @NonNull String ssid, @NonNull String psk) { in start() argument 105 mSsid = ssid; in start()
|
/cts/tests/tests/wifi/assets/ |
D | BackupLegacyFormatSupplicantConf.txt | 2 ssid="TestSsid1" 13 ssid="TestSsid2" 20 ssid="TestSsid3"
|
/cts/hostsidetests/devicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/ |
D | WifiConfigCreatorActivity.java | 49 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/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 835 private String unquoteSSID(String ssid) { in unquoteSSID() argument 838 if (ssid.charAt(0) == '"') { in unquoteSSID() 839 return ssid.substring(1, ssid.length() - 1); in unquoteSSID() 841 return ssid; in unquoteSSID() 846 final AtomicReference<String> ssid = new AtomicReference<>(); in getWifiSSID() local 848 ssid.set(mWifiManager.getConnectionInfo().getSSID()); in getWifiSSID() 850 return unquoteSSID(ssid.get()); in getWifiSSID() 854 private String getWifiMeteredStatus(String ssid) { in getWifiMeteredStatus() argument 862 final Matcher m = Pattern.compile("^" + ssid + ";(true|false|none)$", in getWifiMeteredStatus() 865 fail("Unexpected format from cmd netpolicy (when looking for " + ssid + "): " in getWifiMeteredStatus() [all …]
|
D | JobThrottlingTest.java | 1188 private static String unquoteSSID(String ssid) { in unquoteSSID() argument 1191 if (ssid.charAt(0) == '"') { in unquoteSSID() 1192 return ssid.substring(1, ssid.length() - 1); in unquoteSSID() 1194 return ssid; in unquoteSSID() 1199 final AtomicReference<String> ssid = new AtomicReference<>(); in getWifiSSID() local 1201 ssid.set(mWifiManager.getConnectionInfo().getSSID()); in getWifiSSID() 1203 return unquoteSSID(ssid.get()); in getWifiSSID() 1207 private String getWifiMeteredStatus(String ssid) { in getWifiMeteredStatus() argument 1215 final Matcher m = Pattern.compile("^" + ssid + ";(true|false|none)$", in getWifiMeteredStatus() 1218 fail("Unexpected format from cmd netpolicy (when looking for " + ssid + "): " in getWifiMeteredStatus() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiInfoTest.java | 167 String ssid = wifiInfo.getSSID(); in testWifiInfoPropertiesWhileConnected() local 168 if (!ssid.startsWith("0x") && !ssid.equals(WifiManager.UNKNOWN_SSID)) { in testWifiInfoPropertiesWhileConnected() 170 assertThat(ssid).startsWith("\""); in testWifiInfoPropertiesWhileConnected() 171 assertThat(ssid).endsWith("\""); in testWifiInfoPropertiesWhileConnected()
|
D | EasyConnectStatusCallbackTest.java | 112 public void onFailure(int code, String ssid, SparseArray<int[]> channelListArray,
|
D | WifiManagerTest.java | 468 private boolean existSSID(String ssid) { in existSSID() argument 470 if (w.SSID.equals(ssid)) in existSSID() 1314 String ssid, int type) { in createConfig() argument 1316 config.SSID = "\"" + ssid + "\""; in createConfig() 3802 private void verifySuggestionFoundWithMacRandomizationSetting(String ssid, in verifySuggestionFoundWithMacRandomizationSetting() argument 3806 if (entry.getSsid().equals(ssid)) { in verifySuggestionFoundWithMacRandomizationSetting() 3812 fail("WifiNetworkSuggestion not found for SSID=" + ssid + ", macRandomizationSetting=" in verifySuggestionFoundWithMacRandomizationSetting()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | WifiConfigLockdownTest.java | 168 private void startRegularActivity(String action, int netId, String ssid, int securityType, in startRegularActivity() argument 172 createRegularConfig.putExtra(EXTRA_SSID, ssid); in startRegularActivity()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/ |
D | NetworkRequestTestCase.java | 118 String ssid = UNAVAILABLE_SSID; in createNetworkSpecifier() local 120 if (mTestUtils.findNetworkInScanResultsResults(ssid, bssid.toString())) { in createNetworkSpecifier()
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_cve_2019_2213_Test.c | 1075 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()
|