Home
last modified time | relevance | path

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

123456

/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.java32 import android.net.wifi.ScanResult;
90 private ScanResult mTestScanResult;
109 mTestScanResult = new ScanResult(); in setUp()
113 ScanResult[] scanResults = new ScanResult[1]; in setUp()
162 private ScanResult createOpenScanResult(String ssid, int frequency) { in createOpenScanResult()
163 ScanResult scanResult = new ScanResult(); in createOpenScanResult()
170 private ScanResult createOweScanResult(String ssid, int frequency) { in createOweScanResult()
171 ScanResult scanResult = new ScanResult(); in createOweScanResult()
341 ScanResult savedScanResult = createOpenScanResult(ssid1, 2412 /* frequency */); in startInitializesWakeupLockWithSavedScanResults()
342 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/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()
127 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in testPskSha256SaeTransitionModeCheck()
146 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in testPskSaeTransitionModeCheck()
165 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in testPskNotInTransitionModeCheck()
184 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in testSaeNotInTransitionModeCheck()
[all …]
/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/core/tests/coretests/src/android/net/
DNetworkKeyTest.java24 import android.net.wifi.ScanResult;
111 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_nullSsid()
119 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_emptySsid()
128 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_noneSsid()
137 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_nullBssid()
145 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_emptyBssid()
154 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_invalidBssid()
163 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_validSsid()
/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/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/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/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.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.java38 public class ScanResult implements Parcelable { class
406 return ScanResult.is24GHz(frequency); in is24GHz()
421 return ScanResult.is5GHz(frequency); in is5GHz()
562 public ScanResult(WifiSsid wifiSsid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
592 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() method in ScanResult
614 public ScanResult(String Ssid, String BSSID, long hessid, int anqpDomainId, String caps, in ScanResult() method in ScanResult
643 public ScanResult(WifiSsid wifiSsid, String Ssid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
653 public ScanResult(@NonNull ScanResult source) { in ScanResult() method in ScanResult
688 public ScanResult() { in ScanResult() method in ScanResult
808 public static final @NonNull Creator<ScanResult> CREATOR =
[all …]
DWifiNetworkScoreCache.java132 public boolean isScoredNetwork(ScanResult result) { in isScoredNetwork()
142 public boolean hasScoreCurve(ScanResult result) { in hasScoreCurve()
147 public int getNetworkScore(ScanResult result) { in getNetworkScore()
167 public boolean getMeteredHint(ScanResult result) { in getMeteredHint()
172 public int getNetworkScore(ScanResult result, boolean isActiveNetwork) { in getNetworkScore()
189 public ScoredNetwork getScoredNetwork(ScanResult result) { in getScoredNetwork()
237 private String buildNetworkKey(ScanResult result) { in buildNetworkKey()
261 List<ScanResult> latestScanResults) { in dumpWithLatestScanResults()
272 for (ScanResult scanResult : latestScanResults) { in dumpWithLatestScanResults()
/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/services/tests/servicestests/src/com/android/server/pm/
DScanTests.java105 final PackageManagerService.ScanResult scanResult = executeScan(scanRequest); in newInstallSimpleAllNominal()
123 final PackageManagerService.ScanResult scanResult = executeScan(scanRequest); in newInstallForAllUsers()
137 final PackageManagerService.ScanResult scanResult = executeScan(scanRequest); in installRealPackageName()
147 final PackageManagerService.ScanResult scanResultNoReal = executeScan(scanRequestNoRealPkg); in installRealPackageName()
166 final PackageManagerService.ScanResult scanResult = executeScan(scanRequest); in updateSimpleNominal()
197 final PackageManagerService.ScanResult scanResult = executeScan(scanRequest); in updateInstantSimpleNominal()
217 final PackageManagerService.ScanResult scanResult = executeScan(scanRequest); in installStaticSharedLibrary()
249 final PackageManagerService.ScanResult scanResult = executeScan(scanRequest); in installDynamicLibraries()
290 final PackageManagerService.ScanResult scanResult = executeScan( in volumeUuidChangesOnUpdate()
307 final PackageManagerService.ScanResult scanResult = executeScan(new ScanRequestBuilder( in scanFirstBoot_derivesAbis()
[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/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTracker.java32 import android.net.wifi.ScanResult;
157 private final HashMap<String, ScanResult> mScanResultCache = new HashMap<>();
458 private ArrayMap<String, List<ScanResult>> updateScanResultCache( in updateScanResultCache()
459 final List<ScanResult> newResults) { in updateScanResultCache()
462 for (ScanResult newResult : newResults) { in updateScanResultCache()
472 ArrayMap<String, List<ScanResult>> scanResultsByApKey = new ArrayMap<>(); in updateScanResultCache()
473 for (ScanResult result : mScanResultCache.values()) { in updateScanResultCache()
481 List<ScanResult> resultList; in updateScanResultCache()
508 for (Iterator<ScanResult> iter = mScanResultCache.values().iterator(); iter.hasNext(); ) { in evictOldScans()
509 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()
/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/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;
27 import android.net.wifi.ScanResult;
297 public static ResponderConfig fromScanResult(ScanResult scanResult) { in fromScanResult()
310 for (ScanResult.InformationElement ie : scanResult.informationElements) { in fromScanResult()
486 case ScanResult.CHANNEL_WIDTH_20MHZ: in translateScanResultChannelWidth()
488 case ScanResult.CHANNEL_WIDTH_40MHZ: in translateScanResultChannelWidth()
490 case ScanResult.CHANNEL_WIDTH_80MHZ: in translateScanResultChannelWidth()
492 case ScanResult.CHANNEL_WIDTH_160MHZ: in translateScanResultChannelWidth()
494 case ScanResult.CHANNEL_WIDTH_80MHZ_PLUS_MHZ: in translateScanResultChannelWidth()
/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) {

123456