Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/recents/
DSplitBoundsTest.java48 SplitBounds ssb = new SplitBounds(mTopRect, mBottomRect, in testVerticalStacked() local
50 assertTrue(ssb.appsStackedVertically); in testVerticalStacked()
55 SplitBounds ssb = new SplitBounds(mLeftRect, mRightRect, in testHorizontalStacked() local
57 assertFalse(ssb.appsStackedVertically); in testHorizontalStacked()
62 SplitBounds ssb = new SplitBounds(mTopRect, mBottomRect, in testHorizontalDividerBounds() local
64 Rect dividerBounds = ssb.visualDividerBounds; in testHorizontalDividerBounds()
73 SplitBounds ssb = new SplitBounds(mLeftRect, mRightRect, in testVerticalDividerBounds() local
75 Rect dividerBounds = ssb.visualDividerBounds; in testVerticalDividerBounds()
84 SplitBounds ssb = new SplitBounds(mTopRect, mBottomRect, in testEqualVerticalTaskPercent() local
87 assertEquals(topPercentSpaceTaken, ssb.topTaskPercent, 0.01); in testEqualVerticalTaskPercent()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DRichTextViewTest.java52 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testLinkAnnotation() local
53 ssb.setSpan(link, 1, 2, 0 /* flags */); in testLinkAnnotation()
56 textView.setText(ssb); in testLinkAnnotation()
77 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testOnLinkClickListener() local
78 ssb.setSpan(link, 1, 2, 0 /* flags */); in testOnLinkClickListener()
81 textView.setText(ssb); in testOnLinkClickListener()
99 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testLegacyContextOnClickListener() local
100 ssb.setSpan(link, 1, 2, 0 /* flags */); in testLegacyContextOnClickListener()
105 textView.setText(ssb); in testLegacyContextOnClickListener()
117 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in onTouchEvent_clickOnLinks_shouldReturnTrue() local
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java60 SpannableStringBuilder ssb = new SpannableStringBuilder(); in testAppend() local
61 ssb.append(ss); in testAppend()
62 assertEquals(0, ssb.getSpanStart(o)); in testAppend()
63 assertEquals(4, ssb.getSpanEnd(o)); in testAppend()
64 assertEquals(1, ssb.getSpans(0, 4, Object.class).length); in testAppend()
66 ssb.insert(0, ss); in testAppend()
67 assertEquals(4, ssb.getSpanStart(o)); in testAppend()
68 assertEquals(8, ssb.getSpanEnd(o)); in testAppend()
69 assertEquals(0, ssb.getSpans(0, 4, Object.class).length); in testAppend()
70 assertEquals(1, ssb.getSpans(4, 8, Object.class).length); in testAppend()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSpanHelperTest.java36 SpannableStringBuilder ssb = new SpannableStringBuilder("Hello world"); in testReplaceSpan() local
39 ssb.setSpan(oldSpan, 2, 5, 0 /* flags */); in testReplaceSpan()
41 SpanHelper.replaceSpan(ssb, oldSpan, newSpan); in testReplaceSpan()
43 final Object[] spans = ssb.getSpans(0, ssb.length(), Object.class); in testReplaceSpan()
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelperTest.java151 SpannableStringBuilder ssb = new SpannableStringBuilder("מכונה בתרגום"); in testRtlLayout() local
152 ssb.setSpan(LINK_SPAN, 1, 2, 0 /* flags */); in testRtlLayout()
153 initTextView(ssb); in testRtlLayout()
172 SpannableStringBuilder ssb = in testMultilineLink() local
176 ssb.setSpan(LINK_SPAN, 51, 74, 0 /* flags */); in testMultilineLink()
177 initTextView(ssb); in testMultilineLink()
202 SpannableStringBuilder ssb = new SpannableStringBuilder(iwLoremIpsum); in testRtlMultilineLink() local
203 ssb.setSpan(LINK_SPAN, 50, 100, 0 /* flags */); in testRtlMultilineLink()
204 initTextView(ssb); in testRtlMultilineLink()
230 SpannableStringBuilder ssb = new SpannableStringBuilder(); in testBidiMultilineLink() local
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewOnMeasurePerfTest.java61 final SpannableStringBuilder ssb = new SpannableStringBuilder();
65 ssb.append(MULTILINE_TEXT);
82 for (int pos = 0; pos < ssb.length();) {
90 if (pos + spanLength > ssb.length()) {
91 spanLength = ssb.length() - pos;
93 ssb.setSpan(span, pos, pos + spanLength, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in ssb.setSpan()
96 COMPLEX_MULTILINE_TEXT = ssb;
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerView.java120 SpannableStringBuilder ssb = new SpannableStringBuilder(" "); // for the icon in updateHint() local
121 ssb.append(hintText); in updateHint()
124 ssb.setSpan(new ImageSpan(searchIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in updateHint()
125 mAutoCompleteTextView.setHint(ssb); in updateHint()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DTextPerfUtils.java106 SpannableStringBuilder ssb = new SpannableStringBuilder(cs); in nextRandomParagraph() local
118 ssb.setSpan(span, spanStart, spanEnd, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in nextRandomParagraph()
121 return ssb; in nextRandomParagraph()
/frameworks/base/core/java/android/text/
DTextUtils.java1121 SpannableStringBuilder ssb = new SpannableStringBuilder(template); in expandTemplate() local
1125 while (i < ssb.length()) { in expandTemplate()
1126 if (ssb.charAt(i) == '^') { in expandTemplate()
1127 char next = ssb.charAt(i+1); in expandTemplate()
1129 ssb.delete(i+1, i+2); in expandTemplate()
1143 ssb.replace(i, i+2, values[which]); in expandTemplate()
1153 return ssb; in expandTemplate()
1482 SpannableStringBuilder ssb = new SpannableStringBuilder(); in ellipsize() local
1483 ssb.append(text, 0, left); in ellipsize()
1484 ssb.append(ellipsis); in ellipsize()
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoControlsService.kt120 val ssb = SpannableStringBuilder(s) in colorize() constant
121 ssb.setSpan(ForegroundColorSpan(color), 0, s.length, 0) in colorize()
122 return ssb in colorize()
/frameworks/base/core/java/android/widget/
DTextViewOnReceiveContentListener.java147 SpannableStringBuilder ssb = new SpannableStringBuilder(); in coerceToText() local
157 ssb.append(itemText); in coerceToText()
160 return ssb; in coerceToText()
DSearchView.java1213 final SpannableStringBuilder ssb = new SpannableStringBuilder(" "); in getDecoratedHint() local
1214 ssb.setSpan(new ImageSpan(mSearchHintIcon), 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getDecoratedHint()
1215 ssb.append(hintText); in getDecoratedHint()
1216 return ssb; in getDecoratedHint()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DSaveUi.java574 final SpannableStringBuilder ssb = new SpannableStringBuilder(message); in applyMovementMethodIfNeed() local
575 final ClickableSpan[] spans = ssb.getSpans(0, ssb.length(), ClickableSpan.class); in applyMovementMethodIfNeed()