Home
last modified time | relevance | path

Searched refs:size_ (Results 1 – 22 of 22) sorted by relevance

/system/nvram/messages/include/nvram/messages/
Dvector.h40 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 …]
Dblob.h50 size_t size() const { return size_; } in size()
69 size_t size_ = 0; variable
/system/nvram/messages/
Dblob.cpp31 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/
DAction.cpp54 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/
DPtracerThread.cpp42 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/
Dmapped_file.h55 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/
Dtypes.h47 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/
Dfake_file_descriptor.cc26 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()
Dfake_file_descriptor.h63 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()};
Ddelta_performer.cc1400 *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/
Ddmabufinfo.h33 : 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/
Dfull_update_generator.cc59 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()
Dsquashfs_filesystem.h111 size_t size_; variable
Dsquashfs_filesystem.cc98 size_ = size; in Init()
187 vector<Extent> full = {ExtentForBytes(kBlockSize, 0, size_)}; in Init()
305 return size_ / kBlockSize; in GetBlockCount()
/system/core/libunwindstack/
DMemory.cpp211 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/
Dmapped_file.cpp79 if (base_ != nullptr) munmap(base_, size_ + offset_); in ~MappedFile()
83 offset_ = size_ = 0; in ~MappedFile()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h170 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/
DMemory.h102 size_t Size() { return size_; } in Size()
107 size_t size_ = 0;
/system/core/fs_mgr/liblp/
Dreader.cpp54 : 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
Dbuilder.cpp54 : 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/
Dbuilder.h123 uint64_t size() const { return size_; } in size()
133 uint64_t size_; variable
/system/core/libziparchive/
Dzip_archive.cc813 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