/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/le/ |
D | ScanSettingsTest.java | 31 ScanSettings.Builder builder = new ScanSettings.Builder(); in testCallbackType() 32 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES); in testCallbackType() 33 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_FIRST_MATCH); in testCallbackType() 34 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_MATCH_LOST); in testCallbackType() 35 builder.setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES_AUTO_BATCH); in testCallbackType() 37 ScanSettings.CALLBACK_TYPE_FIRST_MATCH | ScanSettings.CALLBACK_TYPE_MATCH_LOST); in testCallbackType() 43 ScanSettings.CALLBACK_TYPE_ALL_MATCHES in testCallbackType() 44 | ScanSettings.CALLBACK_TYPE_MATCH_LOST)); in testCallbackType() 50 ScanSettings.CALLBACK_TYPE_ALL_MATCHES in testCallbackType() 51 | ScanSettings.CALLBACK_TYPE_FIRST_MATCH)); in testCallbackType() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | BackgroundScanSchedulerTest.java | 30 import android.net.wifi.WifiScanner.ScanSettings; 86 Collection<ScanSettings> requests = Collections.emptyList(); in noRequest() 89 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in noRequest() 97 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequest() 103 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequest() 107 for (ScanSettings request : requests) { in singleRequest() 114 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequestWithoutPredefinedBucket() 120 WifiNative.ScanSettings schedule = mScheduler.getSchedule(); in singleRequestWithoutPredefinedBucket() 124 for (ScanSettings request : requests) { in singleRequestWithoutPredefinedBucket() 131 Collection<ScanSettings> requests = new ArrayList<>(); in fewRequests() [all …]
|
D | ScanScheduleUtilFilterTest.java | 32 import android.net.wifi.WifiScanner.ScanSettings; 62 ScanSettings settings = createRequest( in reportFullResultTrueForBandsWithNoBucketInfo() 73 ScanSettings settings = createRequest( in reportFullResultFalseForBandsWithNoBucketInfo() 84 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithNoBucketInfo() 95 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithNoBucketInfo() 106 ScanSettings settings = createRequest( in reportFullResultTrueForChannelsWithBucketDefinitlyScanned() 117 ScanSettings settings = createRequest( in reportFullResultFalseForChannelsWithBucketDefinitlyNotScanned() 128 ScanSettings settings = createRequest( in filterScanDataEmptyWithNoBucketInfo() 140 ScanSettings settings = createRequest( in filterScanDataSingleNotMatchingWithNoBucketInfo() 152 ScanSettings settings = createRequest( in filterScanDataSingleNotMatchingWithDefinitlyScannedBucketIndex() [all …]
|
D | WifiScanningServiceTest.java | 265 private WifiScanner.ScanSettings generateValidScanSettings() { in generateValidScanSettings() 313 private void sendBackgroundScanRequest(WifiScanner.ScanSettings settings, in sendBackgroundScanRequest() 321 private void sendSingleScanRequest(WifiScanner.ScanSettings settings, WorkSource workSource) in sendSingleScanRequest() 358 private void sendPnoScanRequest(WifiScanner.ScanSettings scanSettings, in sendPnoScanRequest() 391 WifiNative.ScanSettings expected) { in verifyStartSingleScan() 396 WifiScannerImpl wifiScannerImpl, InOrder order, WifiNative.ScanSettings expected) { in verifyStartSingleScanForImpl() 397 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSingleScanForImpl() 398 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSingleScanForImpl() 409 ArgumentCaptor<WifiNative.ScanSettings> scanSettingsCaptor = in verifyStartSwPnoForImpl() 410 ArgumentCaptor.forClass(WifiNative.ScanSettings.class); in verifyStartSwPnoForImpl() [all …]
|
D | BaseWifiScannerImplTest.java | 117 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccess() 135 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannels() 150 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithChannelsAndHighAccuracyType() 165 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithFullResults() 187 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithHiddenNetworkIds() 216 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanSuccessWithTruncatedHiddenNetworkIds() 235 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in overlappingSingleScanFails() 243 WifiNative.ScanSettings settings2 = new NativeScanSettingsBuilder() in overlappingSingleScanFails() 262 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnExecute() 291 WifiNative.ScanSettings settings = new NativeScanSettingsBuilder() in singleScanFailOnTimeout() [all …]
|
D | ChannelHelperTest.java | 58 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()
|
/packages/modules/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 | 54 public abstract boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel); in settingsContainChannel() 81 public abstract int estimateScanDuration(WifiScanner.ScanSettings settings); in estimateScanDuration() 153 public void addChannels(WifiScanner.ScanSettings scanSettings) { in addChannels() 188 public boolean containsSettings(WifiScanner.ScanSettings scanSettings) { in containsSettings() 204 public boolean partiallyContainsSettings(WifiScanner.ScanSettings scanSettings) { in partiallyContainsSettings() 220 public Set<Integer> getMissingChannelsFromSettings(WifiScanner.ScanSettings scanSettings) { in getMissingChannelsFromSettings() 238 WifiScanner.ScanSettings scanSettings) { in getContainingChannelsFromSettings() 276 public static String toString(WifiScanner.ScanSettings scanSettings) { in toString()
|
D | WifiScanningServiceImpl.java | 41 import android.net.wifi.WifiScanner.ScanSettings; 285 WifiScanner.ScanSettings settings, in startBackgroundScan() 359 public WifiScanner.ScanSettings settings; 365 ScanParams(IWifiScannerListener listener, WifiScanner.ScanSettings settings, in ScanParams() 370 ScanParams(IWifiScannerListener listener, WifiScanner.ScanSettings settings, in ScanParams() 383 public void startScan(IWifiScannerListener listener, WifiScanner.ScanSettings settings, in startScan() 484 public void startPnoScan(IWifiScannerListener listener, WifiScanner.ScanSettings scanSettings, in startPnoScan() 578 private boolean shouldIgnoreLocationSettingsForSingleScan(ScanSettings scanSettings) { in shouldIgnoreLocationSettingsForSingleScan() 584 private boolean shouldHideFromAppsForSingleScan(ScanSettings scanSettings) { in shouldHideFromAppsForSingleScan() 677 private WifiNative.ScanSettings mPreviousSchedule; [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()
|
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/ |
D | LeScanningTest.java | 35 import android.bluetooth.le.ScanSettings; 95 startScanning(scanFilter, ScanSettings.CALLBACK_TYPE_ALL_MATCHES); in startBleScan_withCallbackTypeAllMatches() 117 startScanning(scanFilter, ScanSettings.CALLBACK_TYPE_ALL_MATCHES); in scanForIrkIdentityAddress_withCallbackTypeAllMatches() 127 ScanSettings scanSettings = in startBleScan_withCallbackTypeFirstMatchSilentlyFails() 128 new ScanSettings.Builder() in startBleScan_withCallbackTypeFirstMatchSilentlyFails() 129 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startBleScan_withCallbackTypeFirstMatchSilentlyFails() 130 .setCallbackType(ScanSettings.CALLBACK_TYPE_FIRST_MATCH) in startBleScan_withCallbackTypeFirstMatchSilentlyFails() 149 ScanSettings scanSettings = in startBleScan_withCallbackTypeMatchLostSilentlyFails() 150 new ScanSettings.Builder() in startBleScan_withCallbackTypeMatchLostSilentlyFails() 151 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in startBleScan_withCallbackTypeMatchLostSilentlyFails() [all …]
|
D | DckScanTest.kt | 21 import android.bluetooth.le.ScanSettings 81 ScanSettings.Builder() in scanForIrkAndIdentityAddress_remoteFound() 82 .setScanMode(ScanSettings.SCAN_MODE_AMBIENT_DISCOVERY) in scanForIrkAndIdentityAddress_remoteFound() 83 .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) in scanForIrkAndIdentityAddress_remoteFound() 84 .setMatchMode(ScanSettings.MATCH_MODE_STICKY) in scanForIrkAndIdentityAddress_remoteFound() 93 .isEqualTo(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) in scanForIrkAndIdentityAddress_remoteFound() 105 ScanSettings.Builder() in scanForUuid_remoteFound() 106 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in scanForUuid_remoteFound() 107 .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) in scanForUuid_remoteFound() 108 .setMatchMode(ScanSettings.MATCH_MODE_AGGRESSIVE) in scanForUuid_remoteFound() [all …]
|
D | DckGattTest.kt | 22 import android.bluetooth.le.ScanSettings 232 ScanSettings.Builder() in testGattConnect_fromIrkScan() 233 .setScanMode(ScanSettings.SCAN_MODE_AMBIENT_DISCOVERY) in testGattConnect_fromIrkScan() 234 .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) in testGattConnect_fromIrkScan() 248 .onScanResult(eq(ScanSettings.CALLBACK_TYPE_ALL_MATCHES), scanResultCaptor.capture()) in testGattConnect_fromIrkScan() 282 ScanSettings.Builder() in testGattConnect_fromUuidScan() 283 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) in testGattConnect_fromUuidScan() 284 .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) in testGattConnect_fromUuidScan() 291 .onScanResult(eq(ScanSettings.CALLBACK_TYPE_ALL_MATCHES), scanResultCaptor.capture()) in testGattConnect_fromUuidScan()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/ |
D | ScanManager.java | 27 import android.bluetooth.le.ScanSettings; 140 private static final int SCAN_MODE_APP_IN_BACKGROUND = ScanSettings.SCAN_MODE_LOW_POWER; 141 private static final int SCAN_MODE_FORCE_DOWNGRADED = ScanSettings.SCAN_MODE_LOW_POWER; 142 private static final int SCAN_MODE_MAX_IN_CONCURRENCY = ScanSettings.SCAN_MODE_BALANCED; 181 mPriorityMap.put(ScanSettings.SCAN_MODE_OPPORTUNISTIC, 0); in ScanManager() 182 mPriorityMap.put(ScanSettings.SCAN_MODE_SCREEN_OFF, 1); in ScanManager() 183 mPriorityMap.put(ScanSettings.SCAN_MODE_LOW_POWER, 2); in ScanManager() 184 mPriorityMap.put(ScanSettings.SCAN_MODE_SCREEN_OFF_BALANCED, 3); in ScanManager() 186 mPriorityMap.put(ScanSettings.SCAN_MODE_BALANCED, 4); in ScanManager() 187 mPriorityMap.put(ScanSettings.SCAN_MODE_AMBIENT_DISCOVERY, 4); in ScanManager() [all …]
|
D | AppScanStats.java | 21 import android.bluetooth.le.ScanSettings; 229 ScanSettings settings, in recordScanStart() 250 scan.isOpportunisticScan = scan.scanMode == ScanSettings.SCAN_MODE_OPPORTUNISTIC; in recordScanStart() 252 (scan.scanCallbackType & ScanSettings.CALLBACK_TYPE_FIRST_MATCH) != 0; in recordScanStart() 254 settings.getCallbackType() == ScanSettings.CALLBACK_TYPE_ALL_MATCHES in recordScanStart() 257 case ScanSettings.SCAN_MODE_OPPORTUNISTIC: in recordScanStart() 260 case ScanSettings.SCAN_MODE_LOW_POWER: in recordScanStart() 263 case ScanSettings.SCAN_MODE_BALANCED: in recordScanStart() 266 case ScanSettings.SCAN_MODE_LOW_LATENCY: in recordScanStart() 269 case ScanSettings.SCAN_MODE_AMBIENT_DISCOVERY: in recordScanStart() [all …]
|
D | ScanClient.java | 20 import android.bluetooth.le.ScanSettings; 30 public ScanSettings settings; 49 private static final ScanSettings DEFAULT_SCAN_SETTINGS = 50 new ScanSettings.Builder().setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build(); 56 public ScanClient(int scannerId, ScanSettings settings, List<ScanFilter> filters) { in ScanClient() 60 public ScanClient(int scannerId, ScanSettings settings, List<ScanFilter> filters, int appUid) { in ScanClient() 110 ScanSettings.Builder builder = new ScanSettings.Builder(); in updateScanMode()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiScannerTest.java | 44 import android.net.wifi.WifiScanner.ScanSettings; 129 ScanSettings writeSettings = new ScanSettings(); in verifyScanSettingsParcelWithBand() 133 ScanSettings readSettings = parcelWriteRead(writeSettings); in verifyScanSettingsParcelWithBand() 144 ScanSettings writeSettings = new ScanSettings(); in verifyScanSettingsParcelWithChannels() 152 ScanSettings readSettings = parcelWriteRead(writeSettings); in verifyScanSettingsParcelWithChannels() 163 private static ScanSettings parcelWriteRead(ScanSettings writeSettings) throws Exception { in parcelWriteRead() 167 return ScanSettings.CREATOR.createFromParcel(parcel); in parcelWriteRead() 259 WifiScanner.ScanSettings scanSettings = new WifiScanner.ScanSettings(); in testSetRnrSetting() 266 WifiScanner.ScanSettings scanSettings = new WifiScanner.ScanSettings(); in testSetRnrSetting() 283 ScanSettings scanSettings = new ScanSettings(); in testStartScan() [all …]
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/ |
D | ScanSettings.java | 28 public final class ScanSettings implements Parcelable { class 226 private ScanSettings( in ScanSettings() method in ScanSettings 245 private ScanSettings(Parcel in) { in ScanSettings() method in ScanSettings 273 public static final @android.annotation.NonNull Parcelable.Creator<ScanSettings> CREATOR = 274 new Creator<ScanSettings>() { 276 public ScanSettings[] newArray(int size) { 277 return new ScanSettings[size]; 281 public ScanSettings createFromParcel(Parcel in) { 282 return new ScanSettings(in); 450 public ScanSettings build() { in build() [all …]
|
D | BluetoothLeScanner.java | 124 startScan(null, new ScanSettings.Builder().build(), callback); in startScan() 148 List<ScanFilter> filters, ScanSettings settings, final ScanCallback callback) { in startScan() 179 @Nullable ScanSettings settings, in startScan() 183 settings != null ? settings : new ScanSettings.Builder().build(), in startScan() 208 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); in startScanFromSource() 234 ScanSettings settings, in startScanFromSource() 243 ScanSettings settings, in startScan() 395 ScanSettings settings, in startTruncatedScan() 423 private ScanSettings mSettings; 437 ScanSettings settings, in BleScanCallbackWrapper() [all …]
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/ |
D | BleDiscoveryProvider.java | 31 import android.bluetooth.le.ScanSettings; 208 List<ScanFilter> scanFilters, ScanSettings scanSettings, in startScan() 230 private ScanSettings getScanSettings(boolean legacy) { in getScanSettings() 231 int bleScanMode = ScanSettings.SCAN_MODE_LOW_POWER; in getScanSettings() 234 bleScanMode = ScanSettings.SCAN_MODE_LOW_LATENCY; in getScanSettings() 237 bleScanMode = ScanSettings.SCAN_MODE_BALANCED; in getScanSettings() 240 bleScanMode = ScanSettings.SCAN_MODE_LOW_POWER; in getScanSettings() 243 bleScanMode = ScanSettings.SCAN_MODE_OPPORTUNISTIC; in getScanSettings() 246 return new ScanSettings.Builder().setScanMode(bleScanMode).setLegacy(legacy).build(); in getScanSettings()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanTestUtil.java | 64 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels, in createRequest() 66 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings(); in createRequest() 76 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, int batch, in createRequest() 82 public static WifiScanner.ScanSettings createRequest(int band, int period, int batch, in createRequest() 91 public static WifiScanner.ScanSettings createRequest(int type, int band, int period, in createRequest() 93 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings(); in createRequest() 110 private final WifiNative.ScanSettings mSettings = new WifiNative.ScanSettings(); 213 public WifiNative.ScanSettings build() { in build() 224 public static WifiNative.ScanSettings computeSingleScanNativeSettingsWithChannelHelper( in computeSingleScanNativeSettingsWithChannelHelper() 225 WifiScanner.ScanSettings requestSettings, ChannelHelper channelHelper) { in computeSingleScanNativeSettingsWithChannelHelper() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_scan/ |
D | TransitionalScanHelperTest.java | 38 import android.bluetooth.le.ScanSettings; 169 mPiInfo.settings = new ScanSettings.Builder().build(); in continuePiStartScan() 186 mPiInfo.settings = new ScanSettings.Builder().build(); in continuePiStartScanCheckUid() 249 ScanSettings scanSettings = in enforceReportDelayFloor() 250 new ScanSettings.Builder().setReportDelay(reportDelayFloorHigher).build(); in enforceReportDelayFloor() 252 ScanSettings newScanSettings = mScanHelper.enforceReportDelayFloor(scanSettings); in enforceReportDelayFloor() 257 ScanSettings scanSettingsFloor = new ScanSettings.Builder().setReportDelay(1).build(); in enforceReportDelayFloor() 259 ScanSettings newScanSettingsFloor = mScanHelper.enforceReportDelayFloor(scanSettingsFloor); in enforceReportDelayFloor() 307 new ScanSettings.Builder() in onScanResult_remoteException_clientDied() 308 .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) in onScanResult_remoteException_clientDied() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/ |
D | ScanInfo.java | 19 import android.bluetooth.le.ScanSettings; 28 public ScanInfo(List<ScanFilter> scanFilters, ScanSettings scanSettings) { in ScanInfo() 36 public final ScanSettings scanSettings;
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | WifiGScanReceiver.java | 12 import android.net.wifi.WifiScanner.ScanSettings; 29 private ScanSettings mScanSettings; 35 public WifiGScanReceiver(PMCMainActivity activity, ScanSettings settings, int interval, in WifiGScanReceiver() 85 class GScanTask extends AsyncTask<ScanSettings, Integer, String> { 94 protected String doInBackground(ScanSettings... settings) { in doInBackground()
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/ |
D | AnomalyActions.java | 23 import android.bluetooth.le.ScanSettings; 60 ScanSettings scanSettings = new ScanSettings.Builder() in doUnoptimizedBleScan() 61 .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY).build(); in doUnoptimizedBleScan()
|