/frameworks/base/core/java/android/net/ |
D | WifiKey.java | 53 public final String bssid; field in WifiKey 66 public WifiKey(String ssid, String bssid) { in WifiKey() argument 70 if (bssid == null || !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()
|
D | NetworkKey.java | 73 final String bssid = result.BSSID; in createFromScanResult() local 75 && !TextUtils.isEmpty(bssid)) { in createFromScanResult() 78 wifiKey = new WifiKey(String.format("\"%s\"", ssid), bssid); in createFromScanResult() 101 final String bssid = wifiInfo.getBSSID(); in createFromWifiInfo() local 103 && !TextUtils.isEmpty(bssid)) { in createFromWifiInfo() 106 wifiKey = new WifiKey(ssid, bssid); in createFromWifiInfo()
|
D | WifiLinkQualityInfo.java | 101 public void setBssid(String bssid) { in setBssid() argument 102 mBssid = bssid; in setBssid()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManager.java | 119 public boolean requestANQPElements(long bssid, ANQPNetworkKey anqpNetworkKey, boolean rcOIs, in requestANQPElements() argument 122 if (!canSendRequestNow(bssid)) { in requestANQPElements() 127 if (!mPasspointHandler.requestANQP(bssid, getRequestElementIDs(rcOIs, hsReleaseR2))) { in requestANQPElements() 133 updateHoldOffInfo(bssid); in requestANQPElements() 135 mPendingQueries.put(bssid, anqpNetworkKey); in requestANQPElements() 146 public ANQPNetworkKey onRequestCompleted(long bssid, boolean success) { in onRequestCompleted() argument 149 mHoldOffInfo.remove(bssid); in onRequestCompleted() 151 return mPendingQueries.remove(bssid); in onRequestCompleted() 160 private boolean canSendRequestNow(long bssid) { in canSendRequestNow() argument 162 HoldOffInfo info = mHoldOffInfo.get(bssid); in canSendRequestNow() [all …]
|
D | PasspointEventHandler.java | 50 void onANQPResponse(long bssid, in onANQPResponse() argument 60 void onIconResponse(long bssid, String filename, byte[] data); in onIconResponse() argument 80 public boolean requestANQP(long bssid, List<Constants.ANQPElementType> elements) { in requestANQP() argument 82 if (bssid == 0 || querySets == null) return false; in requestANQP() 85 Utils.macToString(bssid), querySets.first, querySets.second)) { in requestANQP() 86 Log.d(Utils.hs2LogTag(getClass()), "ANQP failed on " + Utils.macToString(bssid)); in requestANQP() 89 Log.d(Utils.hs2LogTag(getClass()), "ANQP initiated on " + Utils.macToString(bssid)); in requestANQP() 99 public boolean requestIcon(long bssid, String fileName) { in requestIcon() argument 100 if (bssid == 0 || fileName == null) return false; in requestIcon() 102 mSupplicantHook.getClientInterfaceName(), Utils.macToString(bssid), fileName); in requestIcon()
|
D | WnmData.java | 33 public WnmData(long bssid, String url, int method) { in WnmData() argument 34 mBssid = bssid; in WnmData() 42 public WnmData(long bssid, String url, boolean ess, int delay) { in WnmData() argument 43 mBssid = bssid; in WnmData()
|
D | ANQPNetworkKey.java | 37 public ANQPNetworkKey(String ssid, long bssid, long hessid, int anqpDomainID) { in ANQPNetworkKey() argument 39 mBSSID = bssid; 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()
|
D | PasspointManager.java | 116 public void onANQPResponse(long bssid, in onANQPResponse() argument 120 mAnqpRequestManager.onRequestCompleted(bssid, anqpElements != null); in onANQPResponse() 132 public void onIconResponse(long bssid, String fileName, byte[] data) { in onIconResponse() argument 135 intent.putExtra(EXTRA_BSSID_LONG, bssid); in onIconResponse() 393 long bssid; in getAllMatchedProviders() local 395 bssid = Utils.parseMac(scanResult.BSSID); in getAllMatchedProviders() 400 ANQPNetworkKey anqpKey = ANQPNetworkKey.buildKey(scanResult.SSID, bssid, scanResult.hessid, in getAllMatchedProviders() 405 mAnqpRequestManager.requestANQPElements(bssid, anqpKey, in getAllMatchedProviders() 493 public boolean queryPasspointIcon(long bssid, String fileName) { in queryPasspointIcon() argument 494 return mHandler.requestIcon(bssid, fileName); in queryPasspointIcon() [all …]
|
D | IconEvent.java | 9 public IconEvent(long bssid, String fileName, int size, byte[] data) { in IconEvent() argument 10 mBSSID = bssid; in IconEvent()
|
D | AnqpEvent.java | 56 public AnqpEvent(long bssid, Map<Constants.ANQPElementType, ANQPElement> elements) { in AnqpEvent() argument 57 mBssid = bssid; in AnqpEvent()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLastResortWatchdog.java | 128 String bssid = scanResult.BSSID; in updateAvailableNetworks() local 131 Log.v(TAG, " " + bssid + ": " + scanDetail.getSSID()); in updateAvailableNetworks() 135 mRecentAvailableNetworks.get(bssid); in updateAvailableNetworks() 163 mRecentAvailableNetworks.put(bssid, availableNetworkFailureCount); in updateAvailableNetworks() 203 public boolean noteConnectionFailureAndTriggerIfNeeded(String ssid, String bssid, int reason) { in noteConnectionFailureAndTriggerIfNeeded() argument 205 Log.v(TAG, "noteConnectionFailureAndTriggerIfNeeded: [" + ssid + ", " + bssid + ", " in noteConnectionFailureAndTriggerIfNeeded() 210 updateFailureCountForNetwork(ssid, bssid, reason); in noteConnectionFailureAndTriggerIfNeeded() 287 private void updateFailureCountForNetwork(String ssid, String bssid, int reason) { in updateFailureCountForNetwork() argument 289 Log.v(TAG, "updateFailureCountForNetwork: [" + ssid + ", " + bssid + ", " in updateFailureCountForNetwork() 292 if (BSSID_ANY.equals(bssid)) { in updateFailureCountForNetwork() [all …]
|
D | SupplicantStaIfaceHal.java | 728 String bssid = config.getNetworkSelectionStatus().getNetworkSelectionBSSID(); in roamToNetwork() local 729 logd("roamToNetwork" + config.configKey() + " (bssid " + bssid + ")"); in roamToNetwork() 733 if (networkHandle == null || !networkHandle.setBssid(bssid)) { in roamToNetwork() 1537 public boolean initiateAnqpQuery(@NonNull String ifaceName, String bssid, in initiateAnqpQuery() argument 1544 NativeUtil.macAddressToByteArray(bssid), infoElements, hs20SubTypes); in initiateAnqpQuery() 1546 Log.e(TAG, "Illegal argument " + bssid, e); in initiateAnqpQuery() 1578 public boolean initiateHs20IconQuery(@NonNull String ifaceName, String bssid, String fileName) { in initiateHs20IconQuery() argument 1582 ifaceName, NativeUtil.macAddressToByteArray(bssid), fileName); in initiateHs20IconQuery() 1584 Log.e(TAG, "Illegal argument " + bssid, e); in initiateHs20IconQuery() 1898 private boolean startWpsRegistrar(@NonNull String ifaceName, byte[/* 6 */] bssid, String pin) { in startWpsRegistrar() argument [all …]
|
D | WifiMonitor.java | 468 String bssid) { in broadcastAssociationRejectionEvent() argument 469 sendMessage(iface, ASSOCIATION_REJECTION_EVENT, timedOut ? 1 : 0, status, bssid); in broadcastAssociationRejectionEvent() 478 public void broadcastAssociatedBssidEvent(String iface, String bssid) { in broadcastAssociatedBssidEvent() argument 479 sendMessage(iface, WifiStateMachine.CMD_ASSOCIATED_BSSID, 0, 0, bssid); in broadcastAssociatedBssidEvent() 488 public void broadcastTargetBssidEvent(String iface, String bssid) { in broadcastTargetBssidEvent() argument 489 sendMessage(iface, WifiStateMachine.CMD_TARGET_BSSID, 0, 0, bssid); in broadcastTargetBssidEvent() 499 public void broadcastNetworkConnectionEvent(String iface, int networkId, String bssid) { in broadcastNetworkConnectionEvent() argument 500 sendMessage(iface, NETWORK_CONNECTION_EVENT, networkId, 0, bssid); in broadcastNetworkConnectionEvent() 512 String bssid) { in broadcastNetworkDisconnectionEvent() argument 513 sendMessage(iface, NETWORK_DISCONNECTION_EVENT, local, reason, bssid); in broadcastNetworkDisconnectionEvent() [all …]
|
D | ScanDetailCache.java | 75 public ScanResult getScanResult(String bssid) { in getScanResult() argument 76 ScanDetail scanDetail = getScanDetail(bssid); in getScanResult() 86 public ScanDetail getScanDetail(@NonNull String bssid) { in getScanDetail() argument 87 return mMap.get(bssid); in getScanDetail() 90 void remove(@NonNull String bssid) { in remove() argument 91 mMap.remove(bssid); in remove()
|
D | ScanDetail.java | 42 public ScanDetail(NetworkDetail networkDetail, WifiSsid wifiSsid, String bssid, in ScanDetail() argument 46 mScanResult = new ScanResult(wifiSsid, bssid, networkDetail.getHESSID(), in ScanDetail() 64 public ScanDetail(WifiSsid wifiSsid, String bssid, String caps, int level, int frequency, in ScanDetail() argument 67 mScanResult = new ScanResult(wifiSsid, bssid, 0L, -1, null, caps, level, frequency, tsf); in ScanDetail()
|
D | WifiConnectivityManager.java | 1203 private boolean updateBssidBlacklist(String bssid, boolean enable, int reasonCode) { in updateBssidBlacklist() argument 1206 return mBssidBlacklist.remove(bssid) != null; in updateBssidBlacklist() 1211 BssidBlacklistStatus status = mBssidBlacklist.get(bssid); in updateBssidBlacklist() 1215 mBssidBlacklist.put(bssid, status); in updateBssidBlacklist() 1239 public boolean trackBssid(String bssid, boolean enable, int reasonCode) { in trackBssid() argument 1240 localLog("trackBssid: " + (enable ? "enable " : "disable ") + bssid + " reason code " in trackBssid() 1243 if (bssid == null) { in trackBssid() 1247 if (!updateBssidBlacklist(bssid, enable, reasonCode)) { in trackBssid() 1268 public boolean isBssidDisabled(String bssid) { in isBssidDisabled() argument 1269 BssidBlacklistStatus status = mBssidBlacklist.get(bssid); in isBssidDisabled() [all …]
|
D | WificondControl.java | 525 String bssid; in getScanResults() local 527 bssid = NativeUtil.macAddressFromByteArray(result.bssid); in getScanResults() 529 Log.e(TAG, "Illegal argument " + result.bssid, e); in getScanResults() 532 if (bssid == null) { in getScanResults() 544 networkDetail = new NetworkDetail(bssid, ies, null, result.frequency); in getScanResults() 546 Log.e(TAG, "Illegal argument for scan result with bssid: " + bssid, e); in getScanResults() 550 ScanDetail scanDetail = new ScanDetail(networkDetail, wifiSsid, bssid, flags, in getScanResults()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMonitorTest.java | 215 long bssid = 5; in testBroadcastAnqpDoneEvent() local 216 mWifiMonitor.broadcastAnqpDoneEvent(WLAN_IFACE_NAME, new AnqpEvent(bssid, null)); in testBroadcastAnqpDoneEvent() 222 assertEquals(bssid, ((AnqpEvent) messageCaptor.getValue().obj).getBssid()); in testBroadcastAnqpDoneEvent() 233 long bssid = 5; in testBroadcastIconDoneEvent() local 237 WLAN_IFACE_NAME, new IconEvent(bssid, fileName, fileSize, null)); in testBroadcastIconDoneEvent() 243 assertEquals(bssid, ((IconEvent) messageCaptor.getValue().obj).getBSSID()); in testBroadcastIconDoneEvent() 387 String bssid = BSSID; in testBroadcastAssociationRejectionEvent() local 388 mWifiMonitor.broadcastAssociationRejectionEvent(WLAN_IFACE_NAME, status, false, bssid); in testBroadcastAssociationRejectionEvent() 396 assertEquals(bssid, (String) messageCaptor.getValue().obj); in testBroadcastAssociationRejectionEvent() 406 String bssid = BSSID; in testBroadcastAssociatedBssidEvent() local [all …]
|
D | RttManagerTest.java | 65 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()
|
D | WifiConnectivityManagerTest.java | 1422 String bssid = "6c:f3:7f:ae:8c:f3"; in blacklistAndReenableBssid() local 1429 assertFalse(mWifiConnectivityManager.isBssidDisabled(bssid)); in blacklistAndReenableBssid() 1430 mWifiConnectivityManager.trackBssid(bssid, false, 1); in blacklistAndReenableBssid() 1434 assertTrue(mWifiConnectivityManager.isBssidDisabled(bssid)); in blacklistAndReenableBssid() 1438 assertTrue(mBssidBlacklistCaptor.getValue().contains(bssid)); in blacklistAndReenableBssid() 1442 mWifiConnectivityManager.trackBssid(bssid, true, 1); in blacklistAndReenableBssid() 1445 assertFalse(mWifiConnectivityManager.isBssidDisabled(bssid)); in blacklistAndReenableBssid() 1449 assertFalse(mBssidBlacklistCaptor.getValue().contains(bssid)); in blacklistAndReenableBssid() 1459 String bssid = "6c:f3:7f:ae:8c:f3"; in blacklistNetworkImmediatelyIfApHasNoCapacityForNewStation() local 1463 mWifiConnectivityManager.trackBssid(bssid, false, in blacklistNetworkImmediatelyIfApHasNoCapacityForNewStation() [all …]
|
D | ScanResultMatchInfoTest.java | 91 WifiConfiguration configuration, String bssid) { in createScanDetailForNetwork() argument 92 return WifiConfigurationTestUtil.createScanDetailForNetwork(configuration, bssid, -40, in createScanDetailForNetwork()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/wificond/ |
D | NativeScanResult.java | 34 public byte[] bssid; field in NativeScanResult 49 bssid = source.bssid.clone(); in NativeScanResult() 68 out.writeByteArray(bssid); in writeToParcel() 91 result.bssid = in.createByteArray();
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiUtils.java | 88 String bssid = null; in getVisibilityStatus() local 91 bssid = info.getBSSID(); in getVisibilityStatus() 92 if (bssid != null) { in getVisibilityStatus() 93 visibility.append(" ").append(bssid); in getVisibilityStatus() 130 verboseScanResultSummary(accessPoint, result, bssid, in getVisibilityStatus() 143 verboseScanResultSummary(accessPoint, result, bssid, in getVisibilityStatus() 174 String bssid, long nowMs) { in verboseScanResultSummary() argument 177 if (result.BSSID.equals(bssid)) { in verboseScanResultSummary()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/ |
D | NativeScanResultTest.java | 61 scanResult.bssid = TEST_BSSID; in canSerializeAndDeserialize() 78 assertArrayEquals(scanResult.bssid, scanResultDeserialized.bssid); in canSerializeAndDeserialize()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | RttManager.java | 353 public String bssid; field in RttManager.RttParams 489 sb.append(", bssid=" + bssid); in toString() 540 dest.writeString(params.bssid); in writeToParcel() 571 params[i].bssid = in.readString(); 609 public String bssid; field in RttManager.RttResult 774 sb.append("bssid=" + mResults[i].bssid); in toString() 824 dest.writeString(result.bssid); in writeToParcel() 876 results[i].bssid = in.readString(); 960 reconstructed.BSSID = rttParams.bssid; in startRanging() 991 legacyResults[i].bssid = result.getMacAddress().toString(); in startRanging()
|