Home
last modified time | relevance | path

Searched refs:ScanSettings (Results 1 – 25 of 43) 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.java126 private WifiScanner.ScanSettings generateValidScanSettings() { in generateValidScanSettings()
185 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendBackgroundScanRequest()
194 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendSingleScanRequest()
240 WifiNative.ScanSettings expected) { in verifyStartSingleScan()
241 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScan()
242 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScan()
252 WifiNative.ScanSettings expected) { in verifyStartBackgroundScan()
253 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartBackgroundScan()
254 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartBackgroundScan()
359 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()
110 .addChannels(any(WifiScanner.ScanSettings.class)); in setUp()
120 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(5150, 2400), in addChannelsWifiScanner_channels()
134 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in addChannelsWifiScanner_band()
DBaseWifiScannerImplTest.java109 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess()
123 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels()
136 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults()
157 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds()
180 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds()
198 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
206 WifiNative.ScanSettings settings2 = new NativeScanSettingsBuilder() in overlappingSingleScanFails()
224 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnExecute()
254 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnTimeout()
288 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnFailedEvent()
[all …]
DSupplicantWifiScannerTest.java58 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessSingleBucket()
79 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanMaxApExceeded()
107 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithFullScanResults()
130 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMixedFullResultsAndNot()
159 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanNoBatch()
184 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanBatch()
236 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMultipleBuckets()
276 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMultipleBucketsWhereAPeriodDoesNotRequireAScan()
312 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanStartFailed()
347 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanEventFailed()
[all …]
DNoBandChannelHelperTest.java73 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2400, 2450, 5100), in fewChannels()
85 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in band()
147 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(), in emptySettings()
160 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2400, 5650), in settingsWithChannels()
173 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ, in settingsWithBand()
187 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in settingsWithMultiBand()
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()
DSupplicantPnoScannerTest.java113 WifiNative.ScanSettings settings = createDummyScanSettings(); in pauseResumeHwDisconnectedPnoScanForSingleScan()
183 WifiNative.ScanSettings settings = createDummyScanSettings(); in delayedHwDisconnectedPnoScanFailure()
221 WifiNative.ScanSettings scanSettings = createDummyScanSettings(); in doSuccessfulSwPnoScanTest()
261 private WifiNative.ScanSettings createDummyScanSettings() { in createDummyScanSettings()
262 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in createDummyScanSettings()
275 private void startSuccessfulPnoScan(WifiNative.ScanSettings scanSettings, in startSuccessfulPnoScan()
/frameworks/base/wifi/java/android/net/wifi/
DScanSettings.java32 public class ScanSettings implements Parcelable { class
38 public ScanSettings() { } in ScanSettings() method in ScanSettings
41 public ScanSettings(ScanSettings source) { in ScanSettings() method in ScanSettings
68 public static final Parcelable.Creator<ScanSettings> CREATOR =
69 new Parcelable.Creator<ScanSettings>() {
71 public ScanSettings createFromParcel(Parcel in) {
72 ScanSettings settings = new ScanSettings();
83 public ScanSettings[] newArray(int size) {
84 return new ScanSettings[size];
DWifiScanner.java169 public static class ScanSettings implements Parcelable { class in WifiScanner
240 public static final Creator<ScanSettings> CREATOR =
241 new Creator<ScanSettings>() {
242 public ScanSettings createFromParcel(Parcel in) {
243 ScanSettings settings = new ScanSettings();
265 public ScanSettings[] newArray(int size) {
266 return new ScanSettings[size];
666 public void startBackgroundScan(ScanSettings settings, ScanListener listener) { in startBackgroundScan()
678 public void startBackgroundScan(ScanSettings settings, ScanListener listener, in startBackgroundScan()
720 public void startScan(ScanSettings settings, ScanListener listener) { in startScan()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java24 import android.net.wifi.WifiScanner.ScanSettings;
134 private final List<ScanSettings> mScanSettingsList = new ArrayList<>();
149 for (ScanSettings settings : originalBucket.getSettingsList()) { in Bucket()
163 public boolean addSettings(ScanSettings scanSettings) { in addSettings()
168 public boolean removeSettings(ScanSettings scanSettings) { in removeSettings()
179 public List<ScanSettings> getSettingsList() { in getSettingsList()
185 for (ScanSettings settings : mScanSettingsList) { in updateChannelCollection()
205 WifiScanner.ScanSettings setting = mScanSettingsList.get(i); in createBucketSettings()
365 private WifiNative.ScanSettings mSchedule;
367 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()
123 public void addChannels(WifiScanner.ScanSettings scanSettings) { in addChannels()
149 public boolean containsSettings(WifiScanner.ScanSettings scanSettings) { in containsSettings()
165 public boolean partiallyContainsSettings(WifiScanner.ScanSettings scanSettings) { in partiallyContainsSettings()
181 public Set<Integer> getMissingChannelsFromSettings(WifiScanner.ScanSettings scanSettings) { in getMissingChannelsFromSettings()
199 WifiScanner.ScanSettings scanSettings) { in getContainingChannelsFromSettings()
237 public static String toString(WifiScanner.ScanSettings scanSettings) { in toString()
DWifiScanningServiceImpl.java35 import android.net.wifi.WifiScanner.ScanSettings;
248 private WifiNative.ScanSettings mPreviousSchedule;
422 private RequestList<ScanSettings> mActiveScans = new RequestList<>();
423 private RequestList<ScanSettings> mPendingScans = new RequestList<>();
546 ScanSettings scanSettings = in processMessage()
642 boolean validateAndAddToScanQueue(ClientInfo ci, int handler, ScanSettings settings, in validateAndAddToScanQueue()
681 WifiNative.ScanSettings settings = new WifiNative.ScanSettings(); in tryToStartNewScan()
690 for (RequestInfo<ScanSettings> entry : mPendingScans) { in tryToStartNewScan()
715 RequestList<ScanSettings> tmp = mActiveScans; in tryToStartNewScan()
742 for (RequestInfo<ScanSettings> entry : mActiveScans) { in reportFullScanResult()
[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.java92 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
107 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
DNoBandChannelHelper.java40 public boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel) { in settingsContainChannel()
59 public int estimateScanDuration(WifiScanner.ScanSettings settings) { in estimateScanDuration()
DHalWifiScannerImpl.java74 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan()
85 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
/frameworks/base/core/java/android/bluetooth/le/
DScanSettings.java27 public final class ScanSettings implements Parcelable { class
174 private ScanSettings(int scanMode, int callbackType, int scanResultType, in ScanSettings() method in ScanSettings
184 private ScanSettings(Parcel in) { in ScanSettings() method in ScanSettings
208 public static final Parcelable.Creator<ScanSettings>
209 CREATOR = new Creator<ScanSettings>() {
211 public ScanSettings[] newArray(int size) {
212 return new ScanSettings[size];
216 public ScanSettings createFromParcel(Parcel in) {
217 return new ScanSettings(in);
346 public ScanSettings build() { in build()
[all …]
DBluetoothLeScanner.java93 startScan(null, new ScanSettings.Builder().build(), callback); in startScan()
111 public void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan()
129 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); in startScanFromSource()
146 public void startScanFromSource(List<ScanFilter> filters, ScanSettings settings, in startScanFromSource()
151 private void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan()
245 public void startTruncatedScan(List<TruncatedFilter> truncatedFilters, ScanSettings settings, in startTruncatedScan()
276 private ScanSettings mSettings;
286 List<ScanFilter> filters, ScanSettings settings, in BleScanCallbackWrapper()
400 mScanCallback.onScanResult(ScanSettings.CALLBACK_TYPE_ALL_MATCHES, scanResult); in onScanResult()
434 mScanCallback.onScanResult(ScanSettings.CALLBACK_TYPE_FIRST_MATCH, in onFoundOrLost()
[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 band, int period, int batch, in createRequest()
71 public static WifiScanner.ScanSettings createRequest(int band, int period, int maxPeriod, in createRequest()
73 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings(); in createRequest()
89 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings();
161 public WifiNative.ScanSettings build() { in build()
170 public static WifiNative.ScanSettings computeSingleScanNativeSettings( in computeSingleScanNativeSettings()
171 WifiScanner.ScanSettings requestSettings) { in computeSingleScanNativeSettings()
190 public static WifiNative.ScanSettings createSingleScanNativeSettingsForChannels( in createSingleScanNativeSettingsForChannels()
[all …]
DWifiConnectivityManagerTest.java36 import android.net.wifi.WifiScanner.ScanSettings;
138 public void answer(ScanSettings settings, ScanListener listener, in mockWifiScanner()
144 public void answer(ScanSettings settings, ScanListener listener, in mockWifiScanner()
162 public void answer(ScanSettings settings, PnoSettings pnoSettings, in mockWifiScanner()
168 public void answer(ScanSettings settings, PnoSettings pnoSettings, in mockWifiScanner()
762 public void answer(ScanSettings settings, ScanListener listener, in checkSingleScanSettingsWhenConnectedWithLowDataRate()
801 public void answer(ScanSettings settings, ScanListener listener, in checkSingleScanSettingsWhenConnectedWithHighDataRate()
842 public void answer(ScanSettings settings, ScanListener listener, in checkSingleScanSettingsWhenConnectedWithHighDataRateNotInCache()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java31 import android.net.wifi.WifiScanner.ScanSettings;
631 private boolean setScanChannels(ScanSettings settings) { in setScanChannels()
731 ScanSettings settings = new ScanSettings(); in startSingleScan()
773 ScanSettings settings = new ScanSettings(); in startPeriodicScan()
810 ScanSettings scanSettings = new ScanSettings(); in startDisconnectedPnoScan()
853 ScanSettings scanSettings = new ScanSettings(); in startConnectedPnoScan()
/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