Home
last modified time | relevance | path

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

123

/frameworks/base/wifi/java/android/net/wifi/
DWpsInfo.java59 public String BSSID; field in WpsInfo
70 BSSID = null; in WpsInfo()
80 sbuf.append(" BSSID: ").append(BSSID); in toString()
100 BSSID = source.BSSID; in WpsInfo()
110 dest.writeString(BSSID); in writeToParcel()
124 config.BSSID = in.readString();
DScanResult.java48 public String BSSID; field in ScanResult
461 public ScanResult(WifiSsid wifiSsid, String BSSID, long hessid, int anqpDomainId, in ScanResult() argument
465 this.BSSID = BSSID; in ScanResult()
491 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() argument
495 this.BSSID = BSSID; in ScanResult()
513 public ScanResult(String Ssid, String BSSID, long hessid, int anqpDomainId, String caps, in ScanResult() argument
518 this.BSSID = BSSID; in ScanResult()
542 public ScanResult(WifiSsid wifiSsid, String Ssid, String BSSID, long hessid, int anqpDomainId, in ScanResult() argument
546 this(Ssid, BSSID, hessid, anqpDomainId, caps, level, frequency, tsf, distCm, in ScanResult()
556 BSSID = source.BSSID; in ScanResult()
[all …]
/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()
DPasspointManagerTest.java109 private static final long BSSID = 0x112233445566L; field in PasspointManagerTest
300 scanResult.BSSID = TEST_BSSID_STRING; in createTestScanResult()
363 mCallbacks.onIconResponse(BSSID, ICON_FILENAME, iconData); in iconResponseSuccess()
364 verifyIconIntent(BSSID, ICON_FILENAME, iconData); in iconResponseSuccess()
374 mCallbacks.onIconResponse(BSSID, ICON_FILENAME, null); in iconResponseFailure()
375 verifyIconIntent(BSSID, ICON_FILENAME, null); in iconResponseFailure()
390 mCallbacks.onWnmFrameReceived(new WnmData(BSSID, reasonUrl, ess, delay)); in onDeauthImminentReceived()
397 assertEquals(BSSID, intent.getValue().getExtras().getLong(EXTRA_BSSID_LONG)); in onDeauthImminentReceived()
417 mCallbacks.onWnmFrameReceived(new WnmData(BSSID, serverUrl, serverMethod)); in onSubscriptionRemediationReceived()
424 assertEquals(BSSID, intent.getValue().getExtras().getLong(EXTRA_BSSID_LONG)); in onSubscriptionRemediationReceived()
[all …]
/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.java159 sbuf.append("[ ").append(scanResult.SSID).append(" ").append(scanResult.BSSID) in calculateBssidScore()
199 && currentBssid != null && !currentBssid.equals(scanResult.BSSID)) { in calculateBssidScore()
206 if (currentBssid != null && currentBssid.equals(scanResult.BSSID)) { in calculateBssidScore()
266 } else if (network.BSSID != null && !network.BSSID.equals("any") in evaluateNetworks()
267 && !network.BSSID.equals(scanResult.BSSID)) { in evaluateNetworks()
271 + " has specified BSSID " + network.BSSID + ". Skip " in evaluateNetworks()
272 + 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()
DWifiNetworkSelector.java249 : String.format("%s:%s", scanResult.SSID, scanResult.BSSID); in toScanId()
283 noValidSsid.append(scanResult.BSSID).append(" / "); in filterScanResults()
288 if (scanResult.BSSID.equals(currentBssid)) { in filterScanResults()
294 if (bssidBlacklist.contains(scanResult.BSSID)) { in filterScanResults()
497 + scanResultCandidate.BSSID); in overrideCandidateWithUserConnectChoice()
562 + selectedNetwork.getNetworkSelectionStatus().getCandidate().BSSID); in selectNetwork()
DScanDetailCache.java163 return a.BSSID.compareTo(b.BSSID); in sort()
193 sbuf.append("{").append(result.BSSID).append(",").append(result.frequency); in toString()
DWifiConnectivityManager.java710 String targetBssid = scanResultCandidate.BSSID; in connectToNetwork()
726 if (candidate.BSSID != null in connectToNetwork()
727 && !candidate.BSSID.equals(WifiStateMachine.SUPPLICANT_BSSID_ANY) in connectToNetwork()
728 && !candidate.BSSID.equals(targetBssid)) { in connectToNetwork()
730 + "config specified BSSID " + candidate.BSSID + ". Drop it!"); in connectToNetwork()
768 if (mConnectivityHelper.isFirmwareRoamingSupported() && (candidate.BSSID == null in connectToNetwork()
769 || candidate.BSSID.equals(WifiStateMachine.SUPPLICANT_BSSID_ANY))) { in connectToNetwork()
/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.java176 result.BSSID = TEST_BSSID; in createScanResult()
186 assertEquals(expected.BSSID, actual.BSSID); in assertScanResultEquals()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java94 scanResult.BSSID = VALID_BSSID; in createFromScanResult_nullWifiSsid()
103 scanResult.BSSID = VALID_BSSID; in createFromScanResult_emptyWifiSsid()
112 scanResult.BSSID = VALID_BSSID; in createFromScanResult_noneWifiSsid()
129 scanResult.BSSID = ""; in createFromScanResult_emptyBssid()
138 scanResult.BSSID = INVALID_BSSID; in createFromScanResult_invalidBssid()
147 scanResult.BSSID = VALID_BSSID; in createFromScanResult_validWifiSsid()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaIfaceHalTest.java87 private static final String BSSID = "fa:45:23:23:12:12"; field in SupplicantStaIfaceHalTest
1012 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testAnqpDoneCallback()
1034 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testIconDoneCallback()
1059 byte[] bssid = NativeUtil.macAddressToByteArray(BSSID); in testHs20SubscriptionRemediationCallback()
1101 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeCallbackWithNoConfiguredNetwork()
1107 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.INACTIVE)); in testStateChangeCallbackWithNoConfiguredNetwork()
1122 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeToAssociatedCallback()
1127 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.ASSOCIATED)); in testStateChangeToAssociatedCallback()
1143 NativeUtil.macAddressToByteArray(BSSID), SUPPLICANT_NETWORK_ID, in testStateChangeToCompletedCallback()
1147 eq(WLAN0_IFACE_NAME), eq(frameworkNetworkId), eq(BSSID)); in testStateChangeToCompletedCallback()
[all …]
DScanResultMatchInfoTest.java61 assertFalse(scan1.getScanResult().BSSID.equals(scan2.getScanResult().BSSID)); in testDifferentBssidScanResultsMatch()
DWifiMonitorTest.java55 private static final String BSSID = "fe:45:23:12:12:0a"; field in WifiMonitorTest
387 String bssid = BSSID; in testBroadcastAssociationRejectionEvent()
406 String bssid = BSSID; in testBroadcastAssociatedBssidEvent()
424 String bssid = BSSID; in testBroadcastNetworkConnectionEvent()
444 String bssid = BSSID; in testBroadcastNetworkDisconnectionEvent()
465 String bssid = BSSID; in testBroadcastSupplicantStateChangeEvent()
477 assertEquals(bssid, result.BSSID); in testBroadcastSupplicantStateChangeEvent()
DWifiConnectivityManagerTest.java275 candidate.BSSID = WifiStateMachine.SUPPLICANT_BSSID_ANY; in mockWifiNetworkSelector()
278 candidateScanResult.BSSID = CANDIDATE_BSSID; in mockWifiNetworkSelector()
1682 candidate.BSSID = CANDIDATE_BSSID; // config specified
1685 candidateScanResult.BSSID = CANDIDATE_BSSID;
1736 candidate.BSSID = CANDIDATE_BSSID; // config specified
1739 candidateScanResult.BSSID = CANDIDATE_BSSID;
1780 assertEquals(mCandidateScanResultCaptor.getValue().BSSID, CANDIDATE_BSSID);
1825 candidate.BSSID = CANDIDATE_BSSID; // config specified
1829 candidateScanResult.BSSID = INVALID_SCAN_RESULT_BSSID;
1865 candidate.BSSID = CANDIDATE_BSSID; // config specified
[all …]
/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()
87 scan1.BSSID = "00:01:02:03:04:" + String.format("%02d", lastMacByte); in getDummyRangingRequestNo80211mcSupport()
89 scan2.BSSID = "0A:0B:0C:0D:0E:" + String.format("%02d", lastMacByte); in getDummyRangingRequestNo80211mcSupport()
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java129 scanResult1.BSSID = "00:01:02:03:04:05"; in testRangingRequestParcel()
131 scanResult2.BSSID = "06:07:08:09:0A:0B"; in testRangingRequestParcel()
133 scanResult3.BSSID = "AA:BB:CC:DD:EE:FF"; in testRangingRequestParcel()
166 scanResult.BSSID = "AA:BB:CC:DD:EE:FF"; in testRangingRequestAtLimit()
191 scanResult.BSSID = "00:01:02:03:04:05"; in testRangingRequestPastLimit()
355 scan.BSSID = "00:01:02:03:04:05"; in testResponderPreambleSelection()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiUtils.java176 stringBuilder.append(" \n{").append(result.BSSID); in verboseScanResultSummary()
177 if (result.BSSID.equals(bssid)) { in verboseScanResultSummary()
196 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()
155 r.BSSID, in dumpScanResults()
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java132 return firstNotEmpty(device.SSID, device.BSSID); in getDeviceDisplayNameInternal()
139 return ((ScanResult) device).BSSID; in getDeviceMacAddress()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java135 assertEquals("NetworkDetail BSSID", input.BSSID, in validateScanDetail()
137 assertEquals("getBSSIDString", input.BSSID, output.getBSSIDString()); in validateScanDetail()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java93 scanResult.BSSID = bssid; in createScanResult()
252 scanResult.BSSID = "bssid";
282 wifiInfo.setBSSID(configuration.BSSID);
298 wifiInfo.setBSSID(configuration.BSSID);
331 wifiInfo.setBSSID(configuration.BSSID);
450 result.BSSID = "00:11:22:33:44:55";
503 scanResult.BSSID = "00:11:22:33:44:55";
549 configuration.BSSID = "bssid";
870 scanResult.BSSID = "bssid";

123