Home
last modified time | relevance | path

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

12345678

/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/llvm-project/libcxx/test/std/containers/views/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-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]).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/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/rust/crates/syn/src/
Dspan.rs45 fn from_spans(spans: &[Span]) -> Self; in from_spans()
50 fn from_spans(spans: &[Span]) -> Self { in from_spans()
51 [spans[0]] in from_spans()
57 fn from_spans(spans: &[Span]) -> Self { in from_spans()
58 [spans[0], spans[1]] in from_spans()
64 fn from_spans(spans: &[Span]) -> Self { in from_spans()
65 [spans[0], spans[1], spans[2]] in from_spans()
Dtoken.rs374 pub spans: [Span; $len],
379 pub fn $name<S: IntoSpans<[Span; $len]>>(spans: S) -> $name {
381 spans: spans.into_spans(),
388 spans: [Span::call_site(); $len],
447 printing::punct($token, &self.spans, tokens);
456 spans: parsing::punct(input, $token)?,
916 let mut spans = [input.span(); 3]; in punct() localVariable
917 punct_helper(input, token, &mut spans)?; in punct()
918 Ok(S::from_spans(&spans)) in punct()
921 fn punct_helper(input: ParseStream, token: &str, spans: &mut [Span; 3]) -> Result<()> { in punct_helper()
[all …]
Dgen_helper.rs37 pub fn tokens_helper<F: Fold + ?Sized, S: Spans>(folder: &mut F, spans: &S) -> S { in tokens_helper()
38 spans.fold(folder) in tokens_helper()
79 pub fn tokens_helper<'ast, V: Visit<'ast> + ?Sized, S: Spans>(visitor: &mut V, spans: &S) { in tokens_helper()
80 spans.visit(visitor); in tokens_helper()
120 pub fn tokens_helper<V: VisitMut + ?Sized, S: Spans>(visitor: &mut V, spans: &mut S) { in tokens_helper()
121 spans.visit_mut(visitor); in tokens_helper()
Dcustom_punctuation.rs81 pub spans: $crate::custom_punctuation_repr!($($tt)+),
87 spans: __S,
91 spans: $crate::__private::IntoSpans::into_spans(spans)
126 let spans: $crate::custom_punctuation_repr!($($tt)+) = localVariable
128 Ok($ident(spans))
150 … $crate::token::printing::punct($crate::stringify_punct!($($tt)+), &self.spans, tokens)
/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()
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 …]
/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 …]
/external/swiftshader/tests/regres/cov/
Dtree.go41 spans map[Span]SpanID member
49 t.spans = map[Span]SpanID{}
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]
96 id = SpanID(len(t.spans))
97 t.spans[s] = id
[all …]
Dimport.go144 func appendSpan(spans []Span, span Span) []Span {
145 if c := len(spans); c > 0 && spans[c-1].End == span.Start {
146 spans[c-1].End = span.End
148 spans = append(spans, span)
150 return spans
Dserialization.go54 for span, id := range t.spans {
114 spans := make([]spanAndID, 0, len(t.spans))
115 for span, id := range t.spans {
116 spans = append(spans, spanAndID{span, id})
118 sort.Slice(spans, func(i, j int) bool { return spans[i].id < spans[j].id })
121 for i, s := range spans {
321 for span, id := range tree.spans {
354 p.tree.spans[p.parseSpan()] = SpanID(idx)
/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/perfetto/src/trace_processor/metrics/android/
Dg2d_duration.sql16 DROP VIEW IF EXISTS raw_g2d_{{g2d_type}}_spans;
17 CREATE VIEW raw_g2d_{{g2d_type}}_spans AS
29 DROP VIEW IF EXISTS g2d_{{g2d_type}}_spans;
30 CREATE VIEW g2d_{{g2d_type}}_spans AS
32 FROM raw_g2d_{{g2d_type}}_spans
39 FROM raw_g2d_{{g2d_type}}_spans
54 FROM g2d_{{g2d_type}}_spans g GROUP BY g.track_name;
68 FROM g2d_{{g2d_type}}_spans;
Dandroid_startup_launches.sql66 SELECT * FROM activity_intent_recv_spans AS spans
70 WHERE launching_events.ts BETWEEN spans.ts AND spans.ts + spans.dur);
/external/rust/crates/syn/src/gen/
Dvisit_mut.rs794 tokens_helper(v, &mut it.spans) in visit_angle_bracketed_generic_arguments_mut()
796 tokens_helper(v, &mut node.lt_token.spans); in visit_angle_bracketed_generic_arguments_mut()
801 tokens_helper(v, &mut p.spans); in visit_angle_bracketed_generic_arguments_mut()
804 tokens_helper(v, &mut node.gt_token.spans); in visit_angle_bracketed_generic_arguments_mut()
819 tokens_helper(v, &mut node.fat_arrow_token.spans); in visit_arm_mut()
822 tokens_helper(v, &mut it.spans) in visit_arm_mut()
833 tokens_helper(v, &mut _binding_0.spans); in visit_attr_style_mut()
842 tokens_helper(v, &mut node.pound_token.spans); in visit_attribute_mut()
858 tokens_helper(v, &mut (it).1.spans); in visit_bare_fn_arg_mut()
869 tokens_helper(v, &mut _binding_0.spans); in visit_bin_op_mut()
[all …]
Dvisit.rs790 tokens_helper(v, &it.spans) in visit_angle_bracketed_generic_arguments()
792 tokens_helper(v, &node.lt_token.spans); in visit_angle_bracketed_generic_arguments()
797 tokens_helper(v, &p.spans); in visit_angle_bracketed_generic_arguments()
800 tokens_helper(v, &node.gt_token.spans); in visit_angle_bracketed_generic_arguments()
815 tokens_helper(v, &node.fat_arrow_token.spans); in visit_arm()
818 tokens_helper(v, &it.spans) in visit_arm()
829 tokens_helper(v, &_binding_0.spans); in visit_attr_style()
838 tokens_helper(v, &node.pound_token.spans); in visit_attribute()
854 tokens_helper(v, &(it).1.spans); in visit_bare_fn_arg()
865 tokens_helper(v, &_binding_0.spans); in visit_bin_op()
[all …]
Dfold.rs795 colon2_token: (node.colon2_token).map(|it| Token ! [::](tokens_helper(f, &it.spans))), in fold_angle_bracketed_generic_arguments()
796 lt_token: Token ! [<](tokens_helper(f, &node.lt_token.spans)), in fold_angle_bracketed_generic_arguments()
798 gt_token: Token ! [>](tokens_helper(f, &node.gt_token.spans)), in fold_angle_bracketed_generic_arguments()
815 fat_arrow_token: Token ! [=>](tokens_helper(f, &node.fat_arrow_token.spans)), in fold_arm()
817 comma: (node.comma).map(|it| Token ! [,](tokens_helper(f, &it.spans))), in fold_arm()
828 AttrStyle::Inner(Token![!](tokens_helper(f, &_binding_0.spans))) in fold_attr_style()
838 pound_token: Token ! [#](tokens_helper(f, &node.pound_token.spans)), in fold_attribute()
855 Token ! [:](tokens_helper(f, &(it).1.spans)), in fold_bare_fn_arg()
867 BinOp::Add(_binding_0) => BinOp::Add(Token ! [+](tokens_helper(f, &_binding_0.spans))), in fold_bin_op()
868 BinOp::Sub(_binding_0) => BinOp::Sub(Token ! [-](tokens_helper(f, &_binding_0.spans))), in fold_bin_op()
[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/rust/crates/regex-syntax/src/
Derror.rs106 let spans = Spans::from_formatter(self); in fmt() localVariable
112 let notated = spans.notate(); in fmt()
117 if !spans.multi_line.is_empty() { in fmt()
119 for span in &spans.multi_line { in fmt()
183 let mut spans = Spans { in from_formatter() localVariable
189 spans.add(fmter.span.clone()); in from_formatter()
191 spans.add(span.clone()); in from_formatter()
193 spans in from_formatter()
236 let spans = &self.by_line[i]; in notate_line() localVariable
237 if spans.is_empty() { in notate_line()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/span/
DSpanUtilTest.java47 Object[] spans = spannable.getSpans(0, spannable.length(), Object.class); in addOrReplaceSpan_replacesSameTypeAndIndexes() local
48 assertThat(spans).asList().containsExactly(newSpan); in addOrReplaceSpan_replacesSameTypeAndIndexes()
60 Object[] spans = spannable.getSpans(0, spannable.length(), Object.class); in addOrReplaceSpan_ignoresDifferentType() local
61 assertThat(spans).asList().containsExactly(originalSpan, newSpan).inOrder(); in addOrReplaceSpan_ignoresDifferentType()
80 Object[] spans = spannable.getSpans(0, spannable.length(), Object.class); in addOrReplaceSpan_ignoresDifferentStartEndAndFlags() local
81 assertThat(spans) in addOrReplaceSpan_ignoresDifferentStartEndAndFlags()
/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()
286 for (int i = 0; i < spans.length; ++i) { in getDayPeriod()
287 if (spans[i].contains(millisInDay)) { in getDayPeriod()
288 return spans[i].dayPeriod; in getDayPeriod()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubject.java85 Object[] spans = actual.getSpans(0, actual.length(), Object.class); in hasNoSpans() local
86 if (spans.length > 0) { in hasNoSpans()
627 List<T> spans = new ArrayList<>(); in findMatchingSpans() local
630 spans.add(span); in findMatchingSpans()
633 return Collections.unmodifiableList(spans); in findMatchingSpans()
757 return (FailureMetadata metadata, List<AlignmentSpan> spans) -> in alignmentSpans()
758 new AlignmentSpansSubject(metadata, spans, actualSpanned); in alignmentSpans()
806 return (FailureMetadata metadata, List<ForegroundColorSpan> spans) -> in foregroundColorSpans()
807 new ForegroundColorSpansSubject(metadata, spans, actualSpanned); in foregroundColorSpans()
843 return (FailureMetadata metadata, List<BackgroundColorSpan> spans) -> in backgroundColorSpans()
[all …]
/external/rust/crates/remain/src/
Dformat.rs21 let mut spans = TokenStream::new(); in error() localVariable
22 spans.append_all(&lesser.segments); in error()
26 Error::new_spanned(spans, msg) in error()

12345678