/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLastResortWatchdog.java | 105 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 …]
|
D | WifiNetworkHistory.java | 305 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()
|
D | ConfigurationMap.java | 165 public WifiConfiguration getEphemeralForCurrentUser(String ssid) { in getEphemeralForCurrentUser() argument 167 if (ssid.equals(config.SSID) && config.ephemeral) { in getEphemeralForCurrentUser()
|
/frameworks/base/core/java/android/net/ |
D | WifiKey.java | 46 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/ |
D | ScanDetailUtilTest.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()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 57 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 …]
|
D | ConnectivityManagerTestRunner.java | 58 String ssid = icicle.getString("ssid"); in onCreate() local 59 if (ssid != null) { in onCreate() 60 mSsid = ssid; in onCreate()
|
D | ConnectivityManagerTestBase.java | 319 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/ |
D | WifiStatusTracker.java | 26 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()
|
D | AccessPoint.java | 112 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/ |
D | WifiSignalController.java | 82 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/ |
D | WifiAssociationTest.java | 57 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/ |
D | AnqpCache.java | 36 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()
|
D | NetworkDetail.java | 133 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/ |
D | WifiConfigurationTestUtil.java | 46 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()
|
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()
|
D | AnqpCacheTest.java | 59 NetworkDescription(String ssid, String bssidPrefix) { in NetworkDescription() argument 60 WifiSsid wifiSsid = WifiSsid.createFromAsciiEncoded(ssid); in NetworkDescription() 65 ie[0] = ScanResults.generateSsidIe(ssid); in NetworkDescription()
|
D | WifiApConfigStoreTest.java | 83 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/ |
D | NetworkPolicyManagerShellCommand.java | 329 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/ |
D | WifiTrackerTest.java | 315 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/ |
D | WifiP2pGroupList.java | 153 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/ |
D | WifiSsid.java | 226 WifiSsid ssid = new WifiSsid(); 230 ssid.octets.write(b, 0, length); 231 return ssid;
|
D | WifiScanner.java | 522 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/ |
D | SettingsBackupAgent.java | 174 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/ |
D | OSUProvider.java | 31 public OSUProvider(String ssid, ByteBuffer payload) throws ProtocolException { in OSUProvider() argument 36 mSSID = ssid; in OSUProvider()
|