/frameworks/base/core/tests/coretests/src/android/text/ |
TextUtilsTest.java | 135 /** Fail unless text+spans contains a span 'spanName' with the given start and end. */ 136 private void checkContains(Spanned text, String[] spans, String spanName, 138 for (String i: spans) { 152 String[] spans; local 164 spans = result.getSpans(0, result.length(), String.class); 167 assertEquals(4, spans.length); 168 checkContains(result, spans, "before", 0, 1); 169 checkContains(result, spans, "during", 1, 4); 170 checkContains(result, spans, "after", 4, 5); 171 checkContains(result, spans, "during+after", 1, 5) [all...] |
SpannedTest.java | 121 Object[] spans = s.getSpans(0, s.length(), Object.class); local 123 for (int i = 0; i < spans.length - 1; i++) { 124 assertEquals((s.getSpanFlags(spans[i]) & Spanned.SPAN_PRIORITY) >= 125 (s.getSpanFlags(spans[i + 1]) & Spanned.SPAN_PRIORITY),
|
/frameworks/base/tools/aapt/ |
StringPool.cpp | 109 ssize_t StringPool::add(const String16& value, const Vector<entry_style_span>& spans, 114 addStyleSpans(res, spans); 166 mEntryStyleArray[pos].spans.size() : 0; 192 status_t StringPool::addStyleSpans(size_t idx, const Vector<entry_style_span>& spans) 194 const size_t N=spans.size(); 196 status_t err = addStyleSpan(idx, spans[i]); 212 style.spans.add(span); 316 if (style.spans.size() > 0) { 385 const size_t N = style.spans.size(); 387 entry_style_span& span = style.spans.editItemAt(i) [all...] |
/frameworks/base/core/java/android/text/ |
Layout.java | 214 ParagraphStyle[] spans = NO_PARA_SPANS; local 246 // New batch of paragraph styles, collect into spans array. 250 // We expect paragraph spans to be relatively infrequent, use 259 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); 262 for (int n = spans.length - 1; n >= 0; n--) { 263 if (spans[n] instanceof AlignmentSpan) { 264 paraAlign = ((AlignmentSpan) spans[n]).getAlignment(); 272 // Draw all leading margin spans. Adjust left or right according 274 final int length = spans.length; 276 if (spans[n] instanceof LeadingMarginSpan) 376 ParagraphStyle[] spans = NO_PARA_SPANS; local 1265 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, local 1478 AlignmentSpan[] spans = getParagraphSpans(sp, getLineStart(line), local 1531 LeadingMarginSpan[] spans = getParagraphSpans(spanned, lineStart, spanEnd, local [all...] |
TextLine.java | 644 MetricAffectingSpan[] spans = mSpanned.getSpans(mStart + spanStart, local 646 spans = TextUtils.removeEmptySpans(spans, mSpanned, MetricAffectingSpan.class); 648 if (spans.length > 0) { 650 for (int j = 0; j < spans.length; j++) { 651 MetricAffectingSpan span = spans[j]; 1006 MetricAffectingSpan[] spans = mSpanned.getSpans(pos, pos + 1, MetricAffectingSpan.class); local [all...] |
StaticLayout.java | 203 // leading margin spans, not just this particular one, 278 MetricAffectingSpan[] spans = local 280 spans = TextUtils.removeEmptySpans(spans, spanned, MetricAffectingSpan.class); 281 measured.addStyleRun(paint, spans, spanLen, fm); 300 TabStopSpan[] spans = getParagraphSpans(spanned, paraStart, local 302 if (spans.length > 0) { 303 tabStops = new TabStops(TAB_INCREMENT, spans); [all...] |
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
LevenshteinFormatterTest.java | 151 private void verifyFormatSuggestion(String query, String suggestion, SpanFormat... spans) { 153 for (SpanFormat span : spans) { 353 MockStyleSpan[] spans = spanned.getSpans(mStart, mEnd, MockStyleSpan.class); local 354 assertEquals("Wrong number of spans in '" + spannedText + "'", 1, spans.length); 356 mStyle, spans[0].getId());
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
InputTestsBase.java | 70 final CharacterStyle[] spans = local 72 if (0 == spans.length) { 76 } else if (1 == spans.length) { 77 mSpan = spans[0]; 81 throw new RuntimeException("Expected one span, found " + spans.length);
|
/external/guava/guava-tests/test/com/google/common/io/ |
MultiInputStreamTest.java | 71 private void joinHelper(Integer... spans) throws Exception { 74 for (Integer span : spans) {
|
/frameworks/base/core/java/com/android/internal/widget/ |
EditableInputConnection.java | 178 SuggestionSpan[] spans = spanned.getSpans(0, text.length(), SuggestionSpan.class); local 179 mIMM.registerSuggestionSpansForNotification(spans);
|
/external/chromium_org/v8/test/mjsunit/compiler/ |
binary-ops.js | 28 // Values in distinct spans. 48 // Values in distinct spans that alias.
|
/external/v8/test/mjsunit/compiler/ |
binary-ops.js | 28 // Values in distinct spans. 48 // Values in distinct spans that alias.
|
/frameworks/base/core/java/com/android/internal/view/ |
IInputMethodManager.aidl | 68 void registerSuggestionSpansForNotification(in SuggestionSpan[] spans);
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
WidgetService.java | 469 CharacterStyle[] spans = sender.getSpans(0, sender.length(), CharacterStyle.class); 472 sender = copyStyles(spans, mElidedPaddingToken + sender + mElidedPaddingToken); 477 sender = copyStyles(spans, mSendersSplitToken + sender); 486 private static SpannableString copyStyles(CharacterStyle[] spans, CharSequence newText) { 488 if (spans != null && spans.length > 0) { 489 s.setSpan(spans[0], 0, s.length(), 0);
|
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/ |
section.c | 736 * - build spans for short->long transition dependencies 745 * - Interval tree to store spans and associated data 772 * lengths of any spans dependent on the offset-setter. 783 * error. Otherwise increase offset and update dependent spans. 786 * before the spans are added to the tree. 793 * dependent spans as we go. 797 * b. Iterate over spans. Set span length based on bytecode offsets 805 * d. Iterate over active spans. Add span to interval tree. Update span's 865 /* NULL-terminated array of spans that led to this span. Used only for 866 * checking for circular references (cycles) with id=0 spans [all...] |
/external/chromium_org/ui/gfx/ |
render_text_mac.cc | 46 std::vector<RenderText::FontSpan> spans; local 51 spans.push_back(RenderText::FontSpan(font, range)); 54 return spans;
|
/frameworks/base/media/java/android/media/ |
WebVttRenderer.java | 77 // spans with timestamp will be enabled by Cue.onTime 95 * Extract all text without style, but with timestamp spans. 145 TextTrackCueSpan[] spans = new TextTrackCueSpan[mCurrentLine.size()]; local 146 mCurrentLine.toArray(spans); 148 mLines.add(spans); 484 for (TextTrackCueSpan[] spans: mLines) { 488 if (spans == null) { 494 for (TextTrackCueSpan span: spans) { 1817 final TextTrackCueSpan[] spans = mSpans; local [all...] |
/frameworks/ex/chips/tests/src/com/android/ex/chips/ |
ChipsTest.java | 649 DrawableRecipientChip[] spans = local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.apache.lucene_1.9.1.v20100518-1140.jar | |
/external/chromium_org/third_party/freetype/include/freetype/ |
ftimage.h | [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
page_heap.h | 131 // Split an allocated span into two spans: one of length "n" pages 163 // For each free list of small spans, the length (in spans) of the 170 // Stats for free large spans (i.e., spans with more than kMaxPages pages). 172 int64 spans; // Number of such spans member in struct:tcmalloc::PageHeap::LargeSpanStats 173 int64 normal_pages; // Combined page length of normal large spans 174 int64 returned_pages; // Combined page length of unmapped spans 233 // We segregate spans of a given size into two circular linke [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
page_heap.h | 123 // Split an allocated span into two spans: one of length "n" pages 153 // For each free list of small spans, the length (in spans) of the 160 // Stats for free large spans (i.e., spans with more than kMaxPages pages). 162 int64 spans; // Number of such spans member in struct:tcmalloc::PageHeap::LargeSpanStats 163 int64 normal_pages; // Combined page length of normal large spans 164 int64 returned_pages; // Combined page length of unmapped spans 221 // We segregate spans of a given size into two circular linke [all...] |
/external/freetype/include/freetype/ |
ftimage.h | [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
MessageListItem.java | 619 final URLSpan[] spans = mBodyTextView.getUrls(); local 621 if (spans.length == 0) { 623 } else if (spans.length == 1) { 624 spans[0].onClick(mBodyTextView); 627 new ArrayAdapter<URLSpan>(mContext, android.R.layout.select_dialog_item, spans) { 668 spans[which].onClick(mBodyTextView); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
GridLayoutRule.java | 104 * (and thereby enlarge it) before it is spread with row or column spans. 497 Pair<Integer, Integer> spans = computeResizeSpans(state); local 498 int rowSpan = spans.getFirst(); 499 int columnSpan = spans.getSecond(); 525 Pair<Integer, Integer> spans = computeResizeSpans(state); local 541 return String.format("%s\n(Press Shift to resize row/column spans)", message); 543 int rowSpan = spans.getFirst(); 544 int columnSpan = spans.getSecond(); 552 * spans 559 * Computes the new column and row spans as the result of the current resizin [all...] |