/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/ |
D | ScanSettingsTest.java | 30 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/ |
D | BackgroundScanSchedulerTest.java | 30 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 …]
|
D | ScanScheduleUtilFilterTest.java | 32 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 …]
|
D | WifiScanningServiceTest.java | 145 private WifiScanner.ScanSettings generateValidScanSettings() { in generateValidScanSettings() 205 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendBackgroundScanRequest() 214 int scanRequestId, WifiScanner.ScanSettings settings, WorkSource workSource) { in sendSingleScanRequest() 324 WifiNative.ScanSettings expected) { in verifyStartSingleScan() 325 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScan() 326 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScan() 336 WifiNative.ScanSettings expected) { in verifyStartBackgroundScan() 337 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartBackgroundScan() 338 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartBackgroundScan() 445 when(mWifiScannerImpl.startBatchedScan(any(WifiNative.ScanSettings.class), in loadDriver() [all …]
|
D | ChannelHelperTest.java | 56 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()
|
D | BaseWifiScannerImplTest.java | 115 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess() 130 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels() 143 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults() 165 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds() 193 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds() 211 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails() 219 WifiNative.ScanSettings settings2 = new NativeScanSettingsBuilder() in overlappingSingleScanFails() 237 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnExecute() 267 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnTimeout() 301 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnFailedEvent() [all …]
|
D | WificondScannerTest.java | 76 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanNotIssuedIfNoAvailableChannels() 95 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessSingleBucket() 116 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanMaxApExceeded() 144 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithFullScanResults() 167 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMixedFullResultsAndNot() 196 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanNoBatch() 221 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanBatch() 273 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMultipleBuckets() 313 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanSuccessWithMultipleBucketsWhereAPeriodDoesNotRequireAScan() 349 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in backgroundScanStartFailed() [all …]
|
D | NoBandChannelHelperTest.java | 73 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()
|
D | KnownBandsChannelHelperTest.java | 79 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()
|
D | WificondPnoScannerTest.java | 111 WifiNative.ScanSettings settings = createDummyScanSettings(); in pauseResumeHwDisconnectedPnoScanForSingleScan() 180 WifiNative.ScanSettings settings = createDummyScanSettings(); in delayedHwDisconnectedPnoScanFailure() 332 WifiNative.ScanSettings scanSettings = createDummyScanSettings(); in doSuccessfulSwPnoScanTest() 372 private WifiNative.ScanSettings createDummyScanSettings() { in createDummyScanSettings() 373 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in createDummyScanSettings() 387 private void startSuccessfulPnoScan(WifiNative.ScanSettings scanSettings, in startSuccessfulPnoScan()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | ScanSettings.java | 32 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];
|
D | WifiScanner.java | 171 public static class ScanSettings implements Parcelable { class in WifiScanner 263 public static final Creator<ScanSettings> CREATOR = 264 new Creator<ScanSettings>() { 265 public ScanSettings createFromParcel(Parcel in) { 266 ScanSettings settings = new ScanSettings(); 293 public ScanSettings[] newArray(int size) { 294 return new ScanSettings[size]; 737 public void startBackgroundScan(ScanSettings settings, ScanListener listener) { in startBackgroundScan() 750 public void startBackgroundScan(ScanSettings settings, ScanListener listener, in startBackgroundScan() 795 public void startScan(ScanSettings settings, ScanListener listener) { in startScan() [all …]
|
D | ScanSettings.aidl | 19 parcelable ScanSettings;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | BackgroundScanScheduler.java | 24 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 …]
|
D | ChannelHelper.java | 50 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()
|
D | WifiScanningServiceImpl.java | 33 import android.net.wifi.WifiScanner.ScanSettings; 264 private WifiNative.ScanSettings mPreviousSchedule; 455 private WifiNative.ScanSettings mActiveScanSettings = null; 456 private RequestList<ScanSettings> mActiveScans = new RequestList<>(); 457 private RequestList<ScanSettings> mPendingScans = new RequestList<>(); 607 ScanSettings scanSettings = in processMessage() 717 boolean validateScanRequest(ClientInfo ci, int handler, ScanSettings settings, in validateScanRequest() 732 boolean activeScanSatisfies(ScanSettings settings) { in activeScanSatisfies() 762 for (ScanSettings.HiddenNetwork hiddenNetwork : settings.hiddenNetworks) { in activeScanSatisfies() 796 WifiNative.ScanSettings settings = new WifiNative.ScanSettings(); in tryToStartNewScan() [all …]
|
D | ScanScheduleUtil.java | 22 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()
|
D | WifiScannerImpl.java | 98 public abstract boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() 113 public abstract boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
|
D | HalWifiScannerImpl.java | 76 public boolean startSingleScan(WifiNative.ScanSettings settings, in startSingleScan() 87 public boolean startBatchedScan(WifiNative.ScanSettings settings, in startBatchedScan()
|
D | NoBandChannelHelper.java | 40 public boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel) { in settingsContainChannel() 59 public int estimateScanDuration(WifiScanner.ScanSettings settings) { in estimateScanDuration()
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | ScanSettings.java | 28 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> 246 CREATOR = 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); 418 public ScanSettings build() { in build() [all …]
|
D | BluetoothLeScanner.java | 113 startScan(null, new ScanSettings.Builder().build(), callback); in startScan() 130 public void startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() 158 public int startScan(@Nullable List<ScanFilter> filters, @Nullable ScanSettings settings, in startScan() 161 settings != null ? settings : new ScanSettings.Builder().build(), in startScan() 178 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); in startScanFromSource() 195 public void startScanFromSource(List<ScanFilter> filters, ScanSettings settings, in startScanFromSource() 200 private int startScan(List<ScanFilter> filters, ScanSettings settings, in startScan() 316 public void startTruncatedScan(List<TruncatedFilter> truncatedFilters, ScanSettings settings, in startTruncatedScan() 347 private ScanSettings mSettings; 358 List<ScanFilter> filters, ScanSettings settings, in BleScanCallbackWrapper() [all …]
|
D | ScanSettings.aidl | 19 parcelable ScanSettings;
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanTestUtil.java | 51 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(); 165 public WifiNative.ScanSettings build() { in build() 174 public static WifiNative.ScanSettings computeSingleScanNativeSettings( in computeSingleScanNativeSettings() 175 WifiScanner.ScanSettings requestSettings) { in computeSingleScanNativeSettings() 194 public static WifiNative.ScanSettings createSingleScanNativeSettingsForChannels( in createSingleScanNativeSettingsForChannels() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/ |
D | KeyboardUI.java | 26 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()
|