Searched refs:textWidth (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/text/src/android/text/style/cts/ |
D | UnderlineSpanTest.java | 94 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 …]
|
D | StrikethroughSpanTest.java | 97 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()
|
D | SuggestionSpanTest.java | 213 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/ |
D | TextUtilsTest.java | 212 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 …]
|
D | StaticLayoutTest.java | 1219 int textWidth = (int) (mDefaultPaint.measureText(text) + 1); 1221 mDefaultPaint, textWidth) 1225 .setEllipsizedWidth(textWidth)
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TouchTest.java | 120 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()
|
D | BaseMovementMethodTest.java | 188 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()
|