Home
last modified time | relevance | path

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

123

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLastResortWatchdog.java105 String ssid = "\"" + scanDetail.getSSID() + "\""; in updateAvailableNetworks() local
113 availableNetworkFailureCount.ssid = ssid; in updateAvailableNetworks()
117 mSsidFailureCount.get(ssid); in updateAvailableNetworks()
129 mSsidFailureCount.put(ssid, ssidFailsAndApCount); in updateAvailableNetworks()
150 String ssid = entry.getValue().ssid; in updateAvailableNetworks() local
152 mSsidFailureCount.get(ssid); in updateAvailableNetworks()
157 mSsidFailureCount.put(ssid, ssidFails); in updateAvailableNetworks()
159 mSsidFailureCount.remove(ssid); in updateAvailableNetworks()
164 + ssid); in updateAvailableNetworks()
180 public boolean noteConnectionFailureAndTriggerIfNeeded(String ssid, String bssid, int reason) { in noteConnectionFailureAndTriggerIfNeeded() argument
[all …]
DWifiNetworkHistory.java305 for (String ssid : deletedEphemeralSSIDs) { in writeKnownNetworkHistory()
307 out.writeUTF(ssid); in writeKnownNetworkHistory()
334 String ssid = null; in readNetworkHistory() local
387 ssid = value; in readNetworkHistory()
388 if (config.SSID != null && !config.SSID.equals(ssid)) { in readNetworkHistory()
391 ssid = null; in readNetworkHistory()
393 config.SSID = ssid; in readNetworkHistory()
488 ssid = null; in readNetworkHistory()
514 if ((bssid != null) && (ssid != null)) { in readNetworkHistory()
516 WifiSsid wssid = WifiSsid.createFromAsciiEncoded(ssid); in readNetworkHistory()
DConfigurationMap.java165 public WifiConfiguration getEphemeralForCurrentUser(String ssid) { in getEphemeralForCurrentUser() argument
167 if (ssid.equals(config.SSID) && config.ephemeral) { in getEphemeralForCurrentUser()
/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_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()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanDetailUtilTest.java43 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()
/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()
DConnectivityManagerTestBase.java319 protected boolean connectToWifi(String ssid, String password) { in connectToWifi() argument
322 config = WifiConfigurationHelper.createOpenConfig(ssid); in connectToWifi()
324 config = WifiConfigurationHelper.createPskConfig(ssid, password); in connectToWifi()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java26 public String ssid; field in WifiStatusTracker
50 ssid = getSsid(info); in handleBroadcast()
52 ssid = null; in handleBroadcast()
55 ssid = null; in handleBroadcast()
65 String ssid = info.getSSID(); in getSsid() local
66 if (ssid != null) { in getSsid()
67 return ssid; in getSsid()
DAccessPoint.java112 private String ssid; field in AccessPoint
137 ssid = savedState.getString(KEY_SSID); in AccessPoint()
195 return ssid.compareToIgnoreCase(other.ssid); in compareTo()
210 result += 29 * ssid.hashCode(); in hashCode()
217 .append(ssid); in toString()
237 return ssid.equals(result.SSID) && security == getSecurity(result); in matches()
244 return ssid.equals(removeDoubleQuotes(config.SSID)) in matches()
336 return ssid; in getSsidStr()
344 SpannableString str = new SpannableString(ssid); in getSsid()
345 str.setSpan(new TtsSpan.VerbatimBuilder(ssid).build(), 0, ssid.length(), in getSsid()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DWifiSignalController.java82 String wifiDesc = wifiVisible ? mCurrentState.ssid : null; in notifyListeners()
83 boolean ssidPresent = wifiVisible && mCurrentState.ssid != null; in notifyListeners()
105 mCurrentState.ssid = mWifiTracker.ssid; in handleBroadcast()
146 String ssid; field in WifiSignalController.WifiState
152 ssid = state.ssid; in copyFrom()
158 builder.append(',').append("ssid=").append(ssid); in toString()
164 && Objects.equals(((WifiState) o).ssid, ssid); in equals()
/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()
76 WifiConfiguration config = getConfig(ssid, securityType, password); in testWifiAssociation()
107 private WifiConfiguration getConfig(String ssid, SecurityType securityType, String password) { in getConfig() argument
113 config = WifiConfigurationHelper.createOpenConfig(ssid); in getConfig()
119 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig()
126 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig()
131 config = WifiConfigurationHelper.createPskConfig(ssid, password); in getConfig()
139 config = WifiConfigurationHelper.createPskConfig(ssid, password); in getConfig()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DAnqpCache.java36 private CacheKey(String ssid, long bssid, long hessid) { in CacheKey() argument
37 mSSID = ssid; in CacheKey()
59 String ssid; in buildKey() local
63 ssid = network.getSSID(); in buildKey()
68 ssid = null; in buildKey()
73 ssid = network.getSSID(); in buildKey()
78 return new CacheKey(ssid, bssid, hessid); in buildKey()
DNetworkDetail.java133 String ssid = null; in NetworkDetail() local
225 ssid = decoded.toString(); in NetworkDetail()
228 ssid = null; in NetworkDetail()
231 if (ssid == null) { in NetworkDetail()
236 ssid = new String(ssidOctets, StandardCharsets.ISO_8859_1); in NetworkDetail()
241 mSSID = ssid; in NetworkDetail()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java46 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() argument
49 config.SSID = ssid; in generateWifiConfig()
75 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() argument
78 WifiConfiguration config = generateWifiConfig(networkId, uid, ssid, shared, enabled, fqdn, in generateWifiConfig()
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()
DAnqpCacheTest.java59 NetworkDescription(String ssid, String bssidPrefix) { in NetworkDescription() argument
60 WifiSsid wifiSsid = WifiSsid.createFromAsciiEncoded(ssid); in NetworkDescription()
65 ie[0] = ScanResults.generateSsidIe(ssid); in NetworkDescription()
DWifiApConfigStoreTest.java83 String ssid, String preSharedKey, int keyManagement, int band, int channel) { in setupApConfig() argument
85 config.SSID = ssid; in setupApConfig()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java329 final String ssid = removeDoubleQuotes(config.SSID); in setMeteredWifiNetwork() local
330 if (id.equals(ssid)) { in setMeteredWifiNetwork()
331 final NetworkPolicy policy = newPolicy(ssid); in setMeteredWifiNetwork()
333 Log.i(TAG, "Creating new policy for " + ssid + ": " + policy); in setMeteredWifiNetwork()
365 for (String ssid : ssids) { in getWifiPolicies()
366 final NetworkPolicy policy = newPolicy(ssid); in getWifiPolicies()
372 private NetworkPolicy newPolicy(String ssid) { in newPolicy() argument
373 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(ssid); in newPolicy()
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/
DWifiTrackerTest.java315 private void addResult(List<ScanResult> results, String ssid, int level) { in addResult() argument
316 results.add(new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), in addResult()
317 ssid, ssid, levelToRssi(level), AccessPoint.LOWER_FREQ_24GHZ, 0)); in addResult()
328 private int addConfig(List<WifiConfiguration> configs, String ssid) { in addConfig() argument
331 config.SSID = '"' + ssid + '"'; in addConfig()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pGroupList.java153 public int getNetworkId(String deviceAddress, String ssid) { in getNetworkId() argument
154 if (deviceAddress == null || ssid == null) { in getNetworkId()
161 ssid.equals(grp.getNetworkName())) { in getNetworkId()
/frameworks/base/wifi/java/android/net/wifi/
DWifiSsid.java226 WifiSsid ssid = new WifiSsid();
230 ssid.octets.write(b, 0, length);
231 return ssid;
DWifiScanner.java522 public String ssid; field in WifiScanner.PnoSettings.PnoNetwork
535 public PnoNetwork(String ssid) { in PnoNetwork() argument
536 this.ssid = ssid; in PnoNetwork()
582 dest.writeString(networkList[i].ssid); in writeToParcel()
609 String ssid = in.readString();
610 PnoNetwork network = new PnoNetwork(ssid);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java174 String ssid = ""; // equals() and hashCode() need these to be non-null field in SettingsBackupAgent.Network
206 ssid = line; in rememberLine()
243 if (ssid == null) { in configKey()
248 final String bareSsid = ssid.substring(ssid.indexOf('=') + 1); in configKey()
302 return ssid.equals(other.ssid) && key_mgmt.equals(other.key_mgmt); in equals()
308 result = 31 * result + ssid.hashCode(); in hashCode()
346 + net.ssid + " / " + net.key_mgmt); in readNetworks()
354 … Log.v(TAG, "Skipping EAP network " + net.ssid + " / " + net.key_mgmt); in readNetworks()
360 Log.v(TAG, "Adding " + net.ssid + " / " + net.key_mgmt); in readNetworks()
366 Log.v(TAG, "Dupe; skipped " + net.ssid + " / " + net.key_mgmt); in readNetworks()
/frameworks/base/packages/Osu/src/com/android/anqp/
DOSUProvider.java31 public OSUProvider(String ssid, ByteBuffer payload) throws ProtocolException { in OSUProvider() argument
36 mSSID = ssid; in OSUProvider()

123