Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java352 final float wordWidth = paint.measureText("MMMM"); in testEllipsize_multiCodepoint() local
358 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint()
364 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint()
370 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint()
376 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint()
385 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint()
391 TextUtils.ellipsize("MMMM", paint, 0.7f * wordWidth, in testEllipsize_multiCodepoint()
397 TextUtils.ellipsize("MM", paint, 0.45f * wordWidth, in testEllipsize_multiCodepoint()
403 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/minikin/libs/minikin/
DGreedyLineBreaker.cpp336 float wordWidth = 0; in doLineBreakWithFallback() local
344 if (preBreakWidth + wordWidth > mLineWidthLimit) { in doLineBreakWithFallback()
355 preBreakWidth += wordWidth; in doLineBreakWithFallback()
356 wordWidth = w; in doLineBreakWithFallback()
358 wordWidth += w; in doLineBreakWithFallback()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java125 float wordWidth = paint.measureText(word, 0, word.length()); in testHyphenationWidth() local
134 int width = (int)(wordWidth * 0.7); in testHyphenationWidth()