/external/snakeyaml/src/test/resources/pyyaml/ |
spec-02-18.data | 3 spans many lines.
|
/external/snakeyaml/src/test/resources/specification/ |
example2_18.yaml | 3 spans many lines.
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
SpannableStringTest.java | 54 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class); local 55 assertThat(spans, notNullValue()); 56 assertThat(spans.length, equalTo(1)); 57 assertThat((UnderlineSpan) spans[0], sameInstance(s2)); 67 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class); local 68 assertThat(spans, notNullValue()); 69 assertThat(spans.length, equalTo(2)); 72 spans = spanStr.getSpans(0, TEST_STRING.length(), URLSpan.class); 73 assertThat(spans, notNullValue()); 74 assertThat(spans.length, equalTo(1)) 124 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class); local [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
SpannableTest.java | 36 Object[] spans; local 38 // Empty spans are included when they merely abut the query region 39 // but other spans are not, unless the query region is empty, in 40 // in which case any abutting spans are returned. 41 spans = spannable.getSpans(0, 1, Object.class); 42 MoreAsserts.assertEquals(new Object[]{emptySpan}, spans); 43 spans = spannable.getSpans(0, 2, Object.class); 44 MoreAsserts.assertEquals(new Object[]{emptySpan, unemptySpan}, spans); 45 spans = spannable.getSpans(1, 2, Object.class); 46 MoreAsserts.assertEquals(new Object[]{emptySpan, unemptySpan}, spans); [all...] |
/external/llvm/test/YAMLParser/ |
spec-02-18.test | 5 spans many lines.
|
/frameworks/base/core/java/android/text/ |
package.html | 4 <p>Provides classes used to render or track text and text spans on the screen.</p> 6 to handle arbitrary text spans for changes, or to handle drawing yourself 8 <p>The Span… interfaces and classes are used to create or manage spans of
|
SpanSet.java | 23 * A cached set of spans. Caches the result of {@link Spanned#getSpans(int, int, Class)} and then 28 * Note that empty spans are ignored by this class. 35 E[] spans; field in class:SpanSet 50 if (length > 0 && (spans == null || spans.length < length)) { 51 // These arrays may end up being too large because of the discarded empty spans 52 spans = (E[]) Array.newInstance(classType, length); 69 spans[numberOfSpans] = span; 77 // cleanup extra spans left over from previous init() call 79 // prevNumberofSpans was > 0, therefore spans != nul [all...] |
SpannableStringInternal.java | 49 * Copies another {@link Spanned} object's spans between [start, end] into this object. 56 Object[] spans = src.getSpans(start, end, Object.class); local 58 for (int i = 0; i < spans.length; i++) { 59 int st = src.getSpanStart(spans[i]); 60 int en = src.getSpanEnd(spans[i]); 61 int fl = src.getSpanFlags(spans[i]); 68 setSpan(spans[i], st - start, en - start, fl); 73 * Copies a {@link SpannableStringInternal} object's spans between [start, end] into this 178 Object[] spans = mSpans; local 182 if (spans[i] == what) 219 Object[] spans = mSpans; local 243 Object[] spans = mSpans; local 257 Object[] spans = mSpans; local 271 Object[] spans = mSpans; local 287 Object[] spans = mSpans; local 366 Object[] spans = mSpans; local [all...] |
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/ |
RichTextViewTest.java | 45 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class); local 46 assertEquals("Annotation should be removed " + Arrays.toString(spans), 0, spans.length); 48 spans = ((Spanned) text).getSpans(0, text.length(), LinkSpan.class); 49 assertEquals("There should be one span " + Arrays.toString(spans), 1, spans.length); 50 assertTrue("The span should be a LinkSpan", spans[0] instanceof LinkSpan); 52 "foobar", ((LinkSpan) spans[0]).getId()); 67 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class); local 68 assertEquals("Annotation should be removed " + Arrays.toString(spans), 0, spans.length) [all...] |
/frameworks/base/tools/aapt2/compile/ |
PseudolocaleGenerator_test.cpp | 32 originalStyle.spans = { Span{ u"b", 2, 3 }, Span{ u"b", 6, 7 }, Span{ u"i", 1, 10 } }; 39 ASSERT_EQ(originalStyle.spans.size(), newString->value->spans.size()); 41 EXPECT_EQ(2u, newString->value->spans[0].firstChar); 42 EXPECT_EQ(3u, newString->value->spans[0].lastChar); 43 EXPECT_EQ(std::u16string(u"b"), *newString->value->spans[0].name); 45 EXPECT_EQ(6u, newString->value->spans[1].firstChar); 46 EXPECT_EQ(7u, newString->value->spans[1].lastChar); 47 EXPECT_EQ(std::u16string(u"b"), *newString->value->spans[1].name); 49 EXPECT_EQ(1u, newString->value->spans[2].firstChar) [all...] |
/cts/tests/tests/text/src/android/text/util/cts/ |
LinkifyTest.java | 92 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 93 assertEquals(4, spans.length); 94 assertEquals("http://www.google.com", spans[0].getURL()); 95 assertEquals("http://www.google.com/language_tools?hl=en", spans[1].getURL()); 96 assertEquals("http://a.bd", spans[2].getURL()); 97 assertEquals("http://h." + longGTLD, spans[3].getURL()); 100 spans = spannable.getSpans(0, spannable.length(), URLSpan.class); 101 assertEquals(1, spans.length); 102 assertEquals("mailto:name@gmail.com", spans[0].getURL()); 120 URLSpan[] spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class) local 147 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); local 190 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); local 240 URLSpan[] spans = (spannable.getSpans(0, spannable.length(), URLSpan.class)); local 271 URLSpan[] spans = (spannable.getSpans(0, spannable.length(), URLSpan.class)); local 332 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 360 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 371 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 384 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 395 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 410 URLSpan[] spans = textView.getUrls(); local 424 URLSpan[] spans = textView.getUrls(); local 440 URLSpan[] spans = textView.getUrls(); local 454 URLSpan[] spans = textView.getUrls(); local 904 URLSpan[] spans = spannable.getSpans(0, str.length(), URLSpan.class); local 923 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSpannableString.java | 16 private HashMap<Object, SpanHolder> spans = new HashMap<Object, SpanHolder>(); field in class:ShadowSpannableString 29 spans.put(what, new SpanHolder(start, end, flags) ); 34 spans.remove(what); 41 for (Object s : spans.keySet()) { 43 SpanHolder h = spans.get(s); 57 SpanHolder spanHolder = spans.get(what); 67 SpanHolder spanHolder = spans.get(what);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
TextRange.java | 49 * Gets the suggestion spans that are put squarely on the word, with the exact start 51 * @return the list of spans. 60 // spans were cut at the cursor position, and #getSpans(start, end) does not return 61 // spans that end at `start' or begin at `end'. Consider the following case: 69 // the 4~7 spans and we can merge them accordingly. 75 final SuggestionSpan[] spans = text.getSpans(mWordAtCursorStartIndex - 1, local 79 for (; readIndex < spans.length; ++readIndex) { 80 final SuggestionSpan span = spans[readIndex]; 88 for (int i = readIndex + 1; i < spans.length; ++i) { 89 if (span.equals(spans[i])) [all...] |
SpannableStringUtils.java | 35 * Copies the spans from the region <code>start...end</code> in 38 * Spans in <code>source</code> that begin before <code>start</code> 46 * @throws IndexOutOfBoundsException if any of the copied spans 51 Object[] spans = source.getSpans(start, end, SuggestionSpan.class); local 53 for (int i = 0; i < spans.length; i++) { 54 int fl = source.getSpanFlags(spans[i]); 57 // of a word. But the spans have been split into two by the getText{Before,After}Cursor 62 int st = source.getSpanStart(spans[i]); 63 int en = source.getSpanEnd(spans[i]); 70 dest.setSpan(spans[i], st - start + destoff, en - start + destoff 131 final URLSpan[] spans = spanned.getSpans(startIndex - 1, endIndex + 1, URLSpan.class); local [all...] |
/external/mesa3d/src/glsl/glcpp/tests/ |
063-comments.c | 9 comment spans
|
/frameworks/support/compat/tests/java/android/support/v4/text/util/ |
LinkifyCompatTest.java | 95 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 96 assertEquals(4, spans.length); 97 assertEquals("http://www.google.com", spans[0].getURL()); 98 assertEquals("http://www.google.com/language_tools?hl=en", spans[1].getURL()); 99 assertEquals("http://a.bd", spans[2].getURL()); 100 assertEquals("http://h." + longGTLD, spans[3].getURL()); 103 spans = spannable.getSpans(0, spannable.length(), URLSpan.class); 104 assertEquals(1, spans.length); 105 assertEquals("mailto:name@gmail.com", spans[0].getURL()); 123 URLSpan[] spans = (spannable.getSpans(0, spannable.length(), URLSpan.class)) local 155 URLSpan[] spans = (spannable.getSpans(0, spannable.length(), URLSpan.class)); local 217 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 241 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 254 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 265 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 278 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 289 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local 805 URLSpan[] spans = spannable.getSpans(0, str.length(), URLSpan.class); local 824 URLSpan[] spans = spannable.getSpans(0, spannable.length(), URLSpan.class); local [all...] |
/external/webrtc/webrtc/modules/desktop_capture/ |
desktop_region.cc | 67 it1->second->spans != it2->second->spans) { 116 new_row->second->spans = row->second->spans; 126 new_row->second->spans = row->second->spans; 158 // set of spans then they can be merged. 160 previous_row->second->spans == row->second->spans) { 207 IntersectRows(it1->second->spans, it2->second->spans [all...] |
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
SpanHelperTest.java | 37 final Object[] spans = ssb.getSpans(0, ssb.length(), Object.class); local 38 assertEquals("There should be one span in the builder", 1, spans.length); 39 assertSame("The span should be newSpan", newSpan, spans[0]);
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
TextUtilitiesTests.java | 205 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); local 206 assertEquals(1, spans.length); 207 BackgroundColorSpan span = spans[0]; 216 spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); 217 assertEquals(2, spans.length); 218 span = spans[0]; 221 span = spans[1]; 232 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); local 233 assertEquals(2, spans.length); 234 BackgroundColorSpan span = spans[0] 248 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); local 260 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); local 273 BackgroundColorSpan[] spans = ssb.getSpans(0, ssb.length(), BackgroundColorSpan.class); local [all...] |
/external/icu/icu4c/source/i18n/ |
digitinterval.h | 33 * Spans all integer and fraction digits 79 * this interval spans. If count is negative, it means span all digits 86 * this interval spans. If count is negative, it means span all digits 109 * Returns INT32_MAX if this interval spans all digits to left of 133 * Returns the total number of digits that this interval spans. 134 * Caution: If this interval spans all digits to the left or right of 144 * digit. Returns INT32_MIN if this interval spans all digits to right of
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
UnicodeSetSpanner.java | 17 * its inverse. That is, the code spans, then spans for the inverse, then spans, and so on. 89 * Collapse spans. That is, modify/count the entire matching span as a single item, instead of separate 111 * The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boundary conditions. 122 * The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boundary conditions. 135 * The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boundary conditions. 173 * Delete all the matching spans in sequence, using SpanCondition.SIMPLE 174 * The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boundary conditions. 176 * charsequence to replace matching spans in [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
UnicodeSetSpanner.java | 16 * its inverse. That is, the code spans, then spans for the inverse, then spans, and so on. 100 * Collapse spans. That is, modify/count the entire matching span as a single item, instead of separate 126 * The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boundary conditions. 139 * The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boundary conditions. 154 * The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boundary conditions. 194 * Delete all the matching spans in sequence, using SpanCondition.SIMPLE 195 * The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boundary conditions. 197 * charsequence to replace matching spans in [all...] |
/frameworks/base/core/java/android/view/textservice/ |
TextInfo.java | 61 * @param charSequence the text which will be input to TextService. Attached spans that 72 // Create a snapshot of the text including spans in case they are updated outside later. 76 final SpellCheckSpan[] spans = spannableString.getSpans(0, spannableString.length(), local 78 for (int i = 0; i < spans.length; ++i) { 79 spannableString.removeSpan(spans[i]); 118 * spans.
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
EllipsizedMultilineTextView.java | 86 // assemble just the text portion, without spans 95 // Now copy the original spans into the assembled string, modified for any ellipsizing. 98 // spans in the assembled version if a CharacterStyle spanned across the lastLineStart 102 final Object[] spans = s.getSpans(0, s.length(), Object.class); local 104 for (int i = 0; i < spans.length; i++) { 105 final Object span = spans[i];
|
/external/chromium-trace/catapult/tracing/tracing/value/ui/ |
scalar_context_controller.html | 18 spans. To facilitate multiple separate contexts (e.g. a separate context for 36 getScalarContextControllerForElement(node) defined in this file. Scalar spans 56 fire a 'context-updated' event. Scalar spans can listen for this event and 59 The context currently consists of the range of values of the associated spans. 115 spans: new Set(), 120 if (context.spans.has(span)) 122 context.spans.add(span); 128 if (!context.spans.has(span)) 130 context.spans.delete(span); 136 if (!context.spans.has(span) [all...] |