/external/libwebm/webm_parser/tests/ |
D | slices_parser_test.cc | 17 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/ |
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 | 109 auto* slices = context_->storage->mutable_slice_table(); in AddArgs() local 115 PERFETTO_DCHECK(slices->dur()[slice_idx] == kPendingDuration); in AddArgs() 118 auto bound_inserter = tracker->AddArgsTo(slices->id()[slice_idx]); in AddArgs() 151 auto* slices = context_->storage->mutable_slice_table(); in StartSlice() local 156 PERFETTO_DFATAL("Slices with too large depth found."); in StartSlice() 160 depth == 0 ? 0 : slices->stack_id()[stack->back().row]; in StartSlice() 163 : base::make_optional(slices->id()[stack->back().row]); in StartSlice() 166 uint32_t slice_idx = *slices->id().IndexOf(id); in StartSlice() 171 slices->mutable_depth()->Set(slice_idx, depth); in StartSlice() 172 slices->mutable_parent_stack_id()->Set(slice_idx, parent_stack_id); 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 …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/slice/ |
D | slice_buffer.cc | 44 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 …]
|
D | slice_utils.h | 36 // When we compare two slices, and we know the latter is not inlined, we can 50 // When we compare two slices, and we *know* that one of them is static or 69 // Internally, we may have heap allocated slices, static slices, interned 70 // slices, and inlined slices. If we know the specific type of slice 80 // There are two main types of slices: those that have their memory 83 // The following types of slices are not managed: 84 // - inlined slices (i.e., refcount is null) 85 // - slices that have a custom refcount type (i.e., not STATIC or INTERNED) 86 // - slices where the memory is managed by some external agent. The slice is not 90 // The following types of slices are managed: [all …]
|
/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 | 26 std::vector<grpc::Slice> slices; in ToString() local 27 CHECK(buf.Dump(&slices).ok()); in ToString() 29 for (const grpc::Slice& s : slices) { in ToString() 35 // Return a ByteBuffer that contains str split up into num_slices slices. 38 std::vector<::grpc::Slice> slices; in MakeBuffer() local 42 slices.emplace_back(&str[pos], n); in MakeBuffer() 45 if (slices.empty()) { in MakeBuffer() 46 slices.emplace_back(); in MakeBuffer() 48 return ::grpc::ByteBuffer(&slices[0], slices.size()); in MakeBuffer() 91 // 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 …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/ |
D | frame_data.cc | 94 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/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/perfetto/src/trace_processor/metrics/android/ |
D | hsc_startups.sql | 21 slices.ts as ts, 22 slices.dur as dur, 25 slices.name as function_name 26 FROM slices 27 INNER JOIN thread_track on slices.track_id = thread_track.id 35 slices.ts AS ts, 36 slices.dur AS dur, 38 slices.name AS animator_name 39 FROM slices 40 INNER JOIN process_track on slices.track_id = process_track.id [all …]
|
/external/perfetto/ui/src/tracks/expected_frames/ |
D | controller.ts | 70 const slices: Data = { constant 90 idx = slices.strings.length; 91 slices.strings.push(str); 111 slices.starts[row] = fromNs(startNsQ); 112 slices.ends[row] = fromNs(endNsQ); 113 slices.depths[row] = +cols[3].longValues![row]; 114 slices.titles[row] = internString(cols[4].stringValues![row]); 115 slices.sliceIds[row] = +cols[5].longValues![row]; 116 slices.isInstant[row] = +cols[6].longValues![row]; 117 slices.isIncomplete[row] = +cols[7].longValues![row]; [all …]
|
/external/perfetto/ui/src/tracks/debug_slices/ |
D | controller.ts | 53 const slices: Data = { constant 72 idx = slices.strings.length; 73 slices.strings.push(str); 87 slices.sliceIds[i] = idCol.isNulls![i] ? -1 : idValues[i]; 88 slices.starts[i] = fromNs(sliceStart); 89 slices.ends[i] = fromNs(sliceEnd); 90 slices.depths[i] = depthCol.isNulls![i] ? 0 : depthCol.longValues![i]; 93 slices.titles[i] = internString(sliceName); 94 slices.isInstant[i] = 0; 95 slices.isIncomplete[i] = 0; [all …]
|
/external/perfetto/ui/src/tracks/actual_frames/ |
D | controller.ts | 89 const slices: Data = { constant 109 idx = slices.strings.length; 110 slices.strings.push(str); 127 slices.starts[row] = fromNs(startNsQ); 128 slices.ends[row] = fromNs(endNsQ); 129 slices.depths[row] = +cols[3].longValues![row]; 130 slices.titles[row] = internString(cols[4].stringValues![row]); 131 slices.colors![row] = internString(cols[8].stringValues![row]); 132 slices.sliceIds[row] = +cols[5].longValues![row]; 133 slices.isInstant[row] = +cols[6].longValues![row]; [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/perfetto/docs/visualization/ |
D | perfetto-ui.md | 9 ### Debug Slices 11 Sometimes you may want to insert some fake slices into the timeline to help 18 open the details panel when you click on the slices. 28 the top and will initially be empty. After you insert slices in the 32 Here is a simple example with random slices to illustrate the use: 42 After you click the reload button, you should see the slices in the debug track. 44 ![Example of debug slices](/docs/images/debug-slices-random.png) 70 ![RAIL modes in Debug Track](/docs/images/rail-mode-debug-slices.png)
|
/external/perfetto/ui/src/tracks/async_slices/ |
D | controller.ts | 70 const slices: Data = { constant 89 idx = slices.strings.length; 90 slices.strings.push(str); 109 slices.starts[row] = fromNs(startNsQ); 110 slices.ends[row] = fromNs(endNsQ); 111 slices.depths[row] = +cols[3].longValues![row]; 112 slices.titles[row] = internString(cols[4].stringValues![row]); 113 slices.sliceIds[row] = +cols[5].longValues![row]; 114 slices.isInstant[row] = +cols[6].longValues![row]; 115 slices.isIncomplete[row] = +cols[7].longValues![row]; [all …]
|
/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/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | endpoint.h | 40 void (*read)(grpc_endpoint* ep, grpc_slice_buffer* slices, grpc_closure* cb, 42 void (*write)(grpc_endpoint* ep, grpc_slice_buffer* slices, grpc_closure* cb, 56 /* When data is available on the connection, calls the callback with slices. 59 Valid slices may be placed into \a slices even when the callback is 61 void grpc_endpoint_read(grpc_endpoint* ep, grpc_slice_buffer* slices, 72 /* Write slices out to the socket. 78 \a slices may be mutated at will by the endpoint until cb is called. 79 No guarantee is made to the content of slices after a write EXCEPT that 84 void grpc_endpoint_write(grpc_endpoint* ep, grpc_slice_buffer* slices,
|
/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/llvm-project/llvm/tools/llvm-lipo/ |
D | llvm-lipo.cpp | 516 static void checkArchDuplicates(ArrayRef<Slice> Slices) { in checkArchDuplicates() argument 518 for (const auto &S : Slices) { in checkArchDuplicates() 529 static void updateAlignments(Range &Slices, in updateAlignments() argument 531 for (auto &Slice : Slices) { in updateAlignments() 538 static void checkUnusedAlignments(ArrayRef<Slice> Slices, in checkUnusedAlignments() argument 541 return llvm::find_if(Slices, [Arch](Slice S) { in checkUnusedAlignments() 543 }) != Slices.end(); in checkUnusedAlignments() 558 SmallVector<Slice, 2> Slices; in buildSlices() local 568 Slices.emplace_back(*(BinaryOrError.get()), O.getAlign()); in buildSlices() 578 Slices.emplace_back(std::move(S)); in buildSlices() [all …]
|