Home
last modified time | relevance | path

Searched refs:chunks_ (Results 1 – 21 of 21) sorted by relevance

/external/libchrome/base/trace_event/
Dtrace_buffer.cc29 chunks_.reserve(max_chunks); in TraceBufferRingBuffer()
45 if (*index >= chunks_.size()) in GetChunk()
46 chunks_.resize(*index + 1); in GetChunk()
48 TraceBufferChunk* chunk = chunks_[*index].release(); in GetChunk()
49 chunks_[*index] = nullptr; // Put nullptr in the slot of a in-flight chunk. in GetChunk()
64 DCHECK_LT(index, chunks_.size()); in ReturnChunk()
65 DCHECK(!chunks_[index]); in ReturnChunk()
66 chunks_[index] = std::move(chunk); in ReturnChunk()
75 return chunks_.size() * TraceBufferChunk::kTraceBufferChunkSize; in Size()
83 if (handle.chunk_index >= chunks_.size()) in GetEventByHandle()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dtensor_cord.h62 TensorCord() : chunks_() {} in TensorCord()
79 : chunks_({new CordRep(view, releaser, memory)}) {}
88 : chunks_({NewCordRepFromTensor(view, tensor)}) {} in TensorCord()
169 return ChunkIterator(cord_, cord_->chunks_.size()); in end()
188 return ChunkIterator(this, chunks_.size()); in chunk_end()
271 absl::InlinedVector<CordRep*, 2> chunks_; variable
275 : chunks_(other.chunks_) { in TensorCord()
276 for (auto* rep : chunks_) { in TensorCord()
282 : chunks_(std::move(other.chunks_)) { in TensorCord()
283 other.chunks_.clear(); in TensorCord()
[all …]
Dtensor_cord.cc45 chunks_.push_back(new CordRep(absl::string_view(*str), &StringReleaser, str)); in Decode()
98 for (auto* rep : chunks_) { in operator string()
/external/openscreen/cast/streaming/
Dframe_collector.cc45 chunks_.resize(num_missing_packets_); in CollectRtpPacket()
49 if (frame_packet_count != static_cast<int>(chunks_.size())) { in CollectRtpPacket()
52 << chunks_.size() << " is not equal to 1 + max_packet_id=" in CollectRtpPacket()
59 if (part.packet_id >= chunks_.size()) { in CollectRtpPacket()
62 << part.packet_id << " (should be less than " << chunks_.size() << ")."; in CollectRtpPacket()
67 if (chunks_[part.packet_id].has_data()) { in CollectRtpPacket()
91 PayloadChunk& chunk = chunks_[part.packet_id]; in CollectRtpPacket()
111 const int frame_packet_count = chunks_.size(); in GetMissingPackets()
118 if (!chunks_[packet_id].has_data()) { in GetMissingPackets()
132 std::accumulate(chunks_.cbegin(), chunks_.cend(), size_t{0}, in PeekAtAssembledFrame()
[all …]
Dframe_collector.h84 std::vector<PayloadChunk> chunks_; variable
/external/pigweed/pw_allocator/
Dfreelist.cc36 aliased.node->next = chunks_[chunk_ptr]; in AddChunk()
37 chunks_[chunk_ptr] = aliased.node; in AddChunk()
51 if (chunks_[chunk_ptr] == nullptr) { in FindChunk()
56 for (size_t i = chunk_ptr; i < chunks_.size(); i++) { in FindChunk()
61 aliased.node = chunks_[i]; in FindChunk()
87 if (chunks_[chunk_ptr] == nullptr) { in RemoveChunk()
91 aliased.node = chunks_[chunk_ptr]; in RemoveChunk()
93 chunks_[chunk_ptr] = aliased.node->next; in RemoveChunk()
99 aliased.node = chunks_[chunk_ptr]; in RemoveChunk()
119 (!non_null || chunks_[chunk_ptr] != nullptr)) { in FindChunkPtrForSize()
/external/pigweed/pw_allocator/public/pw_allocator/
Dfreelist.h97 : chunks_(chunks), sizes_(sizes) {} in FreeList()
99 Vector<FreeListNode*>& chunks_; variable
110 : FreeList(chunks_, sizes_), sizes_(sizes), chunks_(kNumBuckets + 1, 0) {} in FreeListBuffer()
112 : FreeList(chunks_, sizes_), in FreeListBuffer()
114 chunks_(kNumBuckets + 1, 0) {} in FreeListBuffer()
118 Vector<FreeList::FreeListNode*, kNumBuckets + 1> chunks_; variable
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator_secondary.h77 chunks_ = reinterpret_cast<Header**>(ptr_array_.Init()); in InitLinkerInitialized()
122 chunks_[idx] = h; in Allocate()
139 CHECK_EQ(chunks_[idx], h); in Deallocate()
141 chunks_[idx] = chunks_[--n_chunks_]; in Deallocate()
142 chunks_[idx]->chunk_idx = idx; in Deallocate()
157 Header *h = chunks_[i]; in TotalMemoryUsed()
186 Header *const *chunks = AddressSpaceView::Load(chunks_, n_chunks_); in GetBlockBegin()
209 Header **chunks = AddressSpaceView::LoadWritable(chunks_, n_chunks_); in EnsureSortedChunks()
224 Header *const *chunks = AddressSpaceView::Load(chunks_, n_chunks_); in GetBlockBeginFastLocked()
282 const Header *const *chunks = AddressSpaceView::Load(chunks_, n_chunks_); in ForEachChunk()
[all …]
/external/perfetto/src/protozero/test/
Dfake_scattered_buffer.cc50 chunks_.push_back(std::move(chunk)); in GetNewBuffer()
55 return ToHex(chunks_[chunk_index].get(), chunk_size_); in GetChunkAsString()
59 ASSERT_LE(start + length, chunks_.size() * chunk_size_); in GetBytes()
63 buf[pos] = chunks_[chunk_index].get()[chunk_offset]; in GetBytes()
Dfake_scattered_buffer.h44 return chunks_; in chunks()
49 std::vector<std::unique_ptr<uint8_t[]>> chunks_; variable
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dsdes.cc143 chunks_ = std::move(chunks); in Parse()
150 if (chunks_.size() >= kMaxNumberOfChunks) { in AddCName()
157 chunks_.push_back(chunk); in AddCName()
175 CreateHeader(chunks_.size(), kPacketType, HeaderLength(), packet, index); in Create()
177 for (const Sdes::Chunk& chunk : chunks_) { in Create()
Dsdes.h40 const std::vector<Chunk>& chunks() const { return chunks_; } in chunks()
50 std::vector<Chunk> chunks_;
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator.h1080 chunks_[idx] = h; in Allocate()
1106 CHECK_EQ(chunks_[idx], h); in Deallocate()
1108 chunks_[idx] = chunks_[n_chunks_ - 1]; in Deallocate()
1109 chunks_[idx]->chunk_idx = idx; in Deallocate()
1125 Header *h = chunks_[i]; in TotalMemoryUsed()
1156 uptr ch = reinterpret_cast<uptr>(chunks_[i]); in GetBlockBegin()
1181 SortArray(reinterpret_cast<uptr*>(chunks_), n); in GetBlockBeginFastLocked()
1183 chunks_[i]->chunk_idx = i; in GetBlockBeginFastLocked()
1185 min_mmap_ = reinterpret_cast<uptr>(chunks_[0]); in GetBlockBeginFastLocked()
1186 max_mmap_ = reinterpret_cast<uptr>(chunks_[n - 1]) + in GetBlockBeginFastLocked()
[all …]
/external/tensorflow/tensorflow/compiler/xla/python/
Dpmap_lib.h64 explicit Chunked(std::vector<int> chunks_) : chunks(std::move(chunks_)) {} in Chunked()
/external/tensorflow/tensorflow/core/common_runtime/
Dbfc_allocator.cc96 DCHECK_LT(h, static_cast<int>(chunks_.size())); in ChunkFromHandle()
97 return &(chunks_[h]); in ChunkFromHandle()
102 DCHECK_LT(h, static_cast<int>(chunks_.size())); in ChunkFromHandle()
103 return &(chunks_[h]); in ChunkFromHandle()
212 ChunkHandle h = chunks_.size(); in AllocateChunk()
213 chunks_.resize(h + 1); in AllocateChunk()
Dbfc_allocator.h595 std::vector<Chunk> chunks_ TF_GUARDED_BY(lock_);
/external/webp/src/demux/
Ddemux.c72 Chunk* chunks_; // non-image chunks member
663 dmux->chunks_tail_ = &dmux->chunks_; in InitDemux()
771 for (c = dmux->chunks_; c != NULL;) { in WebPDemuxDelete()
899 for (c = dmux->chunks_; c != NULL; c = c->next_) { in ChunkCount()
911 for (c = dmux->chunks_; c != NULL; c = c->next_) { in GetChunk()
/external/tensorflow/tensorflow/compiler/xla/service/
Dmemory_space_assignment.h44 chunks_.emplace_back(position, chunk); in add_chunk()
59 return chunks_; in chunks()
72 std::vector<std::pair<HloPosition, HeapSimulator::Chunk>> chunks_;
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc494 : chunks_(chunks), in ColdChunkSkipper()
513 return has_bit_indices_[chunks_[chunk][offset]->index()] / 32; in HasbitWord()
516 const std::vector<std::vector<const FieldDescriptor*>>& chunks_; member in google::protobuf::compiler::cpp::__anonc4eebc720111::ColdChunkSkipper
551 while (limit_chunk_ < chunks_.size() && IsColdChunk(limit_chunk_)) { in OnStartChunk()
569 for (auto field : chunks_[chunk]) { in OnStartChunk()
/external/libabigail/tests/data/test-annotate/
Dtest15-pr18892.so.abi4452 …pUnmap>::Header* __sanitizer::LargeMmapAllocator<__sanitizer::CrashOnMapUnmap>::chunks_[262144] -->
4453 …<var-decl name='chunks_' type-id='type-id-111' visibility='default' filepath='../../.././libsaniti…
32146 …pUnmap>::Header* __sanitizer::LargeMmapAllocator<__sanitizer::CrashOnMapUnmap>::chunks_[262144] -->
32147 …<var-decl name='chunks_' type-id='type-id-111' visibility='default' filepath='../../.././libsaniti…
32246 …apCallback>::Header* __sanitizer::LargeMmapAllocator<__tsan::MapUnmapCallback>::chunks_[262144] -->
32247 …<var-decl name='chunks_' type-id='type-id-1596' visibility='default' filepath='../../.././libsanit…
/external/libabigail/tests/data/test-read-dwarf/
Dtest15-pr18892.so.abi2437 …<var-decl name='chunks_' type-id='type-id-111' visibility='default' filepath='../../.././libsaniti…
19068 …<var-decl name='chunks_' type-id='type-id-111' visibility='default' filepath='../../.././libsaniti…
19143 …<var-decl name='chunks_' type-id='type-id-1596' visibility='default' filepath='../../.././libsanit…