/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ScanResultUtilTest.java | 43 final String ssid = "SOME SsId"; in convertScanResult() local 45 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResult() 49 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResult() 59 final String ssid = "SOME SsId"; in convertScanResultWithAnqpLines() local 61 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResultWithAnqpLines() 65 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithAnqpLines() 76 final String ssid = "Another SSid"; in convertScanResultWithoutWifiSsid() local 77 ScanResult input = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "other caps", in convertScanResultWithoutWifiSsid() 80 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithoutWifiSsid() 90 final String ssid = "Another SSid"; in testNetworkCreationFromScanResult() local [all …]
|
/frameworks/base/core/java/android/net/ |
D | WifiKey.java | 48 public final String ssid; field in WifiKey 68 public WifiKey(String ssid, String bssid) { in WifiKey() argument 69 if (ssid == null || !SSID_PATTERN.matcher(ssid).matches()) { in WifiKey() 70 throw new IllegalArgumentException("Invalid ssid: " + ssid); in WifiKey() 75 this.ssid = ssid; in WifiKey() 80 ssid = in.readString(); in WifiKey() 91 out.writeString(ssid); in writeToParcel() 102 return Objects.equals(ssid, wifiKey.ssid) && Objects.equals(bssid, wifiKey.bssid); in equals() 107 return Objects.hash(ssid, bssid); in hashCode() 113 return "WifiKey[SSID=" + ssid + ",BSSID=" + bssid + "]"; in toString()
|
D | NetworkKey.java | 84 final String ssid = result.SSID; in createFromScanResult() local 85 if (TextUtils.isEmpty(ssid) || ssid.equals(WifiManager.UNKNOWN_SSID)) { in createFromScanResult() 94 final WifiKey wifiKey = new WifiKey(String.format("\"%s\"", ssid), bssid); in createFromScanResult() 113 final String ssid = wifiInfo.getSSID(); in createFromWifiInfo() local 115 if (!TextUtils.isEmpty(ssid) && !ssid.equals(WifiManager.UNKNOWN_SSID) in createFromWifiInfo() 119 wifiKey = new WifiKey(ssid, bssid); in createFromWifiInfo()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLastResortWatchdog.java | 222 String ssid = "\"" + scanDetail.getSSID() + "\""; in updateAvailableNetworks() local 232 availableNetworkFailureCount.ssid = ssid; in updateAvailableNetworks() 236 mSsidFailureCount.get(ssid); in updateAvailableNetworks() 255 mSsidFailureCount.put(ssid, ssidFailsAndApCount); in updateAvailableNetworks() 276 String ssid = entry.getValue().ssid; in updateAvailableNetworks() local 278 mSsidFailureCount.get(ssid); in updateAvailableNetworks() 283 mSsidFailureCount.put(ssid, ssidFails); in updateAvailableNetworks() 285 mSsidFailureCount.remove(ssid); in updateAvailableNetworks() 288 Log.d(TAG, "updateAvailableNetworks: SSID to AP count mismatch for " + ssid); in updateAvailableNetworks() 303 public boolean noteConnectionFailureAndTriggerIfNeeded(String ssid, String bssid, int reason) { in noteConnectionFailureAndTriggerIfNeeded() argument [all …]
|
D | WrongPasswordNotifier.java | 61 public void onWrongPasswordError(String ssid) { in onWrongPasswordError() argument 62 showNotification(ssid); in onWrongPasswordError() 81 private void showNotification(String ssid) { in showNotification() argument 83 intent.putExtra("wifi_start_connect_ssid", NativeUtil.removeEnclosingQuotes(ssid)); in showNotification() 92 .setContentText(ssid) in showNotification()
|
D | CarrierNetworkConfig.java | 99 public boolean isCarrierNetwork(String ssid) { in isCarrierNetwork() argument 100 return mCarrierNetworkMap.containsKey(ssid); in isCarrierNetwork() 107 public int getNetworkEapType(String ssid) { in getNetworkEapType() argument 108 NetworkInfo info = mCarrierNetworkMap.get(ssid); in getNetworkEapType() 116 public String getCarrierName(String ssid) { in getCarrierName() argument 117 NetworkInfo info = mCarrierNetworkMap.get(ssid); in getCarrierName() 246 String ssid = new String(Base64.decode( in processNetworkConfig() local 255 mCarrierNetworkMap.put(ssid, new NetworkInfo(eapType, carrierName)); in processNetworkConfig()
|
D | WifiScoreCard.java | 165 final long groupIdHash = computeHashLong(perBssid.ssid, mDummyPerBssid.bssid); in getL2KeyAndGroupHint() 369 public final String ssid; field in WifiScoreCard.PerBssid 377 PerBssid(String ssid, MacAddress bssid) { in PerBssid() argument 378 this.ssid = ssid; in PerBssid() 380 final long hash = computeHashLong(ssid, bssid); in PerBssid() 518 @NonNull PerBssid lookupBssid(String ssid, String bssid) { in lookupBssid() argument 520 if (ssid == null || WifiSsid.NONE.equals(ssid) || bssid == null) { in lookupBssid() 529 if (ans == null || !ans.ssid.equals(ssid)) { in lookupBssid() 530 ans = new PerBssid(ssid, mac); in lookupBssid() 583 private long computeHashLong(String ssid, MacAddress mac) { in computeHashLong() argument [all …]
|
D | WifiConfigurationUtil.java | 335 private static boolean validateSsid(String ssid, boolean isAdd) { in validateSsid() argument 337 if (ssid == null) { in validateSsid() 342 if (ssid == null) { in validateSsid() 347 if (ssid.isEmpty()) { in validateSsid() 351 if (ssid.startsWith("\"")) { in validateSsid() 353 byte[] ssidBytes = ssid.getBytes(StandardCharsets.UTF_8); in validateSsid() 366 if (ssid.length() < SSID_HEX_MIN_LEN) { in validateSsid() 367 Log.e(TAG, "validateSsid failed: hex string size too small: " + ssid.length()); in validateSsid() 370 if (ssid.length() > SSID_HEX_MAX_LEN) { in validateSsid() 371 Log.e(TAG, "validateSsid failed: hex string size too large: " + ssid.length()); in validateSsid() [all …]
|
D | ConnectionFailureNotificationBuilder.java | 71 String ssid = config.SSID; in buildNoMacRandomizationSupportNotification() local 74 R.string.wifi_cannot_connect_with_randomized_mac_title, ssid); in buildNoMacRandomizationSupportNotification() 106 String ssid, DialogInterface.OnClickListener onUserConfirm) { in buildChangeMacRandomizationSettingDialog() argument 111 R.string.wifi_disable_mac_randomization_dialog_message, ssid)) in buildChangeMacRandomizationSettingDialog()
|
D | AvailableNetworkNotifier.java | 347 public void handleWifiConnected(String ssid) { in handleWifiConnected() argument 348 removeNetworkFromBlacklist(ssid); in handleWifiConnected() 461 private void addNetworkToBlacklist(String ssid) { in addNetworkToBlacklist() argument 462 mBlacklistedSsids.add(ssid); in addNetworkToBlacklist() 466 + "\"" + ssid + "\""); in addNetworkToBlacklist() 469 private void removeNetworkFromBlacklist(String ssid) { in removeNetworkFromBlacklist() argument 470 if (ssid == null) { in removeNetworkFromBlacklist() 473 if (!mBlacklistedSsids.remove(ssid)) { in removeNetworkFromBlacklist() 479 + "\"" + ssid + "\""); in removeNetworkFromBlacklist()
|
D | NetworkRequestStoreData.java | 177 XmlUtil.writeNextValue(out, XML_TAG_ACCESS_POINT_SSID, approvedAccessPoint.ssid); in serializeApprovedAccessPoint() 246 String ssid = null; in parseApprovedAccessPoint() local 259 ssid = (String) value; in parseApprovedAccessPoint() 272 if (ssid == null) { in parseApprovedAccessPoint() 281 return new AccessPoint(ssid, bssid, networkType); in parseApprovedAccessPoint()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/ |
D | HiddenNetwork.java | 32 public byte[] ssid; field in HiddenNetwork 45 return Arrays.equals(ssid, network.ssid); in equals() 51 return Arrays.hashCode(ssid); in hashCode() 66 out.writeByteArray(ssid); in writeToParcel() 78 result.ssid = in.createByteArray();
|
D | PnoNetwork.java | 33 public byte[] ssid; field in PnoNetwork 47 return Arrays.equals(ssid, network.ssid) in equals() 57 Arrays.hashCode(ssid), in hashCode() 74 out.writeByteArray(ssid); in writeToParcel() 85 result.ssid = in.createByteArray();
|
D | NativeScanResult.java | 33 public byte[] ssid; field in NativeScanResult 48 ssid = source.ssid.clone(); in NativeScanResult() 67 out.writeByteArray(ssid); in writeToParcel() 90 result.ssid = in.createByteArray();
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | WifiAssociationTest.java | 57 String ssid = arguments.getString("ssid"); in testWifiAssociation() local 58 assertNotNull("ssid is empty", ssid); in testWifiAssociation() 71 WifiConfiguration config = getConfig(ssid, securityType, password); in testWifiAssociation() 80 private WifiConfiguration getConfig(String ssid, SecurityType securityType, String password) { in getConfig() argument 86 config = WifiConfigurationHelper.createOpenConfig(ssid); in getConfig() 92 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig() 99 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig() 104 config = WifiConfigurationHelper.createPskConfig(ssid, password); in getConfig() 112 config = WifiConfigurationHelper.createPskConfig(ssid, password); in getConfig()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 58 public static WifiConfiguration createOpenConfig(String ssid) { in createOpenConfig() argument 59 WifiConfiguration config = createGenericConfig(ssid); in createOpenConfig() 72 public static WifiConfiguration createWepConfig(String ssid, String password) { in createWepConfig() argument 73 WifiConfiguration config = createGenericConfig(ssid); in createWepConfig() 94 public static WifiConfiguration createPskConfig(String ssid, String password) { in createPskConfig() argument 95 WifiConfiguration config = createGenericConfig(ssid); in createPskConfig() 119 public static WifiConfiguration createEapConfig(String ssid, String password, int eapMethod, in createEapConfig() argument 123 config.SSID = quotedString(ssid); in createEapConfig() 148 private static WifiConfiguration createGenericConfig(String ssid) { in createGenericConfig() argument 150 config.SSID = quotedString(ssid); in createGenericConfig() [all …]
|
D | ConnectivityManagerTestRunner.java | 58 String ssid = icicle.getString("ssid"); in onCreate() local 59 if (ssid != null) { in onCreate() 60 mSsid = ssid; in onCreate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | WifiSignalController.java | 89 String wifiDesc = wifiVisible ? mCurrentState.ssid : null; in notifyListeners() 90 boolean ssidPresent = wifiVisible && mCurrentState.ssid != null; in notifyListeners() 110 mCurrentState.ssid = mWifiTracker.ssid; in handleBroadcast() 142 String ssid; field in WifiSignalController.WifiState 150 ssid = state.ssid; in copyFrom() 158 builder.append(",ssid=").append(ssid) in toString() 169 return Objects.equals(other.ssid, ssid) in equals()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | ANQPNetworkKey.java | 37 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()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | AccessPointPreferenceTest.java | 62 final String ssid = "ssid"; in refresh_openNetwork_updateContentDescription() local 66 .setSsid(ssid) in refresh_openNetwork_updateContentDescription() 70 when(pref.getTitle()).thenReturn(ssid); in refresh_openNetwork_updateContentDescription() 92 final String ssid = "ssid"; in refresh_setTitle_shouldUseSsidString() local 96 .setSsid(ssid) in refresh_setTitle_shouldUseSsidString() 102 verify(preference).setTitle(ssid); in refresh_setTitle_shouldUseSsidString()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 74 public String ssid; field in WifiStatusTracker 118 ssid = null; in handleBroadcast() 123 ssid = mWifiInfo.getPasspointProviderFriendlyName(); in handleBroadcast() 125 ssid = getValidSsid(mWifiInfo); in handleBroadcast() 191 String ssid = info.getSSID(); in getValidSsid() local 192 if (ssid != null && !WifiSsid.NONE.equals(ssid)) { in getValidSsid() 193 return ssid; in getValidSsid()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiSsid.java | 56 public static WifiSsid createFromByteArray(byte ssid[]) { in createFromByteArray() argument 58 if (ssid != null) { in createFromByteArray() 59 wifiSsid.octets.write(ssid, 0/* the start offset */, ssid.length);; in createFromByteArray() 260 WifiSsid ssid = new WifiSsid(); 264 ssid.octets.write(b, 0, length); 265 return ssid;
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationTestUtil.java | 106 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() argument 109 config.SSID = ssid; in generateWifiConfig() 132 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() argument 135 WifiConfiguration config = generateWifiConfig(networkId, uid, ssid, shared, enabled, fqdn, in generateWifiConfig() 238 String ssid = TEST_SSID + sNetworkIndex++; in createNewSSID() local 239 assertTrue(ssid.length() <= MAX_SSID_LENGTH); in createNewSSID() 240 return "\"" + ssid + "\""; in createNewSSID() 251 public static WifiConfiguration createOweNetwork(String ssid) { in createOweNetwork() argument 252 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOweNetwork() 260 public static WifiConfiguration createOpenNetwork(String ssid) { in createOpenNetwork() argument [all …]
|
D | ScanResults.java | 83 public static ScanResult.InformationElement generateSsidIe(String ssid) { in generateSsidIe() argument 86 ie.bytes = ssid.getBytes(Charset.forName("UTF-8")); in generateSsidIe() 107 String ssid = new BigInteger(128, r).toString(36); in generateNativeResults() local 113 ie[0] = generateSsidIe(ssid); in generateNativeResults() 119 ScanDetail detail = new ScanDetail(nd, WifiSsid.createFromAsciiEncoded(ssid), in generateNativeResults()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkTemplateTest.kt | 55 private fun buildWifiNetworkState(ssid: String): NetworkState = in buildMobileNetworkState() 56 buildNetworkState(TYPE_WIFI, ssid = ssid) in buildMobileNetworkState() 61 ssid: String? = null in buildMobileNetworkState() 71 return NetworkState(info, lp, caps, mock(Network::class.java), subscriberId, ssid) in buildMobileNetworkState()
|