Home
last modified time | relevance | path

Searched full:spans (Results 1 – 25 of 1380) sorted by relevance

12345678910>>...56

/external/cronet/stable/third_party/libc++/src/test/std/containers/views/views.span/span.cons/
Dassign.pass.cpp56 constexpr std::span<const int> spans[] = { in main() local
72 static_assert(std::size(spans) == 13, "" ); in main()
75 static_assert(doAssign(spans[0], spans[0]), ""); in main()
76 static_assert(doAssign(spans[0], spans[1]), ""); in main()
77 static_assert(doAssign(spans[0], spans[2]), ""); in main()
78 static_assert(doAssign(spans[0], spans[3]), ""); in main()
79 static_assert(doAssign(spans[0], spans[4]), ""); in main()
80 static_assert(doAssign(spans[0], spans[5]), ""); in main()
81 static_assert(doAssign(spans[0], spans[6]), ""); in main()
82 static_assert(doAssign(spans[0], spans[7]), ""); in main()
[all …]
/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/cronet/tot/third_party/libc++/src/test/std/containers/views/views.span/span.cons/
Dassign.pass.cpp56 constexpr std::span<const int> spans[] = { in main() local
72 static_assert(std::size(spans) == 13, "" ); in main()
75 static_assert(doAssign(spans[0], spans[0]), ""); in main()
76 static_assert(doAssign(spans[0], spans[1]), ""); in main()
77 static_assert(doAssign(spans[0], spans[2]), ""); in main()
78 static_assert(doAssign(spans[0], spans[3]), ""); in main()
79 static_assert(doAssign(spans[0], spans[4]), ""); in main()
80 static_assert(doAssign(spans[0], spans[5]), ""); in main()
81 static_assert(doAssign(spans[0], spans[6]), ""); in main()
82 static_assert(doAssign(spans[0], spans[7]), ""); in main()
[all …]
/external/robolectric/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(spans[0]).isSameInstanceAs(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/accessibility-test-framework/src/main/java/com/google/android/apps/common/testing/accessibility/framework/replacements/
DSpannableStringAndroid.java37 this.spans = getSpansAndroid((Spanned) text); in SpannableStringAndroid()
40 this.spans = ImmutableList.<Span>copyOf(spannableString.getSpans()); in SpannableStringAndroid()
42 this.spans = ImmutableList.<Span>of(); in SpannableStringAndroid()
73 Object[] spans = spanned.getSpans(0, (length - 1), Object.class); in getSpansAndroid() local
74 for (int i = 0; i < spans.length; i++) { in getSpansAndroid()
75 int start = spanned.getSpanStart(spans[i]); in getSpansAndroid()
76 int end = spanned.getSpanEnd(spans[i]); in getSpansAndroid()
77 int flags = spanned.getSpanFlags(spans[i]); in getSpansAndroid()
80 // Build local replacement Spans, most specific first in getSpansAndroid()
81 if (spans[i] instanceof NoCopySpan) { in getSpansAndroid()
[all …]
DSpannableString.java26 protected ImmutableList<Span> spans; field in SpannableString
35 localSpan = new Spans.URLSpan(span); in SpannableString()
38 localSpan = new Spans.ClickableSpan(span); in SpannableString()
41 localSpan = new Spans.StyleSpan(span); in SpannableString()
44 localSpan = new Spans.UnderlineSpan(span); in SpannableString()
47 localSpan = new Spans.BackgroundColorSpan(span); in SpannableString()
50 localSpan = new Spans.ForegroundColorSpan(span); in SpannableString()
63 this.spans = spansBuilder.build(); in SpannableString()
66 public SpannableString(CharSequence rawString, List<Span> spans) { in SpannableString() argument
68 this.spans = ImmutableList.<Span>copyOf(spans); in SpannableString()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/source/
DSpannedData.java27 * Stores value objects associated with spans of integer keys.
32 * <p>Spans are defined by their own {@code startKey} (inclusive) and the {@code startKey} of the
41 private final SparseArray<V> spans; field in SpannedData
54 spans = new SparseArray<>(); in SpannedData()
72 while (memoizedReadIndex > 0 && key < spans.keyAt(memoizedReadIndex)) { in get()
75 while (memoizedReadIndex < spans.size() - 1 && key >= spans.keyAt(memoizedReadIndex + 1)) { in get()
78 return spans.valueAt(memoizedReadIndex); in get()
90 checkState(spans.size() == 0); in appendSpan()
94 if (spans.size() > 0) { in appendSpan()
95 int lastStartKey = spans.keyAt(spans.size() - 1); in appendSpan()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/source/
DSpannedData.java27 * Stores value objects associated with spans of integer keys.
32 * <p>Spans are defined by their own {@code startKey} (inclusive) and the {@code startKey} of the
41 private final SparseArray<V> spans; field in SpannedData
54 spans = new SparseArray<>(); in SpannedData()
72 while (memoizedReadIndex > 0 && key < spans.keyAt(memoizedReadIndex)) { in get()
75 while (memoizedReadIndex < spans.size() - 1 && key >= spans.keyAt(memoizedReadIndex + 1)) { in get()
78 return spans.valueAt(memoizedReadIndex); in get()
90 checkState(spans.size() == 0); in appendSpan()
94 if (spans.size() > 0) { in appendSpan()
95 int lastStartKey = spans.keyAt(spans.size() - 1); in appendSpan()
[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 …]
/external/swiftshader/tests/regres/cov/
Dtree.go41 spans map[Span]SpanID member
49 t.spans = map[Span]SpanID{}
56 // Spans returns all the spans used by the tree
57 func (t *Tree) Spans() SpanList { func
58 out := make(SpanList, len(t.spans))
59 for span, id := range t.spans {
91 func (t *Tree) addSpans(spans SpanList) SpanSet {
92 out := make(SpanSet, len(spans))
93 for _, s := range spans {
94 id, ok := t.spans[s]
[all …]
Doptimization.go23 // Optimize optimizes the Tree by de-duplicating common spans into a tree of
56 if len(tc.Spans) >= minSpansInGroup {
57 key := spansetKey(tc.Spans.String())
59 spansetMap[key] = tc.Spans
79 grp: SpanGroup{Spans: set},
83 // Sort by number of spans in each sets starting with the largest.
108 a.grp.Spans = a.set.removeAll(b.set)
129 key := spansetKey(tc.Spans.String())
131 tc.Spans = nil
138 // the same spans. This span is promoted up to the parent, and the children
[all …]
/external/webrtc/modules/desktop_capture/
Ddesktop_region.cc68 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()
158 // set of spans then they can be merged. in MergeWithPrecedingRow()
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()
236 // Arrange for `it1` to always be the left-most of the spans. in IntersectRows()
304 // subtract spans from. in Subtract()
[all …]
/external/google-cloud-java/java-trace/proto-google-cloud-trace-v2/src/main/java/com/google/devtools/cloudtrace/v2/
DBatchWriteSpansRequestOrBuilder.java30 * Required. The name of the project where the spans belong. The format is
45 * Required. The name of the project where the spans belong. The format is
61 * Required. A list of new spans. The span names must not match existing
62 * spans, otherwise the results are undefined.
66 …* repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
74 * Required. A list of new spans. The span names must not match existing
75 * spans, otherwise the results are undefined.
79 …* repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
87 * Required. A list of new spans. The span names must not match existing
88 * spans, otherwise the results are undefined.
[all …]
DBatchWriteSpansRequest.java79 * Required. The name of the project where the spans belong. The format is
105 * Required. The name of the project where the spans belong. The format is
136 * Required. A list of new spans. The span names must not match existing
137 * spans, otherwise the results are undefined.
141 …* repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
152 * Required. A list of new spans. The span names must not match existing
153 * spans, otherwise the results are undefined.
157 …* repeated .google.devtools.cloudtrace.v2.Span spans = 2 [(.google.api.field_behavior) = REQUIRED];
169 * Required. A list of new spans. The span names must not match existing
170 * spans, otherwise the results are undefined.
[all …]
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/regex-syntax-0.8.5/src/
Derror.rs91 let spans = Spans::from_formatter(self); in fmt() localVariable
97 let notated = spans.notate(); in fmt()
100 // If we have error spans that cover multiple lines, then we just in fmt()
102 if !spans.multi_line.is_empty() { in fmt()
104 for span in &spans.multi_line { in fmt()
118 let notated = Spans::from_formatter(self).notate(); in fmt()
126 /// This type represents an arbitrary number of error spans in a way that makes
130 /// Technically, we can only ever have two spans given our current error
132 /// two spans, it became obvious that an algorithm to handle an arbitrary
133 /// number of spans was actually much simpler.
[all …]
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/regex-syntax-0.8.5/src/
Derror.rs91 let spans = Spans::from_formatter(self); in fmt() localVariable
97 let notated = spans.notate(); in fmt()
100 // If we have error spans that cover multiple lines, then we just in fmt()
102 if !spans.multi_line.is_empty() { in fmt()
104 for span in &spans.multi_line { in fmt()
118 let notated = Spans::from_formatter(self).notate(); in fmt()
126 /// This type represents an arbitrary number of error spans in a way that makes
130 /// Technically, we can only ever have two spans given our current error
132 /// two spans, it became obvious that an algorithm to handle an arbitrary
133 /// number of spans was actually much simpler.
[all …]
/external/rust/android-crates-io/crates/regex-syntax/src/
Derror.rs106 let spans = Spans::from_formatter(self); in fmt() localVariable
112 let notated = spans.notate(); in fmt()
115 // If we have error spans that cover multiple lines, then we just in fmt()
117 if !spans.multi_line.is_empty() { in fmt()
119 for span in &spans.multi_line { in fmt()
133 let notated = Spans::from_formatter(self).notate(); in fmt()
141 /// This type represents an arbitrary number of error spans in a way that makes
145 /// Technically, we can only ever have two spans given our current error
147 /// two spans, it became obvious that an algorithm to handle an arbitrary
148 /// number of spans was actually much simpler.
[all …]
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowStringBlock.java40 ResStringPool_span spans = osb.styleAt(idx); in nativeGetStyle() local
41 if (spans == null) { in nativeGetStyle()
45 ResStringPool_span pos = spans; in nativeGetStyle()
65 while (spans.name.index != ResStringPool_span.END) { in nativeGetStyle()
68 // (jint*)spans); in nativeGetStyle()
69 setIntArrayRegion(array, num, numInts, spans); in nativeGetStyle()
70 // spans++; in nativeGetStyle()
71 spans = new ResStringPool_span(spans.myBuf(), spans.myOffset() + ResStringPool_span.SIZEOF); in nativeGetStyle()
79 int[] array, int num, int numInts, ResStringPool_span spans) { in setIntArrayRegion() argument
80 ByteBuffer buf = spans.myBuf(); in setIntArrayRegion()
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/trace/export/
DSampledSpanStore.java38 * This class allows users to access in-process information such as latency based sampled spans and
39 * error based sampled spans.
41 * <p>For all completed spans with the option {@link Span.Options#RECORD_EVENTS} the library can
65 * Returns the summary of all available data, such as number of sampled spans in the latency based
77 * Returns a list of succeeded spans (spans with {@link Status} equal to {@link Status#OK}) that
80 * <p>Latency based sampled spans are available only for span names registered using {@link
83 * @param filter used to filter the returned sampled spans.
84 * @return a list of succeeded spans that match the {@code filter}.
90 * Returns a list of failed spans (spans with {@link Status} other than {@link Status#OK}) that
93 * <p>Error based sampled spans are available only for span names registered using {@link
[all …]
DRunningSpanStore.java29 * This class allows users to access in-process information about all running spans.
31 * <p>The running spans tracking is available for all the spans with the option {@link
54 * Returns the summary of all available data such, as number of running spans.
62 * Returns a list of running spans that match the {@code Filter}.
64 * @param filter used to filter the returned spans.
65 * @return a list of running spans that match the {@code Filter}.
71 * Sets the maximum number of Spans in th {@code RunningSpanStore}.
75 * @param maxNumberOfSpans the maximum number of Spans in th {@code RunningSpanStore}.
130 * @param numRunningSpans the number of running spans.
141 * Returns the number of running spans.
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUnicodeSetSpanner.java19 * its inverse. That is, the code spans, then spans for the inverse, then spans, and so on.
91 …* Collapse spans. That is, modify/count the entire matching span as a single item, instead of sepa…
113 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun…
124 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun…
137 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun…
175 * Delete all the matching spans in sequence, using SpanCondition.SIMPLE
176 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun…
178 * charsequence to replace matching spans in.
186 * Delete all matching spans in sequence, according to the spanCondition.
187 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun…
[all …]
/external/tensorflow/tensorflow/core/kernels/image/
Dscale_and_translate_op.cc54 const bool antialias, Spans* spans) { in ComputeSpansCore() argument
63 spans->span_size = std::min( in ComputeSpansCore()
70 &spans->starts, alloc_attr)); in ComputeSpansCore()
71 auto starts_vec = spans->starts.vec<int32>(); in ComputeSpansCore()
74 tensorflow::TensorShape({spans->span_size * output_size}), in ComputeSpansCore()
75 &spans->weights, alloc_attr)); in ComputeSpansCore()
76 auto weights_vec = spans->weights.vec<float>(); in ComputeSpansCore()
99 if (this_span_size > spans->span_size) { in ComputeSpansCore()
101 this_span_size, spans->span_size)); in ComputeSpansCore()
115 int out_index = spans->span_size * x; in ComputeSpansCore()
[all …]
/external/google-cloud-java/java-trace/proto-google-cloud-trace-v2/src/main/proto/google/devtools/cloudtrace/v2/
Dtracing.proto34 // Service for collecting and viewing traces and spans within a trace.
36 // A trace is a collection of spans corresponding to a single
40 // A single trace can contain spans from multiple services.
47 // Batch writes new spans to new or existing traces. You cannot update
48 // existing spans.
54 option (google.api.method_signature) = "name,spans";
60 post: "/v2/{name=projects/*/traces/*/spans/*}"
68 // Required. The name of the project where the spans belong. The format is
77 // Required. A list of new spans. The span names must not match existing
78 // spans, otherwise the results are undefined.
[all …]
/external/googleapis/google/devtools/cloudtrace/v2/
Dtracing.proto34 // Service for collecting and viewing traces and spans within a trace.
36 // A trace is a collection of spans corresponding to a single
40 // A single trace can contain spans from multiple services.
47 // Batch writes new spans to new or existing traces. You cannot update
48 // existing spans.
54 option (google.api.method_signature) = "name,spans";
60 post: "/v2/{name=projects/*/traces/*/spans/*}"
68 // Required. The name of the project where the spans belong. The format is
77 // Required. A list of new spans. The span names must not match existing
78 // spans, otherwise the results are undefined.
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubject.java86 Object[] spans = actual.getSpans(0, actual.length(), Object.class); in hasNoSpans() local
87 if (spans.length > 0) { in hasNoSpans()
89 simpleFact("Expected no spans"), fact("in text", actual), actualSpansFact()); in hasNoSpans()
192 * @param start The start index to start searching for spans.
193 * @param end The end index to stop searching for spans.
228 * @param start The start index to start searching for spans.
229 * @param end The end index to stop searching for spans.
266 * @param start The start index to start searching for spans.
267 * @param end The end index to stop searching for spans.
280 * @return A {@link Aligned} object to assert on the alignment of the matching spans.
[all …]

12345678910>>...56