Searched refs:size_ (Results 1 – 5 of 5) sorted by relevance
/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 | 40 Stack(size_t size) : size_(size) { in Stack() 44 size_ += page_size_*2; // guard pages in Stack() 45 base_ = mmap(NULL, size_, prot, flags, -1, 0); in Stack() 48 size_ = 0; in Stack() 51 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, base_, size_, "libmemunreachable stack"); in Stack() 56 munmap(base_, size_); in ~Stack() 59 return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(base_) + size_ - page_size_); in top() 65 size_t size_; member in Stack
|
/system/update_engine/payload_generator/ |
D | full_update_generator.cc | 59 size_(size), in ChunkProcessor() 80 size_t size_; member in chromeos_update_engine::__anon951e4b8d0111::ChunkProcessor 90 << size_; in Run() 95 brillo::Blob buffer_in_(size_); in ProcessChunk() 103 TEST_AND_RETURN_FALSE(bytes_read == static_cast<ssize_t>(size_)); in ProcessChunk()
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 147 explicit Eraser(T& t) : buf_(reinterpret_cast<uint8_t*>(&t)), size_(sizeof(t)) {} in Eraser() 149 template <size_t N> explicit Eraser(uint8_t (&arr)[N]) : buf_(arr), size_(N) {} in Eraser() 151 Eraser(void* buf, size_t size) : buf_(static_cast<uint8_t*>(buf)), size_(size) {} in Eraser() 152 ~Eraser() { memset_s(buf_, 0, size_); } in ~Eraser() 159 size_t size_; variable
|
/system/core/libziparchive/ |
D | zip_archive.cc | 774 buf_(buf), size_(size), bytes_written_(0) { in MemoryWriter() 778 if (bytes_written_ + buf_size > size_) { in Append() 780 size_, bytes_written_ + buf_size); in Append() 791 const size_t size_; member in MemoryWriter
|