Home
last modified time | relevance | path

Searched refs:BSSID (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/base/wifi/java/android/net/wifi/
DWpsInfo.java44 public String BSSID; field in WpsInfo
51 BSSID = null; in WpsInfo()
59 sbuf.append(" BSSID: ").append(BSSID); in toString()
75 BSSID = source.BSSID; in WpsInfo()
83 dest.writeString(BSSID); in writeToParcel()
93 config.BSSID = in.readString();
DScanResult.java50 public String BSSID; field in ScanResult
517 public ScanResult(WifiSsid wifiSsid, String BSSID, long hessid, int anqpDomainId, in ScanResult() argument
521 this.BSSID = BSSID; in ScanResult()
547 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() argument
551 this.BSSID = BSSID; in ScanResult()
569 public ScanResult(String Ssid, String BSSID, long hessid, int anqpDomainId, String caps, in ScanResult() argument
574 this.BSSID = BSSID; in ScanResult()
598 public ScanResult(WifiSsid wifiSsid, String Ssid, String BSSID, long hessid, int anqpDomainId, in ScanResult() argument
602 this(Ssid, BSSID, hessid, anqpDomainId, caps, level, frequency, tsf, distCm, in ScanResult()
612 BSSID = source.BSSID; in ScanResult()
[all …]
DWifiNetworkAgentSpecifier.java134 checkNotNull(this.mWifiConfiguration.BSSID); in satisfiesNetworkSpecifier()
143 final MacAddress bssid = MacAddress.fromString(this.mWifiConfiguration.BSSID); in satisfiesNetworkSpecifier()
166 mWifiConfiguration.BSSID, in hashCode()
182 && Objects.equals(this.mWifiConfiguration.BSSID, lhs.mWifiConfiguration.BSSID) in equals()
195 .append(", BSSID=").append(mWifiConfiguration.BSSID) in toString()
DWifiNetworkSuggestion.java349 wifiConfiguration.BSSID = mBssid.toString(); in buildWifiConfiguration()
533 return Objects.hash(wifiConfiguration.SSID, wifiConfiguration.BSSID, in hashCode()
550 && Objects.equals(this.wifiConfiguration.BSSID, lhs.wifiConfiguration.BSSID) in equals()
561 .append(", BSSID=").append(wifiConfiguration.BSSID) in toString()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointEventHandlerTest.java49 private static final long BSSID = 0x112233445566L; field in PasspointEventHandlerTest
79 assertTrue(mHandler.requestANQP(BSSID, elementToRequest)); in requestR1AnqpElement()
84 assertFalse(mHandler.requestANQP(BSSID, elementToRequest)); in requestR1AnqpElement()
102 assertTrue(mHandler.requestANQP(BSSID, elementToRequest)); in requestR2AnqpElement()
107 assertFalse(mHandler.requestANQP(BSSID, elementToRequest)); in requestR2AnqpElement()
128 assertTrue(mHandler.requestANQP(BSSID, elementToRequest)); in requestMixAnqpElements()
133 assertFalse(mHandler.requestANQP(BSSID, elementToRequest)); in requestMixAnqpElements()
143 assertTrue(mHandler.requestIcon(BSSID, ICON_FILENAME)); in requestIconFile()
147 assertFalse(mHandler.requestIcon(BSSID, ICON_FILENAME)); in requestIconFile()
155 mHandler.notifyANQPDone(new AnqpEvent(BSSID, null)); in anqpRequestCompletedWithError()
[all …]
DANQPNetworkKeyTest.java31 private static final long BSSID = 0x123456L; field in ANQPNetworkKeyTest
43 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, 0, ANQP_DOMAIN_ID); in buildStandardESSKey()
55 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, HESSID, ANQP_DOMAIN_ID); in buildHessidKey()
66 ANQPNetworkKey expectedKey = new ANQPNetworkKey(SSID, BSSID, 0, 0); in buildAPKey()
67 ANQPNetworkKey actualKey = ANQPNetworkKey.buildKey(SSID, BSSID, HESSID, 0); in buildAPKey()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DStateChangeResult.java29 StateChangeResult(int networkId, WifiSsid wifiSsid, String BSSID, in StateChangeResult() argument
33 this.BSSID = BSSID; in StateChangeResult()
39 String BSSID; field in StateChangeResult
47 sb.append(" BSSID: ").append(BSSID); in toString()
DSavedNetworkEvaluator.java118 sbuf.append("[ ").append(scanResult.SSID).append(" ").append(scanResult.BSSID) in calculateBssidScore()
155 && currentBssid != null && !currentBssid.equals(scanResult.BSSID)) { in calculateBssidScore()
162 if (currentBssid != null && currentBssid.equals(scanResult.BSSID)) { in calculateBssidScore()
225 } else if (network.BSSID != null && !network.BSSID.equals("any") in evaluateNetworks()
226 && !network.BSSID.equals(scanResult.BSSID)) { in evaluateNetworks()
230 + " has specified BSSID " + network.BSSID + ". Skip " in evaluateNetworks()
231 + scanResult.BSSID); in evaluateNetworks()
DScanDetail.java130 return mNetworkDetail == null ? mScanResult.BSSID : mNetworkDetail.getBSSIDString(); in getBSSIDString()
142 mScanResult.BSSID, in toKeyString()
143 Utils.parseMac(mScanResult.BSSID)); in toKeyString()
168 Utils.parseMac(mScanResult.BSSID)); in toString()
170 return String.format("'%s'/----", mScanResult.BSSID); in toString()
DScanDetailCache.java163 return a.BSSID.compareTo(b.BSSID); in sort()
193 sbuf.append("{").append(result.BSSID).append(",").append(result.frequency); in toString()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java59 public static final String BSSID = "AA:AA:AA:AA:AA:AA"; field in WifiNetworkScoreCacheTest
61 public static final WifiKey VALID_KEY = new WifiKey(FORMATTED_SSID, BSSID);
63 public static final ScanResult VALID_SCAN_RESULT = buildScanResult(SSID, BSSID);
135 WifiKey key2 = new WifiKey("\"ssid2\"", BSSID); in updateScoresShouldAddNewNetwork()
137 ScanResult result2 = buildScanResult("ssid2", BSSID); in updateScoresShouldAddNewNetwork()
152 ScanResult unscored = buildScanResult("fake", BSSID); in hasScoreCurveShouldReturnFalseWhenNoCachedNetwork()
212 new WifiKey(FORMATTED_SSID2, BSSID), mockRssiCurve); in leastRecentlyUsedScore_shouldBeEvictedFromCache()
214 new WifiKey(FORMATTED_SSID3, BSSID), mockRssiCurve); in leastRecentlyUsedScore_shouldBeEvictedFromCache()
221 assertThat(mScoreCache.hasScoreCurve(buildScanResult(SSID2, BSSID))).isTrue(); in leastRecentlyUsedScore_shouldBeEvictedFromCache()
222 assertThat(mScoreCache.hasScoreCurve(buildScanResult(SSID3, BSSID))).isTrue(); in leastRecentlyUsedScore_shouldBeEvictedFromCache()
DScanResultTest.java175 result.BSSID = TEST_BSSID; in createScanResult()
185 assertEquals(expected.BSSID, actual.BSSID); in assertScanResultEquals()
DWifiNetworkSuggestionTest.java133 assertEquals(TEST_BSSID, suggestion.wifiConfiguration.BSSID); in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid()
320 configuration.BSSID = TEST_BSSID; in testWifiNetworkSuggestionParcel()
354 configuration.BSSID = TEST_BSSID; in testWifiNetworkSuggestionEqualsSame()
362 configuration1.BSSID = TEST_BSSID; in testWifiNetworkSuggestionEqualsSame()
402 configuration.BSSID = TEST_BSSID; in testWifiNetworkSuggestionEqualsFailsWhenBssidIsDifferent()
DWifiNetworkAgentSpecifierTest.java160 wifiConfiguration2.BSSID = TEST_BSSID_1; in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent()
326 wifiConfigurationNetworkAgent.BSSID = TEST_BSSID_1; in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithBssidPattern()
360 wifiConfigurationNetworkAgent.BSSID = TEST_BSSID_1; in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidAndBssidPattern()
444 wifiConfiguration.BSSID = TEST_BSSID; in createDefaultWifiConfiguration()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java111 scanResult.BSSID = VALID_BSSID; in createFromScanResult_nullWifiSsid()
120 scanResult.BSSID = VALID_BSSID; in createFromScanResult_emptyWifiSsid()
129 scanResult.BSSID = VALID_BSSID; in createFromScanResult_noneWifiSsid()
146 scanResult.BSSID = ""; in createFromScanResult_emptyBssid()
155 scanResult.BSSID = INVALID_BSSID; in createFromScanResult_invalidBssid()
164 scanResult.BSSID = VALID_BSSID; in createFromScanResult_validWifiSsid()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiCandidatesTest.java65 BSSID = "00:00:00:00:00:01"; in setUp()
212 mScanResult1.BSSID = null; in testBssidValidation()
217 mScanResult1.BSSID = "NotaBssid!"; in testBssidValidation()
233 mScanResult2.BSSID = mScanResult1.BSSID.replace('1', '2'); in testTwoBssids()
269 mScanResult2.BSSID = mScanResult1.BSSID; in testReplace()
DSupplicantStaIfaceHalTest.java108 private static final String BSSID = "fa:45:23:23:12:12"; field in SupplicantStaIfaceHalTest
1079 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testAnqpDoneCallback()
1101 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testIconDoneCallback()
1126 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testHs20SubscriptionRemediationCallback()
1168 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeCallbackWithNoConfiguredNetwork()
1174 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.INACTIVE)); in testStateChangeCallbackWithNoConfiguredNetwork()
1189 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeToAssociatedCallback()
1194 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.ASSOCIATED)); in testStateChangeToAssociatedCallback()
1210 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeToCompletedCallback()
1214 eq(WLAN0_IFACE_NAME), eq(frameworkNetworkId), eq(BSSID)); in testStateChangeToCompletedCallback()
[all …]
DWifiMonitorTest.java56 private static final String BSSID = "fe:45:23:12:12:0a"; field in WifiMonitorTest
388 String bssid = BSSID; in testBroadcastAssociationRejectionEvent()
407 String bssid = BSSID; in testBroadcastAssociatedBssidEvent()
425 String bssid = BSSID; in testBroadcastNetworkConnectionEvent()
445 String bssid = BSSID; in testBroadcastNetworkDisconnectionEvent()
466 String bssid = BSSID; in testBroadcastSupplicantStateChangeEvent()
478 assertEquals(bssid, result.BSSID); in testBroadcastSupplicantStateChangeEvent()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttTestUtils.java65 scan1.BSSID = "00:01:02:03:04:" + String.format("%02d", lastMacByte); in getDummyRangingRequest()
69 scan2.BSSID = "0A:0B:0C:0D:0E:" + String.format("%02d", lastMacByte); in getDummyRangingRequest()
88 scan1.BSSID = "00:01:02:03:04:" + String.format("%02d", lastMacByte); in getDummyRangingRequestMcOnly()
104 scan1.BSSID = "00:01:02:03:04:" + String.format("%02d", lastMacByte); in getDummyRangingRequestNo80211mcSupport()
106 scan2.BSSID = "0A:0B:0C:0D:0E:" + String.format("%02d", lastMacByte); in getDummyRangingRequestNo80211mcSupport()
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java132 scanResult1.BSSID = "00:01:02:03:04:05"; in testRangingRequestParcel()
134 scanResult2.BSSID = "06:07:08:09:0A:0B"; in testRangingRequestParcel()
136 scanResult3.BSSID = "AA:BB:CC:DD:EE:FF"; in testRangingRequestParcel()
169 scanResult.BSSID = "AA:BB:CC:DD:EE:FF"; in testRangingRequestAtLimit()
194 scanResult.BSSID = "00:01:02:03:04:05"; in testRangingRequestPastLimit()
358 scan.BSSID = "00:01:02:03:04:05"; in testResponderPreambleSelection()
/frameworks/opt/net/wifi/service/proto/src/
Dscorecard.proto46 // Describes an access point (single BSSID)
48 // Beyond the BSSID, a concise id is assigned to track references
50 // known to the device. The BSSID itself is not stored in persistent storage.
53 optional bytes bssid = 2; // BSSID of the access point (not stored)
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java177 stringBuilder.append(" \n{").append(result.BSSID); in verboseScanResultSummary()
178 if (result.BSSID.equals(bssid)) { in verboseScanResultSummary()
197 TimestampedScoredNetwork timedScore = scoredNetworkCache.get(result.BSSID); in getSpecificApSpeed()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java44 NetworkDetail networkDetail = new NetworkDetail(scanResult.BSSID, in toScanDetail()
199 r.BSSID, in dumpScanResults()
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java137 return firstNotEmpty(device.SSID, device.BSSID); in getDeviceDisplayNameInternal()
145 return ((ScanResult) device).BSSID; in getDeviceMacAddress()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java136 assertEquals("NetworkDetail BSSID", input.BSSID, in validateScanDetail()
138 assertEquals("getBSSIDString", input.BSSID, output.getBSSIDString()); in validateScanDetail()

123