Home
last modified time | relevance | path

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

1234567

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java47 final String ssid = "SOME SsId"; in convertScanResult() local
49 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResult()
53 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResult()
63 final String ssid = "SOME SsId"; in convertScanResultWithAnqpLines() local
65 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResultWithAnqpLines()
69 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithAnqpLines()
80 final String ssid = "Another SSid"; in convertScanResultWithoutWifiSsid() local
81 ScanResult input = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "other caps", in convertScanResultWithoutWifiSsid()
84 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithoutWifiSsid()
94 final String ssid = "Another SSid"; in testNetworkCreationFromScanResult() local
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBlocklistMonitor.java249 localLog(TAG + " addToBlocklist: bssid=" + entry.bssid + ", ssid=" + entry.ssid in addToBlocklist()
260 @NonNull String bssid, @NonNull String ssid, int reasonCode) { in incrementFailureCountForBssid() argument
261 BssidStatus status = getOrCreateBssidStatus(bssid, ssid); in incrementFailureCountForBssid()
270 @NonNull String ssid) { in getOrCreateBssidStatus() argument
272 if (status == null || !ssid.equals(status.ssid)) { in getOrCreateBssidStatus()
275 + status.ssid + " to " + ssid); in getOrCreateBssidStatus()
277 status = new BssidStatus(bssid, ssid); in getOrCreateBssidStatus()
283 private boolean isValidNetworkAndFailureReason(String bssid, String ssid, in isValidNetworkAndFailureReason() argument
285 if (bssid == null || ssid == null || WifiManager.UNKNOWN_SSID.equals(ssid) in isValidNetworkAndFailureReason()
288 Log.e(TAG, "Invalid input: BSSID=" + bssid + ", SSID=" + ssid in isValidNetworkAndFailureReason()
[all …]
DWifiLastResortWatchdog.java253 String ssid = "\"" + scanDetail.getSSID() + "\""; in updateAvailableNetworks() local
263 availableNetworkFailureCount.ssid = ssid; in updateAvailableNetworks()
267 mSsidFailureCount.get(ssid); in updateAvailableNetworks()
286 mSsidFailureCount.put(ssid, ssidFailsAndApCount); in updateAvailableNetworks()
307 String ssid = entry.getValue().ssid; in updateAvailableNetworks() local
309 mSsidFailureCount.get(ssid); in updateAvailableNetworks()
314 mSsidFailureCount.put(ssid, ssidFails); in updateAvailableNetworks()
316 mSsidFailureCount.remove(ssid); in updateAvailableNetworks()
319 Log.d(TAG, "updateAvailableNetworks: SSID to AP count mismatch for " + ssid); in updateAvailableNetworks()
335 public boolean noteConnectionFailureAndTriggerIfNeeded(String ssid, String bssid, int reason, in noteConnectionFailureAndTriggerIfNeeded() argument
[all …]
DWifiScoreCard.java296 return new Pair<>(perBssid.getL2Key(), groupHintFromSsid(perBssid.ssid)); in getL2KeyAndGroupHint()
302 public @NonNull String groupHintFromSsid(String ssid) { in groupHintFromSsid() argument
303 final long groupIdHash = computeHashLong(ssid, mPlaceholderPerBssid.bssid, mL2KeySeed); in groupHintFromSsid()
378 private void updatePerNetwork(WifiScoreCardProto.Event event, String ssid, int rssi, in updatePerNetwork() argument
380 PerNetwork perNetwork = lookupNetwork(ssid); in updatePerNetwork()
381 logd("network update " + event + ((ssid == null) ? " " : " " in updatePerNetwork()
382 + ssid) + " ID: " + perNetwork.id + " RSSI " + rssi + " txSpeed " + txSpeed); in updatePerNetwork()
469 int scanRssi, String ssid) { in noteConnectionAttempt() argument
482 ifaceInfo.ssidCurr = ssid; in noteConnectionAttempt()
485 updatePerNetwork(Event.CONNECTION_ATTEMPT, ssid, scanRssi, LINK_SPEED_UNKNOWN, in noteConnectionAttempt()
[all …]
DAssocRejectEventInfo.java30 @NonNull public final String ssid; field in AssocRejectEventInfo
37 public AssocRejectEventInfo(@NonNull String ssid, @NonNull String bssid, int statusCode, in AssocRejectEventInfo() argument
39 this.ssid = Objects.requireNonNull(ssid); in AssocRejectEventInfo()
48 String ssid = NativeUtil.encodeSsid(assocRejectData.ssid); in AssocRejectEventInfo() local
50 this.ssid = Objects.requireNonNull(ssid); in AssocRejectEventInfo()
73 sb.append(" ssid: ").append(ssid); in toString()
DSupplicantStaIfaceCallbackV1_4Impl.java63 ArrayList<Byte> ssid) { in onStateChanged() argument
64 mCallbackV13.onStateChanged(newState, bssid, id, ssid); in onStateChanged()
175 public void onDppSuccessConfigReceived(ArrayList<Byte> ssid, String password, in onDppSuccessConfigReceived() argument
178 ssid, password, psk, securityAkm); in onDppSuccessConfigReceived()
207 public void onDppFailure_1_3(int code, String ssid, String channelList, in onDppFailure_1_3() argument
209 mCallbackV13.onDppFailure_1_3(code, ssid, channelList, bandList); in onDppFailure_1_3()
224 ArrayList<Byte> ssid, boolean filsHlpSent) { in onStateChanged_1_3() argument
225 mCallbackV13.onStateChanged_1_3(newState, bssid, id, ssid, filsHlpSent); in onStateChanged_1_3()
240 public void onNetworkNotFound(ArrayList<Byte> ssid) { in onNetworkNotFound() argument
242 mWifiMonitor.broadcastNetworkNotFoundEvent(mIfaceName, NativeUtil.encodeSsid(ssid)); in onNetworkNotFound()
DWifiMonitor.java415 public void broadcastNetworkIdentityRequestEvent(String iface, int networkId, String ssid) { in broadcastNetworkIdentityRequestEvent() argument
416 sendMessage(iface, SUP_REQUEST_IDENTITY, 0, networkId, ssid); in broadcastNetworkIdentityRequestEvent()
441 public void broadcastNetworkGsmAuthRequestEvent(String iface, int networkId, String ssid, in broadcastNetworkGsmAuthRequestEvent() argument
444 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.SIM, ssid, data)); in broadcastNetworkGsmAuthRequestEvent()
456 public void broadcastNetworkUmtsAuthRequestEvent(String iface, int networkId, String ssid, in broadcastNetworkUmtsAuthRequestEvent() argument
459 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.AKA, ssid, data)); in broadcastNetworkUmtsAuthRequestEvent()
543 WifiSsid ssid, String bssid) { in broadcastNetworkConnectionEvent() argument
545 new NetworkConnectionEventInfo(networkId, ssid, bssid, filsHlpSent)); in broadcastNetworkConnectionEvent()
558 int reason, String ssid, String bssid) { in broadcastNetworkDisconnectionEvent() argument
560 new DisconnectEventInfo(ssid, bssid, reason, locallyGenerated)); in broadcastNetworkDisconnectionEvent()
[all …]
DScanRequestProxy.java595 public boolean isWpa2PersonalOnlyNetworkInRange(String ssid) { in isWpa2PersonalOnlyNetworkInRange() argument
597 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isWpa2PersonalOnlyNetworkInRange()
603 public boolean isWpa3PersonalOnlyNetworkInRange(String ssid) { in isWpa3PersonalOnlyNetworkInRange() argument
605 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isWpa3PersonalOnlyNetworkInRange()
611 public boolean isOpenOnlyNetworkInRange(String ssid) { in isOpenOnlyNetworkInRange() argument
613 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isOpenOnlyNetworkInRange()
619 public boolean isOweOnlyNetworkInRange(String ssid) { in isOweOnlyNetworkInRange() argument
621 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isOweOnlyNetworkInRange()
627 public boolean isWpa2EnterpriseOnlyNetworkInRange(String ssid) { in isWpa2EnterpriseOnlyNetworkInRange() argument
629 ssid.equals(ScanResultUtil.createQuotedSSID(r.SSID)) in isWpa2EnterpriseOnlyNetworkInRange()
[all …]
DDisconnectEventInfo.java26 @NonNull public final String ssid; field in DisconnectEventInfo
31 public DisconnectEventInfo(@NonNull String ssid, @NonNull String bssid, int reasonCode, in DisconnectEventInfo() argument
33 this.ssid = Objects.requireNonNull(ssid); in DisconnectEventInfo()
42 sb.append(" ssid: ").append(ssid); in toString()
DSupplicantStaIfaceCallbackV1_3Impl.java58 ArrayList<Byte> ssid) { in onStateChanged() argument
59 mCallbackV12.onStateChanged(newState, bssid, id, ssid); in onStateChanged()
150 public void onDppSuccessConfigReceived(ArrayList<Byte> ssid, String password, in onDppSuccessConfigReceived() argument
153 ssid, password, psk, securityAkm); in onDppSuccessConfigReceived()
198 public void onDppFailure_1_3(int code, String ssid, String channelList, in onDppFailure_1_3() argument
211 mStaIfaceHal.getDppCallback().onFailure(code, ssid, channelList, bandListArray); in onDppFailure_1_3()
344 ArrayList<Byte> ssid, boolean filsHlpSent) { in onStateChanged_1_3() argument
345 mCallbackV12.onStateChanged(newState, bssid, id, ssid, filsHlpSent); in onStateChanged_1_3()
DWrongPasswordNotifier.java60 public void onWrongPasswordError(String ssid) { in onWrongPasswordError() argument
61 showNotification(ssid); in onWrongPasswordError()
80 private void showNotification(String ssid) { in showNotification() argument
85 .putExtra("wifi_start_connect_ssid", NativeUtil.removeEnclosingQuotes(ssid)); in showNotification()
95 .setContentText(ssid) in showNotification()
DAvailableNetworkNotifier.java353 public void handleWifiConnected(String ssid) { in handleWifiConnected() argument
354 removeNetworkFromBlocklist(ssid); in handleWifiConnected()
467 private void addNetworkToBlocklist(String ssid) { in addNetworkToBlocklist() argument
468 mBlocklistedSsids.add(ssid); in addNetworkToBlocklist()
472 + "\"" + ssid + "\""); in addNetworkToBlocklist()
475 private void removeNetworkFromBlocklist(String ssid) { in removeNetworkFromBlocklist() argument
476 if (ssid == null) { in removeNetworkFromBlocklist()
479 if (!mBlocklistedSsids.remove(ssid)) { in removeNetworkFromBlocklist()
485 + "\"" + ssid + "\""); in removeNetworkFromBlocklist()
DSupplicantStaIfaceCallbackV1_2Impl.java65 public void onStateChanged(int newState, byte[/* 6 */] bssid, int id, ArrayList<Byte> ssid, in onStateChanged() argument
67 mCallbackV11.onStateChanged(newState, bssid, id, ssid, filsHlpSent); in onStateChanged()
72 ArrayList<Byte> ssid) { in onStateChanged() argument
73 onStateChanged(newState, bssid, id, ssid, false); in onStateChanged()
159 public void onDppSuccessConfigReceived(ArrayList<Byte> ssid, String password, in onDppSuccessConfigReceived() argument
170 WifiSsid.createFromByteArray(NativeUtil.byteArrayFromArrayList(ssid)); in onDppSuccessConfigReceived()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DNetworkPolicyTestUtils.java188 final String ssid = getWifiSsid(); in setupActiveNetworkMeteredness() local
189 setWifiMeteredStatus(ssid, metered); in setupActiveNetworkMeteredness()
190 return () -> setWifiMeteredStatus(ssid, !metered); in setupActiveNetworkMeteredness()
206 final String ssid = getWifiManager().getConnectionInfo().getSSID(); in getWifiSsid() local
207 assertNotEquals(WifiManager.UNKNOWN_SSID, ssid); in getWifiSsid()
208 return ssid; in getWifiSsid()
220 private static void setWifiMeteredStatus(String ssid, boolean metered) throws Exception { in setWifiMeteredStatus() argument
224 final WifiConfiguration currentConfig = getWifiConfiguration(ssid); in setWifiMeteredStatus()
233 fail("Timed out waiting for meteredness to change; ssid=" + ssid in setWifiMeteredStatus()
236 fail("Error overriding the meteredness; ssid=" + ssid in setWifiMeteredStatus()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java116 private static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() argument
119 config.SSID = ssid; in generateWifiConfig()
147 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() argument
150 WifiConfiguration config = generateWifiConfig(networkId, uid, ssid, shared, enabled, fqdn, in generateWifiConfig()
275 String ssid = TEST_SSID + sNetworkIndex++; in createNewSSID() local
276 assertTrue(ssid.length() <= MAX_SSID_LENGTH); in createNewSSID()
277 return "\"" + ssid + "\""; in createNewSSID()
288 public static WifiConfiguration createOweNetwork(String ssid) { in createOweNetwork() argument
289 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOweNetwork()
297 public static WifiConfiguration createOpenNetwork(String ssid) { in createOpenNetwork() argument
[all …]
DWifiMonitorTest.java266 String ssid = SSID; in testBroadcastNetworkGsmAuthRequestEvent() local
268 mWifiMonitor.broadcastNetworkGsmAuthRequestEvent(WLAN_IFACE_NAME, networkId, ssid, data); in testBroadcastNetworkGsmAuthRequestEvent()
277 assertEquals(ssid, authData.ssid); in testBroadcastNetworkGsmAuthRequestEvent()
290 String ssid = SSID; in testBroadcastNetworkUmtsAuthRequestEvent() local
292 mWifiMonitor.broadcastNetworkUmtsAuthRequestEvent(WLAN_IFACE_NAME, networkId, ssid, data); in testBroadcastNetworkUmtsAuthRequestEvent()
301 assertEquals(ssid, authData.ssid); in testBroadcastNetworkUmtsAuthRequestEvent()
413 assertEquals(SSID, assocRejectEventInfo.ssid); in testBroadcastAssociationRejectionEvent()
469 String ssid = SSID; in testBroadcastNetworkDisconnectionEvent() local
472 WLAN_IFACE_NAME, local, reason, ssid, bssid); in testBroadcastNetworkDisconnectionEvent()
483 assertEquals(ssid, disconnectEventInfo.ssid); in testBroadcastNetworkDisconnectionEvent()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java114 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() local
115 assertThat(ssid).isNotNull(); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
116 ssid.setText("☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎"); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
128 final TextView ssid = mView.findViewById(R.id.ssid); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning() local
129 assertThat(ssid).isNotNull(); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
130 ssid.setText("123456789012345678901234567890"); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
136 ssid.setText("123"); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
145 final TextView ssid = mView.findViewById(R.id.ssid); in isSubmittable_noSSID_shouldReturnFalse() local
146 assertThat(ssid).isNotNull(); in isSubmittable_noSSID_shouldReturnFalse()
147 ssid.setText(""); in isSubmittable_noSSID_shouldReturnFalse()
[all …]
DWifiConfigController2Test.java152 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() local
153 assertThat(ssid).isNotNull(); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
154 ssid.setText("☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎☎"); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning()
166 final TextView ssid = mView.findViewById(R.id.ssid); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning() local
167 assertThat(ssid).isNotNull(); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
168 ssid.setText("123456789012345678901234567890"); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
174 ssid.setText("123"); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning()
183 final TextView ssid = mView.findViewById(R.id.ssid); in isSubmittable_noSSID_shouldReturnFalse() local
184 assertThat(ssid).isNotNull(); in isSubmittable_noSSID_shouldReturnFalse()
185 ssid.setText(""); in isSubmittable_noSSID_shouldReturnFalse()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiNetworkConfig.java59 WifiNetworkConfig(String security, String ssid, String preSharedKey, in WifiNetworkConfig() argument
62 mSsid = ssid; in WifiNetworkConfig()
94 final String ssid = intent.getStringExtra(WifiDppUtils.EXTRA_WIFI_SSID); in getValidConfigOrNull() local
102 return getValidConfigOrNull(security, ssid, preSharedKey, hiddenSsid, networkId, isHotspot); in getValidConfigOrNull()
105 static WifiNetworkConfig getValidConfigOrNull(String security, String ssid, in getValidConfigOrNull() argument
107 if (!isValidConfig(security, ssid, preSharedKey, hiddenSsid)) { in getValidConfigOrNull()
111 return new WifiNetworkConfig(security, ssid, preSharedKey, hiddenSsid, networkId, in getValidConfigOrNull()
124 static boolean isValidConfig(String security, String ssid, String preSharedKey, in isValidConfig() argument
132 if (!hiddenSsid && TextUtils.isEmpty(ssid)) { in isValidConfig()
DWifiDppUtils.java117 public static Intent getEnrolleeQrCodeScannerIntent(String ssid) { in getEnrolleeQrCodeScannerIntent() argument
120 if (!TextUtils.isEmpty(ssid)) { in getEnrolleeQrCodeScannerIntent()
121 intent.putExtra(EXTRA_WIFI_SSID, ssid); in getEnrolleeQrCodeScannerIntent()
302 final String ssid = removeFirstAndLastDoubleQuotes(softApConfiguration.getSsid()); in getHotspotConfiguratorIntentOrNull() local
319 if (!TextUtils.isEmpty(ssid)) { in getHotspotConfiguratorIntentOrNull()
320 intent.putExtra(EXTRA_WIFI_SSID, ssid); in getHotspotConfiguratorIntentOrNull()
347 final String ssid = removeFirstAndLastDoubleQuotes(wifiConfiguration.SSID); in setConfiguratorIntentExtra() local
355 if (!TextUtils.isEmpty(ssid)) { in setConfiguratorIntentExtra()
356 intent.putExtra(EXTRA_WIFI_SSID, ssid); in setConfiguratorIntentExtra()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DANQPNetworkKey.java37 public ANQPNetworkKey(String ssid, long bssid, long hessid, int anqpDomainID) { in ANQPNetworkKey() argument
38 mSSID = ssid; in ANQPNetworkKey()
59 public static ANQPNetworkKey buildKey(String ssid, long bssid, long hessid, int anqpDomainId) { in buildKey() argument
61 return new ANQPNetworkKey(ssid, bssid, 0, 0); in buildKey()
65 return new ANQPNetworkKey(ssid, 0, 0, anqpDomainId); in buildKey()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiSsid.java64 public static WifiSsid createFromByteArray(@Nullable byte[] ssid) { in createFromByteArray() argument
66 if (ssid != null) { in createFromByteArray()
67 wifiSsid.octets.write(ssid, 0 /* the start offset */, ssid.length); in createFromByteArray()
275 WifiSsid ssid = new WifiSsid();
279 ssid.octets.write(b, 0, length);
280 return ssid;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java385 String ssid = getSsid(); in updateConnectivityStatus() local
386 if (!TextUtils.equals(mWifiSsid, ssid)) { in updateConnectivityStatus()
387 mWifiSsid = ssid; in updateConnectivityStatus()
461 String ssid = null; in getSsid() local
463 ssid = wifiInfo.getSSID(); in getSsid()
464 if (ssid != null) { in getSsid()
465 ssid = sanitizeSsid(ssid); in getSsid()
468 return ssid; in getSsid()
DWifiConfigHelper.java77 public static void setConfigSsid(WifiConfiguration config, String ssid) { in setConfigSsid() argument
78 config.SSID = AccessPoint.convertToQuotedString(ssid); in setConfigSsid()
172 public static WifiConfiguration getConfiguration(Context context, String ssid, int security) { in getConfiguration() argument
173 WifiConfiguration config = getFromConfiguredNetworks(context, ssid, security); in getConfiguration()
178 setConfigSsid(config, ssid); in getConfiguration()
218 String ssid, in getFromConfiguredNetworks() argument
230 if (TextUtils.equals(configuredSsid, ssid)) { in getFromConfiguredNetworks()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java45 public static boolean isSSIDTooLong(String ssid) { in isSSIDTooLong() argument
46 if (TextUtils.isEmpty(ssid)) { in isSSIDTooLong()
49 return ssid.getBytes(StandardCharsets.UTF_8).length > SSID_ASCII_MAX_LENGTH; in isSSIDTooLong()
52 public static boolean isSSIDTooShort(String ssid) { in isSSIDTooShort() argument
53 if (TextUtils.isEmpty(ssid)) { in isSSIDTooShort()
56 return ssid.length() < SSID_ASCII_MIN_LENGTH; in isSSIDTooShort()

1234567