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

Commit 50253445 authored by Lais Andrade's avatar Lais Andrade Committed by Automerger Merge Worker
Browse files

Merge "Update javadoc for Vibrator.getPrimitiveDurations" into sc-dev am: fc020769

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

Change-Id: I2f23a558cab923ea9689689ff559b99ef9222b92
parents 3d07202a fc020769
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -554,9 +554,12 @@ public abstract class Vibrator {
    /**
     * Query the estimated durations of the given primitives.
     *
     * The returned array will be the same length as the query array and the value at a given index
     * will contain the duration in milliseconds of the effect at the same index in the querying
     * array.
     * <p>The returned array will be the same length as the query array and the value at a given
     * index will contain the duration in milliseconds of the effect at the same index in the
     * querying array.
     *
     * <p>The duration will be positive for primitives that are supported and zero for the
     * unsupported ones, in correspondence with {@link #arePrimitivesSupported(int...)}.
     *
     * @param primitiveIds Which primitives to query for.
     * @return The duration of each primitive, with zeroes for primitives that are not supported.