Lines Matching refs:settings

128      * collection to be scanned by the bucket as settings are added to it.
144 * Copy constructor which populates the settings list from the original bucket object.
148 for (ScanSettings settings : originalBucket.getSettingsList()) {
149 mScanSettingsList.add(settings);
169 // It's difficult to handle settings removal from buckets in terms of
184 for (ScanSettings settings : mScanSettingsList) {
185 mChannelCollection.addChannels(settings);
217 // setting in the settings list will be used to configure this bucket.
365 // This keeps track of the settings to the max time period bucket to which it was scheduled.
402 * settings.
405 int bucketsScanned, @NonNull ScanSettings settings) {
407 result, bucketsScanned, settings, getScheduledBucket(settings));
412 * requested in the settings. Will return null if the result should not be reported.
415 @NonNull ScanSettings settings) {
416 return ScanScheduleUtil.filterResultsForSettings(mChannelHelper, scanDatas, settings,
417 getScheduledBucket(settings));
423 public int getScheduledBucket(ScanSettings settings) {
424 Bucket maxScheduledBucket = mSettingsToScheduledBucket.get(settings);
428 Slog.wtf(TAG, "No bucket found for settings");
449 for (ScanSettings settings : bucket.getSettingsList()) {
451 if (settings.numBssidsPerScan > schedule.max_ap_per_scan) {
452 schedule.max_ap_per_scan = settings.numBssidsPerScan;
455 if (settings.maxScansToCache != 0
456 && settings.maxScansToCache < schedule.report_threshold_num_scans) {
457 schedule.report_threshold_num_scans = settings.maxScansToCache;
492 private void addScanToBuckets(ScanSettings settings) {
495 if (settings.maxPeriodInMs != 0 && settings.maxPeriodInMs != settings.periodInMs) {
499 bucketIndex = findBestRegularBucketIndex(settings.periodInMs, NUM_OF_REGULAR_BUCKETS);
502 mBuckets.getOrCreate(bucketIndex).addSettings(settings);
551 * Clone the provided scan settings fields to a new ScanSettings object.
554 ScanSettings settings = new ScanSettings();
555 settings.band = originalSettings.band;
556 settings.channels = originalSettings.channels;
557 settings.periodInMs = originalSettings.periodInMs;
558 settings.reportEvents = originalSettings.reportEvents;
559 settings.numBssidsPerScan = originalSettings.numBssidsPerScan;
560 settings.maxScansToCache = originalSettings.maxScansToCache;
561 settings.maxPeriodInMs = originalSettings.maxPeriodInMs;
562 settings.stepCount = originalSettings.stepCount;
563 settings.isPnoScan = originalSettings.isPnoScan;
564 return settings;
573 // Let's create a new settings for the current bucket with the same flags, but the missing
592 // The new settings for the other bucket will have the channels that already in the that
608 * Split the scan settings into 2 so that they can be put into 2 separate buckets.
618 // Two Copy of the original settings
627 * Try to merge the settings to lower buckets.
628 * Check if the channels in this settings is already covered by a lower time period
629 * bucket. If it's partially covered, the settings is split else the entire settings
661 // Update the |remainingSplitSettings| to keep track of the remaining scan settings.
662 // The original settings could be split across multiple buckets.
667 // Update the settings to scheduled bucket mapping. This is needed for event
676 * This method tries to go through the settings in all the buckets and checks if the same
678 * If yes, move the setting to the lower time period bucket. If all the settings from a higher
689 // This is needed to keep track of split settings that need to be added back to the same
690 // bucket at the end of iterating thru all the settings. This has to be a separate temp list
696 // from the current bucket and move it to the other bucket. If the settings are only
697 // partially contained, split the settings into two and move the partial bucket back
698 // to the same bucket. Finally, if all the settings have been moved out, remove the current
717 // Remove the original settings from the current bucket.
721 // Add back the remaining split settings to the current bucket.
733 // Update the channel collection to account for the removed settings
738 // Update the settings to scheduled bucket map for all exponential scans.
741 for (ScanSettings settings : exponentialBucket.getSettingsList()) {
742 mSettingsToScheduledBucket.put(settings, exponentialBucket);
777 * into multiple buckets with the same scan settings.
789 // Need to keep the original bucket to keep track of the settings to scheduled