Home
last modified time | relevance | path

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

12345

/frameworks/base/wifi/tests/src/android/net/wifi/
DScanResultTest.java66 ScanResult writeScanResult = createScanResult(); in verifyScanResultParcelWithoutRadioChainInfo()
67 ScanResult readScanResult = parcelReadWrite(writeScanResult); in verifyScanResultParcelWithoutRadioChainInfo()
76 ScanResult writeScanResult = createScanResult(); in verifyScanResultParcelWithZeroRadioChainInfo()
77 writeScanResult.radioChainInfos = new ScanResult.RadioChainInfo[0]; in verifyScanResultParcelWithZeroRadioChainInfo()
78 ScanResult readScanResult = parcelReadWrite(writeScanResult); in verifyScanResultParcelWithZeroRadioChainInfo()
87 ScanResult writeScanResult = createScanResult(); in verifyScanResultParcelWithRadioChainInfo()
88 writeScanResult.radioChainInfos = new ScanResult.RadioChainInfo[2]; in verifyScanResultParcelWithRadioChainInfo()
89 writeScanResult.radioChainInfos[0] = new ScanResult.RadioChainInfo(); in verifyScanResultParcelWithRadioChainInfo()
92 writeScanResult.radioChainInfos[1] = new ScanResult.RadioChainInfo(); in verifyScanResultParcelWithRadioChainInfo()
95 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;
58 private ScanResult makeScanResult(String ssid, int frequency, int level) { in makeScanResult()
59 ScanResult scanResult = new ScanResult(); in makeScanResult()
92 ScanResult scanResult24 = makeScanResult(SAVED_SSID_1, FREQ_24, THRESHOLD_24 - 1); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold()
95 ScanResult scanResult5 = makeScanResult(SAVED_SSID_1, FREQ_5, THRESHOLD_5 - 1); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold()
104 ScanResult scanResult24 = makeScanResult(SAVED_SSID_1, FREQ_24, THRESHOLD_24 + 1); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold()
107 ScanResult scanResult5 = makeScanResult(SAVED_SSID_1, FREQ_5, THRESHOLD_5 + 1); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold()
117 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks()
120 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks()
130 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 …]
DWakeupControllerTest.java31 import android.net.wifi.ScanResult;
88 private ScanResult mTestScanResult;
107 mTestScanResult = new ScanResult(); in setUp()
111 ScanResult[] scanResults = new ScanResult[1]; in setUp()
158 private ScanResult createOpenScanResult(String ssid, int frequency) { in createOpenScanResult()
159 ScanResult scanResult = new ScanResult(); in createOpenScanResult()
166 private ScanResult createOweScanResult(String ssid, int frequency) { in createOweScanResult()
167 ScanResult scanResult = new ScanResult(); in createOweScanResult()
337 ScanResult savedScanResult = createOpenScanResult(ssid1, 2412 /* frequency */); in startInitializesWakeupLockWithSavedScanResults()
338 ScanResult unsavedScanResult = createOpenScanResult(ssid2, 2412 /* frequency */); in startInitializesWakeupLockWithSavedScanResults()
[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;
465 protocol.add(ScanResult.PROTOCOL_RSN); in parseRsnElement()
488 rsnKeyManagement.add(ScanResult.KEY_MGMT_EAP); in parseRsnElement()
491 rsnKeyManagement.add(ScanResult.KEY_MGMT_PSK); in parseRsnElement()
494 rsnKeyManagement.add(ScanResult.KEY_MGMT_FT_EAP); in parseRsnElement()
497 rsnKeyManagement.add(ScanResult.KEY_MGMT_FT_PSK); in parseRsnElement()
500 rsnKeyManagement.add(ScanResult.KEY_MGMT_EAP_SHA256); in parseRsnElement()
503 rsnKeyManagement.add(ScanResult.KEY_MGMT_PSK_SHA256); in parseRsnElement()
506 rsnKeyManagement.add(ScanResult.KEY_MGMT_SAE); 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 isScanResultForEapSuiteBNetwork(ScanResult scanResult) { in isScanResultForEapSuiteBNetwork()
77 public static boolean isScanResultForWepNetwork(ScanResult scanResult) { in isScanResultForWepNetwork()
85 public static boolean isScanResultForOweNetwork(ScanResult scanResult) { in isScanResultForOweNetwork()
93 public static boolean isScanResultForOweTransitionNetwork(ScanResult scanResult) { in isScanResultForOweTransitionNetwork()
101 public static boolean isScanResultForSaeNetwork(ScanResult scanResult) { in isScanResultForSaeNetwork()
109 public static boolean isScanResultForPskSaeTransitionNetwork(ScanResult scanResult) { in isScanResultForPskSaeTransitionNetwork()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java23 import android.net.wifi.ScanResult;
110 ScanResult scanResult = new ScanResult(); in createFromScanResult_nullWifiSsid()
118 ScanResult scanResult = new ScanResult(); in createFromScanResult_emptyWifiSsid()
127 ScanResult scanResult = new ScanResult(); in createFromScanResult_noneWifiSsid()
136 ScanResult scanResult = new ScanResult(); in createFromScanResult_nullBssid()
144 ScanResult scanResult = new ScanResult(); in createFromScanResult_emptyBssid()
153 ScanResult scanResult = new ScanResult(); in createFromScanResult_invalidBssid()
162 ScanResult scanResult = new ScanResult(); in createFromScanResult_validWifiSsid()
/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()
87 ScanResult scan1 = new ScanResult(); in getDummyRangingRequestMcOnly()
89 scan1.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in getDummyRangingRequestMcOnly()
90 scan1.channelWidth = ScanResult.CHANNEL_WIDTH_40MHZ; in getDummyRangingRequestMcOnly()
103 ScanResult scan1 = new ScanResult(); in getDummyRangingRequestNo80211mcSupport()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java29 import android.net.wifi.ScanResult;
131 ScanResult scanResult1 = new ScanResult(); in testRangingRequestParcel()
133 ScanResult scanResult2 = new ScanResult(); in testRangingRequestParcel()
135 ScanResult scanResult3 = new ScanResult(); in testRangingRequestParcel()
137 List<ScanResult> scanResults2and3 = new ArrayList<>(2); in testRangingRequestParcel()
168 ScanResult scanResult = new ScanResult(); in testRangingRequestAtLimit()
170 List<ScanResult> scanResultList = new ArrayList<>(); in testRangingRequestAtLimit()
193 ScanResult scanResult = new ScanResult(); in testRangingRequestPastLimit()
195 List<ScanResult> scanResultList = new ArrayList<>(); in testRangingRequestPastLimit()
347 ScanResult.InformationElement htCap = new ScanResult.InformationElement(); in testResponderPreambleSelection()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupEvaluator.java19 import android.net.wifi.ScanResult;
46 public ScanResult findViableNetwork(Collection<ScanResult> scanResults, in findViableNetwork()
48 ScanResult selectedScanResult = null; in findViableNetwork()
50 for (ScanResult scanResult : scanResults) { in findViableNetwork()
67 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()
/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 … final @android.annotation.NonNull 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/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;
45 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResult()
61 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResultWithAnqpLines()
77 ScanResult input = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "other caps", in convertScanResultWithoutWifiSsid()
91 ScanResult scanResult = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "", in testNetworkCreationFromScanResult()
126 private static void validateScanDetail(ScanResult input, ScanDetail output) { in validateScanDetail()
/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.java30 import android.net.wifi.ScanResult;
80 ArrayList<ScanResult> scanResults = buildScanResultCache(); in testVerboseSummaryString_showsScanResultSpeedLabel()
85 when(mockWifiNetworkScoreCache.getScoredNetwork(any(ScanResult.class))) in testVerboseSummaryString_showsScanResultSpeedLabel()
99 Set<ScanResult> set = new ArraySet<>(); in testGetVisibilityStatus_nullResultDoesNotCrash()
151 private static ArrayList<ScanResult> buildScanResultCache() { in buildScanResultCache()
152 ArrayList<ScanResult> scanResults = new ArrayList<>(); in buildScanResultCache()
154 ScanResult scanResult = createScanResult(TEST_SSID, "bssid-" + i, i); in buildScanResultCache()
160 private static ScanResult createScanResult(String ssid, String bssid, int rssi) { in createScanResult()
161 ScanResult scanResult = new ScanResult(); in createScanResult()
/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/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTracker.java32 import android.net.wifi.ScanResult;
155 private final HashMap<String, ScanResult> mScanResultCache = new HashMap<>();
456 private ArrayMap<String, List<ScanResult>> updateScanResultCache( in updateScanResultCache()
457 final List<ScanResult> newResults) { in updateScanResultCache()
460 for (ScanResult newResult : newResults) { in updateScanResultCache()
470 ArrayMap<String, List<ScanResult>> scanResultsByApKey = new ArrayMap<>(); in updateScanResultCache()
471 for (ScanResult result : mScanResultCache.values()) { in updateScanResultCache()
479 List<ScanResult> resultList; in updateScanResultCache()
506 for (Iterator<ScanResult> iter = mScanResultCache.values().iterator(); iter.hasNext(); ) { in evictOldScans()
507 ScanResult result = iter.next(); in evictOldScans()
[all …]
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java27 import android.net.wifi.ScanResult;
106 static boolean matchesName(@Nullable Pattern namePattern, ScanResult device) { in matchesName()
126 boolean result, ScanResult device, Object criteria) { in debugLogMatchResult()
136 public static String getDeviceDisplayNameInternal(@NonNull ScanResult device) { in getDeviceDisplayNameInternal()
144 } else if (device instanceof ScanResult) { in getDeviceMacAddress()
145 return ((ScanResult) device).BSSID; in getDeviceMacAddress()
146 } else if (device instanceof android.bluetooth.le.ScanResult) { in getDeviceMacAddress()
147 return getDeviceMacAddress(((android.bluetooth.le.ScanResult) device).getDevice()); in getDeviceMacAddress()
DWifiDeviceFilter.java28 import android.net.wifi.ScanResult;
40 public final class WifiDeviceFilter implements DeviceFilter<ScanResult> {
62 public boolean matches(ScanResult device) { in matches()
68 public String getDeviceDisplayName(ScanResult device) { in getDeviceDisplayName()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java378 private ScanResult mResults[];
382 public ScanData(int id, int flags, ScanResult[] results) { in ScanData()
390 ScanResult[] results) { in ScanData()
403 mResults = new ScanResult[s.mResults.length]; in ScanData()
405 ScanResult result = s.mResults[i]; in ScanData()
406 ScanResult newResult = new ScanResult(result); in ScanData()
429 public ScanResult[] getResults() { in getResults()
447 ScanResult result = mResults[i]; in writeToParcel()
464 ScanResult results[] = new ScanResult[n];
466 results[i] = ScanResult.CREATOR.createFromParcel(in);
[all …]
DScanResult.java35 public class ScanResult implements Parcelable { class
403 return ScanResult.is24GHz(frequency); in is24GHz()
418 return ScanResult.is5GHz(frequency); in is5GHz()
517 public ScanResult(WifiSsid wifiSsid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
547 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() method in ScanResult
569 public ScanResult(String Ssid, String BSSID, long hessid, int anqpDomainId, String caps, in ScanResult() method in ScanResult
598 public ScanResult(WifiSsid wifiSsid, String Ssid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
608 public ScanResult(ScanResult source) { in ScanResult() method in ScanResult
643 public ScanResult() { in ScanResult() method in ScanResult
764 public static final @android.annotation.NonNull 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/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;
76 new WifiScanner.ScanData(0, 0, new ScanResult[0]);
325 List<ScanResult> hwPnoScanResults = new ArrayList<>(); in pollLatestScanDataForPno()
328 ScanResult result = mNativePnoScanResults.get(i).getScanResult(); in pollLatestScanDataForPno()
342 ScanResult[] pnoScanResultsArray = in pollLatestScanDataForPno()
343 hwPnoScanResults.toArray(new ScanResult[hwPnoScanResults.size()]); in pollLatestScanDataForPno()
377 List<ScanResult> singleScanResults = new ArrayList<>(); in pollLatestScanData()
380 ScanResult result = mNativeScanResults.get(i).getScanResult(); in pollLatestScanData()
397 for (ScanResult scanResult : singleScanResults) { in pollLatestScanData()
406 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