/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/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/tests/tests/wifi/assets/ |
D | BackupLegacyFormatSupplicantConf.txt | 2 ssid="TestSsid1" 13 ssid="TestSsid2" 20 ssid="TestSsid3"
|
/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/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 | 882 private String unquoteSSID(String ssid) { in unquoteSSID() argument 885 if (ssid.charAt(0) == '"') { in unquoteSSID() 886 return ssid.substring(1, ssid.length() - 1); in unquoteSSID() 888 return ssid; in unquoteSSID() 893 final AtomicReference<String> ssid = new AtomicReference<>(); in getWifiSSID() local 895 ssid.set(mWifiManager.getConnectionInfo().getSSID()); in getWifiSSID() 897 return unquoteSSID(ssid.get()); in getWifiSSID() 901 private String getWifiMeteredStatus(String ssid) { in getWifiMeteredStatus() argument 909 final Matcher m = Pattern.compile("^" + ssid + ";(true|false|none)$", in getWifiMeteredStatus() 912 fail("Unexpected format from cmd netpolicy (when looking for " + ssid + "): " in getWifiMeteredStatus() [all …]
|
D | JobThrottlingTest.java | 1192 private static String unquoteSSID(String ssid) { in unquoteSSID() argument 1195 if (ssid.charAt(0) == '"') { in unquoteSSID() 1196 return ssid.substring(1, ssid.length() - 1); in unquoteSSID() 1198 return ssid; in unquoteSSID() 1203 final AtomicReference<String> ssid = new AtomicReference<>(); in getWifiSSID() local 1205 ssid.set(mWifiManager.getConnectionInfo().getSSID()); in getWifiSSID() 1207 return unquoteSSID(ssid.get()); in getWifiSSID() 1211 private String getWifiMeteredStatus(String ssid) { in getWifiMeteredStatus() argument 1219 final Matcher m = Pattern.compile("^" + ssid + ";(true|false|none)$", in getWifiMeteredStatus() 1222 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() 1284 String ssid, int type) { in createConfig() argument 1286 config.SSID = "\"" + ssid + "\""; in createConfig() 3789 private void verifySuggestionFoundWithMacRandomizationSetting(String ssid, in verifySuggestionFoundWithMacRandomizationSetting() argument 3793 if (entry.getSsid().equals(ssid)) { in verifySuggestionFoundWithMacRandomizationSetting() 3799 fail("WifiNetworkSuggestion not found for SSID=" + ssid + ", macRandomizationSetting=" in verifySuggestionFoundWithMacRandomizationSetting()
|
/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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | WifiConfigLockdownTest.java | 190 private void startRegularActivity(String action, int netId, String ssid, int securityType, in startRegularActivity() argument 194 createRegularConfig.putExtra(EXTRA_SSID, ssid); in startRegularActivity()
|
/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()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/res/apis/ |
D | wifi-current.txt | 464 field public static final String UNKNOWN_SSID = "<unknown ssid>";
|