Searched refs:buffer_size_ (Results 1 – 6 of 6) sorted by relevance
/system/keymaster/android_keymaster/ |
D | serializable.cpp | 77 size_t new_size = buffer_size_ + size - available_write(); in reserve() 81 memset_s(buffer_.get(), 0, buffer_size_); in reserve() 83 buffer_size_ = new_size; in reserve() 94 buffer_size_ = size; in Reinitialize() 106 buffer_size_ = data_len; in Reinitialize() 109 write_position_ = buffer_size_; in Reinitialize() 114 assert(buffer_size_ >= write_position_); in available_write() 115 return buffer_size_ - write_position_; in available_write() 119 assert(buffer_size_ >= write_position_); in available_read() 148 if (!copy_size_and_data_from_buf(buf_ptr, end, &buffer_size_, &buffer_)) { in Deserialize() [all …]
|
/system/keymaster/include/keymaster/ |
D | serializable.h | 200 Buffer() : buffer_(nullptr), buffer_size_(0), read_position_(0), write_position_(0) {} in Buffer() 211 buffer_size_ = other.buffer_size_; 212 other.buffer_size_ = 0; 240 size_t buffer_size() const { return buffer_size_; } in buffer_size() 254 if (static_cast<size_t>(write_position_ + distance) <= buffer_size_) { in advance_write() 267 size_t buffer_size_; variable
|
/system/extras/simpleperf/ |
D | RecordReadThread.cpp | 36 : read_head_(0), write_head_(0), buffer_size_(buffer_size), buffer_(new char[buffer_size]) {} in RecordBuffer() 41 size_t write_tail = read_head > 0 ? read_head - 1 : buffer_size_ - 1; in GetFreeSize() 45 return buffer_size_ - write_head + write_tail; in GetFreeSize() 51 size_t write_tail = read_head > 0 ? read_head - 1 : buffer_size_ - 1; in AllocWriteSpace() 57 } else if (write_head + record_size > buffer_size_) { in AllocWriteSpace() 62 if (buffer_size_ - write_head >= sizeof(perf_event_header)) { in AllocWriteSpace() 67 cur_write_record_size_ += buffer_size_ - write_head; in AllocWriteSpace() 75 write_head = (write_head + cur_write_record_size_) % buffer_size_; in FinishWrite() 87 if (buffer_size_ - read_head < sizeof(header) || in GetCurrentRecord() 90 cur_read_record_size_ += buffer_size_ - read_head; in GetCurrentRecord() [all …]
|
D | RecordReadThread.h | 42 size_t size() const { return buffer_size_; } in size() 62 const size_t buffer_size_; variable
|
/system/core/fs_mgr/libsnapshot/ |
D | snapuserd.h | 95 void Clear() { memset(GetBufPtr(), 0, buffer_size_); } in Clear() 107 size_t buffer_size_; variable
|
D | snapuserd_worker.cpp | 36 buffer_size_ = size; in Initialize() 42 if ((buffer_size_ - buffer_offset_) < size) return nullptr; in GetPayloadBuffer() 60 if (!(sizeof(struct dm_user_header) <= buffer_size_)) { in GetHeaderPtr()
|