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;
132 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataEmptyWithNoBucketInfo()
133 new ScanData[0], settings, -1); in filterScanDataEmptyWithNoBucketInfo()
144 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithNoBucketInfo()
156 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex()
168 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithBucketDefinitlyScanned()
180 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleMatchingWithNoBucketInfo()
193 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleMatchingWithBucketDefinitlyNotScanned()
206 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSinglePartialMatchingWithNoBucketInfo()
219 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataMultipleNotMatchingWithNoBucketInfo()
[all …]
DBaseWifiScannerImplTest.java30 import android.net.wifi.WifiScanner.ScanData;
443 ScanData scanData = new ScanData(0, 0, 0, in singleScanWhereSupplicantReturnsSomeOldResults()
DWifiScanningServiceTest.java128 private static final WifiScanner.ScanData DUMMY_SCAN_DATA =
129 new WifiScanner.ScanData(0, 0, new ScanResult[0]);
267 WifiScanner.ScanData... expected) { in verifyScanResultsReceived()
273 private static void assertScanResultsMessage(int listenerId, WifiScanner.ScanData[] expected, in assertScanResultsMessage()
356 new WifiScanner.ScanData[] {results2.getScanData()}, in verifyMultipleSingleScanResults()
360 new WifiScanner.ScanData[] {results1.getScanData()}, in verifyMultipleSingleScanResults()
365 new WifiScanner.ScanData[] {listenerResults.getScanData()}, in verifyMultipleSingleScanResults()
370 new WifiScanner.ScanData[] {results1.getScanData()}, in verifyMultipleSingleScanResults()
374 new WifiScanner.ScanData[] {results2.getScanData()}, in verifyMultipleSingleScanResults()
379 new WifiScanner.ScanData[] {listenerResults.getScanData()}, in verifyMultipleSingleScanResults()
[all …]
/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.java129 public abstract WifiScanner.ScanData getLatestSingleScanResults(); in getLatestSingleScanResults()
159 public abstract WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush); in getLatestBatchedScanResults()
DHalWifiScannerImpl.java84 public WifiScanner.ScanData getLatestSingleScanResults() { in getLatestSingleScanResults()
116 public WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush) { in getLatestBatchedScanResults()
DWificondScannerImpl.java76 private WifiScanner.ScanData mLatestSingleScanResult =
77 new WifiScanner.ScanData(0, 0, new ScanResult[0]);
225 public WifiScanner.ScanData getLatestSingleScanResults() { in getLatestSingleScanResults()
393 mLatestSingleScanResult = new WifiScanner.ScanData(0, 0, 0, in pollLatestScanData()
406 public WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush) { in getLatestBatchedScanResults()
DWifiScanningServiceImpl.java33 import android.net.wifi.WifiScanner.ScanData;
714 public void onScanPaused(ScanData[] scanData) { in onScanPaused()
759 public @Nullable ScanData getLatestSingleScanResults() { in getLatestSingleScanResults()
760 ScanData consolidatedScanData = null; in getLatestSingleScanResults()
762 ScanData scanData = impl.getLatestSingleScanResults(); in getLatestSingleScanResults()
764 consolidatedScanData = new ScanData(scanData); in getLatestSingleScanResults()
1009 ScanData latestScanResults = in processMessage()
1254 void reportScanResults(@NonNull ScanData results) { in reportScanResults()
1262 ScanData[] allResults = new ScanData[] {results}; in reportScanResults()
1264 ScanData[] resultsToDeliver = ScanScheduleUtil.filterResultsForSettings( in reportScanResults()
[all …]
DBackgroundScanScheduler.java23 import android.net.wifi.WifiScanner.ScanData;
414 public @Nullable ScanData[] filterResultsForSettings(@NonNull ScanData[] scanDatas, in filterResultsForSettings()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanResults.java20 import android.net.wifi.WifiScanner.ScanData;
40 private final ScanData mScanData;
41 private final ScanData mRawScanData;
44 private ScanResults(ArrayList<ScanDetail> scanDetails, ScanData scanData, in ScanResults()
66 return new ScanResults(scanDetails, new ScanData(id, 0, 0, bandScanned, scanDataResults in merge()
183 mRawScanData = new ScanData(id, 0, 0, bandScanned, sortedScanResults); in ScanResults()
189 mScanData = new ScanData(id, 0, 0, bandScanned, reducedScanResults); in ScanResults()
197 public ScanData getScanData() { in getScanData()
205 public ScanData getRawScanData() { in getRawScanData()
DScanTestUtil.java25 import android.net.wifi.WifiScanner.ScanData;
246 private static ScanData createScanData(int[] freqs, int bucketsScanned, int bandScanned) { in createScanData()
251 return new ScanData(0, 0, bucketsScanned, bandScanned, results); in createScanData()
254 private static ScanData createScanData(int[] freqs, int bucketsScanned) { in createScanData()
258 public static ScanData[] createScanDatas( in createScanDatas()
262 ScanData[] data = new ScanData[freqs.length]; in createScanDatas()
269 public static ScanData[] createScanDatas(int[][] freqs, int[] bucketsScanned) { in createScanDatas()
271 ScanData[] data = new ScanData[freqs.length]; in createScanDatas()
278 public static ScanData[] createScanDatas(int[][] freqs) { in createScanDatas()
320 private static void assertScanDataEquals(String prefix, ScanData expected, ScanData actual) { in assertScanDataEquals()
[all …]
DWifiHealthMonitorTest.java37 import android.net.wifi.WifiScanner.ScanData;
118 private ScanData mScanData;
249 ScanData mockScanData() { in mockScanData()
250 ScanData[] scanDatas = in mockScanData()
261 ScanData mockScanDataAbove2GOnly() { in mockScanDataAbove2GOnly()
262 ScanData[] scanDatas = in mockScanDataAbove2GOnly()
282 ScanData[] scanDatas = new ScanData[1]; in mockWifiScanner()
283 scanDatas[0] = mock(ScanData.class); in mockWifiScanner()
DWakeupControllerTest.java90 private WifiScanner.ScanData[] mTestScanDatas;
120 mTestScanDatas = new WifiScanner.ScanData[1]; in setUp()
122 mTestScanDatas[0] = new WifiScanner.ScanData(0 /* id */, 0 /* flags */, in setUp()
DWifiConnectivityManagerTest.java42 import android.net.wifi.WifiScanner.ScanData;
187 private ScanData mScanData;
265 ScanData mockScanData() { in mockScanData()
266 ScanData scanData = mock(ScanData.class); in mockScanData()
281 ScanData[] scanDatas = new ScanData[1]; in mockWifiScanner()
2556 private ScanData createScanDataWithDifferentRadioChainInfos() { in createScanDataWithDifferentRadioChainInfos()
2558 ScanData[] scanDatas = in createScanDataWithDifferentRadioChainInfos()
DScanRequestProxyTest.java104 private WifiScanner.ScanData[] mTestScanDatas1;
105 private WifiScanner.ScanData[] mTestScanDatas2;
437 new WifiScanner.ScanData[] {mTestScanDatas1[0], mTestScanDatas2[0]}); in testNewScanRequestAfterPreviousScanSucceedsWithInvalidScanDatas()
DWifiVendorHalTest.java2183 Pair<ArrayList<StaScanData>, ArrayList<WifiScanner.ScanData>> data = in testBgScanScanResults()
3319 private Pair<ArrayList<StaScanData>, ArrayList<WifiScanner.ScanData>>
3330 ArrayList<WifiScanner.ScanData> scanDatas = new ArrayList<>(); in createHidlAndFrameworkBgScanDatas()
3333 WifiScanner.ScanData scanData = in createHidlAndFrameworkBgScanDatas()
3334 new WifiScanner.ScanData(mWifiVendorHal.mScan.cmdId, 1, in createHidlAndFrameworkBgScanDatas()
3356 private void assertScanDataEqual(WifiScanner.ScanData expected, WifiScanner.ScanData actual) { in assertScanDataEqual()
3364 List<WifiScanner.ScanData> expected, List<WifiScanner.ScanData> actual) { in assertScanDatasEqual()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java37 import android.net.wifi.WifiScanner.ScanData;
77 private ScanData[] mScanData = {};
223 ScanData writeScanData = new ScanData(2, 0, 3, in verifyScanDataParcel()
226 ScanData readScanData = parcelWriteRead(writeScanData); in verifyScanDataParcel()
237 private static ScanData parcelWriteRead(ScanData writeScanData) throws Exception { in parcelWriteRead()
241 return ScanData.CREATOR.createFromParcel(parcel); in parcelWriteRead()
356 ScanData scanDatas[] = new ScanData[]{new ScanData(0, 0 , new ScanResult[] {scanResult})}; in testStartScanListenerOnResults()
458 ScanData scanData = new ScanData(0, 0, new ScanResult[]{scanResult1}); in testScanDataAddResults()
474 ScanData scanData = new ScanData(5, 4, new ScanResult[]{scanResult1}); in testScanDataParcel()
479 ScanData readScanData = ScanData.CREATOR.createFromParcel(parcel); in testScanDataParcel()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java484 public static class ScanData implements Parcelable { class in WifiScanner
508 ScanData() { in ScanData() method in WifiScanner.ScanData
512 public ScanData(int id, int flags, ScanResult[] results) { in ScanData() method in WifiScanner.ScanData
519 public ScanData(int id, int flags, int bucketsScanned, int bandScanned, in ScanData() method in WifiScanner.ScanData
525 public ScanData(int id, int flags, int bucketsScanned, int bandScanned, in ScanData() method in WifiScanner.ScanData
534 public ScanData(ScanData s) { in ScanData() method in WifiScanner.ScanData
589 public static final @NonNull Creator<ScanData> CREATOR =
590 new Creator<ScanData>() {
591 public ScanData createFromParcel(Parcel in) {
598 return new ScanData(id, flags, bucketsScanned, bandScanned, results);
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanRequestProxy.java126 public void onResults(WifiScanner.ScanData[] scanDatas) { in onResults()
136 WifiScanner.ScanData scanData = scanDatas[0]; in onResults()
179 public void onResults(WifiScanner.ScanData[] scanDatas) { in onResults()
DWifiVendorHal.java701 public WifiScanner.ScanData[] latestScanResults = null;
916 public WifiScanner.ScanData[] getBgScanResults(@NonNull String ifaceName) { in getBgScanResults()
2696 private static WifiScanner.ScanData[] hidlToFrameworkScanDatas(
2698 if (scanDatas == null || scanDatas.isEmpty()) return new WifiScanner.ScanData[0];
2699 WifiScanner.ScanData[] frameworkScanDatas = new WifiScanner.ScanData[scanDatas.size()];
2705 new WifiScanner.ScanData(cmdId, flags, scanData.bucketsScanned,
DWakeupController.java75 public void onResults(WifiScanner.ScanData[] results) {
DWifiConnectivityManager.java476 public void onResults(WifiScanner.ScanData[] results) { in onResults()
617 public void onResults(WifiScanner.ScanData[] results) { in onResults()
677 public void onResults(WifiScanner.ScanData[] results) { in onResults()
DWifiNetworkFactory.java225 public void onResults(WifiScanner.ScanData[] scanDatas) { in onResults()
234 WifiScanner.ScanData scanData = scanDatas[0]; in onResults()
DWifiHealthMonitor.java1055 public void onResults(WifiScanner.ScanData[] results) { in onResults()
/frameworks/base/wifi/api/
Dsystem-current.txt682 ctor public WifiScanner.ParcelableScanData(android.net.wifi.WifiScanner.ScanData[]);
683 method public android.net.wifi.WifiScanner.ScanData[] getResults();
684 field public android.net.wifi.WifiScanner.ScanData[] mResults;
693 public static class WifiScanner.ScanData implements android.os.Parcelable {
694 ctor public WifiScanner.ScanData(int, int, android.net.wifi.ScanResult[]);
695 ctor public WifiScanner.ScanData(android.net.wifi.WifiScanner.ScanData);
704 method public void onResults(android.net.wifi.WifiScanner.ScanData[]);

12