Lines Matching refs:bucket

49  * where each bucket represents a set of channels and an interval to scan at. This
52 * <p>Each new request is placed in the best predefined bucket. Once all requests have been added
53 * the last buckets (lower priority) are placed in the next best bucket until the number of buckets
67 // Max channels that can be specified per bucket
91 * the next smallest bucket with the smallest bucket having a period of PERIOD_MIN_GCD_MS.
104 * scan will be placed in the 20s bucket.
106 * If there are special scan requests such as exponential back off, we always dedicate a bucket
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.
195 * convert the setting for this bucket to HAL representation
216 // For the bucket allocated to exponential back off scan, the values of
218 // setting in the settings list will be used to configure this bucket.
236 bucketSettings.bucket = bucketId;
277 Bucket bucket = mBuckets[index];
278 if (bucket == null) {
280 bucket = mBuckets[index] = new Bucket(PREDEFINED_BUCKET_PERIODS[index]);
282 return bucket;
366 // This keeps track of the settings to the max time period bucket to which it was scheduled.
422 * Retrieves the max time period bucket idx at which this setting was scheduled
429 Slog.wtf(TAG, "No bucket found for settings");
448 for (Bucket bucket : bucketList) {
450 bucket.createBucketSettings(bucketId, maxChannelsPerBucket);
451 for (ScanSettings settings : bucket.getSettingsList()) {
505 * Add a scan to the most appropriate bucket, creating the bucket if necessary.
511 // exponential back off scan has a dedicated bucket
521 * find closest bucket period to the requested period in all predefined buckets
535 Slog.wtf(TAG, "Could not find best bucket for period " + requestedPeriod + " in "
543 * closest period bucket.
548 // reserve one bucket for exponential back off scan if there is
584 * Creates a split scan setting that needs to be added back to the current bucket.
589 // Let's create a new settings for the current bucket with the same flags, but the missing
590 // channels from the other bucket
601 * Creates a split scan setting that needs to be added to the target lower time period bucket.
603 * need this flag only in the higher time period bucket.
608 // The new settings for the other bucket will have the channels that already in the that
609 // bucket. We'll need to do some migration of the |reportEvents| flags.
625 * @return The first scan setting needs to be added back to the current bucket
626 * The second scan setting needs to be added to the other bucket
645 * bucket. If it's partially covered, the settings is split else the entire settings
646 * is moved to the lower time period bucket.
652 * current bucket.
665 // Update the max scheduled bucket for this setting
683 // Update the settings to scheduled bucket mapping. This is needed for event
694 * If yes, move the setting to the lower time period bucket. If all the settings from a higher
695 * period has been moved out, that bucket can be removed.
706 // bucket at the end of iterating thru all the settings. This has to be a separate temp list
710 // We need to go thru each setting starting from the lowest time period bucket and check
711 // if they're already contained in a lower time period bucket. If yes, delete the setting
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
715 // bucket altogether.
733 // Remove the original settings from the current bucket.
737 // Add back the remaining split settings to the current bucket.
754 // Update the settings to scheduled bucket map for all exponential scans.
768 * each bucket.
794 * Note: This does not update the mSettingsToScheduledBucket map because this bucket is
795 * essentially a copy of the original bucket, so it should not affect the event reporting.
796 * This bucket results will come back the same time the original bucket results come back.
805 // Need to keep the original bucket to keep track of the settings to scheduled
806 // bucket mapping.
823 * Check if any of the buckets don't fit into the bucket specification and fix it. This
842 for (Bucket bucket : splitBuckets) {
843 fixedBucketList.add(bucket);