Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/net/
DWifiKey.java46 public final String ssid; field in WifiKey
66 public WifiKey(String ssid, String bssid) { in WifiKey() argument
67 if (ssid == null || !SSID_PATTERN.matcher(ssid).matches()) { in WifiKey()
68 throw new IllegalArgumentException("Invalid ssid: " + ssid); in WifiKey()
73 this.ssid = ssid; in WifiKey()
78 ssid = in.readString(); in WifiKey()
89 out.writeString(ssid); in writeToParcel()
100 return Objects.equals(ssid, wifiKey.ssid) && Objects.equals(bssid, wifiKey.bssid); in equals()
105 return Objects.hash(ssid, bssid); in hashCode()
110 return "WifiKey[SSID=" + ssid + ",BSSID=" + bssid + "]"; in toString()
DNetworkKey.java72 final String ssid = result.wifiSsid.toString(); in createFromScanResult() local
74 if (!TextUtils.isEmpty(ssid) && !ssid.equals(WifiSsid.NONE) in createFromScanResult()
78 wifiKey = new WifiKey(String.format("\"%s\"", ssid), bssid); in createFromScanResult()
100 final String ssid = wifiInfo.getSSID(); in createFromWifiInfo() local
102 if (!TextUtils.isEmpty(ssid) && !ssid.equals(WifiSsid.NONE) in createFromWifiInfo()
106 wifiKey = new WifiKey(ssid, bssid); in createFromWifiInfo()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLastResortWatchdog.java129 String ssid = "\"" + scanDetail.getSSID() + "\""; in updateAvailableNetworks() local
139 availableNetworkFailureCount.ssid = ssid; in updateAvailableNetworks()
143 mSsidFailureCount.get(ssid); in updateAvailableNetworks()
155 mSsidFailureCount.put(ssid, ssidFailsAndApCount); in updateAvailableNetworks()
176 String ssid = entry.getValue().ssid; in updateAvailableNetworks() local
178 mSsidFailureCount.get(ssid); in updateAvailableNetworks()
183 mSsidFailureCount.put(ssid, ssidFails); in updateAvailableNetworks()
185 mSsidFailureCount.remove(ssid); in updateAvailableNetworks()
188 Log.d(TAG, "updateAvailableNetworks: SSID to AP count mismatch for " + ssid); in updateAvailableNetworks()
203 public boolean noteConnectionFailureAndTriggerIfNeeded(String ssid, String bssid, int reason) { in noteConnectionFailureAndTriggerIfNeeded() argument
[all …]
DCarrierNetworkConfig.java85 public boolean isCarrierNetwork(String ssid) { in isCarrierNetwork() argument
86 return mCarrierNetworkMap.containsKey(ssid); in isCarrierNetwork()
93 public int getNetworkEapType(String ssid) { in getNetworkEapType() argument
94 NetworkInfo info = mCarrierNetworkMap.get(ssid); in getNetworkEapType()
102 public String getCarrierName(String ssid) { in getCarrierName() argument
103 NetworkInfo info = mCarrierNetworkMap.get(ssid); in getCarrierName()
217 String ssid = new String(Base64.decode( in processNetworkConfig() local
225 mCarrierNetworkMap.put(ssid, new NetworkInfo(eapType, carrierName)); in processNetworkConfig()
DWrongPasswordNotifier.java61 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()
DWifiConfigurationUtil.java269 private static boolean validateSsid(String ssid, boolean isAdd) { in validateSsid() argument
271 if (ssid == null) { in validateSsid()
276 if (ssid == null) { in validateSsid()
281 if (ssid.isEmpty()) { in validateSsid()
285 if (ssid.startsWith("\"")) { in validateSsid()
287 byte[] ssidBytes = ssid.getBytes(StandardCharsets.UTF_8); in validateSsid()
300 if (ssid.length() < SSID_HEX_MIN_LEN) { in validateSsid()
301 Log.e(TAG, "validateSsid failed: hex string size too small: " + ssid.length()); in validateSsid()
304 if (ssid.length() > SSID_HEX_MAX_LEN) { in validateSsid()
305 Log.e(TAG, "validateSsid failed: hex string size too large: " + ssid.length()); in validateSsid()
[all …]
DWifiApConfigStore.java290 private static boolean validateApConfigSsid(String ssid) { in validateApConfigSsid() argument
291 if (TextUtils.isEmpty(ssid)) { in validateApConfigSsid()
296 if (ssid.length() < SSID_MIN_LEN || ssid.length() > SSID_MAX_LEN) { in validateApConfigSsid()
303 ssid.getBytes(StandardCharsets.UTF_8); in validateApConfigSsid()
305 Log.e(TAG, "softap config SSID verification failed: malformed string " + ssid); in validateApConfigSsid()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java42 final String ssid = "SOME SsId"; in convertScanResult() local
44 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResult()
48 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResult()
58 final String ssid = "SOME SsId"; in convertScanResultWithAnqpLines() local
60 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResultWithAnqpLines()
64 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithAnqpLines()
75 final String ssid = "Another SSid"; in convertScanResultWithoutWifiSsid() local
76 ScanResult input = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "other caps", in convertScanResultWithoutWifiSsid()
79 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithoutWifiSsid()
89 final String ssid = "Another SSid"; in testNetworkCreationFromScanResult() local
[all …]
DNativeUtilTest.java182 String ssid = "\"ssid_test123\""; in testSsidEncodeDecode() local
183 assertEquals(ssid, NativeUtil.encodeSsid(NativeUtil.decodeSsid(ssid))); in testSsidEncodeDecode()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/
DHiddenNetwork.java32 public byte[] ssid; field in HiddenNetwork
45 return java.util.Arrays.equals(ssid, network.ssid); in equals()
51 return Objects.hash(ssid); in hashCode()
66 out.writeByteArray(ssid); in writeToParcel()
78 result.ssid = in.createByteArray();
DPnoNetwork.java32 public byte[] ssid; field in PnoNetwork
45 return java.util.Arrays.equals(ssid, network.ssid) in equals()
52 return Objects.hash(isHidden, ssid); in hashCode()
68 out.writeByteArray(ssid); in writeToParcel()
78 result.ssid = in.createByteArray();
DNativeScanResult.java33 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/
DWifiConfigurationHelper.java57 public static WifiConfiguration createOpenConfig(String ssid) { in createOpenConfig() argument
58 WifiConfiguration config = createGenericConfig(ssid); in createOpenConfig()
71 public static WifiConfiguration createWepConfig(String ssid, String password) { in createWepConfig() argument
72 WifiConfiguration config = createGenericConfig(ssid); in createWepConfig()
93 public static WifiConfiguration createPskConfig(String ssid, String password) { in createPskConfig() argument
94 WifiConfiguration config = createGenericConfig(ssid); in createPskConfig()
118 public static WifiConfiguration createEapConfig(String ssid, String password, int eapMethod, in createEapConfig() argument
122 config.SSID = quotedString(ssid); in createEapConfig()
147 private static WifiConfiguration createGenericConfig(String ssid) { in createGenericConfig() argument
149 config.SSID = quotedString(ssid); in createGenericConfig()
[all …]
DConnectivityManagerTestRunner.java58 String ssid = icicle.getString("ssid"); in onCreate() local
59 if (ssid != null) { in onCreate()
60 mSsid = ssid; in onCreate()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DWifiAssociationTest.java57 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DWifiSignalController.java90 String wifiDesc = wifiVisible ? mCurrentState.ssid : null; in notifyListeners()
91 boolean ssidPresent = wifiVisible && mCurrentState.ssid != null; in notifyListeners()
111 mCurrentState.ssid = mWifiTracker.ssid; in handleBroadcast()
162 String ssid; field in WifiSignalController.WifiState
170 ssid = state.ssid; in copyFrom()
178 builder.append(",ssid=").append(ssid) in toString()
189 return Objects.equals(other.ssid, ssid) in equals()
/frameworks/opt/net/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()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DAccessPointPreferenceTest.java62 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/
DWifiStatusTracker.java72 public String ssid; field in WifiStatusTracker
113 ssid = null; in handleBroadcast()
117 ssid = getValidSsid(mWifiInfo); in handleBroadcast()
167 String ssid = info.getSSID(); in getValidSsid() local
168 if (ssid != null && !WifiSsid.NONE.equals(ssid)) { in getValidSsid()
169 return ssid; in getValidSsid()
DAccessPoint.java183 private String ssid; field in AccessPoint
230 ssid = savedState.getString(KEY_SSID); in AccessPoint()
310 ssid = firstResult.SSID; in AccessPoint()
328 ssid = (config.SSID == null ? "" : removeDoubleQuotes(config.SSID)); in loadConfig()
415 result += 29 * ssid.hashCode(); in hashCode()
422 .append(ssid); in toString()
527 Log.i(TAG, String.format("%s: Set speed to %d", ssid, mSpeed)); in updateSpeed()
621 return ssid.equals(removeDoubleQuotes(config.SSID)) && config.FQDN.equals(mConfig.FQDN); in matches()
623 return ssid.equals(removeDoubleQuotes(config.SSID)) in matches()
751 return ssid; in getSsidStr()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiSsid.java53 public static WifiSsid createFromByteArray(byte ssid[]) { in createFromByteArray() argument
55 if (ssid != null) { in createFromByteArray()
56 wifiSsid.octets.write(ssid, 0/* the start offset */, ssid.length);; in createFromByteArray()
252 WifiSsid ssid = new WifiSsid();
256 ssid.octets.write(b, 0, length);
257 return ssid;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java102 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() argument
105 config.SSID = ssid; in generateWifiConfig()
128 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() argument
131 WifiConfiguration config = generateWifiConfig(networkId, uid, ssid, shared, enabled, fqdn, in generateWifiConfig()
218 String ssid = TEST_SSID + sNetworkIndex++; in createNewSSID() local
219 assertTrue(ssid.length() <= MAX_SSID_LENGTH); in createNewSSID()
220 return "\"" + ssid + "\""; in createNewSSID()
231 public static WifiConfiguration createOpenNetwork(String ssid) { in createOpenNetwork() argument
232 return generateWifiConfig(TEST_NETWORK_ID, TEST_UID, ssid, true, true, null, in createOpenNetwork()
256 public static WifiConfiguration createPskNetwork(String ssid) { in createPskNetwork() argument
[all …]
DScanResults.java83 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/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java88 public static String createQuotedSSID(String ssid) { in createQuotedSSID() argument
89 return "\"" + ssid + "\""; in createQuotedSSID()
142 String ssid = r.SSID == null ? "" : r.SSID; in dumpScanResults() local
159 String.format("%1.32s", ssid), in dumpScanResults()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/
DNativeScanResultTest.java60 scanResult.ssid = TEST_SSID; in canSerializeAndDeserialize()
77 assertArrayEquals(scanResult.ssid, scanResultDeserialized.ssid); in canSerializeAndDeserialize()

12345