Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DWifiKey.java57 public final String bssid; field in WifiKey
70 public WifiKey(String ssid, String bssid) { in WifiKey() argument
74 if (bssid == null || !BSSID_PATTERN.matcher(bssid).matches()) { in WifiKey()
75 throw new IllegalArgumentException("Invalid bssid: " + bssid); in WifiKey()
78 this.bssid = bssid; in WifiKey()
83 bssid = in.readString(); in WifiKey()
94 out.writeString(bssid); in writeToParcel()
104 return Objects.equals(ssid, wifiKey.ssid) && Objects.equals(bssid, wifiKey.bssid); in equals()
109 return Objects.hash(ssid, bssid); in hashCode()
115 return "WifiKey[SSID=" + ssid + ",BSSID=" + bssid + "]"; in toString()
DNetworkKey.java89 final String bssid = result.BSSID; in createFromScanResult() local
90 if (TextUtils.isEmpty(bssid)) { in createFromScanResult()
95 WifiKey wifiKey = new WifiKey(String.format("\"%s\"", ssid), bssid); in createFromScanResult()
115 final String bssid = wifiInfo.getBSSID(); in createFromWifiInfo() local
117 && !TextUtils.isEmpty(bssid)) { in createFromWifiInfo()
120 wifiKey = new WifiKey(ssid, bssid); in createFromWifiInfo()
DWifiLinkQualityInfo.java101 public void setBssid(String bssid) { in setBssid() argument
102 mBssid = bssid; in setBssid()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DTestUtils.java40 static ScanResult buildScanResult(String utf8Ssid, String bssid, long timestampMillis) { in buildScanResult() argument
46 result.BSSID = bssid; in buildScanResult()
53 String utf8Ssid, String bssid, long timestampMillis, int rssi) { in buildScanResult() argument
54 final ScanResult result = buildScanResult(utf8Ssid, bssid, timestampMillis); in buildScanResult()
61 String utf8Ssid, String bssid, long timestampMillis, String securityTypesString) { in buildScanResult() argument
62 final ScanResult result = buildScanResult(utf8Ssid, bssid, timestampMillis); in buildScanResult()
DSavedNetworkTrackerTest.java427 final String bssid = "bssid"; in testGetSavedNetworks_mismatchedScans_returnsCorrectEntries() local
434 final ScanResult scan = buildScanResult(ssid, bssid + bssidNum++, START_MILLIS); in testGetSavedNetworks_mismatchedScans_returnsCorrectEntries()
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/wifi/
DSoftApConfiguration.java71 @Nullable String ssid, @Nullable MacAddress bssid, String wpa2Passphrase) { in SoftApConfiguration() argument
73 mBssid = bssid; in SoftApConfiguration()
209 public Builder setBssid(@Nullable MacAddress bssid) { in setBssid() argument
210 if (bssid != null) { in setBssid()
211 Preconditions.checkArgument(!bssid.equals( in setBssid()
213 Preconditions.checkArgument(!bssid.equals(MacAddress.BROADCAST_ADDRESS)); in setBssid()
215 mBssid = bssid; in setBssid()
/frameworks/base/wifi/java/src/android/net/wifi/nl80211/
DNativeScanResult.java50 public byte[] bssid; field in NativeScanResult
89 return MacAddress.fromBytes(bssid); in getBssid()
91 Log.e(TAG, "Illegal argument " + Arrays.toString(bssid), e); in getBssid()
278 out.writeByteArray(bssid); in writeToParcel()
298 result.bssid = in.createByteArray();
299 if (result.bssid == null) {
300 result.bssid = new byte[0];
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/
Dsimulate_wifi.py817 def addFakeScan(ssid: str, bssid: str, cap: str, freq: int = 2412, dbm: int = -55) -> None:
818 …subprocess.run(["adb", "shell", "cmd", "wifi", "add-fake-scan", ssid, bssid, cap, str(freq), str(d…
820 def addFakeOpenScan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
821 addFakeScan(ssid, bssid, "[ESS]", freq, dbm)
823 def addFakeWpa2Scan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
824 addFakeScan(ssid, bssid, "[WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS]", freq, dbm)
826 def addFakeWpa3Scan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
827 addFakeScan(ssid, bssid, "[RSN-SAE+FT/SAE-CCMP][ESS]", freq, dbm)
829 def addFakeOweScan(ssid: str, bssid: str, freq: int = 2412, dbm: int = -55) -> None:
830 addFakeScan(ssid, bssid, "[RSN-OWE-CCMP]", freq, dbm)
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.kt221 var bssid: String? = null in <lambda>() variable
223 bssid = info.bssid in <lambda>()
224 if (bssid != null) { in <lambda>()
225 visibility.append(" ").append(bssid) in <lambda>()
265 accessPoint, result, bssid, in <lambda>()
281 accessPoint, result, bssid, in <lambda>()
297 accessPoint, result, bssid, in <lambda>()
339 bssid: String?, in <lambda>()
344 if (result.BSSID == bssid) { in <lambda>()
DTestAccessPointBuilder.java231 public TestAccessPointBuilder setBssid(String bssid) { in setBssid() argument
232 mBssid = bssid; in setBssid()
DAccessPoint.java250 private String bssid; field in AccessPoint
330 mScoredNetworkCache.put(timedScore.getScore().networkKey.wifiKey.bssid, timedScore); in AccessPoint()
425 bssid = config.BSSID; in loadConfig()
517 if (bssid != null) { in toString()
518 builder.append(":").append(bssid); in toString()
736 private static String getKey(String ssid, String bssid, int security) { in getKey() argument
740 builder.append(bssid); in getKey()
962 bssid = bestResult.BSSID; in updateBestRssiInfo()
1067 return bssid; in getBssid()
2034 } else if (scanResult.BSSID != null && TextUtils.equals(bssid, scanResult.BSSID)) { in isSameSsidOrBssid()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/nl80211/
DNativeScanResultTest.java61 scanResult.bssid = TEST_BSSID; in canSerializeAndDeserialize()
78 assertArrayEquals(scanResult.bssid, scanResultDeserialized.bssid); in canSerializeAndDeserialize()
/frameworks/base/core/java/android/companion/
DWifiDeviceFilter.java84 @Nullable MacAddress bssid, in WifiDeviceFilter() argument
87 this.mBssid = bssid; in WifiDeviceFilter()
173 MacAddress bssid = (flg & 0x2) == 0 ? null : in.readTypedObject(MacAddress.CREATOR); in WifiDeviceFilter() local
177 this.mBssid = bssid; in WifiDeviceFilter()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java604 AdbConnectionInfo(String bssid, String ssid) { in AdbConnectionInfo() argument
605 mBssid = bssid; in AdbConnectionInfo()
698 final String bssid = wifiInfo.getBSSID();
699 if (TextUtils.isEmpty(bssid)) {
706 if (!TextUtils.equals(bssid, mAdbConnectionInfo.getBSSID())) {
1124 String bssid = (String) msg.obj; in handleMessage() local
1127 mAdbKeyStore.addTrustedNetwork(bssid); in handleMessage()
1133 if (newInfo == null || !bssid.equals(newInfo.getBSSID())) { in handleMessage()
1414 String bssid = wifiInfo.getBSSID(); in getCurrentWifiApInfo() local
1415 if (TextUtils.isEmpty(bssid)) { in getCurrentWifiApInfo()
[all …]
DAdbService.java351 public void allowWirelessDebugging(boolean alwaysAllow, @NonNull String bssid) { in allowWirelessDebugging() argument
353 Preconditions.checkStringNotEmpty(bssid); in allowWirelessDebugging()
355 mDebuggingManager.allowWirelessDebugging(alwaysAllow, bssid); in allowWirelessDebugging()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wifi/
DWifiDebuggingActivity.java158 String bssid = wifiInfo.getBSSID(); in onReceive() local
159 if (bssid == null || bssid.isEmpty()) { in onReceive()
163 if (!bssid.equals(mBssid)) { in onReceive()
/frameworks/base/core/java/android/app/admin/
DSecurityLogTags.logtags44 210037 security_wifi_connection (bssid|3),(event_type|3),(reason|3)
45 210038 security_wifi_disconnection (bssid|3),(reason|3)
/frameworks/base/core/java/android/debug/
DIAdbManager.aidl56 void allowWirelessDebugging(boolean alwaysAllow, String bssid); in allowWirelessDebugging() argument
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java77 private static ScanResult buildScanResult(String ssid, String bssid) { in buildScanResult() argument
80 bssid, in buildScanResult()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java161 when(mWifiInfo.getBSSID()).thenReturn(SCORED_NETWORK.networkKey.wifiKey.bssid); in setUp()
179 mScanResults.add(createScanResult(SSID, SCORED_NETWORK.networkKey.wifiKey.bssid)); in populateScanResults()
180 mScanResults.add(createScanResult(SSID_2, SCORED_NETWORK_2.networkKey.wifiKey.bssid)); in populateScanResults()
184 private ScanResult createScanResult(String ssid, String bssid) { in createScanResult() argument
187 result.BSSID = bssid; in createScanResult()
798 createScanResult("", SCORED_NETWORK.networkKey.wifiKey.bssid), in testScanResultsScoreCacheFilter_invalidScanResults()
799 createScanResult(WifiManager.UNKNOWN_SSID, SCORED_NETWORK.networkKey.wifiKey.bssid), in testScanResultsScoreCacheFilter_invalidScanResults()
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiNetworkScoreCache.java228 if (networkKey.wifiKey.bssid != null) { in buildNetworkKey()
229 key = key + networkKey.wifiKey.bssid; in buildNetworkKey()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java247 private static ScanResult createScanResult(String ssid, String bssid, int rssi) { in createScanResult() argument
251 scanResult.BSSID = bssid; in createScanResult()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DWifiEntry.java1178 final String bssid = mWifiInfo.getBSSID(); in getWifiInfoDescription() local
1179 if (bssid != null) { in getWifiInfoDescription()
1180 sj.add(bssid); in getWifiInfoDescription()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java111 private ScanResult createScanResult(String ssid, String bssid, int rssi) { in createScanResult() argument
115 scanResult.BSSID = bssid; in createScanResult()
1023 String bssid = "00:00:00:00:00:00"; in testSpeedLabelFallbackScoreIgnoresNullCurves() local
1028 info.setBSSID(bssid); in testSpeedLabelFallbackScoreIgnoresNullCurves()
1037 createScanResult(TEST_SSID, bssid, DEFAULT_RSSI); in testSpeedLabelFallbackScoreIgnoresNullCurves()
DWifiTrackerTest.java672 String bssid = "00:00:00:00:00:00"; in scoresShouldBeRequestedForNewScanResultOnly() local
675 bssid, in scoresShouldBeRequestedForNewScanResultOnly()
691 assertTrue(mRequestedKeys.contains(new NetworkKey(new WifiKey('"' + ssid + '"', bssid)))); in scoresShouldBeRequestedForNewScanResultOnly()

12