Home
last modified time | relevance | path

Searched refs:ScanData (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DScanScheduleUtilFilterTest.java31 import android.net.wifi.WifiScanner.ScanData;
129 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataEmptyWithNoBucketInfo()
130 new ScanData[0], settings, -1); in filterScanDataEmptyWithNoBucketInfo()
141 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithNoBucketInfo()
153 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex()
165 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithBucketDefinitlyScanned()
177 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleMatchingWithNoBucketInfo()
190 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleMatchingWithBucketDefinitlyNotScanned()
203 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSinglePartialMatchingWithNoBucketInfo()
216 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataMultipleNotMatchingWithNoBucketInfo()
[all …]
DBaseWifiScannerImplTest.java30 import android.net.wifi.WifiScanner.ScanData;
442 ScanData scanData = new ScanData(0, 0, 0, in singleScanWhereSupplicantReturnsSomeOldResults()
DWifiScanningServiceTest.java237 WifiScanner.ScanData... expected) { in verifyScanResultsReceived()
243 private static void assertScanResultsMessage(int listenerId, WifiScanner.ScanData[] expected, in assertScanResultsMessage()
326 new WifiScanner.ScanData[] {results2.getScanData()}, in verifyMultipleSingleScanResults()
330 new WifiScanner.ScanData[] {results1.getScanData()}, in verifyMultipleSingleScanResults()
335 new WifiScanner.ScanData[] {listenerResults.getScanData()}, in verifyMultipleSingleScanResults()
340 new WifiScanner.ScanData[] {results1.getScanData()}, in verifyMultipleSingleScanResults()
344 new WifiScanner.ScanData[] {results2.getScanData()}, in verifyMultipleSingleScanResults()
349 new WifiScanner.ScanData[] {listenerResults.getScanData()}, in verifyMultipleSingleScanResults()
2220 WifiScanner.ScanData[] scanDatas = new WifiScanner.ScanData[1]; in expectSuccessfulBackgroundScan()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanResults.java20 import android.net.wifi.WifiScanner.ScanData;
39 private final ScanData mScanData;
40 private final ScanData mRawScanData;
43 private ScanResults(ArrayList<ScanDetail> scanDetails, ScanData scanData, in ScanResults()
65 return new ScanResults(scanDetails, new ScanData(id, 0, 0, bandScanned, scanDataResults in merge()
167 mRawScanData = new ScanData(id, 0, 0, bandScanned, sortedScanResults); in ScanResults()
173 mScanData = new ScanData(id, 0, 0, bandScanned, reducedScanResults); in ScanResults()
181 public ScanData getScanData() { in getScanData()
189 public ScanData getRawScanData() { in getRawScanData()
DScanTestUtil.java25 import android.net.wifi.WifiScanner.ScanData;
258 private static ScanData createScanData(int[] freqs, int bucketsScanned, int bandScanned) { in createScanData()
263 return new ScanData(0, 0, bucketsScanned, bandScanned, results); in createScanData()
266 private static ScanData createScanData(int[] freqs, int bucketsScanned) { in createScanData()
270 public static ScanData[] createScanDatas( in createScanDatas()
274 ScanData[] data = new ScanData[freqs.length]; in createScanDatas()
281 public static ScanData[] createScanDatas(int[][] freqs, int[] bucketsScanned) { in createScanDatas()
283 ScanData[] data = new ScanData[freqs.length]; in createScanDatas()
290 public static ScanData[] createScanDatas(int[][] freqs) { in createScanDatas()
332 private static void assertScanDataEquals(String prefix, ScanData expected, ScanData actual) { in assertScanDataEquals()
[all …]
DWifiConnectivityManagerTest.java44 import android.net.wifi.WifiScanner.ScanData;
134 private ScanData mScanData;
195 ScanData mockScanData() { in mockScanData()
196 ScanData scanData = mock(ScanData.class); in mockScanData()
210 ScanData[] scanDatas = new ScanData[1]; in mockWifiScanner()
1988 private ScanData createScanDataWithDifferentRadioChainInfos() {
1990 ScanData[] scanDatas =
DWakeupControllerTest.java89 private WifiScanner.ScanData[] mTestScanDatas;
115 mTestScanDatas = new WifiScanner.ScanData[1]; in setUp()
116 mTestScanDatas[0] = new WifiScanner.ScanData(0 /* id */, 0 /* flags */, in setUp()
DScanRequestProxyTest.java97 private WifiScanner.ScanData[] mTestScanDatas1;
98 private WifiScanner.ScanData[] mTestScanDatas2;
417 new WifiScanner.ScanData[] {mTestScanDatas1[0], mTestScanDatas2[0]}); in testNewScanRequestAfterPreviousScanSucceedsWithInvalidScanDatas()
DWifiVendorHalTest.java2137 Pair<ArrayList<StaScanData>, ArrayList<WifiScanner.ScanData>> data = in testBgScanScanResults()
3332 private Pair<ArrayList<StaScanData>, ArrayList<WifiScanner.ScanData>>
3343 ArrayList<WifiScanner.ScanData> scanDatas = new ArrayList<>(); in createHidlAndFrameworkBgScanDatas()
3346 WifiScanner.ScanData scanData = in createHidlAndFrameworkBgScanDatas()
3347 new WifiScanner.ScanData(mWifiVendorHal.mScan.cmdId, 1, in createHidlAndFrameworkBgScanDatas()
3369 private void assertScanDataEqual(WifiScanner.ScanData expected, WifiScanner.ScanData actual) { in assertScanDataEqual()
3377 List<WifiScanner.ScanData> expected, List<WifiScanner.ScanData> actual) { in assertScanDatasEqual()
DWifiNetworkFactoryTest.java141 WifiScanner.ScanData[] mTestScanDatas;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DScanScheduleUtil.java21 import android.net.wifi.WifiScanner.ScanData;
152 public static ScanData[] filterResultsForSettings(ChannelHelper channelHelper, in filterResultsForSettings()
153 ScanData[] scanDatas, ScanSettings settings, int scheduledBucket) { in filterResultsForSettings()
154 List<ScanData> filteredScanDatas = new ArrayList<>(scanDatas.length); in filterResultsForSettings()
156 for (ScanData scanData : scanDatas) { in filterResultsForSettings()
176 filteredScanDatas.add(new ScanData(scanData.getId(), in filterResultsForSettings()
188 return filteredScanDatas.toArray(new ScanData[filteredScanDatas.size()]); in filterResultsForSettings()
DWifiScannerImpl.java111 public abstract WifiScanner.ScanData getLatestSingleScanResults(); in getLatestSingleScanResults()
141 public abstract WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush); in getLatestBatchedScanResults()
DWificondScannerImpl.java75 private WifiScanner.ScanData mLatestSingleScanResult =
76 new WifiScanner.ScanData(0, 0, new ScanResult[0]);
230 public WifiScanner.ScanData getLatestSingleScanResults() { in getLatestSingleScanResults()
404 mLatestSingleScanResult = new WifiScanner.ScanData(0, 0, 0, in pollLatestScanData()
417 public WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush) { in getLatestBatchedScanResults()
DHalWifiScannerImpl.java85 public WifiScanner.ScanData getLatestSingleScanResults() { in getLatestSingleScanResults()
117 public WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush) { in getLatestBatchedScanResults()
DWifiScanningServiceImpl.java30 import android.net.wifi.WifiScanner.ScanData;
564 public void onScanPaused(ScanData[] scanData) { in onScanPaused()
1020 void reportScanResults(ScanData results) { in reportScanResults()
1028 ScanData[] allResults = new ScanData[] {results}; in reportScanResults()
1030 ScanData[] resultsToDeliver = ScanScheduleUtil.filterResultsForSettings( in reportScanResults()
1120 public void onScanPaused(ScanData scanData[]) { in onScanPaused()
1262 reportScanResults((ScanData[]) msg.obj); in processMessage()
1445 private void reportScanResults(ScanData[] results) { in reportScanResults()
1450 for (ScanData result : results) { in reportScanResults()
1463 ScanData[] resultsToDeliver = in reportScanResults()
[all …]
DBackgroundScanScheduler.java23 import android.net.wifi.WifiScanner.ScanData;
414 public @Nullable ScanData[] filterResultsForSettings(@NonNull ScanData[] scanDatas, in filterResultsForSettings()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java356 public static class ScanData implements Parcelable { class in WifiScanner
380 ScanData() {} in ScanData() method in WifiScanner.ScanData
382 public ScanData(int id, int flags, ScanResult[] results) { in ScanData() method in WifiScanner.ScanData
389 public ScanData(int id, int flags, int bucketsScanned, int bandScanned, in ScanData() method in WifiScanner.ScanData
398 public ScanData(ScanData s) { in ScanData() method in WifiScanner.ScanData
456 public static final @android.annotation.NonNull Creator<ScanData> CREATOR =
457 new Creator<ScanData>() {
458 public ScanData createFromParcel(Parcel in) {
468 return new ScanData(id, flags, bucketsScanned, bandScanned, results);
471 public ScanData[] newArray(int size) {
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java36 import android.net.wifi.WifiScanner.ScanData;
224 ScanData writeScanData = new ScanData(2, 0, 3, in verifyScanDataParcel()
227 ScanData readScanData = parcelWriteRead(writeScanData); in verifyScanDataParcel()
238 private static ScanData parcelWriteRead(ScanData writeScanData) throws Exception { in parcelWriteRead()
242 return ScanData.CREATOR.createFromParcel(parcel); in parcelWriteRead()
354 ScanData scanDatas[] = new ScanData[]{new ScanData(0, 0 , new ScanResult[] {scanResult})}; in testStartScanListenerOnResults()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanRequestProxy.java119 public void onResults(WifiScanner.ScanData[] scanDatas) { in onResults()
129 WifiScanner.ScanData scanData = scanDatas[0]; in onResults()
171 public void onResults(WifiScanner.ScanData[] scanDatas) { in onResults()
DWifiVendorHal.java657 public WifiScanner.ScanData[] latestScanResults = null;
869 public WifiScanner.ScanData[] getBgScanResults(@NonNull String ifaceName) { in getBgScanResults()
2648 private static WifiScanner.ScanData[] hidlToFrameworkScanDatas( in hidlToFrameworkScanDatas()
2650 if (scanDatas == null || scanDatas.isEmpty()) return new WifiScanner.ScanData[0]; in hidlToFrameworkScanDatas()
2651 WifiScanner.ScanData[] frameworkScanDatas = new WifiScanner.ScanData[scanDatas.size()]; in hidlToFrameworkScanDatas()
2657 new WifiScanner.ScanData(cmdId, flags, scanData.bucketsScanned, in hidlToFrameworkScanDatas()
DWifiConnectivityManager.java331 public void onResults(WifiScanner.ScanData[] results) { in onResults()
443 public void onResults(WifiScanner.ScanData[] results) { in onResults()
503 public void onResults(WifiScanner.ScanData[] results) { in onResults()
DWakeupController.java77 public void onResults(WifiScanner.ScanData[] results) {
DWifiNetworkFactory.java221 public void onResults(WifiScanner.ScanData[] scanDatas) { in onResults()
230 WifiScanner.ScanData scanData = scanDatas[0]; in onResults()
DWifiNative.java2541 void onScanPaused(WifiScanner.ScanData[] data); in onScanPaused()
2611 public WifiScanner.ScanData[] getBgScanResults(@NonNull String ifaceName) { in getBgScanResults()
/frameworks/base/api/
Dsystem-current.txt5524 ctor public WifiScanner.ParcelableScanData(android.net.wifi.WifiScanner.ScanData[]);
5525 method public android.net.wifi.WifiScanner.ScanData[] getResults();
5526 field public android.net.wifi.WifiScanner.ScanData[] mResults;
5535 public static class WifiScanner.ScanData implements android.os.Parcelable {
5536 ctor public WifiScanner.ScanData(int, int, android.net.wifi.ScanResult[]);
5537 ctor public WifiScanner.ScanData(android.net.wifi.WifiScanner.ScanData);
5546 method public void onResults(android.net.wifi.WifiScanner.ScanData[]);

12