Home
last modified time | relevance | path

Searched full:slices (Results 1 – 25 of 1463) sorted by relevance

12345678910>>...59

/external/libwebm/webm_parser/tests/
Dslices_parser_test.cc17 using webm::Slices;
28 const Slices slices = parser_.value(); in TEST_F() local
30 EXPECT_EQ(static_cast<std::size_t>(0), slices.slices.size()); in TEST_F()
41 const Slices slices = parser_.value(); in TEST_F() local
43 ASSERT_EQ(static_cast<std::size_t>(1), slices.slices.size()); in TEST_F()
44 EXPECT_TRUE(slices.slices[0].is_present()); in TEST_F()
45 EXPECT_EQ(TimeSlice{}, slices.slices[0].value()); in TEST_F()
67 const Slices slices = parser_.value(); in TEST_F() local
71 ASSERT_EQ(static_cast<std::size_t>(2), slices.slices.size()); in TEST_F()
73 EXPECT_TRUE(slices.slices[0].is_present()); in TEST_F()
[all …]
/external/perfetto/src/trace_processor/importers/common/
Dslice_tracker_unittest.cc46 std::vector<SliceInfo> ToSliceInfo(const tables::SliceTable& slices) { in ToSliceInfo() argument
48 for (uint32_t i = 0; i < slices.row_count(); i++) { in ToSliceInfo()
49 infos.emplace_back(SliceInfo{slices.ts()[i], slices.dur()[i]}); in ToSliceInfo()
67 const auto& slices = context.storage->slice_table(); in TEST() local
68 EXPECT_EQ(slices.row_count(), 1u); in TEST()
69 EXPECT_EQ(slices.ts()[0], 2); in TEST()
70 EXPECT_EQ(slices.dur()[0], 8); in TEST()
71 EXPECT_EQ(slices.track_id()[0], track); in TEST()
72 EXPECT_EQ(slices.category()[0].value_or(kNullStringId).raw_id(), 0u); in TEST()
73 EXPECT_EQ(slices.name()[0].value_or(kNullStringId).raw_id(), 1u); in TEST()
[all …]
/external/perfetto/src/trace_processor/metrics/sql/webview/
Dwebview_jank_approximation.sql17 -- slices and overlapping them with app jank slices for known apps.
36 -- Select all slices related to startup
43 -- Select all scheduler slices from WebView renderer processes
54 -- Select all jank slices
62 -- Select all jank slices from WebView processes
71 -- Select all jank slices from all processes except system processes
80 -- Select jank slices from WebView processes overlapping WebView renderer
81 -- scheduler slices
90 -- Select jank slices overlapping WebView startup slices
91 -- @column id Id of jank slice overlapping WebView startup slices
[all …]
/external/tensorflow/tensorflow/python/ops/linalg/
Dslicing.py63 def _sanitize_slices(slices, intended_shape, deficient_shape): argument
64 """Restricts slices to avoid overflowing size-1 (broadcast) dimensions.
67 slices: iterable of slices received by `__getitem__`.
68 intended_shape: int `Tensor` shape for which the slices were intended.
69 deficient_shape: int `Tensor` shape to which the slices will be applied.
76 for slc in slices:
79 raise ValueError('Found multiple `...` in slices {}'.format(slices))
81 s is not array_ops.newaxis for s in slices[
82 slices.index(Ellipsis) + 1:])
89 # Slices are denoted by start:stop:step.
[all …]
/external/grpc-grpc/test/cpp/util/
Dbyte_buffer_test.cc55 std::vector<Slice> slices; in TEST_F() local
56 slices.emplace_back(kContent1); in TEST_F()
57 slices.emplace_back(kContent2); in TEST_F()
58 ByteBuffer buffer(&slices[0], 2); in TEST_F()
70 std::vector<Slice> slices; in TEST_F() local
71 slices.emplace_back(kContent1); in TEST_F()
72 slices.emplace_back(kContent2); in TEST_F()
73 ByteBuffer buffer(&slices[0], 2); in TEST_F()
92 std::vector<Slice> slices; in TEST_F() local
93 slices.push_back(Slice(hello, Slice::STEAL_REF)); in TEST_F()
[all …]
/external/grpc-grpc/test/core/slice/
Dslice_string_helpers_test.cc76 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[0], "one")); in test_strsplit()
77 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[1], "two")); in test_strsplit()
78 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[2], "three")); in test_strsplit()
79 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[3], "four")); in test_strsplit()
87 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[0], "one two three four")); in test_strsplit()
95 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[0], "foo")); in test_strsplit()
96 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[1], "")); in test_strsplit()
104 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[0], "")); in test_strsplit()
105 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[1], "foo")); in test_strsplit()
113 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[0], "")); in test_strsplit()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/slice/
Dslice_buffer.cc44 memmove(sb->base_slices, sb->slices, sb->count * sizeof(grpc_slice)); in do_embiggen()
45 sb->slices = sb->base_slices; in do_embiggen()
59 sb->slices = sb->base_slices + slice_offset; in do_embiggen()
65 sb->slices = sb->base_slices; in maybe_embiggen()
69 /* How far away from sb->base_slices is sb->slices pointer */ in maybe_embiggen()
70 size_t slice_offset = static_cast<size_t>(sb->slices - sb->base_slices); in maybe_embiggen()
81 sb->base_slices = sb->slices = sb->inlined; in grpc_slice_buffer_init()
107 back = &sb->slices[sb->count - 1]; in grpc_slice_buffer_tiny_add()
120 back = &sb->slices[sb->count]; in grpc_slice_buffer_tiny_add()
130 sb->slices[out] = s; in grpc_slice_buffer_add_indexed()
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dfrom_sparse_tensor_slices_test.py36 combinations.combine(slices=[[
39 def testFromSparseTensorSlices(self, slices): argument
40 """Test a dataset based on slices of a `tf.sparse.SparseTensor`."""
51 [[i, j] for i in range(len(slices)) for j in range(len(slices[i]))])
52 values = np.array([val for s in slices for val in s])
54 dense_shape = np.array([len(slices), max(len(s) for s in slices) + 1])
58 for i, s in enumerate(slices):
62 [[j] for j in range(len(slices[i]))]).reshape([-1, 1])
71 combinations.combine(slices=[[
74 def testFromSparseTensorSlicesInReverse(self, slices): argument
[all …]
/external/perfetto/ui/src/frontend/
Dbase_slice_track.ts39 // The common class that underpins all tracks drawing slices.
44 // Slices smaller than this don't get any text:
53 slices: S[], start: TPTime, end: TPTime): S[] {
54 // Here we aim to reduce the number of slices we have to draw
57 // It's allowable to include slices which aren't visible but we
58 // must not exclude visible slices.
59 // We could filter this.slices using this condition but since most
61 // - First a bunch of non-visible slices to the left of the viewport
62 // - Then a bunch of visible slices within the viewport
63 // - Finally a second bunch of non-visible slices to the right of the
[all …]
/external/perfetto/src/trace_processor/prelude/table_functions/
Ddescendant.cc51 const tables::SliceTable& slices, in GetDescendants() argument
54 auto start_ref = slices.FindById(starting_id); in GetDescendants()
61 // As an optimization, for any finished slices, we only need to consider in GetDescendants()
62 // slices which started before the end of this slice (because slices on a in GetDescendants()
64 // For unfinshed slices (i.e. -1 dur), we need to consider until the end of in GetDescendants()
68 cs.emplace_back(slices.ts().le(start_ref->ts() + start_ref->dur())); in GetDescendants()
73 cs.emplace_back(slices.ts().ge(start_ref->ts())); in GetDescendants()
74 cs.emplace_back(slices.track_id().eq(start_ref->track_id().value)); in GetDescendants()
75 cs.emplace_back(slices.depth().gt(start_ref->depth())); in GetDescendants()
80 for (auto it = slices.FilterToIterator(cs); it; ++it) { in GetDescendants()
[all …]
/external/grpc-grpc/src/core/lib/slice/
Dslice_buffer.cc36 /* How far away from sb->base_slices is sb->slices pointer */ in maybe_embiggen()
37 size_t slice_offset = static_cast<size_t>(sb->slices - sb->base_slices); in maybe_embiggen()
41 if (sb->base_slices != sb->slices) { in maybe_embiggen()
43 memmove(sb->base_slices, sb->slices, sb->count * sizeof(grpc_slice)); in maybe_embiggen()
44 sb->slices = sb->base_slices; in maybe_embiggen()
58 sb->slices = sb->base_slices + slice_offset; in maybe_embiggen()
67 sb->base_slices = sb->slices = sb->inlined; in grpc_slice_buffer_init()
93 back = &sb->slices[sb->count - 1]; in grpc_slice_buffer_tiny_add()
104 back = &sb->slices[sb->count]; in grpc_slice_buffer_tiny_add()
114 sb->slices[out] = s; in grpc_slice_buffer_add_indexed()
[all …]
/external/grpc-grpc/test/core/surface/
Dbyte_buffer_reader_test.cc142 buffer = grpc_raw_compressed_byte_buffer_create(sliceb_out.slices, in read_compressed_slice()
191 buffer_from_reader->data.raw.slice_buffer.slices[0]), in test_byte_buffer_from_reader()
201 grpc_slice slices[2]; in test_readall() local
210 /* use slices large enough to overflow inlining */ in test_readall()
211 slices[0] = grpc_slice_malloc(512); in test_readall()
212 memcpy(GRPC_SLICE_START_PTR(slices[0]), lotsa_as, 512); in test_readall()
213 slices[1] = grpc_slice_malloc(1024); in test_readall()
214 memcpy(GRPC_SLICE_START_PTR(slices[1]), lotsa_bs, 1024); in test_readall()
216 buffer = grpc_raw_byte_buffer_create(slices, 2); in test_readall()
217 grpc_slice_unref(slices[0]); in test_readall()
[all …]
/external/perfetto/src/trace_processor/metrics/sql/chrome/
Dchrome_tasks_template.sql17 SELECT IMPORT("common.slices");
45 -- Selects the ScheduledActionSendBeginMainFrame slices, used for root-level
46 -- processing. In top-level/Java based slices, these will correspond with the
47 -- ancestor of descendant slices; in long-task tracking, these tasks will be
49 -- and duration. Corresponds with the Choreographer root slices in
137 -- table with the slices corresponding to mojo messages.
143 -- Select all new-style (post crrev.com/c/3270337) mojo slices and
164 -- Select old-style slices for channel-associated mojo events.
176 -- Select old-style slices for non-(channel-associated) mojo events.
190 -- Merge all mojo slices.
[all …]
/external/perfetto/src/trace_processor/metrics/sql/android/jank/
Dslices.sql32 -- Take slices which overlap even they started before the boundaries
33 -- This is to be able to query slices that delayed start of a frame
50 -- Take slices which overlap even they started before the boundaries
51 -- This is to be able to query slices that delayed start of a frame
69 -- Take slices which overlap even they started before the boundaries
70 -- This is to be able to query slices that delayed start of a frame
91 -- Take slices which overlap even they started before the boundaries
92 -- This is to be able to query slices that delayed start of a frame
109 -- Take slices which overlap even they started before the boundaries
110 -- This is to be able to query slices that delayed start of a frame
[all …]
/external/perfetto/test/trace_processor/diff_tests/pkvm/
Dtests.py55 EXTRACT_ARG(slices.arg_set_id, 'id') as id,
56 EXTRACT_ARG(slices.arg_set_id, 'invalid') as invalid
59 JOIN slices
60 ON pkvm_hyp.slice_id = slices.id
79 EXTRACT_ARG(slices.arg_set_id, 'id') as id,
80 EXTRACT_ARG(slices.arg_set_id, 'forwarded') as forwarded
83 JOIN slices
84 ON pkvm_hyp.slice_id = slices.id
103 EXTRACT_ARG(slices.arg_set_id, 'esr') as esr,
104 EXTRACT_ARG(slices.arg_set_id, 'addr') as addr
[all …]
/external/grpc-grpc/test/core/http/
Dparser_test.cc43 grpc_slice* slices; in test_request_succeeds() local
48 grpc_split_slices(split_mode, &input_slice, 1, &slices, &num_slices); in test_request_succeeds()
54 GPR_ASSERT(grpc_http_parser_parse(&parser, slices[i], nullptr) == in test_request_succeeds()
56 grpc_slice_unref(slices[i]); in test_request_succeeds()
91 gpr_free(slices); in test_request_succeeds()
101 grpc_slice* slices; in test_succeeds() local
106 grpc_split_slices(split_mode, &input_slice, 1, &slices, &num_slices); in test_succeeds()
112 GPR_ASSERT(grpc_http_parser_parse(&parser, slices[i], nullptr) == in test_succeeds()
114 grpc_slice_unref(slices[i]); in test_succeeds()
146 gpr_free(slices); in test_succeeds()
[all …]
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_util_test.cc29 std::vector<grpc::Slice> slices; in ToString() local
30 CHECK(buf.Dump(&slices).ok()); in ToString()
32 for (const grpc::Slice& s : slices) { in ToString()
38 // Return a ByteBuffer that contains str split up into num_slices slices.
41 std::vector<::grpc::Slice> slices; in MakeBuffer() local
45 slices.emplace_back(&str[pos], n); in MakeBuffer()
48 if (slices.empty()) { in MakeBuffer()
49 slices.emplace_back(); in MakeBuffer()
51 return ::grpc::ByteBuffer(&slices[0], slices.size()); in MakeBuffer()
112 // Test with serialization broken up into a bunch of slices. in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dframe_data.cc94 grpc_slice_buffer* slices, grpc_slice* slice_out, in grpc_deframe_unprocessed_incoming_frames() argument
99 while (slices->count > 0) { in grpc_deframe_unprocessed_incoming_frames()
104 grpc_slice* slice = grpc_slice_buffer_peek_first(slices); in grpc_deframe_unprocessed_incoming_frames()
111 grpc_slice_buffer_remove_first(slices); in grpc_deframe_unprocessed_incoming_frames()
118 grpc_slice_buffer_remove_first(slices); in grpc_deframe_unprocessed_incoming_frames()
143 grpc_slice_buffer_remove_first(slices); in grpc_deframe_unprocessed_incoming_frames()
148 grpc_slice_buffer_remove_first(slices); in grpc_deframe_unprocessed_incoming_frames()
157 grpc_slice_buffer_remove_first(slices); in grpc_deframe_unprocessed_incoming_frames()
166 grpc_slice_buffer_remove_first(slices); in grpc_deframe_unprocessed_incoming_frames()
175 grpc_slice_buffer_remove_first(slices); in grpc_deframe_unprocessed_incoming_frames()
[all …]
/external/perfetto/src/trace_processor/metrics/sql/android/startup/
Dhsc.sql23 slices.ts AS ts,
24 slices.dur AS dur,
27 slices.name AS function_name
28 FROM slices
29 JOIN thread_track ON slices.track_id = thread_track.id
37 slices.ts AS ts,
38 slices.dur AS dur,
40 slices.name AS animator_name
41 FROM slices
42 JOIN process_track ON slices.track_id = process_track.id
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/linalg/
Dslicing_test.py31 def __getitem__(self, slices): argument
32 return slices if isinstance(slices, tuple) else (slices,)
47 slices=make_slices[44:-52:-3, -94::],
55 slices=make_slices[:2],
63 slices=make_slices[..., :2],
71 slices=make_slices[:, :2],
79 slices=make_slices[:, array_ops.newaxis],
87 slices=make_slices[..., array_ops.newaxis, :],
95 slices=make_slices[:, 2:],
103 slices=make_slices[:, 2:],
[all …]
/external/grpc-grpc/test/core/util/
Dslice_splitter.cc93 grpc_slice* slices; in grpc_split_slices_to_buffer() local
96 grpc_split_slices(mode, src_slices, src_slice_count, &slices, &nslices); in grpc_split_slices_to_buffer()
98 /* add indexed to avoid re-merging split slices */ in grpc_split_slices_to_buffer()
99 grpc_slice_buffer_add_indexed(dst, slices[i]); in grpc_split_slices_to_buffer()
101 gpr_free(slices); in grpc_split_slices_to_buffer()
106 grpc_split_slices_to_buffer(mode, src->slices, src->count, dst); in grpc_split_slice_buffer()
109 grpc_slice grpc_slice_merge(grpc_slice* slices, size_t nslices) { in grpc_slice_merge() argument
116 if (GRPC_SLICE_LENGTH(slices[i]) + length > capacity) { in grpc_slice_merge()
117 capacity = GPR_MAX(capacity * 2, GRPC_SLICE_LENGTH(slices[i]) + length); in grpc_slice_merge()
120 memcpy(out + length, GRPC_SLICE_START_PTR(slices[i]), in grpc_slice_merge()
[all …]
/external/perfetto/src/tracing/core/
Dtrace_packet_unittest.cc35 auto slice = tp.slices().begin(); in TEST()
36 ASSERT_NE(tp.slices().end(), slice); in TEST()
39 ASSERT_EQ(tp.slices().end(), ++slice); in TEST()
57 auto slice = tp.slices().begin(); in TEST()
58 ASSERT_NE(tp.slices().end(), slice); in TEST()
62 ASSERT_NE(tp.slices().end(), ++slice); in TEST()
66 ASSERT_NE(tp.slices().end(), ++slice); in TEST()
70 ASSERT_EQ(tp.slices().end(), ++slice); in TEST()
115 ASSERT_EQ(1u, tp.slices().size()); in TEST()
116 memcpy(&buf[preamble_size], tp.slices()[0].start, tp.slices()[0].size); in TEST()
[all …]
/external/perfetto/ui/src/tracks/expected_frames/
Dindex.ts35 // Slices are stored in a columnar fashion. All fields have the same length.
90 const slices: Data = { constant
110 idx = slices.strings.length;
111 slices.strings.push(str);
136 slices.starts[row] = fromNs(startNsQ);
137 slices.ends[row] = fromNs(endNsQ);
138 slices.depths[row] = it.layoutDepth;
139 slices.titles[row] = internString(it.name);
140 slices.sliceIds[row] = it.id;
141 slices.isInstant[row] = it.isInstant;
[all …]
/external/perfetto/src/trace_processor/stdlib/pkvm/
Dhypervisor.sql19 -- @column slice_id Id of the corresponding slice in slices table.
26 slices.id as slice_id,
28 slices.ts as ts,
29 slices.dur as dur,
30 EXTRACT_ARG(slices.arg_set_id, 'hyp_enter_reason') as reason
31 FROM slices
32 JOIN cpu_track ON cpu_track.id = slices.track_id
34 slices.category = 'pkvm_hyp'
/external/perfetto/ui/src/tracks/async_slices/
Dindex.ts33 // Slices are stored in a columnar fashion. All fields have the same length.
86 const slices: Data = { constant
105 idx = slices.strings.length;
106 slices.strings.push(str);
130 slices.starts[row] = fromNs(startNsQ);
131 slices.ends[row] = fromNs(endNsQ);
132 slices.depths[row] = it.depth;
133 slices.titles[row] = internString(it.name);
134 slices.sliceIds[row] = it.id;
135 slices.isInstant[row] = it.isInstant;
[all …]

12345678910>>...59