Home
last modified time | relevance | path

Searched refs:ScanSettings (Results 1 – 25 of 48) 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;
85 Collection<ScanSettings> requests = Collections.emptyList(); in noRequest()
88 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in noRequest()
96 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequest()
102 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequest()
106 for (ScanSettings request : requests) { in singleRequest()
113 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequestWithoutPredefinedBucket()
119 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequestWithoutPredefinedBucket()
123 for (ScanSettings request : requests) { in singleRequestWithoutPredefinedBucket()
130 Collection<ScanSettings> requests = new ArrayList<>(); in fewRequests()
[all …]
DScanScheduleUtilFilterTest.java32 import android.net.wifi.WifiScanner.ScanSettings;
61 ScanSettings settings = createRequest( in reportFullResultTrueForBandsWithNoBucketInfo()
72 ScanSettings settings = createRequest( in reportFullResultFalseForBandsWithNoBucketInfo()
83 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithNoBucketInfo()
94 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithNoBucketInfo()
105 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithBucketDefinitlyScanned()
116 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithBucketDefinitlyNotScanned()
127 ScanSettings settings = createRequest( in filterScanDataEmptyWithNoBucketInfo()
139 ScanSettings settings = createRequest( in filterScanDataSingleNotMatchingWithNoBucketInfo()
151 ScanSettings settings = createRequest( in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex()
[all …]
DWifiScanningServiceTest.java213 private WifiScanner.ScanSettings generateValidScanSettings() { in generateValidScanSettings()
294 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendBackgroundScanRequest()
303 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendSingleScanRequest()
413 WifiNative.ScanSettings expected) { in verifyStartSingleScan()
418 WifiScannerImpl wifiScannerImpl, InOrder order, WifiNative.ScanSettings expected) { in verifyStartSingleScanForImpl()
419 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScanForImpl()
420 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScanForImpl()
430 WifiNative.ScanSettings expected) { in verifyStartBackgroundScan()
431 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartBackgroundScan()
432 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartBackgroundScan()
[all …]
DChannelHelperTest.java58 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in scanSettings_band()
68 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(5150, 2400), in scanSettings_channels()
78 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_5_GHZ, in bucketSettings_band()
89 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(2400, 5100), in bucketSettings_channels()
135 .addChannels(any(WifiScanner.ScanSettings.class)); in setUp()
145 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(5150, 2400), in addChannelsWifiScanner_channels()
159 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in addChannelsWifiScanner_band()
DBaseWifiScannerImplTest.java114 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess()
130 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels()
144 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannelsAndHighAccuracyType()
159 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults()
181 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds()
210 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds()
229 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
237 WifiNative.ScanSettings settings2 = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
255 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnExecute()
283 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnTimeout()
[all …]
DKnownBandsChannelHelperTest.java84 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2412, 2450, 5200), in fewChannels()
96 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in band()
221 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(), in emptySettings()
234 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2412, 5650), in settingsWithChannels()
247 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in settingsWithBand()
261 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in settingsWithMultiBand()
DWificondScannerTest.java90 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanNotIssuedIfNoAvailableChannels()
121 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
146 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
209 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in testDumpWithCorrectFormatWithScanResult()
DWificondPnoScannerTest.java183 private WifiNative.ScanSettings createDummyScanSettings(boolean allChannelsScanned) { in createDummyScanSettings()
184 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in createDummyScanSettings()
201 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.java51 public abstract boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel); in settingsContainChannel()
78 public abstract int estimateScanDuration(WifiScanner.ScanSettings settings); in estimateScanDuration()
144 public void addChannels(WifiScanner.ScanSettings scanSettings) { in addChannels()
170 public boolean containsSettings(WifiScanner.ScanSettings scanSettings) { in containsSettings()
186 public boolean partiallyContainsSettings(WifiScanner.ScanSettings scanSettings) { in partiallyContainsSettings()
202 public Set<Integer> getMissingChannelsFromSettings(WifiScanner.ScanSettings scanSettings) { in getMissingChannelsFromSettings()
220 WifiScanner.ScanSettings scanSettings) { in getContainingChannelsFromSettings()
258 public static String toString(WifiScanner.ScanSettings scanSettings) { in toString()
DWifiScanningServiceImpl.java34 import android.net.wifi.WifiScanner.ScanSettings;
190 ScanSettings scanSettings = bundle.getParcelable(WifiScanner.SCAN_PARAMS_SCAN_SETTINGS_KEY); in shouldIgnoreLocationSettingsForSingleScan()
199 ScanSettings scanSettings = bundle.getParcelable(WifiScanner.SCAN_PARAMS_SCAN_SETTINGS_KEY); in shouldHideFromAppsForSingleScan()
389 private WifiNative.ScanSettings mPreviousSchedule;
637 private WifiNative.ScanSettings mActiveScanSettings = null;
638 private RequestList<ScanSettings> mActiveScans = new RequestList<>();
639 private RequestList<ScanSettings> mPendingScans = new RequestList<>();
737 public boolean startSingleScan(WifiNative.ScanSettings scanSettings) { in startSingleScan()
904 ScanSettings scanSettings = null; in processMessage()
1044 boolean validateScanRequest(ClientInfo ci, int handler, ScanSettings settings) { in validateScanRequest()
[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.java123 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
138 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
DHalWifiScannerImpl.java78 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
89 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
DKnownBandsChannelHelper.java147 public int estimateScanDuration(WifiScanner.ScanSettings settings) { in estimateScanDuration()
203 public boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel) { in settingsContainChannel()
/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 @android.annotation.NonNull 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.java123 startScan(null, new ScanSettings.Builder().build(), callback); in startScan()
143 public void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan()
171 public int startScan(@Nullable List<ScanFilter> filters, @Nullable ScanSettings settings, in startScan()
174 settings != null ? settings : new ScanSettings.Builder().build(), in startScan()
191 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); in startScanFromSource()
208 public void startScanFromSource(List<ScanFilter> filters, ScanSettings settings, in startScanFromSource()
213 private int startScan(List<ScanFilter> filters, ScanSettings settings, in startScan()
331 public void startTruncatedScan(List<TruncatedFilter> truncatedFilters, ScanSettings settings, in startTruncatedScan()
362 private ScanSettings mSettings;
373 List<ScanFilter> filters, ScanSettings settings, in BleScanCallbackWrapper()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java39 import android.net.wifi.WifiScanner.ScanSettings;
123 ScanSettings writeSettings = new ScanSettings(); in verifyScanSettingsParcelWithBand()
127 ScanSettings readSettings = parcelWriteRead(writeSettings); in verifyScanSettingsParcelWithBand()
138 ScanSettings writeSettings = new ScanSettings(); in verifyScanSettingsParcelWithChannels()
146 ScanSettings readSettings = parcelWriteRead(writeSettings); in verifyScanSettingsParcelWithChannels()
157 private static ScanSettings parcelWriteRead(ScanSettings writeSettings) throws Exception { in parcelWriteRead()
161 return ScanSettings.CREATOR.createFromParcel(parcel); in parcelWriteRead()
251 ScanSettings scanSettings = new ScanSettings(); in testStartScan()
281 ScanSettings scanSettings = new ScanSettings(); in testStopScan()
310 ScanSettings scanSettings = new ScanSettings(); in testStartScanListenerOnSuccess()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java53 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, in createRequest()
55 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings(); in createRequest()
65 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, int batch, in createRequest()
71 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, in createRequest()
80 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, in createRequest()
82 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings(); in createRequest()
99 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings();
180 public WifiNative.ScanSettings build() { in build()
190 public static WifiNative.ScanSettings computeSingleScanNativeSettings( in computeSingleScanNativeSettings()
191 WifiScanner.ScanSettings requestSettings) { in computeSingleScanNativeSettings()
[all …]
DWifiConnectivityManagerTest.java44 import android.net.wifi.WifiScanner.ScanSettings;
286 public void answer(ScanSettings settings, ScanListener listener, in mockWifiScanner()
292 public void answer(ScanSettings settings, Executor executor, ScanListener listener, in mockWifiScanner()
319 public void answer(ScanSettings settings, PnoSettings pnoSettings, in mockWifiScanner()
851 verify(mWifiScanner).startScan((ScanSettings) argThat(new WifiPartialScanSettingMatcher()), in testHighMovementTriggerPartialScan()
855 private class WifiPartialScanSettingMatcher implements ArgumentMatcher<ScanSettings> {
857 public boolean matches(ScanSettings scanSettings) { in matches()
1842 public void answer(ScanSettings settings, ScanListener listener, in verifyFullBandScanWhenConnected()
1915 public void answer(ScanSettings settings, Executor executor, ScanListener listener, in checkPartialScanRequestedWithLowRssiAndActiveStreamWithoutFwRoaming()
1964 public void answer(ScanSettings settings, Executor executor, ScanListener listener, in checkPartialScanRequestedWithHighRssiNoActiveStreamWithoutFwRoaming()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java287 public static class ScanSettings implements Parcelable { class in WifiScanner
442 public static final @NonNull Creator<ScanSettings> CREATOR =
443 new Creator<ScanSettings>() {
444 public ScanSettings createFromParcel(Parcel in) {
445 ScanSettings settings = new ScanSettings();
475 public ScanSettings[] newArray(int size) {
476 return new ScanSettings[size];
955 public void startBackgroundScan(ScanSettings settings, ScanListener listener) { in startBackgroundScan()
972 public void startBackgroundScan(ScanSettings settings, ScanListener listener, in startBackgroundScan()
1035 public void startScan(ScanSettings settings, ScanListener listener) { in startScan()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java26 import android.bluetooth.le.ScanSettings;
334 ScanSettings settings = (new ScanSettings.Builder()) in startScanning()
335 .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) in startScanning()
336 .setNumOfMatches(ScanSettings.MATCH_NUM_ONE_ADVERTISEMENT) in startScanning()
337 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startScanning()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceDiscoveryService.java39 import android.bluetooth.le.ScanSettings;
87 private ScanSettings mDefaultScanSettings = new ScanSettings.Builder().build();
458 if (callbackType == ScanSettings.CALLBACK_TYPE_MATCH_LOST) { in onScanResult()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java35 import android.net.wifi.WifiScanner.ScanSettings;
272 ScanSettings settings = new ScanSettings();
970 private boolean setScanChannels(ScanSettings settings) { in setScanChannels()
1258 ScanSettings settings = new ScanSettings(); in startForcedSingleScan()
1390 ScanSettings scanSettings = new ScanSettings(); in startDisconnectedPnoScan()

12