Searched refs:textWidth (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 87 float textWidth = p.measureText("long, 3 plus"); in testCommaEllipsize() local 92 … TextUtils.commaEllipsize(text, p, textWidth - 1.4f, "plus 1", "%d plus").toString()); in testCommaEllipsize() 95 TextUtils.commaEllipsize(text, p, textWidth, "plus 1", "%d plus").toString()); in testCommaEllipsize() 98 textWidth = p.measureText("long, string, 2 more"); in testCommaEllipsize() 100 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); in testCommaEllipsize() 103 textWidth = p.measureText("long, string, to, truncate"); in testCommaEllipsize() 105 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); in testCommaEllipsize() 109 text + "-extended", p, textWidth, "more 1", "%d more").toString()); in testCommaEllipsize() 118 text + "-extended", p, textWidth, null, "%d more").toString()); in testCommaEllipsize() 121 TextUtils.commaEllipsize(null, p, textWidth, "plus 1", "%d plus"); in testCommaEllipsize() [all …]
|
D | StaticLayoutTest.java | 529 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() local 530 final int halfWidth = (int)(textWidth / 2.0f); in testEllipsis_singleLine()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TouchTest.java | 118 int textWidth = Math.round(paint.measureText(text)); in testOnTouchEvent() local 119 while (textWidth < screenWidth) { in testOnTouchEvent() 121 textWidth = Math.round(paint.measureText(text)); in testOnTouchEvent() 125 int dragAmount = Math.min(screenWidth, textWidth - screenWidth); in testOnTouchEvent()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 2601 int textWidth = calculateTextWidth(LONG_TEXT); 2606 tvEllipsizeEnd.setWidth(textWidth >> 2); 2610 tvEllipsizeNone.setWidth(textWidth >> 2); 2636 int textWidth = calculateTextWidth(LONG_TEXT); in testEllipsizeEndAndNoEllipsizeHasSameBaselineForMultiLine() local 2641 tvEllipsizeEnd.setWidth(textWidth >> 2); in testEllipsizeEndAndNoEllipsizeHasSameBaselineForMultiLine() 2646 tvEllipsizeNone.setWidth(textWidth >> 2); in testEllipsizeEndAndNoEllipsizeHasSameBaselineForMultiLine()
|