/system/nvram/messages/include/nvram/messages/ |
D | vector.h | 40 for (size_t i = 0; i < size_; ++i) { in ~Vector() 45 size_ = 0; in ~Vector() 64 size_t tmp_size = first.size_; in swap() 66 first.size_ = second.size_; in swap() 68 second.size_ = tmp_size; in swap() 72 NVRAM_CHECK(pos < size_); 76 NVRAM_CHECK(pos < size_); 81 ElementType* end() { return data_ + size_; } in end() 84 const ElementType* end() const { return data_ + size_; } in end() 86 size_t size() const { return size_; } in size() [all …]
|
D | blob.h | 50 size_t size() const { return size_; } in size() 69 size_t size_ = 0; variable
|
/system/logging/logd/ |
D | SerializedData.h | 30 SerializedData(size_t size) : data_(new uint8_t[size]), size_(size) {} in SerializedData() 33 if (size_ == 0) { in Resize() 35 size_ = new_size; in Resize() 38 size_ = 0; in Resize() 39 } else if (new_size != size_) { in Resize() 41 size_t copy_size = std::min(size_, new_size); in Resize() 44 size_ = new_size; in Resize() 50 size_t size() const { return size_; } in size() 54 size_t size_ = 0; variable
|
D | LogStatistics.h | 190 EntryBase() : size_(0) {} in EntryBase() 191 explicit EntryBase(const LogStatisticsElement& element) : size_(element.total_len) {} in EntryBase() 193 size_t getSizes() const { return size_; } in getSizes() 195 void Add(const LogStatisticsElement& element) { size_ += element.total_len; } in Add() 197 size_ -= element.total_len; in Subtract() 198 return size_ == 0; in Subtract() 200 void Drop(const LogStatisticsElement& element) { size_ -= element.msg_len; } in Drop() 201 void Erase(const LogStatisticsElement& element) { size_ -= element.total_len; } in Erase() 224 size_t size_;
|
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | snapuserd_test.cpp | 83 size_t size_ = 10_MiB; member in android::snapshot::SnapuserdTestBase 107 total_base_size_ = (size_ * 5); in CreateBaseDevice() 170 std::unique_ptr<uint8_t[]> random_buffer_1_ = std::make_unique<uint8_t[]>(size_); in CreateCowDevice() 173 for (size_t j = 0; j < (size_ / 1_MiB); j++) { in CreateCowDevice() 180 size_t num_blocks = size_ / writer->GetBlockSize(); in CreateCowDevice() 210 ASSERT_TRUE(writer->AddRawBlocks(source_blk, random_buffer_1_.get(), size_)); in CreateCowDevice() 219 ASSERT_TRUE(writer->AddRawBlocks(blk_random2_replace_start, random_buffer_1_.get(), size_)); in CreateCowDevice() 223 ASSERT_TRUE(writer->AddXorBlocks(blk_xor_start, random_buffer_1_.get(), size_, num_blocks, in CreateCowDevice() 230 std::string zero_buffer(size_, 0); in CreateCowDevice() 231 ASSERT_EQ(android::base::ReadFullyAtOffset(base_fd_, orig_buffer_.get(), size_, size_), true); in CreateCowDevice() [all …]
|
/system/update_engine/liburing_cpp/include/liburing_cpp/ |
D | BufferView.h | 28 constexpr BufferView(T* data, size_t size) : ptr_(data), size_(size) {} in BufferView() 31 size_t size() const { return size_; } in size() 33 T* end() { return ptr_ + size_; } in end() 34 bool empty() const { return size_ == 0; } in empty() 37 assert(idx < size_); 41 assert(idx < size_); 47 size_t size_{};
|
/system/nvram/messages/ |
D | blob.cpp | 31 size_ = 0; in ~Blob() 47 size_t size_tmp = first.size_; in swap() 49 first.size_ = second.size_; in swap() 51 second.size_ = size_tmp; in swap() 58 size_ = 0; in Assign() 62 size_ = size; in Assign() 73 size_ = size; in Resize()
|
/system/memory/libmemunreachable/ |
D | PtracerThread.cpp | 42 explicit Stack(size_t size) : size_(size) { in Stack() 47 size_ = (size_ + (page_size_ - 1)) & ~(page_size_ - 1); in Stack() 48 size_ += page_size_ * 2; // guard pages in Stack() 49 base_ = mmap(NULL, size_, prot, flags, -1, 0); in Stack() 52 size_ = 0; in Stack() 55 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, base_, size_, "libmemunreachable stack"); in Stack() 59 ~Stack() { munmap(base_, size_); }; in ~Stack() 61 return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(base_) + size_ - page_size_); in top() 68 size_t size_; member in android::Stack
|
/system/teeui/libteeui/include/teeui/ |
D | static_vec.h | 43 size_t size_; variable 46 static_vec() : data_(nullptr), size_(0) {} in static_vec() 47 static_vec(T* begin, T* end) : data_(begin), size_(end - begin) {} in static_vec() 48 template <size_t s> static_vec(T (&arr)[s]) : data_(&arr[0]), size_(s) {} in static_vec() 56 size_t size() const { return size_; } in size() 59 T* end() { return data_ + size_; } in end() 61 const T* end() const { return data_ + size_; } in end()
|
D | label.h | 32 size_t size_; variable 35 constexpr FontBuffer() : data_(nullptr), size_(0) {} in FontBuffer() 36 constexpr FontBuffer(const uint8_t* data, size_t size) noexcept : data_(data), size_(size) {} in FontBuffer() 39 : data_(&data[0]), size_(size) {} in FontBuffer() 48 size_t size() const { return size_; } in size() 60 size_t size_; member 63 info_t* end() { return &info_[size_]; } in end() 65 const info_t* end() const { return &info_[size_]; } in end()
|
D | cbor.h | 75 size_t size_; 76 StringBuffer(const T* data, size_t size) : data_(data), size_(size) { 80 size_t size() const { return size_; } 167 WriteState() : data_(nullptr), size_(0), error_(Error::OK) {} 168 WriteState(uint8_t* buffer, size_t size) : data_(buffer), size_(size), error_(Error::OK) {} 170 : data_(buffer), size_(size), error_(error) {} 172 WriteState(uint8_t (&buffer)[size]) : data_(buffer), size_(size), error_(Error::OK) {} 175 if (size_) { 177 --size_; 184 if (offset > size_) { [all …]
|
/system/gsid/ |
D | partition_installer.cpp | 52 size_(size), in PartitionInstaller() 115 if (size_ < 0) { in PerformSanityChecks() 116 LOG(ERROR) << "image size " << size_ << " is negative"; in PerformSanityChecks() 133 if (free_space <= (size_)) { in PerformSanityChecks() 142 if (free_space < size_ + *free_space_threshold) { in PerformSanityChecks() 143 LOG(ERROR) << "post-installation free space (" << free_space << " - " << size_ in PerformSanityChecks() 164 service_->StartAsyncOperation("create " + name_, size_); in Preallocate() 165 if (!CreateImage(file, size_)) { in Preallocate() 191 service_->StartAsyncOperation("write " + name_, size_); in CommitGsiChunk() 222 int new_progress = ((size_ - remaining) * 1000) / size_; in CommitGsiChunk() [all …]
|
/system/libbase/ |
D | mapped_file.cpp | 90 size_(std::exchange(other.size_, 0)), in MappedFile() 102 size_ = std::exchange(other.size_, 0); in operator =() 116 if (base_ != nullptr && size_ != 0) UnmapViewOfFile(base_); in Close() 120 if (base_ != nullptr && size_ != 0) munmap(base_, size_ + offset_); in Close() 124 offset_ = size_ = 0; in Close()
|
/system/libbase/include/android-base/ |
D | mapped_file.h | 71 size_t size() const { return size_; } in size() 79 size_t size_; variable 85 : base_(base), size_(size), offset_(offset), handle_(handle) {} in MappedFile() 88 MappedFile(char* base, size_t size, size_t offset) : base_(base), size_(size), offset_(offset) {} in MappedFile()
|
/system/update_engine/payload_consumer/ |
D | fake_file_descriptor.cc | 26 if (offset_ >= static_cast<uint64_t>(size_) || count == 0) in Read() 30 uint64_t first_failure = size_; in Read() 64 if (offset > size_) in Seek() 67 offset_ = size_ - offset_; in Seek()
|
D | fake_file_descriptor.h | 63 uint64_t BlockDevSize() override { return size_; } in BlockDevSize() 88 void SetFileSize(uint64_t size) { size_ = size; } in SetFileSize() 112 off64_t size_{std::numeric_limits<off64_t>::max()};
|
D | install_operation_executor.cc | 87 *size = size_; in GetSize() 97 size_(size), in BsdiffExtentFile() 102 uint64_t size_; member in chromeos_update_engine::BsdiffExtentFile 122 *size = size_; in GetSize() 165 size_(size), in PuffinExtentStream() 171 uint64_t size_; member in chromeos_update_engine::PuffinExtentStream
|
/system/unwinding/libunwindstack/ |
D | MemoryFileAtOffset.h | 32 uint8_t* GetPtr(size_t addr = 0) override { return addr < size_ ? data_ + addr : nullptr; } 36 size_t Size() { return size_; } in Size() 41 size_t size_ = 0;
|
D | MemoryXz.cpp | 71 std::unique_ptr<uint8_t[]> data(new uint8_t[size_]); in Init() 83 .decompressed_size = size_, in Init() 94 total_size_ -= size_; in ~MemoryXz() 99 if (addr >= size_) { in Read() 211 size_ = dst_offset; in ReadBlocks() 262 100 * used_ / size_, size_ / 1024, name_.c_str()); in Decompress()
|
D | MemoryXz.h | 33 size_t Size() { return size_; } in Size() 63 uint32_t size_ = 0; // Decompressed size of all blocks. variable
|
D | Memory.cpp | 268 munmap(&data_[-offset_], size_ + offset_); in Clear() 296 size_ = buf.st_size - aligned_offset; in Init() 298 if (!__builtin_add_overflow(size, offset_, &max_size) && max_size < size_) { in Init() 300 size_ = max_size; in Init() 302 void* map = mmap(nullptr, size_, PROT_READ, MAP_PRIVATE, fd, aligned_offset); in Init() 308 size_ -= offset_; in Init() 314 if (addr >= size_) { in Read() 318 size_t bytes_left = size_ - static_cast<size_t>(addr); in Read()
|
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/ |
D | dmabufinfo.h | 34 : inode_(inode), size_(size), count_(count), exporter_(exporter), name_(name) { in DmaBuffer() 53 uint64_t size() const { return size_; } in size() 65 uint64_t Pss() const { return size_ / pids_.size(); } in Pss() 68 return (inode_ == rhs.inode()) && (size_ == rhs.size()) && (name_ == rhs.name()) && 74 uint64_t size_; member
|
/system/keymaster/include/keymaster/ |
D | mem.h | 125 explicit Eraser(T& t) : buf_(reinterpret_cast<uint8_t*>(&t)), size_(sizeof(t)) {} in Eraser() 127 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser() 129 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {} in Eraser() 130 ~Eraser() { memset_s(buf_, 0, size_); } in ~Eraser() 137 size_t size_; variable
|
/system/update_engine/payload_generator/ |
D | full_update_generator.cc | 59 size_(size), in ChunkProcessor() 80 size_t size_; member in chromeos_update_engine::__anonfb5e7ce80111::ChunkProcessor 90 << size_; in Run() 95 brillo::Blob buffer_in_(size_); in ProcessChunk() 100 TEST_AND_RETURN_FALSE(bytes_read == static_cast<ssize_t>(size_)); in ProcessChunk()
|
D | squashfs_filesystem.h | 106 size_t size_{};
|