From 7c31d5c80d7bd4de3902cf06ea1d1e90b4cadfcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0egina?= Date: Mon, 25 Sep 2017 12:19:28 +0100 Subject: [PATCH] Update referenced constant names for Directions The new constants were introduced in [1] 9f7a444, but the comment used the wrong prefix - DIR_ instead of RUN_ in the actual names. [1] Change-Id Iea8bb46c678a18820e237c90f76007a084c83051 Commit hash 9f7a4442b89cc06cb8cae6992484e7ae795323ab Test: comment update, no tests performed Change-Id: I4e13600b16ebd9be7ac40cf6c6292ea13f0806c2 --- core/java/android/text/Layout.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/core/java/android/text/Layout.java b/core/java/android/text/Layout.java index 25f791bc8cc60..90d53c8620dd4 100644 --- a/core/java/android/text/Layout.java +++ b/core/java/android/text/Layout.java @@ -2146,18 +2146,14 @@ public abstract class Layout { * text within the layout of a line. */ public static class Directions { - // Directions represents directional runs within a line of text. - // Runs are pairs of ints listed in visual order, starting from the - // leading margin. The first int of each pair is the offset from - // the first character of the line to the start of the run. The - // second int represents both the length and level of the run. - // The length is in the lower bits, accessed by masking with - // DIR_LENGTH_MASK. The level is in the higher bits, accessed - // by shifting by DIR_LEVEL_SHIFT and masking by DIR_LEVEL_MASK. - // To simply test for an RTL direction, test the bit using - // DIR_RTL_FLAG, if set then the direction is rtl. - /** + * Directions represents directional runs within a line of text. Runs are pairs of ints + * listed in visual order, starting from the leading margin. The first int of each pair is + * the offset from the first character of the line to the start of the run. The second int + * represents both the length and level of the run. The length is in the lower bits, + * accessed by masking with RUN_LENGTH_MASK. The level is in the higher bits, accessed by + * shifting by RUN_LEVEL_SHIFT and masking by RUN_LEVEL_MASK. To simply test for an RTL + * direction, test the bit using RUN_RTL_FLAG, if set then the direction is rtl. * @hide */ @VisibleForTesting(visibility = VisibleForTesting.Visibility.PACKAGE)