From 0228bf8ae0d5c87fc5031288ba3bec57561ca091 Mon Sep 17 00:00:00 2001 From: Lais Andrade Date: Thu, 22 Apr 2021 17:01:26 +0000 Subject: [PATCH] Update javadoc for Vibrator.getPrimitiveDurations Link the method to the existing one arePrimitivesSupported. Fix: 186120527 Test: N/A Change-Id: Ibf128f851da977feef5f6822794c61cb31488cab --- core/java/android/os/Vibrator.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/java/android/os/Vibrator.java b/core/java/android/os/Vibrator.java index b3502f38dd53c..95962c82a6112 100644 --- a/core/java/android/os/Vibrator.java +++ b/core/java/android/os/Vibrator.java @@ -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. + *

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. + * + *

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.