Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DScanScheduleUtilFilterTest.java31 import android.net.wifi.WifiScanner.ScanData;
133 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataEmptyWithNoBucketInfo()
134 new ScanData[0], settings, -1); in filterScanDataEmptyWithNoBucketInfo()
145 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithNoBucketInfo()
157 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex()
169 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleNotMatchingWithBucketDefinitlyScanned()
181 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleMatchingWithNoBucketInfo()
194 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSingleMatchingWithBucketDefinitlyNotScanned()
207 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataSinglePartialMatchingWithNoBucketInfo()
220 ScanData[] results = ScanScheduleUtil.filterResultsForSettings(mChannelHelper, in filterScanDataMultipleNotMatchingWithNoBucketInfo()
[all …]
DBaseWifiScannerImplTest.java30 import android.net.wifi.WifiScanner.ScanData;
459 ScanData scanData = new ScanData(0, 0, 0, in singleScanWhereSupplicantReturnsSomeOldResults()
/packages/modules/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()
DWificondScannerImpl.java77 private WifiScanner.ScanData mLatestSingleScanResult =
78 new WifiScanner.ScanData(0, 0, new ScanResult[0]);
260 public WifiScanner.ScanData getLatestSingleScanResults() { in getLatestSingleScanResults()
432 mLatestSingleScanResult = new WifiScanner.ScanData(0, 0, 0, in pollLatestScanData()
445 public WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush) { in getLatestBatchedScanResults()
DWifiScannerImpl.java131 public abstract WifiScanner.ScanData getLatestSingleScanResults(); in getLatestSingleScanResults()
161 public abstract WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush); in getLatestBatchedScanResults()
DHalWifiScannerImpl.java86 public WifiScanner.ScanData getLatestSingleScanResults() { in getLatestSingleScanResults()
118 public WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush) { in getLatestBatchedScanResults()
DWifiScanningServiceImpl.java40 import android.net.wifi.WifiScanner.ScanData;
1014 public void onScanPaused(ScanData[] scanData) { in onScanPaused()
1068 public @Nullable ScanData getLatestSingleScanResults() { in getLatestSingleScanResults()
1069 ScanData consolidatedScanData = null; in getLatestSingleScanResults()
1075 ScanData scanData = impl.getLatestSingleScanResults(); in getLatestSingleScanResults()
1077 consolidatedScanData = new ScanData(scanData); in getLatestSingleScanResults()
1318 ScanData latestScanResults = in processMessage()
1623 void reportScanResults(@NonNull ScanData results) { in reportScanResults()
1631 ScanData[] allResults = new ScanData[] {results}; in reportScanResults()
1633 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()
DWifiScannerInternal.java82 public void onResults(WifiScanner.ScanData[] scanDatas) { in onResults()
/packages/modules/Wifi/service/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()
184 mRawScanData = new ScanData(id, 0, 0, bandScanned, sortedScanResults); in ScanResults()
190 mScanData = new ScanData(id, 0, 0, bandScanned, reducedScanResults); in ScanResults()
198 public ScanData getScanData() { in getScanData()
206 public ScanData getRawScanData() { in getRawScanData()
DScanTestUtil.java27 import android.net.wifi.WifiScanner.ScanData;
321 private static ScanData createScanData(int[] freqs, int bucketsScanned, int bandScanned) { in createScanData()
326 return new ScanData(0, 0, bucketsScanned, bandScanned, results); in createScanData()
329 private static ScanData createScanData(int[] freqs, int bucketsScanned) { in createScanData()
333 public static ScanData[] createScanDatas( in createScanDatas()
337 ScanData[] data = new ScanData[freqs.length]; in createScanDatas()
344 public static ScanData[] createScanDatas(int[][] freqs, int[] bucketsScanned) { in createScanDatas()
346 ScanData[] data = new ScanData[freqs.length]; in createScanDatas()
353 public static ScanData[] createScanDatas(int[][] freqs) { in createScanDatas()
420 private static void assertScanDataEquals(String prefix, ScanData expected, ScanData actual) { in assertScanDataEquals()
[all …]
DWifiHealthMonitorTest.java39 import android.net.wifi.WifiScanner.ScanData;
135 private ScanData mScanData;
292 ScanData mockScanData() { in mockScanData()
293 ScanData[] scanDatas = in mockScanData()
304 ScanData mockScanDataAbove2GOnly() { in mockScanDataAbove2GOnly()
305 ScanData[] scanDatas = in mockScanDataAbove2GOnly()
320 ScanData[] scanDatas = new ScanData[1]; in mockWifiScanner()
321 scanDatas[0] = mock(ScanData.class); in mockWifiScanner()
DWifiVendorHalTest.java1238 WifiScanner.ScanData[] data = createFrameworkBgScanDatas(); in testBgScanScanResults()
1718 private WifiScanner.ScanData[] createFrameworkBgScanDatas() { in createFrameworkBgScanDatas()
1727 WifiScanner.ScanData[] scanDatas = new WifiScanner.ScanData[1]; in createFrameworkBgScanDatas()
1730 WifiScanner.ScanData scanData = in createFrameworkBgScanDatas()
1731 new WifiScanner.ScanData(mWifiVendorHal.mScan.cmdId, 1, in createFrameworkBgScanDatas()
1753 private void assertScanDataEqual(WifiScanner.ScanData expected, WifiScanner.ScanData actual) { in assertScanDataEqual()
1761 List<WifiScanner.ScanData> expected, List<WifiScanner.ScanData> actual) { in assertScanDatasEqual()
DWifiNativeTest.java56 import android.net.wifi.WifiScanner.ScanData;
1658 ScanData testScanData = new ScanData(0, 0, in testGetCachedScanResultsLocationDisabledOrInvalidTimestamp()
1663 ScanData scanData = mWifiNative.getCachedScanResults(WIFI_IFACE_NAME); in testGetCachedScanResultsLocationDisabledOrInvalidTimestamp()
1682 ScanData testScanData = new ScanData(0, 0, in testGetCachedScanResultsLocationEnabledValidTimestamp()
1687 ScanData scanData = mWifiNative.getCachedScanResults(WIFI_IFACE_NAME); in testGetCachedScanResultsLocationEnabledValidTimestamp()
DScanRequestProxyTest.java107 private WifiScanner.ScanData[] mTestScanDatas1;
108 private WifiScanner.ScanData[] mTestScanDatas2;
109 private WifiScanner.ScanData[] mTestHiddenNetworkScanDatas;
329 WifiScanner.ScanData[] partialScanData = in testPartialScanIsCached()
511 new WifiScanner.ScanData[] {mTestScanDatas1[0], mTestScanDatas2[0]}); in testNewScanRequestAfterPreviousScanSucceedsWithInvalidScanDatas()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiScanner.java364 public void onResults(WifiScanner.ScanData[] results) { in onResults()
819 public static class ScanData implements Parcelable { class in WifiScanner
844 public ScanData() { in ScanData() method in WifiScanner.ScanData
848 public ScanData(int id, int flags, ScanResult[] results) { in ScanData() method in WifiScanner.ScanData
855 public ScanData(int id, int flags, int bucketsScanned, int bandsScanned, in ScanData() method in WifiScanner.ScanData
861 public ScanData(int id, int flags, int bucketsScanned, int bandsScanned, in ScanData() method in WifiScanner.ScanData
870 public ScanData(ScanData s) { in ScanData() method in WifiScanner.ScanData
939 public void addResults(@NonNull ScanData s) { in addResults()
966 public static final @NonNull Creator<ScanData> CREATOR =
967 new Creator<ScanData>() {
[all …]
DIScanDataListener.aidl19 import android.net.wifi.WifiScanner.ScanData;
25 void onResult(in ScanData scanData); in onResult()
DWifiScanner.aidl22 parcelable WifiScanner.ScanData;
DIWifiScannerListener.aidl33 void onResults(in WifiScanner.ScanData[] results); in onResults()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiScannerTest.java42 import android.net.wifi.WifiScanner.ScanData;
82 private ScanData[] mScanData = {};
229 ScanData writeScanData = new ScanData(2, 0, 3, in verifyScanDataParcel()
232 ScanData readScanData = parcelWriteRead(writeScanData); in verifyScanDataParcel()
244 private static ScanData parcelWriteRead(ScanData writeScanData) throws Exception { in parcelWriteRead()
248 return ScanData.CREATOR.createFromParcel(parcel); in parcelWriteRead()
382 ScanData[] scanDatas = new ScanData[]{ in testStartScanListenerOnResults()
383 new ScanData(0, 0, new ScanResult[]{scanResult})}; in testStartScanListenerOnResults()
460 ScanData scanData = new ScanData(0, 0, new ScanResult[]{scanResult1}); in testScanDataAddResults()
476 ScanData scanData = new ScanData(5, 4, new ScanResult[]{scanResult1}); in testScanDataParcel()
[all …]
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DWifiGScanReceiver.java11 import android.net.wifi.WifiScanner.ScanData;
169 public void onResults(ScanData[] results) { in onResults()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiStaIfaceAidlImpl.java391 public WifiScanner.ScanData getCachedScanData() { in getCachedScanData()
920 WifiScanner.ScanData[] frameworkScanDatas = halToFrameworkScanDatas(cmdId, scanDatas); in onBackgroundScanResults()
1092 private WifiScanner.ScanData[] halToFrameworkScanDatas(int cmdId, StaScanData[] scanDatas) { in halToFrameworkScanDatas()
1093 if (scanDatas == null || scanDatas.length == 0) return new WifiScanner.ScanData[0]; in halToFrameworkScanDatas()
1094 WifiScanner.ScanData[] frameworkScanDatas = new WifiScanner.ScanData[scanDatas.length]; in halToFrameworkScanDatas()
1100 new WifiScanner.ScanData(cmdId, flags, scanData.bucketsScanned, in halToFrameworkScanDatas()
1164 private WifiScanner.ScanData halToFrameworkCachedScanData(CachedScanData cachedScanData) { in halToFrameworkCachedScanData()
1170 WifiScanner.ScanData frameworkScanData = new WifiScanner.ScanData(0, 0, in halToFrameworkCachedScanData()
DWifiStaIface.java108 void onBackgroundScanResults(int cmdId, WifiScanner.ScanData[] scanDatas); in onBackgroundScanResults()
290 public WifiScanner.ScanData getCachedScanData() { in getCachedScanData()
DIWifiStaIface.java136 WifiScanner.ScanData getCachedScanData(); in getCachedScanData()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DScanRequestProxy.java143 public void onResults(WifiScanner.ScanData[] scanDatas) { in onResults()
153 WifiScanner.ScanData scanData = scanDatas[0]; in onResults()
222 public void onResults(WifiScanner.ScanData[] scanDatas) { in onResults()

12