Searched refs:spans (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | TextUtilitiesTests.java | 202 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); in testHighlightSingleTermText() local 203 assertEquals(1, spans.length); in testHighlightSingleTermText() 204 BackgroundColorSpan span = spans[0]; in testHighlightSingleTermText() 213 spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); in testHighlightSingleTermText() 214 assertEquals(2, spans.length); in testHighlightSingleTermText() 215 span = spans[0]; in testHighlightSingleTermText() 218 span = spans[1]; in testHighlightSingleTermText() 229 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); in testHighlightTwoTermText() local 230 assertEquals(2, spans.length); in testHighlightTwoTermText() 231 BackgroundColorSpan span = spans[0]; in testHighlightTwoTermText() [all …]
|
/packages/apps/Mms/tests/src/com/android/mms/util/ |
D | SmileyParserUnitTests.java | 55 ImageSpan[] spans = buf.getSpans(0, buf.length(), ImageSpan.class); in testSmileyParser() local 59 Smileys.getSmileyResource(Smileys.HAPPY)), spans[0])); in testSmileyParser() 63 Smileys.getSmileyResource(Smileys.SAD)), spans[1])); in testSmileyParser()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | LevenshteinFormatterTest.java | 151 private void verifyFormatSuggestion(String query, String suggestion, SpanFormat... spans) { in verifyFormatSuggestion() argument 153 for (SpanFormat span : spans) { in verifyFormatSuggestion() 353 MockStyleSpan[] spans = spanned.getSpans(mStart, mEnd, MockStyleSpan.class); in verify() local 354 assertEquals("Wrong number of spans in '" + spannedText + "'", 1, spans.length); in verify() 356 mStyle, spans[0].getId()); in verify()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputTestsBase.java | 72 final CharacterStyle[] spans = in SpanGetter() local 74 if (0 == spans.length) { in SpanGetter() 78 } else if (1 == spans.length) { in SpanGetter() 79 mSpan = spans[0]; in SpanGetter() 83 throw new RuntimeException("Expected one span, found " + spans.length); in SpanGetter()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionFormatter.java | 52 private void setSpans(Spannable text, int start, int end, Object[] spans) { in setSpans() argument 53 for (Object span : spans) { in setSpans()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | MessageListItem.java | 597 final URLSpan[] spans = mBodyTextView.getUrls(); in onMessageListItemClick() local 599 if (spans.length == 0) { in onMessageListItemClick() 601 } else if (spans.length == 1) { in onMessageListItemClick() 602 spans[0].onClick(mBodyTextView); in onMessageListItemClick() 605 new ArrayAdapter<URLSpan>(mContext, android.R.layout.select_dialog_item, spans) { in onMessageListItemClick() 641 spans[which].onClick(mBodyTextView); in onMessageListItemClick()
|
D | MessageUtils.java | 796 public static ArrayList<String> extractUris(URLSpan[] spans) { in extractUris() argument 797 int size = spans.length; in extractUris() 801 accumulator.add(spans[i].getURL()); in extractUris()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 2727 int[] spans = rectToCell(minWidth, minHeight, null); in calculateSpans() local 2728 info.spanX = spans[0]; in calculateSpans() 2729 info.spanY = spans[1]; in calculateSpans()
|