Home
last modified time | relevance | path

Searched refs:ScanResult (Results 1 – 25 of 114) sorted by relevance

12345

/frameworks/base/wifi/tests/src/android/net/wifi/
DScanResultTest.java67 ScanResult writeScanResult = createScanResult(); in verifyScanResultParcelWithoutRadioChainInfo()
68 ScanResult readScanResult = parcelReadWrite(writeScanResult); in verifyScanResultParcelWithoutRadioChainInfo()
77 ScanResult writeScanResult = createScanResult(); in verifyScanResultParcelWithZeroRadioChainInfo()
78 writeScanResult.radioChainInfos = new ScanResult.RadioChainInfo[0]; in verifyScanResultParcelWithZeroRadioChainInfo()
79 ScanResult readScanResult = parcelReadWrite(writeScanResult); in verifyScanResultParcelWithZeroRadioChainInfo()
88 ScanResult writeScanResult = createScanResult(); in verifyScanResultParcelWithRadioChainInfo()
89 writeScanResult.radioChainInfos = new ScanResult.RadioChainInfo[2]; in verifyScanResultParcelWithRadioChainInfo()
90 writeScanResult.radioChainInfos[0] = new ScanResult.RadioChainInfo(); in verifyScanResultParcelWithRadioChainInfo()
93 writeScanResult.radioChainInfos[1] = new ScanResult.RadioChainInfo(); in verifyScanResultParcelWithRadioChainInfo()
96 ScanResult readScanResult = parcelReadWrite(writeScanResult); in verifyScanResultParcelWithRadioChainInfo()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWakeupEvaluatorTest.java24 import android.net.wifi.ScanResult;
56 private ScanResult makeScanResult(String ssid, int frequency, int level) { in makeScanResult()
57 ScanResult scanResult = new ScanResult(); in makeScanResult()
87 ScanResult scanResult24 = makeScanResult(SAVED_SSID_1, FREQ_24, THRESHOLD_24 - 1); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold()
90 ScanResult scanResult5 = makeScanResult(SAVED_SSID_1, FREQ_5, THRESHOLD_5 - 1); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold()
99 ScanResult scanResult24 = makeScanResult(SAVED_SSID_1, FREQ_24, THRESHOLD_24 + 1); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold()
102 ScanResult scanResult5 = makeScanResult(SAVED_SSID_1, FREQ_5, THRESHOLD_5 + 1); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold()
112 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks()
115 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks()
125 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold()
[all …]
DScanResults.java19 import android.net.wifi.ScanResult;
41 private final ScanResult[] mScanResults;
44 ScanResult[] scanResults) { in ScanResults()
56 ArrayList<ScanResult> scanDataResults = new ArrayList<>(); in merge()
57 ArrayList<ScanResult> rawScanResults = new ArrayList<>(); in merge()
66 .toArray(new ScanResult[scanDataResults.size()])), in merge()
67 rawScanResults.toArray(new ScanResult[rawScanResults.size()])); in merge()
76 public static final Comparator<ScanResult> SCAN_RESULT_RSSI_COMPARATOR =
77 new Comparator<ScanResult>() {
78 public int compare(ScanResult r1, ScanResult r2) {
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java7 import android.net.wifi.ScanResult;
93 ScanResult scanResult = new ScanResult(); in createFromScanResult_nullWifiSsid()
101 ScanResult scanResult = new ScanResult(); in createFromScanResult_emptyWifiSsid()
110 ScanResult scanResult = new ScanResult(); in createFromScanResult_noneWifiSsid()
119 ScanResult scanResult = new ScanResult(); in createFromScanResult_nullBssid()
127 ScanResult scanResult = new ScanResult(); in createFromScanResult_emptyBssid()
136 ScanResult scanResult = new ScanResult(); in createFromScanResult_invalidBssid()
145 ScanResult scanResult = new ScanResult(); in createFromScanResult_validWifiSsid()
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java29 import android.net.wifi.ScanResult;
128 ScanResult scanResult1 = new ScanResult(); in testRangingRequestParcel()
130 ScanResult scanResult2 = new ScanResult(); in testRangingRequestParcel()
132 ScanResult scanResult3 = new ScanResult(); in testRangingRequestParcel()
134 List<ScanResult> scanResults2and3 = new ArrayList<>(2); in testRangingRequestParcel()
165 ScanResult scanResult = new ScanResult(); in testRangingRequestAtLimit()
167 List<ScanResult> scanResultList = new ArrayList<>(); in testRangingRequestAtLimit()
190 ScanResult scanResult = new ScanResult(); in testRangingRequestPastLimit()
192 List<ScanResult> scanResultList = new ArrayList<>(); in testRangingRequestPastLimit()
344 ScanResult.InformationElement htCap = new ScanResult.InformationElement(); in testResponderPreambleSelection()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DInformationElementUtil.java18 import android.net.wifi.ScanResult;
19 import android.net.wifi.ScanResult.InformationElement;
459 protocol.add(ScanResult.PROTOCOL_WPA2); in parseRsnElement()
482 rsnKeyManagement.add(ScanResult.KEY_MGMT_EAP); in parseRsnElement()
485 rsnKeyManagement.add(ScanResult.KEY_MGMT_PSK); in parseRsnElement()
488 rsnKeyManagement.add(ScanResult.KEY_MGMT_FT_EAP); in parseRsnElement()
491 rsnKeyManagement.add(ScanResult.KEY_MGMT_FT_PSK); in parseRsnElement()
494 rsnKeyManagement.add(ScanResult.KEY_MGMT_EAP_SHA256); in parseRsnElement()
497 rsnKeyManagement.add(ScanResult.KEY_MGMT_PSK_SHA256); in parseRsnElement()
506 rsnKeyManagement.add(ScanResult.KEY_MGMT_EAP); in parseRsnElement()
[all …]
DScanResultUtil.java19 import android.net.wifi.ScanResult;
43 public static ScanDetail toScanDetail(ScanResult scanResult) { in toScanDetail()
53 public static boolean isScanResultForPskNetwork(ScanResult scanResult) { in isScanResultForPskNetwork()
61 public static boolean isScanResultForEapNetwork(ScanResult scanResult) { in isScanResultForEapNetwork()
69 public static boolean isScanResultForWepNetwork(ScanResult scanResult) { in isScanResultForWepNetwork()
78 public static boolean isScanResultForOpenNetwork(ScanResult scanResult) { in isScanResultForOpenNetwork()
96 public static WifiConfiguration createNetworkFromScanResult(ScanResult scanResult) { in createNetworkFromScanResult()
107 public static void setAllowedKeyManagementFromScanResult(ScanResult scanResult, in setAllowedKeyManagementFromScanResult()
126 public static void dumpScanResults(PrintWriter pw, List<ScanResult> scanResults, long nowMs) { in dumpScanResults()
130 for (ScanResult r : scanResults) { in dumpScanResults()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttTestUtils.java22 import android.net.wifi.ScanResult;
64 ScanResult scan1 = new ScanResult(); in getDummyRangingRequest()
66 scan1.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in getDummyRangingRequest()
67 scan1.channelWidth = ScanResult.CHANNEL_WIDTH_40MHZ; in getDummyRangingRequest()
68 ScanResult scan2 = new ScanResult(); in getDummyRangingRequest()
70 scan2.channelWidth = ScanResult.CHANNEL_WIDTH_20MHZ; in getDummyRangingRequest()
86 ScanResult scan1 = new ScanResult(); in getDummyRangingRequestNo80211mcSupport()
88 ScanResult scan2 = new ScanResult(); in getDummyRangingRequestNo80211mcSupport()
/frameworks/base/core/java/android/bluetooth/le/
DScanResult.java29 public final class ScanResult implements Parcelable { class
105 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() method in ScanResult
133 public ScanResult(BluetoothDevice device, int eventType, int primaryPhy, int secondaryPhy, in ScanResult() method in ScanResult
148 private ScanResult(Parcel in) { in ScanResult() method in ScanResult
319 ScanResult other = (ScanResult) obj; in equals()
341 public static final Parcelable.Creator<ScanResult> CREATOR = new Creator<ScanResult>() {
343 public ScanResult createFromParcel(Parcel source) {
344 return new ScanResult(source);
348 public ScanResult[] newArray(int size) {
349 return new ScanResult[size];
/frameworks/base/wifi/java/android/net/wifi/
DBatchedScanResult.java41 public final List<ScanResult> scanResults = new ArrayList<ScanResult>();
49 for (ScanResult s : source.scanResults) scanResults.add(new ScanResult(s)); in BatchedScanResult()
59 for (ScanResult s : scanResults) { in toString()
75 for (ScanResult s : scanResults) { in writeToParcel()
88 result.scanResults.add(ScanResult.CREATOR.createFromParcel(in));
DWifiScanner.java352 private ScanResult mResults[];
356 public ScanData(int id, int flags, ScanResult[] results) { in ScanData()
364 ScanResult[] results) { in ScanData()
377 mResults = new ScanResult[s.mResults.length]; in ScanData()
379 ScanResult result = s.mResults[i]; in ScanData()
380 ScanResult newResult = new ScanResult(result); in ScanData()
403 public ScanResult[] getResults() { in getResults()
421 ScanResult result = mResults[i]; in writeToParcel()
438 ScanResult results[] = new ScanResult[n];
440 results[i] = ScanResult.CREATOR.createFromParcel(in);
[all …]
DScanResult.java34 public class ScanResult implements Parcelable { class
364 return ScanResult.is24GHz(frequency); in is24GHz()
379 return ScanResult.is5GHz(frequency); in is5GHz()
461 public ScanResult(WifiSsid wifiSsid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
491 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() method in ScanResult
513 public ScanResult(String Ssid, String BSSID, long hessid, int anqpDomainId, String caps, in ScanResult() method in ScanResult
542 public ScanResult(WifiSsid wifiSsid, String Ssid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
552 public ScanResult(ScanResult source) { in ScanResult() method in ScanResult
587 public ScanResult() { in ScanResult() method in ScanResult
707 public static final Creator<ScanResult> CREATOR =
[all …]
DWifiNetworkScoreCache.java130 public boolean isScoredNetwork(ScanResult result) { in isScoredNetwork()
140 public boolean hasScoreCurve(ScanResult result) { in hasScoreCurve()
145 public int getNetworkScore(ScanResult result) { in getNetworkScore()
165 public boolean getMeteredHint(ScanResult result) { in getMeteredHint()
170 public int getNetworkScore(ScanResult result, boolean isActiveNetwork) { in getNetworkScore()
187 public ScoredNetwork getScoredNetwork(ScanResult result) { in getScoredNetwork()
235 private String buildNetworkKey(ScanResult result) { in buildNetworkKey()
260 for (ScanResult scanResult : wifiManager.getScanResults()) { in dump()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java21 import android.net.wifi.ScanResult;
22 import android.net.wifi.ScanResult.InformationElement;
44 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResult()
60 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResultWithAnqpLines()
76 ScanResult input = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "other caps", in convertScanResultWithoutWifiSsid()
90 ScanResult scanResult = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "", in testNetworkCreationFromScanResult()
125 private static void validateScanDetail(ScanResult input, ScanDetail output) { in validateScanDetail()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupEvaluator.java20 import android.net.wifi.ScanResult;
61 public ScanResult findViableNetwork(Collection<ScanResult> scanResults, in findViableNetwork()
63 ScanResult selectedScanResult = null; in findViableNetwork()
65 for (ScanResult scanResult : scanResults) { in findViableNetwork()
82 public boolean isBelowThreshold(ScanResult scanResult) { in isBelowThreshold()
DScanDetail.java20 import android.net.wifi.ScanResult;
38 private final ScanResult mScanResult;
44 ScanResult.InformationElement[] informationElements, List<String> anqpLines) { in ScanDetail()
46 mScanResult = new ScanResult(wifiSsid, bssid, networkDetail.getHESSID(), in ScanDetail()
57 mScanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in ScanDetail()
60 mScanResult.setFlag(ScanResult.FLAG_PASSPOINT_NETWORK); in ScanDetail()
67 mScanResult = new ScanResult(wifiSsid, bssid, 0L, -1, null, caps, level, frequency, tsf); in ScanDetail()
76 public ScanDetail(ScanResult scanResult, NetworkDetail networkDetail) { in ScanDetail()
117 public ScanResult getScanResult() { in getScanResult()
DWakeupController.java23 import android.net.wifi.ScanResult;
80 public void onFullResult(ScanResult fullScanResult) {
184 List<ScanResult> scanResults = in start()
226 private List<ScanResult> filterDfsScanResults(Collection<ScanResult> scanResults) { in filterDfsScanResults()
278 private void handleScanResults(Collection<ScanResult> scanResults) { in handleScanResults()
303 ScanResult network = mWakeupEvaluator.findViableNetwork(scanResults, goodSavedNetworks); in handleScanResults()
314 private static Set<ScanResultMatchInfo> toMatchInfos(Collection<ScanResult> scanResults) { in toMatchInfos()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DNetworkDetail.java6 import android.net.wifi.ScanResult;
121 public NetworkDetail(String bssid, ScanResult.InformationElement[] infoElements, in NetworkDetail()
162 for (ScanResult.InformationElement ie : infoElements) { in NetworkDetail()
165 case ScanResult.InformationElement.EID_SSID: in NetworkDetail()
168 case ScanResult.InformationElement.EID_BSS_LOAD: in NetworkDetail()
171 case ScanResult.InformationElement.EID_HT_OPERATION: in NetworkDetail()
174 case ScanResult.InformationElement.EID_VHT_OPERATION: in NetworkDetail()
177 case ScanResult.InformationElement.EID_INTERWORKING: in NetworkDetail()
180 case ScanResult.InformationElement.EID_ROAMING_CONSORTIUM: in NetworkDetail()
183 case ScanResult.InformationElement.EID_VSA: in NetworkDetail()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java29 import android.net.wifi.ScanResult;
79 ArrayList<ScanResult> scanResults = buildScanResultCache(); in testVerboseSummaryString_showsScanResultSpeedLabel()
84 when(mockWifiNetworkScoreCache.getScoredNetwork(any(ScanResult.class))) in testVerboseSummaryString_showsScanResultSpeedLabel()
98 Set<ScanResult> set = new ArraySet<>(); in testGetVisibilityStatus_nullResultDoesNotCrash()
150 private static ArrayList<ScanResult> buildScanResultCache() { in buildScanResultCache()
151 ArrayList<ScanResult> scanResults = new ArrayList<>(); in buildScanResultCache()
153 ScanResult scanResult = createScanResult(TEST_SSID, "bssid-" + i, i); in buildScanResultCache()
159 private static ScanResult createScanResult(String ssid, String bssid, int rssi) { in createScanResult()
160 ScanResult scanResult = new ScanResult(); in createScanResult()
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java26 import android.net.wifi.ScanResult;
103 static boolean matchesName(@Nullable Pattern namePattern, ScanResult device) { in matchesName()
123 boolean result, ScanResult device, Object criteria) { in debugLogMatchResult()
131 public static String getDeviceDisplayNameInternal(@NonNull ScanResult device) { in getDeviceDisplayNameInternal()
138 } else if (device instanceof ScanResult) { in getDeviceMacAddress()
139 return ((ScanResult) device).BSSID; in getDeviceMacAddress()
140 } else if (device instanceof android.bluetooth.le.ScanResult) { in getDeviceMacAddress()
141 return getDeviceMacAddress(((android.bluetooth.le.ScanResult) device).getDevice()); in getDeviceMacAddress()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanResultTest.java46 ScanResult result = new ScanResult(device, ScanRecord.parseFromBytes(scanRecord), rssi, in testScanResultParceling()
52 ScanResult resultFromParcel = ScanResult.CREATOR.createFromParcel(parcel); in testScanResultParceling()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluatorTest.java32 import android.net.wifi.ScanResult;
118 ScanResult scanResult = new ScanResult(); in generateScanDetail()
150 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(null); in evaluateScansWithNoMatch()
175 verify(mPasspointManager, never()).matchProvider(any(ScanResult.class)); in evaulateScansWithNoInterworkingAP()
198 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(homeProvider) in evaluateScansWithNetworkMatchingHomeProvider()
216 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider()
241 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(roamingProvider) in evaluateScansWithNetworkMatchingRoamingProvider()
259 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithNetworkMatchingRoamingProvider()
286 when(mPasspointManager.matchProvider(any(ScanResult.class))) in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork()
304 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScannerImpl.java20 import android.net.wifi.ScanResult;
72 protected static final Comparator<ScanResult> SCAN_RESULT_SORT_COMPARATOR =
73 new Comparator<ScanResult>() {
74 public int compare(ScanResult r1, ScanResult r2) {
DWificondScannerImpl.java21 import android.net.wifi.ScanResult;
77 new WifiScanner.ScanData(0, 0, new ScanResult[0]);
326 List<ScanResult> hwPnoScanResults = new ArrayList<>(); in pollLatestScanDataForPno()
329 ScanResult result = mNativePnoScanResults.get(i).getScanResult(); in pollLatestScanDataForPno()
343 ScanResult[] pnoScanResultsArray = in pollLatestScanDataForPno()
344 hwPnoScanResults.toArray(new ScanResult[hwPnoScanResults.size()]); in pollLatestScanDataForPno()
369 List<ScanResult> singleScanResults = new ArrayList<>(); in pollLatestScanData()
372 ScanResult result = mNativeScanResults.get(i).getScanResult(); in pollLatestScanData()
389 for (ScanResult scanResult : singleScanResults) { in pollLatestScanData()
398 singleScanResults.toArray(new ScanResult[singleScanResults.size()])); in pollLatestScanData()
[all …]
/frameworks/base/wifi/java/android/net/wifi/rtt/
DResponderConfig.java19 import static android.net.wifi.ScanResult.InformationElement.EID_HT_CAPABILITIES;
20 import static android.net.wifi.ScanResult.InformationElement.EID_VHT_CAPABILITIES;
26 import android.net.wifi.ScanResult;
296 public static ResponderConfig fromScanResult(ScanResult scanResult) { in fromScanResult()
309 for (ScanResult.InformationElement ie : scanResult.informationElements) { in fromScanResult()
485 case ScanResult.CHANNEL_WIDTH_20MHZ: in translateScanResultChannelWidth()
487 case ScanResult.CHANNEL_WIDTH_40MHZ: in translateScanResultChannelWidth()
489 case ScanResult.CHANNEL_WIDTH_80MHZ: in translateScanResultChannelWidth()
491 case ScanResult.CHANNEL_WIDTH_160MHZ: in translateScanResultChannelWidth()
493 case ScanResult.CHANNEL_WIDTH_80MHZ_PLUS_MHZ: in translateScanResultChannelWidth()

12345