From 3217d3dcdc4f3b93e2a9228187d5c3bc1dca89ec Mon Sep 17 00:00:00 2001 From: Haoyu Zhang Date: Tue, 10 Jan 2023 12:59:15 -0800 Subject: [PATCH] Address API feedback for getRunCharacterAdvance Bug: 241167328 Test: N/A Change-Id: I0d66c55d31802e555d8b171bd36984bb3496f189 --- graphics/java/android/graphics/Paint.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graphics/java/android/graphics/Paint.java b/graphics/java/android/graphics/Paint.java index f0e496f3a1782..d35dcab11f490 100644 --- a/graphics/java/android/graphics/Paint.java +++ b/graphics/java/android/graphics/Paint.java @@ -3151,10 +3151,10 @@ public class Paint { * @see #getRunAdvance(char[], int, int, int, int, boolean, int) for more details. * * @param text the text to measure. Cannot be null. - * @param start the index of the start of the range to measure - * @param end the index + 1 of the end of the range to measure - * @param contextStart the index of the start of the shaping context - * @param contextEnd the index + 1 of the end of the shaping context + * @param start the start index of the range to measure, inclusive + * @param end the end index of the range to measure, exclusive + * @param contextStart the start index of the shaping context, inclusive + * @param contextEnd the end index of the shaping context, exclusive * @param isRtl whether the run is in RTL direction * @param offset index of caret position * @param advances the array that receives the computed character advances