Home
last modified time | relevance | path

Searched refs:ssb (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DPrecomputedTextTest.java82 final SpannableStringBuilder ssb = new SpannableStringBuilder(STRING);
83 ssb.setSpan(SPAN, SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in ssb.setSpan()
84 SPANNED = ssb;
400 final SpannableStringBuilder ssb = new SpannableStringBuilder("II"); in testGetWidth_multiStyle() local
401 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 1 /* text size */, in testGetWidth_multiStyle()
403 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */, in testGetWidth_multiStyle()
414 assertEquals(0.0f, PrecomputedText.create(ssb, param).getWidth(0, 0), 0.0f); in testGetWidth_multiStyle()
415 assertEquals(0.0f, PrecomputedText.create(ssb, param).getWidth(1, 1), 0.0f); in testGetWidth_multiStyle()
416 assertEquals(0.0f, PrecomputedText.create(ssb, param).getWidth(2, 2), 0.0f); in testGetWidth_multiStyle()
418 assertEquals(1.0f, PrecomputedText.create(ssb, param).getWidth(0, 1), 0.0f); in testGetWidth_multiStyle()
[all …]
DStaticLayoutLineBreakingTest.java352 SpannableStringBuilder ssb = new SpannableStringBuilder(text); in testWithOneSpan() local
353 ssb.setSpan(metricAffectingSpan, spanStart, spanEnd, in testWithOneSpan()
355 layout(ssb, breaks); in testWithOneSpan()
378 SpannableStringBuilder ssb = new SpannableStringBuilder(text); in testWithTwoSpans() local
379 ssb.setSpan(metricAffectingSpan1, spanStart1, spanEnd1, in testWithTwoSpans()
384 ssb.setSpan(metricAffectingSpan2, spanStart2, spanEnd2, in testWithTwoSpans()
386 layout(ssb, breaks); in testWithTwoSpans()
DStaticLayoutTest.java1559 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello, World\nHello, Android");
1560 ssb.setSpan(firstStyleSpan, 0, 13, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1561 ssb.setSpan(firstReplacement, 0, 13, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1562 ssb.setSpan(secondStyleSpan, 13, 27, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1563 ssb.setSpan(secondReplacement, 13, 27, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1565 StaticLayout.Builder.obtain(ssb, 0, ssb.length(), paint, Integer.MAX_VALUE).build();
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewReceiveContentTest.java215 SpannableStringBuilder ssb = new SpannableStringBuilder("hi world"); in testDefaultReceiver_onReceive_styledText() local
216 ssb.setSpan(underlineSpan, 3, 7, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testDefaultReceiver_onReceive_styledText()
217 ClipData clip = ClipData.newPlainText("test", ssb); in testDefaultReceiver_onReceive_styledText()
243 SpannableStringBuilder ssb = new SpannableStringBuilder("hi world"); in testDefaultReceiver_onReceive_styledText_convertToPlainText() local
244 ssb.setSpan(underlineSpan, 3, 7, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testDefaultReceiver_onReceive_styledText_convertToPlainText()
245 ClipData clip = ClipData.newPlainText("test", ssb); in testDefaultReceiver_onReceive_styledText_convertToPlainText()
786 SpannableStringBuilder ssb = new SpannableStringBuilder(text); in initTextViewForEditing() local
787 mTextView.setText(ssb, BufferType.EDITABLE); in initTextViewForEditing()
DTextViewTest.java9131 SpannableStringBuilder ssb = new SpannableStringBuilder("a"); in testDynamicLayoutReflowCrash_b75652829() local
9132 ssb.setSpan(new UnderlineSpan(), 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testDynamicLayoutReflowCrash_b75652829()
9133 editable.replace(5, 5, ssb); in testDynamicLayoutReflowCrash_b75652829()
/cts/tests/tests/graphics/src/android/graphics/text/cts/
DMeasuredTextTest.java355 final SpannableStringBuilder ssb = new SpannableStringBuilder(text); in makeBitmapFromSsb() local
360 ssbCanvas.drawTextRun(ssb, 0, ssb.length(), 0, ssb.length(), in makeBitmapFromSsb()