diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2011-04-21 17:36:26 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2011-04-21 17:36:26 -0700 |
commit | 0a1413e4bf9dcda2a8abb2287e43f612a7fb2453 (patch) | |
tree | a6109f6d5309fa3d7252d81478a71b4f986faf83 /tests/BiDiTests | |
parent | b104800b6cfaec78e5912015c63f8fc6a2437d0e (diff) | |
download | frameworks_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.java | 3 |
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); |