summaryrefslogtreecommitdiff
path: root/core/java/android/text/Layout.java
diff options
context:
space:
mode:
authorSiyamed Sinir <siyamed@google.com>2018-11-16 19:46:28 +0000
committerSiyamed Sinir <siyamed@google.com>2018-11-16 19:46:28 +0000
commit3c097aa45e1fc8c03e09aea09a0dc3596b82c761 (patch)
treed1c31edd49648044c1a4710e916ef579ef55535c /core/java/android/text/Layout.java
parent888dbca2f720ae2ae52dce1d88063e46e3b53c28 (diff)
Revert "Refactor TextLine class"
This reverts commit 888dbca2f720ae2ae52dce1d88063e46e3b53c28. Reason for revert: <INSERT REASONING HERE> Change-Id: I259327a6ca507e2614cacdcdabdeca7df48b8ed2
Diffstat (limited to 'core/java/android/text/Layout.java')
-rw-r--r--core/java/android/text/Layout.java46
1 files changed, 0 insertions, 46 deletions
diff --git a/core/java/android/text/Layout.java b/core/java/android/text/Layout.java
index c8e0dd291041..e5fd2921227d 100644
--- a/core/java/android/text/Layout.java
+++ b/core/java/android/text/Layout.java
@@ -2360,52 +2360,6 @@ public abstract class Layout {
public Directions(int[] dirs) {
mDirections = dirs;
}
-
- /**
- * Returns number of BiDi runs.
- *
- * @hide
- */
- public @IntRange(from = 0) int getRunCount() {
- return mDirections.length / 2;
- }
-
- /**
- * Returns the start offset of the BiDi run.
- *
- * @param runIndex the index of the BiDi run
- * @return the start offset of the BiDi run.
- * @hide
- */
- public @IntRange(from = 0) int getRunStart(@IntRange(from = 0) int runIndex) {
- return mDirections[runIndex * 2];
- }
-
- /**
- * Returns the length of the BiDi run.
- *
- * Note that this method may return too large number due to reducing the number of object
- * allocations. The too large number means the remaining part is assigned to this run. The
- * caller must clamp the returned value.
- *
- * @param runIndex the index of the BiDi run
- * @return the length of the BiDi run.
- * @hide
- */
- public @IntRange(from = 0) int getRunLength(@IntRange(from = 0) int runIndex) {
- return mDirections[runIndex * 2 + 1] & RUN_LENGTH_MASK;
- }
-
- /**
- * Returns true if the BiDi run is RTL.
- *
- * @param runIndex the index of the BiDi run
- * @return true if the BiDi run is RTL.
- * @hide
- */
- public boolean isRunRtl(int runIndex) {
- return (mDirections[runIndex * 2 + 1] & RUN_RTL_FLAG) != 0;
- }
}
/**