| /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 | 30 // Slices which have been opened but haven't been closed yet will be marked 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 184 PERFETTO_DFATAL("Slices with too large depth found."); in StartSlice() 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() [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 …]
|
| /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() 91 /* src now has two slices ["bbb"] and ["ccc"] */ in test_slice_buffer_move_first()
|
| /external/grpc-grpc/src/core/lib/slice/ |
| D | slice_buffer.cc | 36 /* 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/ |
| 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 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/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() 34 // Return a ByteBuffer that contains str split up into num_slices slices. 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() 90 // Test with serialization broken up into a bunch of slices. in TEST() [all …]
|
| /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/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() 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 …]
|
| D | slice_splitter.h | 22 /* utility function to split/merge slices together to help create test 29 /* merge all input slices into a single slice */ 31 /* leave slices as is */ 33 /* split slices into one byte chunks */ 37 /* allocates *dst_slices; caller must unref all slices in dst_slices then free 49 grpc_slice grpc_slice_merge(grpc_slice* slices, size_t nslices);
|
| /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 …]
|
| D | packet_stream_validator_unittest.cc | 33 Slices seq; in TEST() 42 Slices seq; in TEST() 59 Slices seq; in TEST() 69 Slices seq; in TEST() 79 Slices seq; in TEST() 89 Slices seq; in TEST() 107 Slices seq; in TEST() 125 Slices seq; in TEST() 147 Slices seq; in TEST() 160 Slices seq; in TEST() [all …]
|
| /external/tensorflow/tensorflow/python/autograph/operators/ |
| D | slices_test.py | 15 """Tests for slices module.""" 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/include/grpc/impl/codegen/ |
| D | byte_buffer.h | 30 /** Returns a RAW byte buffer instance over the given slices (up to \a nslices). 32 * Increases the reference count for all \a slices processed. The user is 34 GRPCAPI grpc_byte_buffer* grpc_raw_byte_buffer_create(grpc_slice* slices, 37 /** Returns a *compressed* RAW byte buffer instance over the given slices (up to 39 * used to generate the data in \a slices. 41 * Increases the reference count for all \a slices processed. The user is 44 grpc_slice* slices, size_t nslices, grpc_compression_algorithm compression); 48 * Increases the reference count of all the source slices. The user is 58 /** Reader for byte buffers. Iterates over slices in the byte buffer */
|
| /external/grpc-grpc/src/core/lib/iomgr/ |
| D | endpoint.h | 39 void (*read)(grpc_endpoint* ep, grpc_slice_buffer* slices, grpc_closure* cb); 40 void (*write)(grpc_endpoint* ep, grpc_slice_buffer* slices, grpc_closure* cb, 52 /* When data is available on the connection, calls the callback with slices. 55 Valid slices may be placed into \a slices even when the callback is 57 void grpc_endpoint_read(grpc_endpoint* ep, grpc_slice_buffer* slices, 66 /* Write slices out to the socket. 72 \a slices may be mutated at will by the endpoint until cb is called. 73 No guarantee is made to the content of slices after a write EXCEPT that 78 void grpc_endpoint_write(grpc_endpoint* ep, grpc_slice_buffer* 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/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()
|
| /external/perfetto/ui/src/tracks/async_slices/ |
| D | controller.ts | 32 // Ns in 1px width. We want all slices smaller than 1px to be grouped. 80 // So that busy slices never overlap, we use the start of the bucket 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]; [all …]
|
| /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/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/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/tensorflow/tensorflow/compiler/xla/service/ |
| D | slice_sinker.cc | 31 // Returns whether two slices are taken from the same indices, assuming the 32 // slices are taking from tensors with the same dimensions. 45 // slices from the same indices of tensors with compatible shapes. 49 // Check that all operands are slices. in IsElementwiseOperationOnSimilarSlices() 56 // Check that all slices are from the same indices of slice sources with in IsElementwiseOperationOnSimilarSlices() 78 // (3) All operands of candidate are slices taken from the same indices as the 107 // Given a group of elementwise operations on slices that can be transformed to 114 // elementwise operation on bigger slices of the slice sources. This is because 138 // Returns a group of elementwise operations on slices that are similar to the 140 // considered similar operation on slices. [all …]
|
| /external/tensorflow/tensorflow/python/data/kernel_tests/ |
| D | from_sparse_tensor_slices_test.py | 40 """Test a dataset based on slices of a `tf.SparseTensor`.""" 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/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),
|