Home
last modified time | relevance | path

Searched refs:textWidth (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/text/src/android/text/style/cts/
DUnderlineSpanTest.java94 private float textWidth(CharSequence text) { in textWidth() method in UnderlineSpanTest
108 final float origLineWidth = textWidth(text); in testDoesntAffectWidth()
111 final float underlinedLineWidth = textWidth(text); in testDoesntAffectWidth()
116 final float origLineWidth = textWidth(text); in testDoesntAffectWidth()
119 final float underlinedLineWidth = textWidth(text); in testDoesntAffectWidth()
124 final float origLineWidth = textWidth(text); in testDoesntAffectWidth()
127 final float underlinedLineWidth = textWidth(text); in testDoesntAffectWidth()
132 final float origLineWidth = textWidth(text); in testDoesntAffectWidth()
136 final float underlinedLineWidth = textWidth(text); in testDoesntAffectWidth()
151 final float origLineWidth = textWidth(text); in testDoesntAffectWidth_safeSubclass()
[all …]
DStrikethroughSpanTest.java97 private float textWidth(CharSequence text) { in textWidth() method in StrikethroughSpanTest
110 final float origLineWidth = textWidth(text); in testDoesntAffectWidth()
113 final float strokethroughLineWidth = textWidth(text); in testDoesntAffectWidth()
DSuggestionSpanTest.java213 private float textWidth(CharSequence text) { in textWidth() method in SuggestionSpanTest
226 final float origLineWidth = textWidth(text); in testDoesntAffectWidth()
233 final float underlinedLineWidth = textWidth(text); in testDoesntAffectWidth()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java212 float textWidth = p.measureText("long, 3 plus"); in testCommaEllipsize() local
217 … TextUtils.commaEllipsize(text, p, textWidth - 1.4f, "plus 1", "%d plus").toString()); in testCommaEllipsize()
220 TextUtils.commaEllipsize(text, p, textWidth, "plus 1", "%d plus").toString()); in testCommaEllipsize()
223 textWidth = p.measureText("long, string, 2 more"); in testCommaEllipsize()
225 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); in testCommaEllipsize()
228 textWidth = p.measureText("long, string, to, truncate"); in testCommaEllipsize()
230 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); in testCommaEllipsize()
234 text + "-extended", p, textWidth, "more 1", "%d more").toString()); in testCommaEllipsize()
243 text + "-extended", p, textWidth, null, "%d more").toString()); in testCommaEllipsize()
246 TextUtils.commaEllipsize(null, p, textWidth, "plus 1", "%d plus"); in testCommaEllipsize()
[all …]
DStaticLayoutTest.java1219 int textWidth = (int) (mDefaultPaint.measureText(text) + 1);
1221 mDefaultPaint, textWidth)
1225 .setEllipsizedWidth(textWidth)
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java120 int textWidth = Math.round(paint.measureText(text)); in testOnTouchEvent() local
121 while (textWidth < screenWidth) { in testOnTouchEvent()
123 textWidth = Math.round(paint.measureText(text)); in testOnTouchEvent()
127 int dragAmount = Math.min(screenWidth, textWidth - screenWidth); in testOnTouchEvent()
DBaseMovementMethodTest.java188 private void setContentView(@NonNull TextView textView, int textWidth) throws Throwable { in setContentView() argument
191 layout.addView(textView, new ViewGroup.LayoutParams(textWidth, WRAP_CONTENT)); in setContentView()