Home
last modified time | relevance | path

Searched refs:wordWidth (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java349 final float wordWidth = paint.measureText("MMMM"); in testEllipsize_multiCodepoint() local
355 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint()
361 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint()
367 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint()
373 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint()
382 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint()
388 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint()
394 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint()
400 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint()
DStaticLayoutTest.java736 final float wordWidth = paint.measureText(longWord); in testLocaleSpanAffectsHyphenation() local
738 final int paraWidth = Math.round(wordWidth * 1.8f); in testLocaleSpanAffectsHyphenation()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java189 float wordWidth = paint.measureText(word, 0, word.length()); in testHyphenationWidth() local
198 int width = (int)(wordWidth * 0.7); in testHyphenationWidth()