Lines Matching refs:settings

129      * collection to be scanned by the bucket as settings are added to it.
145 * Copy constructor which populates the settings list from the original bucket object.
149 for (ScanSettings settings : originalBucket.getSettingsList()) {
150 mScanSettingsList.add(settings);
170 // It's difficult to handle settings removal from buckets in terms of
185 for (ScanSettings settings : mScanSettingsList) {
186 mChannelCollection.addChannels(settings);
218 // setting in the settings list will be used to configure this bucket.
366 // This keeps track of the settings to the max time period bucket to which it was scheduled.
403 * settings.
406 int bucketsScanned, @NonNull ScanSettings settings) {
408 result, bucketsScanned, settings, getScheduledBucket(settings));
413 * requested in the settings. Will return null if the result should not be reported.
416 @NonNull ScanSettings settings) {
417 return ScanScheduleUtil.filterResultsForSettings(mChannelHelper, scanDatas, settings,
418 getScheduledBucket(settings));
424 public int getScheduledBucket(ScanSettings settings) {
425 Bucket maxScheduledBucket = mSettingsToScheduledBucket.get(settings);
429 Slog.wtf(TAG, "No bucket found for settings");
451 for (ScanSettings settings : bucket.getSettingsList()) {
453 if (settings.numBssidsPerScan > schedule.max_ap_per_scan) {
454 schedule.max_ap_per_scan = settings.numBssidsPerScan;
457 if (settings.maxScansToCache != 0
458 && settings.maxScansToCache < schedule.report_threshold_num_scans) {
459 schedule.report_threshold_num_scans = settings.maxScansToCache;
462 if (settings.hiddenNetworkIds != null) {
463 for (int j = 0; j < settings.hiddenNetworkIds.length; j++) {
464 hiddenNetworkIdSet.add(settings.hiddenNetworkIds[j]);
507 private void addScanToBuckets(ScanSettings settings) {
510 if (settings.maxPeriodInMs != 0 && settings.maxPeriodInMs != settings.periodInMs) {
514 bucketIndex = findBestRegularBucketIndex(settings.periodInMs, NUM_OF_REGULAR_BUCKETS);
517 mBuckets.getOrCreate(bucketIndex).addSettings(settings);
566 * Clone the provided scan settings fields to a new ScanSettings object.
569 ScanSettings settings = new ScanSettings();
570 settings.band = originalSettings.band;
571 settings.channels = originalSettings.channels;
572 settings.hiddenNetworkIds = originalSettings.hiddenNetworkIds;
573 settings.periodInMs = originalSettings.periodInMs;
574 settings.reportEvents = originalSettings.reportEvents;
575 settings.numBssidsPerScan = originalSettings.numBssidsPerScan;
576 settings.maxScansToCache = originalSettings.maxScansToCache;
577 settings.maxPeriodInMs = originalSettings.maxPeriodInMs;
578 settings.stepCount = originalSettings.stepCount;
579 settings.isPnoScan = originalSettings.isPnoScan;
580 return settings;
589 // Let's create a new settings for the current bucket with the same flags, but the missing
608 // The new settings for the other bucket will have the channels that already in the that
624 * Split the scan settings into 2 so that they can be put into 2 separate buckets.
634 // Two Copy of the original settings
643 * Try to merge the settings to lower buckets.
644 * Check if the channels in this settings is already covered by a lower time period
645 * bucket. If it's partially covered, the settings is split else the entire settings
677 // Update the |remainingSplitSettings| to keep track of the remaining scan settings.
678 // The original settings could be split across multiple buckets.
683 // Update the settings to scheduled bucket mapping. This is needed for event
692 * This method tries to go through the settings in all the buckets and checks if the same
694 * If yes, move the setting to the lower time period bucket. If all the settings from a higher
705 // This is needed to keep track of split settings that need to be added back to the same
706 // bucket at the end of iterating thru all the settings. This has to be a separate temp list
712 // from the current bucket and move it to the other bucket. If the settings are only
713 // partially contained, split the settings into two and move the partial bucket back
714 // to the same bucket. Finally, if all the settings have been moved out, remove the current
733 // Remove the original settings from the current bucket.
737 // Add back the remaining split settings to the current bucket.
749 // Update the channel collection to account for the removed settings
754 // Update the settings to scheduled bucket map for all exponential scans.
757 for (ScanSettings settings : exponentialBucket.getSettingsList()) {
758 mSettingsToScheduledBucket.put(settings, exponentialBucket);
793 * into multiple buckets with the same scan settings.
805 // Need to keep the original bucket to keep track of the settings to scheduled