summaryrefslogtreecommitdiffstats
path: root/tests/BiDiTests
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2011-04-21 17:36:26 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2011-04-21 17:36:26 -0700
commit0a1413e4bf9dcda2a8abb2287e43f612a7fb2453 (patch)
treea6109f6d5309fa3d7252d81478a71b4f986faf83 /tests/BiDiTests
parentb104800b6cfaec78e5912015c63f8fc6a2437d0e (diff)
downloadframeworks_base-0a1413e4bf9dcda2a8abb2287e43f612a7fb2453.zip
frameworks_base-0a1413e4bf9dcda2a8abb2287e43f612a7fb2453.tar.gz
frameworks_base-0a1413e4bf9dcda2a8abb2287e43f612a7fb2453.tar.bz2
Clean getTextRunAdvances() APIs
- remove ICU reference in API names - use a "reserved" int parameter to pass either "0" for Harfbuzz or "1" for "ICU" Change-Id: I88b4f76feafd203a6999cd7349402fa36a9a4b2a
Diffstat (limited to 'tests/BiDiTests')
-rw-r--r--tests/BiDiTests/src/com/android/bidi/BiDiTestView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/BiDiTests/src/com/android/bidi/BiDiTestView.java b/tests/BiDiTests/src/com/android/bidi/BiDiTestView.java
index 2f9b026..76031a8 100644
--- a/tests/BiDiTests/src/com/android/bidi/BiDiTestView.java
+++ b/tests/BiDiTests/src/com/android/bidi/BiDiTestView.java
@@ -153,7 +153,8 @@ public class BiDiTestView extends View {
float[] advances = new float[length];
float textWidthHB = paint.getTextRunAdvances(text, 0, length, 0, length, dir, advances, 0);
setPaintDir(paint, dir);
- float textWidthICU = paint.getTextRunAdvancesICU(text, 0, length, 0, length, dir, advances, 0);
+ float textWidthICU = paint.getTextRunAdvances(text, 0, length, 0, length, dir, advances, 0,
+ 1 /* use ICU */);
logAdvances(text, textWidthHB, textWidthICU, advances);
drawMetricsAroundText(canvas, x, y, textWidthHB, textWidthICU, textSize, Color.RED, Color.GREEN);