Home
last modified time | relevance | path

Searched refs:bssid (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/java/android/net/
DWifiKey.java53 public final String bssid; field in WifiKey
66 public WifiKey(String ssid, String bssid) { in WifiKey() argument
70 if (!BSSID_PATTERN.matcher(bssid).matches()) { in WifiKey()
71 throw new IllegalArgumentException("Invalid bssid: " + bssid); in WifiKey()
74 this.bssid = bssid; in WifiKey()
79 bssid = in.readString(); in WifiKey()
90 out.writeString(bssid); 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()
DWifiLinkQualityInfo.java101 public void setBssid(String bssid) { in setBssid() argument
102 mBssid = bssid; in setBssid()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLastResortWatchdog.java106 String bssid = scanResult.BSSID; in updateAvailableNetworks() local
108 if (VDBG) Log.v(TAG, " " + bssid + ": " + scanDetail.getSSID()); in updateAvailableNetworks()
111 mRecentAvailableNetworks.get(bssid); in updateAvailableNetworks()
139 mRecentAvailableNetworks.put(bssid, availableNetworkFailureCount); in updateAvailableNetworks()
182 public boolean noteConnectionFailureAndTriggerIfNeeded(String ssid, String bssid, int reason) { in noteConnectionFailureAndTriggerIfNeeded() argument
184 Log.v(TAG, "noteConnectionFailureAndTriggerIfNeeded: [" + ssid + ", " + bssid + ", " in noteConnectionFailureAndTriggerIfNeeded()
188 updateFailureCountForNetwork(ssid, bssid, reason); in noteConnectionFailureAndTriggerIfNeeded()
236 private void updateFailureCountForNetwork(String ssid, String bssid, int reason) { in updateFailureCountForNetwork() argument
238 Log.v(TAG, "updateFailureCountForNetwork: [" + ssid + ", " + bssid + ", " in updateFailureCountForNetwork()
241 if (BSSID_ANY.equals(bssid)) { in updateFailureCountForNetwork()
[all …]
DWnmData.java71 private WnmData(long bssid, String url, int method) { in WnmData() argument
72 mBssid = bssid; in WnmData()
80 private WnmData(long bssid, String url, boolean ess, int delay) { in WnmData() argument
81 mBssid = bssid; in WnmData()
DScanDetailCache.java67 ScanResult get(String bssid) { in get() argument
68 ScanDetail scanDetail = getScanDetail(bssid); in get()
72 ScanDetail getScanDetail(String bssid) { in getScanDetail() argument
73 return mMap.get(bssid); in getScanDetail()
76 void remove(String bssid) { in remove() argument
77 mMap.remove(bssid); in remove()
DWifiNative.java644 String bssid = ""; in getScanResults() local
661 bssid = new String(line.getBytes(), bssidStrLen, line.length() - bssidStrLen); in getScanResults()
697 if (bssid != null) { in getScanResults()
711 NetworkDetail networkDetail = new NetworkDetail(bssid, in getScanResults()
717 bssid, xssid, networkDetail.getSSID(), infoElementsStr)); in getScanResults()
723 ScanDetail scan = new ScanDetail(networkDetail, wifiSsid, bssid, flags, in getScanResults()
730 bssid = null; in getScanResults()
773 public String scanResult(String bssid) { in scanResult() argument
774 return doStringCommand("BSS " + bssid); in scanResult()
905 public boolean addToBlacklist(String bssid) { in addToBlacklist() argument
[all …]
DScanDetail.java45 public ScanDetail(NetworkDetail networkDetail, WifiSsid wifiSsid, String bssid, in ScanDetail() argument
49 mScanResult = new ScanResult(wifiSsid, bssid, networkDetail.getHESSID(), in ScanDetail()
68 public ScanDetail(WifiSsid wifiSsid, String bssid, String caps, int level, int frequency, in ScanDetail() argument
71 mScanResult = new ScanResult(wifiSsid, bssid, 0L, -1, null, caps, level, frequency, tsf); in ScanDetail()
DWifiConfigStore.java643 String bssid = config.getNetworkSelectionStatus().getNetworkSelectionBSSID(); in saveNetwork() local
644 if (!mWifiNative.setNetworkVariable(netId, WifiConfiguration.bssidVarName, bssid)) { in saveNetwork()
645 loge("failed to set BSSID: " + bssid); in saveNetwork()
966 public boolean setNetworkBSSID(WifiConfiguration config, String bssid) { in setNetworkBSSID() argument
975 bssid)) { in setNetworkBSSID()
979 config.getNetworkSelectionStatus().setNetworkSelectionBSSID(bssid); in setNetworkBSSID()
1153 public void blackListBssid(String bssid) { in blackListBssid() argument
1154 if (bssid == null) { in blackListBssid()
1157 if (VDBG) localLog("blackListBssid: " + bssid); in blackListBssid()
1158 mBssidBlacklist.add(bssid); in blackListBssid()
[all …]
DWifiStateMachine.java405 public void autoRoamSetBSSID(int netId, String bssid) { in autoRoamSetBSSID() argument
406 autoRoamSetBSSID(mWifiConfigManager.getWifiConfiguration(netId), bssid); in autoRoamSetBSSID() local
409 public boolean autoRoamSetBSSID(WifiConfiguration config, String bssid) { in autoRoamSetBSSID() argument
412 if (bssid == null) bssid = "any"; in autoRoamSetBSSID()
416 && bssid.equals(mTargetRoamBSSID) && bssid.equals(config.BSSID)) { in autoRoamSetBSSID()
419 if (!mTargetRoamBSSID.equals("any") && bssid.equals("any")) { in autoRoamSetBSSID()
426 bssid = config.BSSID; in autoRoamSetBSSID()
428 Log.d(TAG, "force BSSID to " + bssid + "due to config"); in autoRoamSetBSSID()
433 logd("autoRoamSetBSSID " + bssid + " key=" + config.configKey()); in autoRoamSetBSSID()
435 mTargetRoamBSSID = bssid; in autoRoamSetBSSID()
[all …]
DWifiMonitor.java880 long bssid = -1L; in dispatchEvent() local
886 bssid = Utils.parseMac( in dispatchEvent()
889 bssid = -1L; in dispatchEvent()
893 mLastConnectBSSIDs.put(iface, bssid); in dispatchEvent()
894 if (bssid == -1L) { in dispatchEvent()
1262 long bssid = Utils.parseMac(eventStr.substring(addrPos + ADDR_STRING.length(), eoaddr)); in handleAnqpResult() local
1266 sendMessage(iface, ANQP_DONE_EVENT, result, 0, bssid); in handleAnqpResult()
1281 String bssid = segments[1]; in handleIconResult() local
1285 new IconEvent(Utils.parseMac(bssid), fileName, size)); in handleIconResult()
DWifiNetworkScoreCache.java155 if (network.networkKey.wifiKey.bssid != null) { in buildNetworkKey()
156 key = key + network.networkKey.wifiKey.bssid; in buildNetworkKey()
DWifiQualifiedNetworkSelector.java618 public boolean enableBssidForQualityNetworkSelection(String bssid, boolean enable) { in enableBssidForQualityNetworkSelection() argument
620 return (mBssidBlacklist.remove(bssid) != null); in enableBssidForQualityNetworkSelection()
622 if (bssid != null) { in enableBssidForQualityNetworkSelection()
623 BssidBlacklistStatus status = mBssidBlacklist.get(bssid); in enableBssidForQualityNetworkSelection()
628 mBssidBlacklist.put(bssid, newStatus); in enableBssidForQualityNetworkSelection()
667 public boolean isBssidDisabled(String bssid) { in isBssidDisabled() argument
668 BssidBlacklistStatus status = mBssidBlacklist.get(bssid); in isBssidDisabled()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DIconCache.java245 private void initiateQuery(long bssid) { in initiateQuery() argument
246 LinkedList<QuerySet> queryEntries = mBssQueues.get(bssid); in initiateQuery()
250 mBssQueues.remove(bssid); in initiateQuery()
264 mBssQueues.remove(bssid); in initiateQuery()
273 mOSUManager.doIconQuery(bssid, queryEntry.getKey().getFileName()); in initiateQuery()
276 public void notifyIconReceived(long bssid, String fileName, byte[] iconData) { in notifyIconReceived() argument
278 fileName, iconData != null ? iconData.length : -1, bssid)); in notifyIconReceived()
283 LinkedList<QuerySet> querySets = mBssQueues.get(bssid); in notifyIconReceived()
287 bssid, fileName, iconData != null ? iconData.length : -1)); in notifyIconReceived()
305 bssid, fileName, iconData != null ? iconData.length : -1)); in notifyIconReceived()
[all …]
DOSUManager.java614 long bssid = Utils.parseMac(entry.getValue().BSSID); in updateOSUInfoCache() local
616 if (existing == null || existing.getBSSID() != bssid) { in updateOSUInfoCache()
672 … public void deauth(long bssid, boolean ess, int delay, String url) throws MalformedURLException { in deauth() argument
685 public void wnmRemediate(long bssid, String url, PasspointMatch match) in wnmRemediate() argument
698 if (wifiInfo == null || Utils.parseMac(wifiInfo.getBSSID()) != bssid) { in wnmRemediate()
791 public void notifyIconReceived(long bssid, String fileName, byte[] data) { in notifyIconReceived() argument
792 mIconCache.notifyIconReceived(bssid, fileName, data); in notifyIconReceived()
795 public void doIconQuery(long bssid, String fileName) { in doIconQuery() argument
796 mWifiNetworkAdapter.doIconQuery(bssid, fileName); in doIconQuery()
DOSUCache.java167 for (Long bssid : bssids) { in toBSSIDStrings()
168 sb.append(String.format(" %012x", bssid)); in toBSSIDStrings()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DAnqpCache.java36 private CacheKey(String ssid, long bssid, long hessid) { in CacheKey() argument
38 mBSSID = bssid; in CacheKey()
60 long bssid; in buildKey() local
64 bssid = network.getBSSID(); in buildKey()
69 bssid = 0L; in buildKey()
74 bssid = 0L; in buildKey()
78 return new CacheKey(ssid, bssid, hessid); in buildKey()
DIconEvent.java8 public IconEvent(long bssid, String fileName, int size) { in IconEvent() argument
9 mBSSID = bssid; in IconEvent()
DSupplicantBridge.java71 void notifyIconFailed(long bssid); in notifyIconFailed() argument
124 public boolean doIconQuery(long bssid, String fileName) { in doIconQuery() argument
126 Utils.macToString(bssid) + " " + fileName); in doIconQuery()
175 public void notifyANQPDone(Long bssid, boolean success) { in notifyANQPDone() argument
178 scanDetail = mRequestMap.remove(bssid); in notifyANQPDone()
183 mCallbacks.notifyIconFailed(bssid); in notifyANQPDone()
192 success ? "successful" : "failed", bssid, elements)); in notifyANQPDone()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DRttManagerTest.java65 return params1.bssid.equals(params2.bssid) in rttParamsEquals()
76 params.bssid = "12-34-56-78-9A-BC"; in testRttParamsReadWriteParcel()
81 params2.bssid = "12-34-56-78-9B-CD"; in testRttParamsReadWriteParcel()
DScanResults.java108 String bssid = generateBssid(r); in generateNativeResults() local
118 NetworkDetail nd = new NetworkDetail(bssid, ie, anqpLines, freq); in generateNativeResults()
120 bssid, "", rssi, freq, in generateNativeResults()
DAnqpCacheTest.java63 String bssid = String.format("%s:%02x", bssidPrefix, i); in NetworkDescription() local
67 NetworkDetail nd = new NetworkDetail(bssid, ie, in NetworkDescription()
70 bssid, "", sRSSIs[i], sChannels[i], Long.MAX_VALUE, ie, anqpLines); in NetworkDescription()
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp216 char bssid[32]; in createScanResult() local
217 sprintf(bssid, "%02x:%02x:%02x:%02x:%02x:%02x", result->bssid[0], result->bssid[1], in createScanResult()
218 result->bssid[2], result->bssid[3], result->bssid[4], result->bssid[5]); in createScanResult()
220 helper.setStringField(scanResult, "BSSID", bssid); in createScanResult()
699 const char *bssid = chars.c_str(); in parseMacAddress() local
700 if (bssid == NULL) { in parseMacAddress()
705 parseMacAddress(bssid, addr); in parseMacAddress()
808 const char *bssid = chars.c_str(); in android_net_wifi_setHotlist() local
809 if (bssid == NULL) { in android_net_wifi_setHotlist()
813 parseMacAddress(bssid, params.ap[i].bssid); in android_net_wifi_setHotlist()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java113 private String bssid; field in AccessPoint
340 return bssid; in getBssid()
495 String bssid = null; in getVisibilityStatus() local
500 bssid = mInfo.getBSSID(); in getVisibilityStatus()
501 if (bssid != null) { in getVisibilityStatus()
502 visibility.append(" ").append(bssid); in getVisibilityStatus()
545 if (bssid != null && result.BSSID.equals(bssid)) scans5GHz.append("*"); in getVisibilityStatus()
559 if (bssid != null && result.BSSID.equals(bssid)) scans24GHz.append("*"); in getVisibilityStatus()
677 bssid = config.BSSID; in loadConfig()
685 bssid = result.BSSID; in initWithScanResult()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiManager.aidl68 void queryPasspointIcon(long bssid, String fileName); in queryPasspointIcon() argument
138 void addToBlacklist(String bssid); in addToBlacklist() argument
DRttManager.java348 public String bssid; field in RttManager.RttParams
506 dest.writeString(params.bssid); in writeToParcel()
537 params[i].bssid = in.readString();
573 public String bssid; field in RttManager.RttResult
742 dest.writeString(result.bssid); in writeToParcel()
794 results[i].bssid = in.readString();
871 } else if(params.bssid == null || params.bssid.isEmpty()) { in rttParamSanity()

12