Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3ef49f8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update docs to reflect LE batch scan report delay floor" am: 2f02e6ef

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682051

Change-Id: I1caef5696f0803f733771d5cfc6f09181ed25f5f
parents 245493eb 2f02e6ef
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -345,12 +345,14 @@ public final class ScanSettings implements Parcelable {
        }

        /**
         * Set report delay timestamp for Bluetooth LE scan.
         * Set report delay timestamp for Bluetooth LE scan. If set to 0, you will be notified of
         * scan results immediately. If > 0, scan results are queued up and delivered after the
         * requested delay or 5000 milliseconds (whichever is higher). Note scan results may be
         * delivered sooner if the internal buffers fill up.
         *
         * @param reportDelayMillis Delay of report in milliseconds. Set to 0 to be notified of
         * results immediately. Values > 0 causes the scan results to be queued up and delivered
         * after the requested delay or when the internal buffers fill up.
         * @throws IllegalArgumentException If {@code reportDelayMillis} < 0.
         * @param reportDelayMillis         how frequently scan results should be delivered in
         *                                  milliseconds
         * @throws IllegalArgumentException if {@code reportDelayMillis} < 0
         */
        public Builder setReportDelay(long reportDelayMillis) {
            if (reportDelayMillis < 0) {