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.java72 final SpannableStringBuilder ssb = new SpannableStringBuilder(STRING);
73 ssb.setSpan(SPAN, SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in ssb.setSpan()
74 SPANNED = ssb;
351 final SpannableStringBuilder ssb = new SpannableStringBuilder("II"); in testGetWidth_multiStyle() local
352 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 1 /* text size */, in testGetWidth_multiStyle()
354 ssb.setSpan(new TextAppearanceSpan(null /* family */, Typeface.NORMAL, 5 /* text size */, in testGetWidth_multiStyle()
365 assertEquals(0.0f, PrecomputedText.create(ssb, param).getWidth(0, 0), 0.0f); in testGetWidth_multiStyle()
366 assertEquals(0.0f, PrecomputedText.create(ssb, param).getWidth(1, 1), 0.0f); in testGetWidth_multiStyle()
367 assertEquals(0.0f, PrecomputedText.create(ssb, param).getWidth(2, 2), 0.0f); in testGetWidth_multiStyle()
369 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.java1519 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello, World\nHello, Android");
1520 ssb.setSpan(firstStyleSpan, 0, 13, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1521 ssb.setSpan(firstReplacement, 0, 13, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1522 ssb.setSpan(secondStyleSpan, 13, 27, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1523 ssb.setSpan(secondReplacement, 13, 27, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
1525 StaticLayout.Builder.obtain(ssb, 0, ssb.length(), paint, Integer.MAX_VALUE).build();
/cts/tests/tests/graphics/src/android/graphics/text/cts/
DMeasuredTextTest.java323 final SpannableStringBuilder ssb = new SpannableStringBuilder(text); in makeBitmapFromSsb() local
328 ssbCanvas.drawTextRun(ssb, 0, ssb.length(), 0, ssb.length(), in makeBitmapFromSsb()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java8343 SpannableStringBuilder ssb = new SpannableStringBuilder("a"); in testDynamicLayoutReflowCrash_b75652829() local
8344 ssb.setSpan(new UnderlineSpan(), 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in testDynamicLayoutReflowCrash_b75652829()
8345 editable.replace(5, 5, ssb); in testDynamicLayoutReflowCrash_b75652829()
/cts/tests/tests/media/assets/hls_variant/1676816/
D08.ts6095 …�,���n%�$��dQ4�nֹ�D/O��x�(#p��S��C������@��>�<\:G�a�=��Y�IO��WR�����ƫ��ssb�.H����k�B����deV�p…