/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/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/extras/memory_replay/ |
D | Action.cpp | 54 size_t size_ = 0; member in AllocAction 60 if (sscanf(line, "%zu", &size_) != 1) { in MallocAction() 67 void* memory = malloc(size_); in Execute() 70 memset(memory, 1, size_); in Execute() 80 if (sscanf(line, "%zu %zu", &n_elements_, &size_) != 2) { in CallocAction() 87 void* memory = calloc(n_elements_, size_); in Execute() 90 memset(memory, 0, n_elements_ * size_); in Execute() 103 if (sscanf(line, "%" SCNxPTR " %zu", &old_pointer_, &size_) != 2) { in ReallocAction() 117 void* memory = realloc(old_memory, size_); in Execute() 120 memset(memory, 1, size_); in Execute() [all …]
|
/system/core/libmemunreachable/ |
D | PtracerThread.cpp | 42 explicit Stack(size_t size) : size_(size) { in Stack() 46 size_ += page_size_ * 2; // guard pages in Stack() 47 base_ = mmap(NULL, size_, prot, flags, -1, 0); in Stack() 50 size_ = 0; in Stack() 53 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, base_, size_, "libmemunreachable stack"); in Stack() 57 ~Stack() { munmap(base_, size_); }; in ~Stack() 59 return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(base_) + size_ - page_size_); in top() 66 size_t size_; member in android::Stack
|
/system/core/base/include/android-base/ |
D | mapped_file.h | 55 size_t size() { return size_; } in size() 61 size_t size_; variable 67 : base_(base), size_(size), offset_(offset), handle_(handle) {} in MappedFile() 70 MappedFile(char* base, size_t size, size_t offset) : base_(base), size_(size), offset_(offset) {} in MappedFile()
|
/system/core/adb/ |
D | types.h | 47 std::swap(size_, move.size_); in Block() 56 std::swap(size_, move.size_); 68 size_ = new_size; in resize() 82 size_ = 0; in clear() 86 size_t size() const { return size_; } in size() 95 char* end() { return data() + size_; } in end() 96 const char* end() const { return data() + size_; } in end() 109 CHECK_EQ(0ULL, size_); in allocate() 116 size_ = size; in allocate() 122 size_t size_ = 0; member
|
/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 | delta_performer.cc | 1400 *size = size_; in GetSize() 1410 size_(size), in BsdiffExtentFile() 1415 uint64_t size_; member in chromeos_update_engine::__anon4d4a53960311::BsdiffExtentFile 1476 *size = size_; in GetSize() 1519 size_(size), in PuffinExtentStream() 1525 uint64_t size_; member in chromeos_update_engine::__anon4d4a53960411::PuffinExtentStream
|
/system/core/libmeminfo/libdmabufinfo/include/dmabufinfo/ |
D | dmabufinfo.h | 33 : inode_(inode), size_(size), count_(count), exporter_(exporter), name_(name) { in DmaBuffer() 51 uint64_t size() const { return size_; } in size() 64 return (inode_ == rhs.inode()) && (size_ == rhs.size()) && (name_ == rhs.name()) && 70 uint64_t size_; member
|
/system/update_engine/payload_generator/ |
D | full_update_generator.cc | 59 size_(size), in ChunkProcessor() 80 size_t size_; member in chromeos_update_engine::__anoneb7017110111::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 | 111 size_t size_; variable
|
D | squashfs_filesystem.cc | 98 size_ = size; in Init() 187 vector<Extent> full = {ExtentForBytes(kBlockSize, 0, size_)}; in Init() 305 return size_ / kBlockSize; in GetBlockCount()
|
/system/core/libunwindstack/ |
D | Memory.cpp | 211 munmap(&data_[-offset_], size_ + offset_); in Clear() 239 size_ = buf.st_size - aligned_offset; in Init() 241 if (!__builtin_add_overflow(size, offset_, &max_size) && max_size < size_) { in Init() 243 size_ = max_size; in Init() 245 void* map = mmap(nullptr, size_, PROT_READ, MAP_PRIVATE, fd, aligned_offset); in Init() 251 size_ -= offset_; in Init() 257 if (addr >= size_) { in Read() 261 size_t bytes_left = size_ - static_cast<size_t>(addr); in Read()
|
/system/core/base/ |
D | mapped_file.cpp | 79 if (base_ != nullptr) munmap(base_, size_ + offset_); in ~MappedFile() 83 offset_ = size_ = 0; in ~MappedFile()
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 170 explicit Eraser(T& t) : buf_(reinterpret_cast<uint8_t*>(&t)), size_(sizeof(t)) {} in Eraser() 172 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser() 174 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {} in Eraser() 175 ~Eraser() { memset_s(buf_, 0, size_); } in ~Eraser() 182 size_t size_; variable
|
/system/core/libunwindstack/include/unwindstack/ |
D | Memory.h | 102 size_t Size() { return size_; } in Size() 107 size_t size_ = 0;
|
/system/core/fs_mgr/liblp/ |
D | reader.cpp | 54 : buffer_(reinterpret_cast<const uint8_t*>(buffer)), size_(size), pos_(0) {} in MemoryReader() 56 if (size_ - pos_ < length) { in ReadFully() 67 size_t size_; member in android::fs_mgr::MemoryReader
|
D | builder.cpp | 54 : name_(name), group_name_(group_name), attributes_(attributes), size_(0) {} in Partition() 57 size_ += extent->num_sectors() * LP_SECTOR_SIZE; in AddExtent() 77 size_ = 0; in RemoveExtents() 89 uint64_t sectors_to_remove = (size_ - aligned_size) / LP_SECTOR_SIZE; in ShrinkTo() 93 size_ -= sectors_to_remove * LP_SECTOR_SIZE; in ShrinkTo() 97 size_ -= (extent->num_sectors() * LP_SECTOR_SIZE); in ShrinkTo() 101 DCHECK(size_ == aligned_size); in ShrinkTo()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | builder.h | 123 uint64_t size() const { return size_; } in size() 133 uint64_t size_; variable
|
/system/core/libziparchive/ |
D | zip_archive.cc | 813 MemoryWriter(uint8_t* buf, size_t size) : Writer(), buf_(buf), size_(size), bytes_written_(0) {} in MemoryWriter() 816 if (bytes_written_ + buf_size > size_) { in Append() 817 ALOGW("Zip: Unexpected size %zu (declared) vs %zu (actual)", size_, in Append() 829 const size_t size_; member in MemoryWriter
|