Home
last modified time | relevance | path

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

12345

/external/libcxx/test/std/containers/views/span.cons/
Dassign.pass.cpp57 constexpr std::span<const int> spans[] = { in main() local
73 static_assert(std::size(spans) == 13, "" ); in main()
76 static_assert(doAssign(spans[0], spans[0]), ""); in main()
77 static_assert(doAssign(spans[0], spans[1]), ""); in main()
78 static_assert(doAssign(spans[0], spans[2]), ""); in main()
79 static_assert(doAssign(spans[0], spans[3]), ""); in main()
80 static_assert(doAssign(spans[0], spans[4]), ""); in main()
81 static_assert(doAssign(spans[0], spans[5]), ""); in main()
82 static_assert(doAssign(spans[0], spans[6]), ""); in main()
83 static_assert(doAssign(spans[0], spans[7]), ""); in main()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSpannableStringTest.java47 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class); in testRemoveSpan() local
48 assertThat(spans).isNotNull(); in testRemoveSpan()
49 assertThat(spans.length).isEqualTo(1); in testRemoveSpan()
50 assertThat((UnderlineSpan) spans[0]).isSameAs(s2); in testRemoveSpan()
60 Object[] spans = spanStr.getSpans(0, TEST_STRING.length(), Object.class); in testGetSpans() local
61 assertThat(spans).isNotNull(); in testGetSpans()
62 assertThat(spans.length).isEqualTo(2); in testGetSpans()
65 spans = spanStr.getSpans(0, TEST_STRING.length(), URLSpan.class); in testGetSpans()
66 assertThat(spans).isNotNull(); in testGetSpans()
67 assertThat(spans.length).isEqualTo(1); in testGetSpans()
[all …]
/external/opencensus-java/contrib/spring_sleuth_v1x/src/test/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthTracerTest.java64 Span[] spans = createSpansAndAssertCurrent(3); in testSpanStackAndClose() local
66 for (int i = spans.length - 1; i >= 0; i--) { in testSpanStackAndClose()
67 assertCurrentSpanIs(spans[i]); in testSpanStackAndClose()
68 Span parent = tracer.close(spans[i]); in testSpanStackAndClose()
69 assertThat(parent).isEqualTo(spans[i].getSavedSpan()); in testSpanStackAndClose()
75 Span[] spans = createSpansAndAssertCurrent(3); in testSpanStackAndCloseOutOfOrder() local
77 tracer.close(spans[spans.length - 2]); in testSpanStackAndCloseOutOfOrder()
78 assertCurrentSpanIs(spans[spans.length - 1]); in testSpanStackAndCloseOutOfOrder()
80 for (int i = spans.length - 1; i >= 0; i--) { in testSpanStackAndCloseOutOfOrder()
81 tracer.close(spans[i]); in testSpanStackAndCloseOutOfOrder()
[all …]
DOpenCensusSleuthSpanContextHolderTest.java122 org.springframework.cloud.sleuth.Span[] spans = new org.springframework.cloud.sleuth.Span[len]; in createSleuthSpans() local
124 spans[i] = createSleuthSpan(i * 10 + 1, i * 10 + 2, i * 10 + 3, /* exportable= */ true); in createSleuthSpans()
126 return spans; in createSleuthSpans()
/external/webrtc/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 …]
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/export/
DSpanExporterImpl.java111 private final List<RecordEventsSpanImpl> spans; field in SpanExporterImpl.Worker
120 this.spans.add(span); in addSpan()
121 if (spans.size() > bufferSize) { in addSpan()
155 spans = new ArrayList<RecordEventsSpanImpl>(bufferSize); in Worker()
162 private static List<SpanData> fromSpanImplToSpanData(List<RecordEventsSpanImpl> spans) { in fromSpanImplToSpanData() argument
163 List<SpanData> spanDatas = new ArrayList<SpanData>(spans.size()); in fromSpanImplToSpanData()
164 for (RecordEventsSpanImpl span : spans) { in fromSpanImplToSpanData()
177 if (spans.size() < bufferSize) { in run()
188 } while (spans.isEmpty()); in run()
190 spansCopy = new ArrayList<RecordEventsSpanImpl>(spans); in run()
[all …]
DInProcessSampledSpanStoreImpl.java357 List<RecordEventsSpanImpl> spans = Collections.emptyList(); in getErrorSampledSpans() local
363 spans = perSpanNameSamples.getErrorSamples(filter.getCanonicalCode(), numSpansToReturn); in getErrorSampledSpans()
366 List<SpanData> ret = new ArrayList<SpanData>(spans.size()); in getErrorSampledSpans()
367 for (RecordEventsSpanImpl span : spans) { in getErrorSampledSpans()
379 List<RecordEventsSpanImpl> spans = Collections.emptyList(); in getLatencySampledSpans() local
385 spans = in getLatencySampledSpans()
390 List<SpanData> ret = new ArrayList<SpanData>(spans.size()); in getLatencySampledSpans()
391 for (RecordEventsSpanImpl span : spans) { in getLatencySampledSpans()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowStringBlock.java55 ResStringPool_span spans = osb.styleAt(idx); in nativeGetStyle() local
56 if (spans == null) { in nativeGetStyle()
60 ResStringPool_span pos = spans; in nativeGetStyle()
80 while (spans.name.index != ResStringPool_span.END) { in nativeGetStyle()
84 setIntArrayRegion(array, num, numInts, spans); in nativeGetStyle()
86 spans = new ResStringPool_span(spans.myBuf(), spans.myOffset() + ResStringPool_span.SIZEOF); in nativeGetStyle()
93 …private static void setIntArrayRegion(int[] array, int num, int numInts, ResStringPool_span spans)… in setIntArrayRegion() argument
94 ByteBuffer buf = spans.myBuf(); in setIntArrayRegion()
95 int startOffset = spans.myOffset(); in setIntArrayRegion()
/external/tensorflow/tensorflow/core/kernels/
Dscale_and_translate_op.cc53 const bool antialias, Spans* spans) { in ComputeSpansCore() argument
62 spans->span_size = std::min( in ComputeSpansCore()
69 &spans->starts, alloc_attr)); in ComputeSpansCore()
70 auto starts_vec = spans->starts.vec<int32>(); in ComputeSpansCore()
73 tensorflow::TensorShape({spans->span_size * output_size}), in ComputeSpansCore()
74 &spans->weights, alloc_attr)); in ComputeSpansCore()
75 auto weights_vec = spans->weights.vec<float>(); in ComputeSpansCore()
98 if (this_span_size > spans->span_size) { in ComputeSpansCore()
100 this_span_size, spans->span_size)); in ComputeSpansCore()
114 int out_index = spans->span_size * x; in ComputeSpansCore()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DDayPeriodInfo.java126 final private Span[] spans; field in DayPeriodInfo
167 spans = info.toArray(new Span[len]); in DayPeriodInfo()
171 Span last = spans[0]; in DayPeriodInfo()
178 Span current = spans[i]; in DayPeriodInfo()
228 for (int i = 0; i < spans.length; ++i) { in getFirstStartTime()
229 if (spans[i].dayPeriod == dayPeriod) { in getFirstStartTime()
230 return spans[i].start; in getFirstStartTime()
283 for (int i = 0; i < spans.length; ++i) { in getDayPeriod()
284 if (spans[i].contains(millisInDay)) { in getDayPeriod()
285 return spans[i].dayPeriod; in getDayPeriod()
[all …]
/external/opencensus-java/contrib/zpages/
DREADME.md53 ### View stats and spans on Z-Pages
70 #### View trace spans on /tracez page
72 The /tracez page displays information about all active spans and all sampled spans based on latency
87 #### Why do I not see sampled spans based on latency and error codes for a given span name?
88 Sampled spans based on latency and error codes are available only for registered span names.
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTracezZPageHandler.java214 List<SpanData> spans = null; in emitHtmlBody() local
221 spans = in emitHtmlBody()
225 Collections.sort(spans, new SpanDataComparator(true)); in emitHtmlBody()
236 spans = in emitHtmlBody()
246 spans = in emitHtmlBody()
255 Collections.sort(spans, new SpanDataComparator(false)); in emitHtmlBody()
259 emitSpanNameAndCountPages(formatter, spanName, spans == null ? 0 : spans.size(), type); in emitHtmlBody()
261 if (spans != null) { in emitHtmlBody()
262 emitSpans(out, formatter, spans); in emitHtmlBody()
281 private static void emitSpans(PrintWriter out, Formatter formatter, Collection<SpanData> spans) { in emitSpans() argument
[all …]
/external/setupdesign/main/src/com/google/android/setupdesign/view/
DRichTextView.java68 final Annotation[] spans = spannable.getSpans(0, spannable.length(), Annotation.class); in getRichText() local
69 for (Annotation span : spans) { in getRichText()
151 final ClickableSpan[] spans = in hasLinks() local
153 return spans.length > 0; in hasLinks()
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandler.java172 final List<Span> spans = spanDataToJaegerThriftSpans(spanDataList); in doExport() local
173 sender.send(process, spans); in doExport()
181 final List<Span> spans = Lists.newArrayListWithExpectedSize(spanDataList.size()); in spanDataToJaegerThriftSpans() local
183 spans.add(spanDataToJaegerThriftSpan(spanData)); in spanDataToJaegerThriftSpans()
185 return spans; in spanDataToJaegerThriftSpans()
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandlerIntegrationTest.java151 JsonArray spans = trace.get("spans").getAsJsonArray(); in exportToJaeger() local
152 assertThat(spans).isNotNull(); in exportToJaeger()
153 assertThat(spans.size()).isEqualTo(1); in exportToJaeger()
155 JsonObject span = spans.get(0).getAsJsonObject(); in exportToJaeger()
DJaegerExporterHandlerTest.java87 List<Span> spans = captor.getValue(); in exportShouldConvertFromSpanDataToJaegerThriftSpan() local
89 assertThat(spans.size()).isEqualTo(1); in exportShouldConvertFromSpanDataToJaegerThriftSpan()
90 Span span = spans.get(0); in exportShouldConvertFromSpanDataToJaegerThriftSpan()
/external/guava/guava-tests/test/com/google/common/io/
DMultiInputStreamTest.java69 private void joinHelper(Integer... spans) throws Exception { in joinHelper() argument
72 for (Integer span : spans) { in joinHelper()
/external/v8/tools/turbolizer/src/
Dcode-view.ts199 const spans = currentLineElement.childNodes; constant
200 for (let j = 0; j < spans.length; ++j) {
201 const currentSpan = spans[j];
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DLinkAccessibilityHelper.java235 ClickableSpan[] spans = spannedText.getSpans(offset, offset, ClickableSpan.class); in getSpanForOffset() local
236 if (spans.length == 1) { in getSpanForOffset()
237 return spans[0]; in getSpanForOffset()
/external/snakeyaml/src/test/resources/pyyaml/
Dspec-02-18.data3 spans many lines.
/external/libtextclassifier/actions/
Dlua-utils.h107 int Item(const std::vector<AnnotatedSpan>* spans, const int64 pos, in Item() argument
109 PushAnnotatedSpan((*spans)[pos], annotation_iterator_, env_); in Item()
/external/swiftshader/third_party/llvm-7.0/llvm/test/YAMLParser/
Dspec-02-18.test5 spans many lines.
/external/llvm/test/YAMLParser/
Dspec-02-18.test5 spans many lines.
/external/freetype/docs/
Draster.txt180 bitmap. These segments are called `spans'.
191 _----------_ with spans.
214 /---/ |---| several spans per scanline.
225 /---/ |---| And then turn on the spans a-b
240 o The number of spans on the current scanline, given by the
568 build (and fill) the spans.
582 Creating spans is thus straightforward:
600 There are then two spans, joining
616 Once the spans have been `created', we can simply draw them in

12345