Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanSettingsTest.java30 ScanSettings.Builder builder = new ScanSettings.Builder(); in testCallbackType()
31 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES); in testCallbackType()
32 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_FIRST_MATCH); in testCallbackType()
33 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_MATCH_LOST); in testCallbackType()
35 ScanSettings.CALLBACK_TYPE_FIRST_MATCH | ScanSettings.CALLBACK_TYPE_MATCH_LOST); in testCallbackType()
38 ScanSettings.CALLBACK_TYPE_ALL_MATCHES | ScanSettings.CALLBACK_TYPE_MATCH_LOST); in testCallbackType()
46 ScanSettings.CALLBACK_TYPE_ALL_MATCHES | in testCallbackType()
47 ScanSettings.CALLBACK_TYPE_FIRST_MATCH); in testCallbackType()
55 ScanSettings.CALLBACK_TYPE_ALL_MATCHES | in testCallbackType()
56 ScanSettings.CALLBACK_TYPE_FIRST_MATCH | in testCallbackType()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DBackgroundScanSchedulerTest.java30 import android.net.wifi.WifiScanner.ScanSettings;
82 Collection<ScanSettings> requests = Collections.emptyList(); in noRequest()
85 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in noRequest()
93 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequest()
99 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequest()
103 for (ScanSettings request : requests) { in singleRequest()
110 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequestWithoutPredefinedBucket()
116 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequestWithoutPredefinedBucket()
120 for (ScanSettings request : requests) { in singleRequestWithoutPredefinedBucket()
127 Collection<ScanSettings> requests = new ArrayList<>(); in fewRequests()
[all …]
DScanScheduleUtilFilterTest.java32 import android.net.wifi.WifiScanner.ScanSettings;
57 ScanSettings settings = createRequest( in reportFullResultTrueForBandsWithNoBucketInfo()
68 ScanSettings settings = createRequest( in reportFullResultFalseForBandsWithNoBucketInfo()
79 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithNoBucketInfo()
90 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithNoBucketInfo()
101 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithBucketDefinitlyScanned()
112 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithBucketDefinitlyNotScanned()
123 ScanSettings settings = createRequest( in filterScanDataEmptyWithNoBucketInfo()
135 ScanSettings settings = createRequest( in filterScanDataSingleNotMatchingWithNoBucketInfo()
147 ScanSettings settings = createRequest( in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex()
[all …]
DWifiScanningServiceTest.java171 private WifiScanner.ScanSettings generateValidScanSettings() { in generateValidScanSettings()
252 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendBackgroundScanRequest()
261 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendSingleScanRequest()
371 WifiNative.ScanSettings expected) { in verifyStartSingleScan()
372 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScan()
373 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScan()
383 WifiNative.ScanSettings expected) { in verifyStartBackgroundScan()
384 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartBackgroundScan()
385 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartBackgroundScan()
492 when(mWifiScannerImpl.startBatchedScan(any(WifiNative.ScanSettings.class), in loadDriver()
[all …]
DChannelHelperTest.java56 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in scanSettings_band()
66 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(5150, 2400), in scanSettings_channels()
76 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_5_GHZ, in bucketSettings_band()
87 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(2400, 5100), in bucketSettings_channels()
131 .addChannels(any(WifiScanner.ScanSettings.class)); in setUp()
141 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(5150, 2400), in addChannelsWifiScanner_channels()
155 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in addChannelsWifiScanner_band()
DBaseWifiScannerImplTest.java116 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess()
132 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels()
145 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannelsAndHighAccuracyType()
159 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults()
181 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds()
209 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds()
227 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
235 WifiNative.ScanSettings settings2 = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
253 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnExecute()
283 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnTimeout()
[all …]
DKnownBandsChannelHelperTest.java79 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2400, 2450, 5100), in fewChannels()
91 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in band()
207 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(), in emptySettings()
220 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2400, 5650), in settingsWithChannels()
233 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in settingsWithBand()
247 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in settingsWithMultiBand()
DWificondScannerTest.java79 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanNotIssuedIfNoAvailableChannels()
110 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
135 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
DWificondPnoScannerTest.java157 private WifiNative.ScanSettings createDummyScanSettings(boolean allChannelsScanned) { in createDummyScanSettings()
158 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in createDummyScanSettings()
175 private void startSuccessfulPnoScan(WifiNative.ScanSettings scanSettings, in startSuccessfulPnoScan()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java24 import android.net.wifi.WifiScanner.ScanSettings;
133 private final List<ScanSettings> mScanSettingsList = new ArrayList<>();
148 for (ScanSettings settings : originalBucket.getSettingsList()) { in Bucket()
162 public boolean addSettings(ScanSettings scanSettings) { in addSettings()
167 public boolean removeSettings(ScanSettings scanSettings) { in removeSettings()
178 public List<ScanSettings> getSettingsList() { in getSettingsList()
184 for (ScanSettings settings : mScanSettingsList) { in updateChannelCollection()
204 WifiScanner.ScanSettings setting = mScanSettingsList.get(i); in createBucketSettings()
364 private WifiNative.ScanSettings mSchedule;
366 private final Map<ScanSettings, Bucket> mSettingsToScheduledBucket = new HashMap<>();
[all …]
DChannelHelper.java50 public abstract boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel); in settingsContainChannel()
61 public abstract int estimateScanDuration(WifiScanner.ScanSettings settings); in estimateScanDuration()
127 public void addChannels(WifiScanner.ScanSettings scanSettings) { in addChannels()
153 public boolean containsSettings(WifiScanner.ScanSettings scanSettings) { in containsSettings()
169 public boolean partiallyContainsSettings(WifiScanner.ScanSettings scanSettings) { in partiallyContainsSettings()
185 public Set<Integer> getMissingChannelsFromSettings(WifiScanner.ScanSettings scanSettings) { in getMissingChannelsFromSettings()
203 WifiScanner.ScanSettings scanSettings) { in getContainingChannelsFromSettings()
241 public static String toString(WifiScanner.ScanSettings scanSettings) { in toString()
DWifiScanningServiceImpl.java35 import android.net.wifi.WifiScanner.ScanSettings;
265 private WifiNative.ScanSettings mPreviousSchedule;
453 private WifiNative.ScanSettings mActiveScanSettings = null;
454 private RequestList<ScanSettings> mActiveScans = new RequestList<>();
455 private RequestList<ScanSettings> mPendingScans = new RequestList<>();
613 ScanSettings scanSettings = in processMessage()
727 boolean validateScanRequest(ClientInfo ci, int handler, ScanSettings settings) { in validateScanRequest()
808 boolean activeScanSatisfies(ScanSettings settings) { in activeScanSatisfies()
842 for (ScanSettings.HiddenNetwork hiddenNetwork : settings.hiddenNetworks) { in activeScanSatisfies()
876 WifiNative.ScanSettings settings = new WifiNative.ScanSettings(); in tryToStartNewScan()
[all …]
DScanScheduleUtil.java22 import android.net.wifi.WifiScanner.ScanSettings;
72 public static boolean scheduleEquals(@Nullable WifiNative.ScanSettings schedule1, in scheduleEquals()
73 @Nullable WifiNative.ScanSettings schedule2) { in scheduleEquals()
132 ScanResult result, int bucketsScanned, ScanSettings settings, int scheduledBucket) { in shouldReportFullScanResultForSettings()
153 ScanData[] scanDatas, ScanSettings settings, int scheduledBucket) { in filterResultsForSettings()
DWifiScannerImpl.java105 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
120 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
DHalWifiScannerImpl.java79 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
90 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java29 import android.net.wifi.WifiScanner.ScanSettings;
82 ScanSettings writeSettings = new ScanSettings(); in verifyScanSettingsParcelWithBand()
86 ScanSettings readSettings = parcelWriteRead(writeSettings); in verifyScanSettingsParcelWithBand()
97 ScanSettings writeSettings = new ScanSettings(); in verifyScanSettingsParcelWithChannels()
105 ScanSettings readSettings = parcelWriteRead(writeSettings); in verifyScanSettingsParcelWithChannels()
116 private static ScanSettings parcelWriteRead(ScanSettings writeSettings) throws Exception { in parcelWriteRead()
120 return ScanSettings.CREATOR.createFromParcel(parcel); in parcelWriteRead()
/frameworks/base/core/java/android/bluetooth/le/
DScanSettings.java28 public final class ScanSettings implements Parcelable { class
204 private ScanSettings(int scanMode, int callbackType, int scanResultType, in ScanSettings() method in ScanSettings
217 private ScanSettings(Parcel in) { in ScanSettings() method in ScanSettings
245 public static final Parcelable.Creator<ScanSettings> CREATOR =
246 new Creator<ScanSettings>() {
248 public ScanSettings[] newArray(int size) {
249 return new ScanSettings[size];
253 public ScanSettings createFromParcel(Parcel in) {
254 return new ScanSettings(in);
413 public ScanSettings build() { in build()
[all …]
DBluetoothLeScanner.java116 startScan(null, new ScanSettings.Builder().build(), callback); in startScan()
136 public void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan()
164 public int startScan(@Nullable List<ScanFilter> filters, @Nullable ScanSettings settings, in startScan()
167 settings != null ? settings : new ScanSettings.Builder().build(), in startScan()
184 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); in startScanFromSource()
201 public void startScanFromSource(List<ScanFilter> filters, ScanSettings settings, in startScanFromSource()
206 private int startScan(List<ScanFilter> filters, ScanSettings settings, in startScan()
322 public void startTruncatedScan(List<TruncatedFilter> truncatedFilters, ScanSettings settings, in startTruncatedScan()
353 private ScanSettings mSettings;
364 List<ScanFilter> filters, ScanSettings settings, in BleScanCallbackWrapper()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java51 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, in createRequest()
53 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings(); in createRequest()
63 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, int batch, in createRequest()
69 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, in createRequest()
78 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, in createRequest()
80 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings(); in createRequest()
97 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings();
178 public WifiNative.ScanSettings build() { in build()
202 public static WifiNative.ScanSettings computeSingleScanNativeSettings( in computeSingleScanNativeSettings()
203 WifiScanner.ScanSettings requestSettings) { in computeSingleScanNativeSettings()
[all …]
DScanRequestProxyTest.java59 private static final List<WifiScanner.ScanSettings.HiddenNetwork> TEST_HIDDEN_NETWORKS_LIST =
60 new ArrayList<WifiScanner.ScanSettings.HiddenNetwork>() {{
61 add(new WifiScanner.ScanSettings.HiddenNetwork("test_ssid_1"));
62 add(new WifiScanner.ScanSettings.HiddenNetwork("test_ssid_2"));
77 private ArgumentCaptor<WifiScanner.ScanSettings> mScanSettingsArgumentCaptor =
78 ArgumentCaptor.forClass(WifiScanner.ScanSettings.class);
696 private void validateScanSettings(WifiScanner.ScanSettings scanSettings, in validateScanSettings()
701 private void validateScanSettings(WifiScanner.ScanSettings scanSettings, in validateScanSettings()
726 WifiScanner.ScanSettings.HiddenNetwork expectedHiddenNetwork, in validateHiddenNetworkInList()
727 List<WifiScanner.ScanSettings.HiddenNetwork> hiddenNetworkList) { in validateHiddenNetworkInList()
[all …]
DWifiConnectivityManagerTest.java45 import android.net.wifi.WifiScanner.ScanSettings;
204 public void answer(ScanSettings settings, ScanListener listener, in mockWifiScanner()
210 public void answer(ScanSettings settings, ScanListener listener, in mockWifiScanner()
237 public void answer(ScanSettings settings, PnoSettings pnoSettings, in mockWifiScanner()
243 public void answer(ScanSettings settings, PnoSettings pnoSettings, in mockWifiScanner()
1175 public void answer(ScanSettings settings, ScanListener listener, in checkSingleScanSettingsWhenConnectedWithLowDataRate()
1216 public void answer(ScanSettings settings, ScanListener listener, in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming()
1301 public void answer(ScanSettings settings, ScanListener listener, in checkSingleScanSettingsWhenConnectedWithHighDataRateNotInCache()
1330 public void answer(ScanSettings settings, ScanListener listener, in checkMaximumScanRetry()
1363 ScanSettings settings = new ScanSettings(); in listenToAllSingleScanResults()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java189 public static class ScanSettings implements Parcelable { class in WifiScanner
290 public static final Creator<ScanSettings> CREATOR =
291 new Creator<ScanSettings>() {
292 public ScanSettings createFromParcel(Parcel in) {
293 ScanSettings settings = new ScanSettings();
321 public ScanSettings[] newArray(int size) {
322 return new ScanSettings[size];
765 public void startBackgroundScan(ScanSettings settings, ScanListener listener) { in startBackgroundScan()
778 public void startBackgroundScan(ScanSettings settings, ScanListener listener, in startBackgroundScan()
823 public void startScan(ScanSettings settings, ScanListener listener) { in startScan()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanRequestProxy.java375 WifiScanner.ScanSettings settings = new WifiScanner.ScanSettings(); in startScan()
386 List<WifiScanner.ScanSettings.HiddenNetwork> hiddenNetworkList = in startScan()
389 new WifiScanner.ScanSettings.HiddenNetwork[hiddenNetworkList.size()]); in startScan()
DWifiConnectivityManager.java32 import android.net.wifi.WifiScanner.ScanSettings;
797 private boolean setScanChannels(ScanSettings settings) { in setScanChannels()
907 ScanSettings settings = new ScanSettings(); in startSingleScan()
919 List<ScanSettings.HiddenNetwork> hiddenNetworkList = in startSingleScan()
922 hiddenNetworkList.toArray(new ScanSettings.HiddenNetwork[hiddenNetworkList.size()]); in startSingleScan()
974 ScanSettings scanSettings = new ScanSettings(); in startDisconnectedPnoScan()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java26 import android.bluetooth.le.ScanSettings;
330 ScanSettings settings = (new ScanSettings.Builder()) in startScanning()
331 .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) in startScanning()
332 .setNumOfMatches(ScanSettings.MATCH_NUM_ONE_ADVERTISEMENT) in startScanning()
333 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startScanning()

12