Searched refs:wordWidth (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextUtilsTest.java | 348 final float wordWidth = paint.measureText("MMMM"); in testEllipsize_multiCodepoint() local 354 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint() 360 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint() 366 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint() 372 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint() 381 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint() 387 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint() 393 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint() 399 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint()
|
D | StaticLayoutTest.java | 734 final float wordWidth = paint.measureText(longWord); in testLocaleSpanAffectsHyphenation() local 736 final int paraWidth = Math.round(wordWidth * 1.8f); in testLocaleSpanAffectsHyphenation()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 186 float wordWidth = paint.measureText(word, 0, word.length()); in testHyphenationWidth() local 195 int width = (int)(wordWidth * 0.7); in testHyphenationWidth()
|