/external/perfetto/src/trace_processor/importers/common/ |
D | slice_tracker_unittest.cc | 45 std::vector<SliceInfo> ToSliceInfo(const tables::SliceTable& slices) { in ToSliceInfo() argument 47 for (uint32_t i = 0; i < slices.row_count(); i++) { in ToSliceInfo() 48 infos.emplace_back(SliceInfo{slices.ts()[i], slices.dur()[i]}); in ToSliceInfo() 64 const auto& slices = context.storage->slice_table(); in TEST() local 65 EXPECT_EQ(slices.row_count(), 1u); in TEST() 66 EXPECT_EQ(slices.ts()[0], 2); in TEST() 67 EXPECT_EQ(slices.dur()[0], 8); in TEST() 68 EXPECT_EQ(slices.track_id()[0], track); in TEST() 69 EXPECT_EQ(slices.category()[0].raw_id(), 0u); in TEST() 70 EXPECT_EQ(slices.name()[0].raw_id(), 1u); in TEST() [all …]
|
D | slice_tracker.cc | 135 auto* slices = context_->storage->mutable_slice_table(); in AddArgs() local 141 PERFETTO_DCHECK(slices->dur()[slice_idx] == kPendingDuration); in AddArgs() 144 auto bound_inserter = tracker->AddArgsTo(slices->id()[slice_idx]); in AddArgs() 179 auto* slices = context_->storage->mutable_slice_table(); in StartSlice() local 188 depth == 0 ? 0 : slices->stack_id()[stack->back().first]; in StartSlice() 191 : base::make_optional(slices->id()[stack->back().first]); in StartSlice() 194 uint32_t slice_idx = *slices->id().IndexOf(id); in StartSlice() 199 slices->mutable_depth()->Set(slice_idx, depth); in StartSlice() 200 slices->mutable_parent_stack_id()->Set(slice_idx, parent_stack_id); in StartSlice() 201 slices->mutable_stack_id()->Set(slice_idx, GetStackHash(*stack)); in StartSlice() [all …]
|
/external/grpc-grpc/test/cpp/util/ |
D | byte_buffer_test.cc | 55 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 …]
|
D | cli_call.cc | 100 std::vector<grpc::Slice> slices; in Read() local 101 GPR_ASSERT(recv_buffer.Dump(&slices).ok()); in Read() 104 for (size_t i = 0; i < slices.size(); i++) { in Read() 105 response->append(reinterpret_cast<const char*>(slices[i].begin()), in Read() 106 slices[i].size()); in Read() 184 std::vector<grpc::Slice> slices; in ReadAndMaybeNotifyWrite() local 185 GPR_ASSERT(recv_buffer.Dump(&slices).ok()); in ReadAndMaybeNotifyWrite() 187 for (size_t i = 0; i < slices.size(); i++) { in ReadAndMaybeNotifyWrite() 188 response->append(reinterpret_cast<const char*>(slices[i].begin()), in ReadAndMaybeNotifyWrite() 189 slices[i].size()); in ReadAndMaybeNotifyWrite()
|
/external/grpc-grpc/test/core/slice/ |
D | slice_string_helpers_test.cc | 76 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 …]
|
D | slice_buffer_test.cc | 61 grpc_slice slices[3]; in test_slice_buffer_move_first() local 68 slices[0] = grpc_slice_from_copied_string("aaa"); in test_slice_buffer_move_first() 69 slices[1] = grpc_slice_from_copied_string("bbbb"); in test_slice_buffer_move_first() 70 slices[2] = grpc_slice_from_copied_string("ccc"); in test_slice_buffer_move_first() 75 grpc_slice_ref(slices[idx]); in test_slice_buffer_move_first() 78 grpc_slice_buffer_add_indexed(&src, slices[idx]); in test_slice_buffer_move_first() 79 grpc_slice_buffer_add_indexed(&dst, slices[idx]); in test_slice_buffer_move_first()
|
/external/grpc-grpc/test/core/http/ |
D | parser_test.cc | 43 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/grpc-grpc/test/core/surface/ |
D | byte_buffer_reader_test.cc | 142 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 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() 218 grpc_slice_unref(slices[1]); in test_readall() [all …]
|
/external/perfetto/src/tracing/core/ |
D | trace_packet_unittest.cc | 35 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/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
D | grpc_util_test.cc | 25 std::vector<grpc::Slice> slices; in ToString() local 26 CHECK(buf.Dump(&slices).ok()); in ToString() 28 for (const grpc::Slice& s : slices) { in ToString() 37 std::vector<::grpc::Slice> slices; in MakeBuffer() local 41 slices.emplace_back(&str[pos], n); in MakeBuffer() 44 if (slices.empty()) { in MakeBuffer() 45 slices.emplace_back(); in MakeBuffer() 47 return ::grpc::ByteBuffer(&slices[0], slices.size()); in MakeBuffer() 93 int slices; in TEST() member 104 ::grpc::ByteBuffer src = MakeBuffer(proto.SerializeAsString(), c.slices); in TEST() [all …]
|
/external/grpc-grpc/test/core/util/ |
D | slice_splitter.cc | 93 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() 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() 121 GRPC_SLICE_LENGTH(slices[i])); in grpc_slice_merge() [all …]
|
/external/mesa3d/src/freedreno/fdl/ |
D | fd_layout_test.c | 42 while (max_size > 1 && testcase->layout.slices[mip_levels].pitch) { in fdl_test_layout() 76 if (layout.ubwc && !testcase->layout.slices[0].offset) { in fdl_test_layout() 78 layout.slices[l].offset -= layout.slices[0].offset; in fdl_test_layout() 79 layout.slices[0].offset = 0; in fdl_test_layout() 83 if (layout.slices[l].offset != testcase->layout.slices[l].offset) { in fdl_test_layout() 88 layout.slices[l].offset, in fdl_test_layout() 89 testcase->layout.slices[l].offset); in fdl_test_layout() 92 if (fdl_pitch(&layout, l) != testcase->layout.slices[l].pitch) { in fdl_test_layout() 98 testcase->layout.slices[l].pitch); in fdl_test_layout()
|
D | fd6_layout_test.c | 38 .slices = { 58 .slices = { 97 .slices = { 121 .slices = { 137 .slices = { 153 .slices = { 171 .slices = { 187 .slices = { 203 .slices = { 223 .slices = { [all …]
|
/external/grpc-grpc/src/core/lib/slice/ |
D | slice_buffer.cc | 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() 128 grpc_slice* back = &sb->slices[n - 1]; in grpc_slice_buffer_add() [all …]
|
/external/mesa3d/src/panfrost/lib/ |
D | pan_texture.c | 82 struct panfrost_slice *slices, in panfrost_needs_explicit_stride() argument 88 unsigned actual = slices[l].stride; in panfrost_needs_explicit_stride() 267 struct panfrost_slice *slices) in panfrost_emit_texture_payload() argument 290 slices, dim == MALI_TEXTURE_DIMENSION_3D, in panfrost_emit_texture_payload() 295 slices[l].stride : in panfrost_emit_texture_payload() 319 struct panfrost_slice *slices) in panfrost_emit_texture_payload_v7() argument 347 panfrost_texture_offset(slices, is_3d, in panfrost_emit_texture_payload_v7() 353 slices[l].stride : in panfrost_emit_texture_payload_v7() 381 struct panfrost_slice *slices) in panfrost_new_texture() argument 389 && panfrost_needs_explicit_stride(slices, width, in panfrost_new_texture() [all …]
|
/external/perfetto/ui/src/tracks/async_slices/ |
D | controller.ts | 99 const slices: Data = { constant 116 idx = slices.strings.length; 117 slices.strings.push(str); 125 slices.starts[row] = startSec; 126 slices.ends[row] = startSec + fromNs(+cols[1].longValues![row]); 127 slices.depths[row] = +cols[2].longValues![row]; 128 slices.titles[row] = internString(cols[3].stringValues![row]); 129 slices.sliceIds[row] = +cols[4].longValues![row]; 131 return slices;
|
/external/tensorflow/tensorflow/python/autograph/operators/ |
D | slices_test.py | 21 from tensorflow.python.autograph.operators import slices 33 l = slices.set_item(l, 0, [5, 6]) 43 t = slices.get_item( 44 l, 1, slices.GetItemOpts(element_dtype=initial_list.dtype)) 51 t = slices.get_item(initial_str, 1, 52 slices.GetItemOpts(element_dtype=initial_str.dtype)) 58 t = slices.get_item(initial_list_str, 1, 59 slices.GetItemOpts(element_dtype=initial_str.dtype))
|
/external/grpc-grpc/src/cpp/server/health/ |
D | default_health_check_service.cc | 52 std::vector<Slice> slices; in Check() local 53 if (!request->Dump(&slices).ok()) { in Check() 60 if (slices.empty()) { in Check() 62 } else if (slices.size() == 1) { in Check() 63 request_bytes = const_cast<uint8_t*>(slices[0].begin()); in Check() 64 request_size = slices[0].size(); in Check() 69 for (size_t i = 0; i < slices.size(); i++) { in Check() 70 memcpy(copy_to, slices[i].begin(), slices[i].size()); in Check() 71 copy_to += slices[i].size(); in Check()
|
/external/perfetto/ui/src/tracks/cpu_slices/ |
D | controller.ts | 119 const slices: SliceData = { constant 134 slices.starts[row] = startSec; 135 slices.ends[row] = startSec + fromNs(+cols[1].longValues![row]); 136 slices.utids[row] = +cols[2].longValues![row]; 137 slices.ids[row] = +cols[3].longValues![row]; 140 slices.end = slices.ends[slices.ends.length - 1]; 142 return slices;
|
/external/perfetto/src/trace_processor/metrics/android/ |
D | hsc_startups.sql | 20 slices.ts AS ts, 21 slices.ts + slices.dur AS ts_end, 24 ROW_NUMBER() OVER(PARTITION BY launches.id ORDER BY slices.ts ASC) as frame_number 25 FROM slices 26 INNER JOIN thread_track on slices.track_id = thread_track.id 29 WHERE slices.name="Choreographer#doFrame" and slices.ts > launches.ts; 33 slices.ts as ts, 34 slices.dur as dur, 36 slices.name as function_name 37 FROM slices [all …]
|
/external/perfetto/ui/src/tracks/process_scheduling/ |
D | controller.ts | 130 const slices: SliceData = { constant 146 slices.starts[row] = startSec; 147 slices.ends[row] = startSec + fromNs(+cols[1].longValues![row]); 148 slices.cpus[row] = +cols[2].longValues![row]; 149 slices.utids[row] = +cols[3].longValues![row]; 150 slices.end = Math.max(slices.ends[row], slices.end); 152 return slices;
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/ |
D | dataset_constructor_serialization_test.py | 75 def _build_sparse_tensor_slice_dataset(self, slices): argument 77 [[i, j] for i in range(len(slices)) for j in range(len(slices[i]))], 79 values = np.array([val for s in slices for val in s], dtype=np.float64) 81 [len(slices), max(len(s) for s in slices) + 1], dtype=np.int64) 90 slices = [[1., 2., 3.], [1.], [1.], [1., 2.], [], [1., 2.], [], [], []] 93 lambda: self._build_sparse_tensor_slice_dataset(slices),
|
/external/grpc-grpc/test/core/iomgr/ |
D | endpoint_tests.cc | 52 size_t count_slices(grpc_slice* slices, size_t nslices, int* current_data) { in count_slices() argument 58 buf = GRPC_SLICE_START_PTR(slices[i]); in count_slices() 59 for (j = 0; j < GRPC_SLICE_LENGTH(slices[i]); ++j) { in count_slices() 63 num_bytes += GRPC_SLICE_LENGTH(slices[i]); in count_slices() 80 grpc_slice* slices = in allocate_blocks() local 89 slices[i] = grpc_slice_malloc(slice_size > num_bytes_left ? num_bytes_left in allocate_blocks() 91 num_bytes_left -= GRPC_SLICE_LENGTH(slices[i]); in allocate_blocks() 92 buf = GRPC_SLICE_START_PTR(slices[i]); in allocate_blocks() 93 for (j = 0; j < GRPC_SLICE_LENGTH(slices[i]); ++j) { in allocate_blocks() 99 return slices; in allocate_blocks() [all …]
|
/external/tensorflow/tensorflow/python/data/kernel_tests/ |
D | from_sparse_tensor_slices_test.py | 48 slices = [[1., 2., 3.], [1.], [1.], [1., 2.], [], [1., 2.], [], [], []] 52 [[i, j] for i in range(len(slices)) for j in range(len(slices[i]))]) 53 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])
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_resource.c | 48 unsigned slices; in util_resource_size() local 51 slices = 6; in util_resource_size() 53 slices = depth; in util_resource_size() 55 slices = res->array_size; in util_resource_size() 58 util_format_get_stride(res->format, width) * slices * samples); in util_resource_size()
|