/frameworks/base/core/java/android/text/ |
H A D | SpanSet.java | 22 * A cached set of spans. Caches the result of {@link Spanned#getSpans(int, int, Class)} and then 27 * Note that empty spans are ignored by this class. 34 E[] spans; field in class:SpanSet 49 if (length > 0 && (spans == null || spans.length < length)) { 50 // These arrays may end up being too large because of the discarded empty spans 51 spans = (E[]) Array.newInstance(classType, length); 67 spans[numberOfSpans] = span; 77 * Returns true if there are spans intersecting the given interval. 103 * Removes all internal references to the spans t [all...] |
H A D | MeasuredText.java | 110 ReplacementSpan[] spans = spanned.getSpans(start, end, 113 for (int i = 0; i < spans.length; i++) { 114 int startInPara = spanned.getSpanStart(spans[i]) - start; 115 int endInPara = spanned.getSpanEnd(spans[i]) - start; 183 float addStyleRun(TextPaint paint, MetricAffectingSpan[] spans, int len, argument 192 for (int i = 0; i < spans.length; i++) { 193 MetricAffectingSpan span = spans[i];
|
H A D | Layout.java | 215 ParagraphStyle[] spans = NO_PARA_SPANS; 247 // New batch of paragraph styles, collect into spans array. 251 // We expect paragraph spans to be relatively infrequent, use 260 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); 263 for (int n = spans.length - 1; n >= 0; n--) { 264 if (spans[n] instanceof AlignmentSpan) { 265 paraAlign = ((AlignmentSpan) spans[n]).getAlignment(); 273 // Draw all leading margin spans. Adjust left or right according 275 final int length = spans.length; 278 if (spans[ 1624 TabStops(int increment, Object[] spans) argument 1628 reset(int increment, Object[] spans) argument [all...] |
H A D | TextUtils.java | 512 // XXX currently this only reverses chars, not spans 816 * Debugging tool to print the spans in a CharSequence. The output will 835 printer.println(prefix + cs + ": (no spans)"); 950 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, 953 for (int i = 0; i < spans.length; i++) { 954 int start = ((Spanned) text).getSpanStart(spans[i]); 955 int end = ((Spanned) text).getSpanEnd(spans[i]); 987 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, 990 for (int i = 0; i < spans.length; i++) { 991 int start = ((Spanned) text).getSpanStart(spans[ 1679 removeEmptySpans(T[] spans, Spanned spanned, Class<T> klass) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_StringBlock.cpp | 107 const ResStringPool_span* spans = osb->styleAt(idx); local 108 if (spans == NULL) { 112 const ResStringPool_span* pos = spans; 130 while (spans->name.index != ResStringPool_span::END) { 133 (jint*)spans); 134 spans++;
|
/frameworks/base/tools/aapt/ |
H A D | StringPool.h | 78 entry_style(const entry_style& o) : offset(o.offset), spans(o.spans) { } 81 Vector<entry_style_span> spans; member in struct:StringPool::entry_style 101 ssize_t add(const String16& value, const Vector<entry_style_span>& spans, 106 status_t addStyleSpans(size_t idx, const Vector<entry_style_span>& spans);
|
H A D | StringPool.cpp | 129 ssize_t StringPool::add(const String16& value, const Vector<entry_style_span>& spans, argument 134 addStyleSpans(res, spans); 186 mEntryStyleArray[pos].spans.size() : 0; 212 status_t StringPool::addStyleSpans(size_t idx, const Vector<entry_style_span>& spans) 214 const size_t N=spans.size(); 216 status_t err = addStyleSpan(idx, spans[i]); 232 style.spans.add(span); 336 if (style.spans.size() > 0) { 405 const size_t N = style.spans.size(); 407 entry_style_span& span = style.spans [all...] |
H A D | ResourceTable.cpp | 595 Vector<StringPool::entry_style_span> spans; local 597 block, item16, &str, &spans, isFormatted, 615 &spans, &config, overwrite, false, curFormat); 690 Vector<StringPool::entry_style_span> spans; local 692 curTag, &str, curIsStyled ? &spans : NULL, 754 myPackage, curType, ident, str, &spans, &config,
|
/frameworks/base/core/java/android/widget/ |
H A D | SpellChecker.java | 580 // We need to expand by one character because we want to include the spans that 615 // Cancel or merge overlapped spell check spans 671 // edit. The previous spans (that ended on start / started on end) are 683 // Do not create new boundary spans if they already exist 744 private <T> void removeSpansAt(Editable editable, int offset, T[] spans) { argument 745 final int length = spans.length; 747 final T span = spans[i];
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | 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, argument 138 for (String i: spans) { 152 String[] spans; 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, "durin [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodManager.java | 713 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) { argument 715 mService.registerSuggestionSpansForNotification(spans);
|
/frameworks/base/media/java/android/media/ |
H A D | 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()]; 146 mCurrentLine.toArray(spans); 148 mLines.add(spans); 484 for (TextTrackCueSpan[] spans: mLines) { 488 if (spans == null) { 494 for (TextTrackCueSpan span: spans) { 1039 // tokenize text track string-lines into lines of spans 1822 * A single line may contain multiple spans, eac 1829 SpanLayout(Context context, TextTrackCueSpan[] spans) argument [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | InputMethodManagerService.java | 1631 public void registerSuggestionSpansForNotification(SuggestionSpan[] spans) { argument 1637 for (int i = 0; i < spans.length; ++i) { 1638 SuggestionSpan ss = spans[i];
|