| /external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/views/views.span/span.cons/ |
| D | assign.pass.cpp | 56 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/ |
| D | assign.pass.cpp | 57 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/robolectric/src/test/java/org/robolectric/shadows/ |
| D | ShadowSpannableStringTest.java | 47 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/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
| D | ShadowSpannableStringTest.java | 47 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/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/source/ |
| D | SpannedData.java | 27 * 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_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/source/ |
| D | SpannedData.java | 27 * 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/ |
| D | OpenCensusSleuthTracerTest.java | 64 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/ |
| D | tree.go | 41 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 …]
|
| D | optimization.go | 23 // 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/rust/crates/syn/src/ |
| D | gen_helper.rs | 37 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() 41 pub trait Spans { trait 45 impl Spans for Span { 51 impl Spans for [Span; 1] { impl 57 impl Spans for [Span; 2] { impl 63 impl Spans for [Span; 3] { impl 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() 83 pub trait Spans { trait [all …]
|
| D | span.rs | 45 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()
|
| /external/webrtc/modules/desktop_capture/ |
| D | desktop_region.cc | 68 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/rust/crates/regex-syntax/src/ |
| D | error.rs | 106 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/opencensus-java/api/src/main/java/io/opencensus/trace/export/ |
| D | SampledSpanStore.java | 37 * This class allows users to access in-process information such as latency based sampled spans and 38 * error based sampled spans. 40 * <p>For all completed spans with the option {@link Span.Options#RECORD_EVENTS} the library can 64 * Returns the summary of all available data, such as number of sampled spans in the latency based 76 * Returns a list of succeeded spans (spans with {@link Status} equal to {@link Status#OK}) that 79 * <p>Latency based sampled spans are available only for span names registered using {@link 82 * @param filter used to filter the returned sampled spans. 83 * @return a list of succeeded spans that match the {@code filter}. 89 * Returns a list of failed spans (spans with {@link Status} other than {@link Status#OK}) that 92 * <p>Error based sampled spans are available only for span names registered using {@link [all …]
|
| D | RunningSpanStore.java | 29 * 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}. 119 * @param numRunningSpans the number of running spans. 130 * Returns the number of running spans. 132 * @return the number of running spans. 139 * Filter for running spans. Used to filter results returned by the {@link [all …]
|
| /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
| D | ShadowStringBlock.java | 55 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() 83 // (jint*)spans); in nativeGetStyle() 84 setIntArrayRegion(array, num, numInts, spans); in nativeGetStyle() 85 // 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() [all …]
|
| /external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
| D | ShadowStringBlock.java | 55 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() 83 // (jint*)spans); in nativeGetStyle() 84 setIntArrayRegion(array, num, numInts, spans); in nativeGetStyle() 85 // 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() [all …]
|
| /external/tensorflow/tensorflow/core/kernels/image/ |
| D | scale_and_translate_op.cc | 54 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/icu/android_icu4j/src/main/java/android/icu/text/ |
| D | UnicodeSetSpanner.java | 19 * 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/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/truth/ |
| D | SpannedSubject.java | 86 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 …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/truth/ |
| D | SpannedSubject.java | 86 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 …]
|
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
| D | UnicodeSetSpanner.java | 18 * its inverse. That is, the code spans, then spans for the inverse, then spans, and so on. 102 …* Collapse spans. That is, modify/count the entire matching span as a single item, instead of sepa… 128 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun… 141 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun… 156 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun… 196 * Delete all the matching spans in sequence, using SpanCondition.SIMPLE 197 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun… 199 * charsequence to replace matching spans in. 209 * Delete all matching spans in sequence, according to the spanCondition. 210 …* The code alternates spans; see the class doc for {@link UnicodeSetSpanner} for a note about boun… [all …]
|
| /external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/export/ |
| D | SpanExporterImpl.java | 46 * spans data. If the number of buffered SpanData objects is greater than {@code bufferSize} then 111 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() 160 // Returns an unmodifiable list of all buffered spans data to ensure that any registered 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() 173 // Copy all the batched spans in a separate list to release the monitor lock asap to in run() [all …]
|
| /external/rust/crates/syn/src/gen/ |
| D | visit_mut.rs | 798 tokens_helper(v, &mut it.spans); in visit_angle_bracketed_generic_arguments_mut() 800 tokens_helper(v, &mut node.lt_token.spans); in visit_angle_bracketed_generic_arguments_mut() 805 tokens_helper(v, &mut p.spans); in visit_angle_bracketed_generic_arguments_mut() 808 tokens_helper(v, &mut node.gt_token.spans); in visit_angle_bracketed_generic_arguments_mut() 823 tokens_helper(v, &mut node.fat_arrow_token.spans); in visit_arm_mut() 826 tokens_helper(v, &mut it.spans); in visit_arm_mut() 837 tokens_helper(v, &mut _binding_0.spans); in visit_attr_style_mut() 846 tokens_helper(v, &mut node.pound_token.spans); in visit_attribute_mut() 862 tokens_helper(v, &mut (it).1.spans); in visit_bare_fn_arg_mut() 873 tokens_helper(v, &mut _binding_0.spans); in visit_bin_op_mut() [all …]
|
| D | visit.rs | 797 tokens_helper(v, &it.spans); in visit_angle_bracketed_generic_arguments() 799 tokens_helper(v, &node.lt_token.spans); in visit_angle_bracketed_generic_arguments() 804 tokens_helper(v, &p.spans); in visit_angle_bracketed_generic_arguments() 807 tokens_helper(v, &node.gt_token.spans); in visit_angle_bracketed_generic_arguments() 822 tokens_helper(v, &node.fat_arrow_token.spans); in visit_arm() 825 tokens_helper(v, &it.spans); in visit_arm() 836 tokens_helper(v, &_binding_0.spans); in visit_attr_style() 845 tokens_helper(v, &node.pound_token.spans); in visit_attribute() 861 tokens_helper(v, &(it).1.spans); in visit_bare_fn_arg() 872 tokens_helper(v, &_binding_0.spans); in visit_bin_op() [all …]
|