summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorPetar Ĺ egina <psegina@google.com>2017-09-28 16:16:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-09-28 16:16:47 +0000
commit69ddece0b061a3cc024f191bdd3171e4e81118a5 (patch)
tree12fbb042ab90da969b19c7c2261a8e502229bc2d /core/java
parentdf2ff2bbf4dd54eee6b454074235dbb64d586b1e (diff)
parent7c31d5c80d7bd4de3902cf06ea1d1e90b4cadfcd (diff)
Merge "Update referenced constant names for Directions"
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/text/Layout.java18
1 files changed, 7 insertions, 11 deletions
diff --git a/core/java/android/text/Layout.java b/core/java/android/text/Layout.java
index c3b2a16cc986..60fff7387c75 100644
--- a/core/java/android/text/Layout.java
+++ b/core/java/android/text/Layout.java
@@ -2145,18 +2145,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)