Home
last modified time | relevance | path

Searched refs:spans (Results 1 – 25 of 86) sorted by relevance

1234

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DSpannableStringTest.java54 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class); in testRemoveSpan() local
55 assertThat(spans, notNullValue()); in testRemoveSpan()
56 assertThat(spans.length, equalTo(1)); in testRemoveSpan()
57 assertThat((UnderlineSpan) spans[0], sameInstance(s2)); in testRemoveSpan()
67 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class); in testGetSpans() local
68 assertThat(spans, notNullValue()); in testGetSpans()
69 assertThat(spans.length, equalTo(2)); in testGetSpans()
72 spans = spanStr.getSpans(0, TEST_STRING.length(), URLSpan.class); in testGetSpans()
73 assertThat(spans, notNullValue()); in testGetSpans()
74 assertThat(spans.length, equalTo(1)); in testGetSpans()
[all …]
/external/chromium_org/third_party/webrtc/modules/desktop_capture/
Ddesktop_region.cc67 it1->second->spans != it2->second->spans) { in Equals()
116 new_row->second->spans = row->second->spans; in AddRect()
126 new_row->second->spans = row->second->spans; in AddRect()
160 previous_row->second->spans == row->second->spans) { in MergeWithPrecedingRow()
207 IntersectRows(it1->second->spans, it2->second->spans, in Intersect()
208 &new_row->second->spans); in Intersect()
209 if (new_row->second->spans.empty()) { in Intersect()
309 new_row->second->spans = row_a->second->spans; in Subtract()
330 new_row->second->spans = row_a->second->spans; in Subtract()
337 SubtractRows(row_a->second->spans, row_b->second->spans, &new_spans); in Subtract()
[all …]
Ddesktop_region_unittest.cc557 } spans[3]; in TEST() member
583 int span_set_end = span_set.spans[span_set.count - 1].end; in TEST()
594 std::fill_n(x + expected_map + span_set.spans[span].start, in TEST()
595 span_set.spans[span].end - span_set.spans[span].start, in TEST()
597 region2.AddRect(DesktopRect::MakeLTRB(x + span_set.spans[span].start, 0, in TEST()
598 x + span_set.spans[span].end, 1)); in TEST()
628 } spans[3]; in TEST() member
654 int span_set_end = span_set.spans[span_set.count - 1].end; in TEST()
665 std::fill_n(y + expected_map + span_set.spans[span].start, in TEST()
666 span_set.spans[span].end - span_set.spans[span].start, in TEST()
[all …]
Ddesktop_region.h56 RowSpanSet spans; member
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowSpannableString.java16 private HashMap<Object, SpanHolder> spans = new HashMap<Object, SpanHolder>(); field in ShadowSpannableString
29 spans.put(what, new SpanHolder(start, end, flags) ); in setSpan()
34 spans.remove(what); in removeSpan()
41 for (Object s : spans.keySet()) { in getSpans()
43 SpanHolder h = spans.get(s); in getSpans()
57 SpanHolder spanHolder = spans.get(what); in getSpanStart()
67 SpanHolder spanHolder = spans.get(what); in getSpanEnd()
/external/chromium_org/chrome/browser/autocomplete/
Dhistory_provider.cc86 ACMatchClassifications spans; in SpansFromTermMatch() local
89 spans.push_back(ACMatchClassification(0, url_style)); in SpansFromTermMatch()
90 return spans; in SpansFromTermMatch()
93 spans.push_back(ACMatchClassification(0, url_style)); in SpansFromTermMatch()
97 spans.push_back(ACMatchClassification(offset, in SpansFromTermMatch()
105 spans.push_back(ACMatchClassification(offset, url_style)); in SpansFromTermMatch()
108 return spans; in SpansFromTermMatch()
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/common/
Dspannable.js284 result.spans = [];
299 result.spans.push(spanObj);
316 if (!(obj.spans instanceof Array)) {
320 for (var i = 0, span; span = obj.spans[i]; ++i) {
Dbraille_util.js385 var spans = braille.text.getSpans(opt_displayPosition || 0);
386 var node = spans.filter(function(n) { return n instanceof Node; })[0];
391 var valueSpan = spans.filter(
Dspannable_test.unitjs157 * Tests that multiple spans can be retrieved at one point.
279 * Tests that spans in the substring range are preserved.
302 // Note: we should keep zero-length spans, even at the edges of the range.
310 * Tests that spans outside the range are omitted.
311 * It's fine to keep zero-length spans at the ends, though.
330 * Tests that spans which cross the boundary are clipped.
367 * Tests that trim keeps, drops and clips spans.
/external/guava/guava-tests/test/com/google/common/io/
DMultiInputStreamTest.java71 private void joinHelper(Integer... spans) throws Exception { in joinHelper() argument
74 for (Integer span : spans) { in joinHelper()
/external/llvm/test/YAMLParser/
Dspec-02-18.data5 spans many lines.
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/
Dsection.c876 /*@reldef@*/ TAILQ_HEAD(yasm_span_head, yasm_span) spans;
921 TAILQ_INSERT_TAIL(&optd->spans, span, link); in optimize_add_span()
1118 s1 = TAILQ_FIRST(&optd->spans); in optimize_cleanup()
1294 TAILQ_INIT(&optd.spans); in yasm_object_optimize()
1368 TAILQ_FOREACH_SAFE(span, &optd.spans, link, span_temp) { in yasm_object_optimize()
1388 TAILQ_REMOVE(&optd.spans, span, link); in yasm_object_optimize()
1409 TAILQ_FOREACH(span, &optd.spans, link) { in yasm_object_optimize()
1456 TAILQ_FOREACH(span, &optd.spans, link) { in yasm_object_optimize()
1464 TAILQ_FOREACH(span, &optd.spans, link) { in yasm_object_optimize()
/external/chromium_org/ui/gfx/
Drender_text_mac.cc46 std::vector<RenderText::FontSpan> spans; in GetFontSpansForTesting() local
51 spans.push_back(RenderText::FontSpan(font, range)); in GetFontSpansForTesting()
54 return spans; in GetFontSpansForTesting()
Drender_text_pango.cc145 std::vector<RenderText::FontSpan> spans; in GetFontSpansForTesting() local
153 spans.push_back(RenderText::FontSpan(Font(desc.get()), range)); in GetFontSpansForTesting()
156 return spans; in GetFontSpansForTesting()
/external/markdown/tests/markdown-test/
Dbacklash-escapes.txt72 Nor should these, which occur in code spans:
/external/markdown/MarkdownTest/Tests_2004/
DBackslash escapes.text72 Nor should these, which occur in code spans:
/external/markdown/MarkdownTest/Tests_2007/
DBackslash escapes.text72 Nor should these, which occur in code spans:
/external/skia/experimental/webtry/res/js/cm/
Dcodemirror.js3413 function makeChangeSingleDoc(doc, change, selAfter, spans) { argument
3415 return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);
3439 if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);
3440 else updateDoc(doc, change, spans);
3446 function makeChangeSingleDocInEditor(cm, change, spans) { argument
3463 updateDoc(doc, change, spans, estimateHeight(cm));
5149 function getMarkedSpanFor(spans, marker) { argument
5150 if (spans) for (var i = 0; i < spans.length; ++i) {
5151 var span = spans[i];
5157 function removeMarkedSpan(spans, span) { argument
[all …]
/external/chromium_org/third_party/skia/experimental/webtry/res/js/cm/
Dcodemirror.js3413 function makeChangeSingleDoc(doc, change, selAfter, spans) { argument
3415 return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);
3439 if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);
3440 else updateDoc(doc, change, spans);
3446 function makeChangeSingleDocInEditor(cm, change, spans) { argument
3463 updateDoc(doc, change, spans, estimateHeight(cm));
5149 function getMarkedSpanFor(spans, marker) { argument
5150 if (spans) for (var i = 0; i < spans.length; ++i) {
5151 var span = spans[i];
5157 function removeMarkedSpan(spans, span) { argument
[all …]
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/smooth/
Dftgrays.c1221 const FT_Span* spans, in gray_render_span() argument
1233 for ( ; count > 0; count--, spans++ ) in gray_render_span()
1235 unsigned char coverage = spans->coverage; in gray_render_span()
1244 if ( spans->len >= 8 ) in gray_render_span()
1245 FT_MEM_SET( p + spans->x, (unsigned char)coverage, spans->len ); in gray_render_span()
1248 unsigned char* q = p + spans->x; in gray_render_span()
1251 switch ( spans->len ) in gray_render_span()
/external/freetype/src/smooth/
Dftgrays.c1232 const FT_Span* spans, in gray_render_span() argument
1244 for ( ; count > 0; count--, spans++ ) in gray_render_span()
1246 unsigned char coverage = spans->coverage; in gray_render_span()
1255 if ( spans->len >= 8 ) in gray_render_span()
1256 FT_MEM_SET( p + spans->x, (unsigned char)coverage, spans->len ); in gray_render_span()
1259 unsigned char* q = p + spans->x; in gray_render_span()
1262 switch ( spans->len ) in gray_render_span()
/external/chromium_org/third_party/freetype/src/smooth/
Dftgrays.c1209 const FT_Span* spans, in gray_render_span() argument
1221 for ( ; count > 0; count--, spans++ ) in gray_render_span()
1223 unsigned char coverage = spans->coverage; in gray_render_span()
1232 if ( spans->len >= 8 ) in gray_render_span()
1233 FT_MEM_SET( p + spans->x, (unsigned char)coverage, spans->len ); in gray_render_span()
1236 unsigned char* q = p + spans->x; in gray_render_span()
1239 switch ( spans->len ) in gray_render_span()
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dpage_heap.cc353 result->spans = 0; in GetLargeSpanStats()
358 result->spans++; in GetLargeSpanStats()
362 result->spans++; in GetLargeSpanStats()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/
Dcodemirror.js3597 function makeChangeSingleDoc(doc, change, selAfter, spans) { argument
3599 return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans);
3623 if (doc.cm) makeChangeSingleDocInEditor(doc.cm, change, spans);
3624 else updateDoc(doc, change, spans);
3630 function makeChangeSingleDocInEditor(cm, change, spans) { argument
3647 updateDoc(doc, change, spans, estimateHeight(cm));
5351 function getMarkedSpanFor(spans, marker) { argument
5352 if (spans) for (var i = 0; i < spans.length; ++i) {
5353 var span = spans[i];
5359 function removeMarkedSpan(spans, span) { argument
[all …]
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dpage_heap.cc414 result->spans = 0; in GetLargeSpanStats()
419 result->spans++; in GetLargeSpanStats()
423 result->spans++; in GetLargeSpanStats()

1234