Home
last modified time | relevance | path

Searched refs:buffer_size_ (Results 1 – 6 of 6) sorted by relevance

/system/keymaster/android_keymaster/
Dserializable.cpp76 size_t new_size = buffer_size_ + size - available_write(); in reserve()
80 memset_s(buffer_.get(), 0, buffer_size_); in reserve()
82 buffer_size_ = new_size; in reserve()
93 buffer_size_ = size; in Reinitialize()
105 buffer_size_ = data_len; in Reinitialize()
108 write_position_ = buffer_size_; in Reinitialize()
113 assert(buffer_size_ >= write_position_); in available_write()
114 return buffer_size_ - write_position_; in available_write()
118 assert(buffer_size_ >= write_position_); in available_read()
124 return (buffer_size_ >= write_position_) && (write_position_ >= read_position_); in valid_buffer_state()
[all …]
/system/core/fs_mgr/libsnapshot/snapuserd/
Dsnapuserd_buffer.cpp24 buffer_size_ = size; in Initialize()
30 if ((buffer_size_ - buffer_offset_) < size) return nullptr; in GetPayloadBuffer()
48 if (!(sizeof(struct dm_user_header) <= buffer_size_)) { in GetHeaderPtr()
64 buffer_size_ = size; in Initialize()
74 if (requested > buffer_size_) { in GetBuffer()
75 *actual = buffer_size_; in GetBuffer()
/system/core/fs_mgr/libsnapshot/snapuserd/include/snapuserd/
Dsnapuserd_buffer.h32 void Clear() { memset(GetBufPtr(), 0, buffer_size_); } in Clear()
44 size_t buffer_size_; variable
57 size_t buffer_size_; variable
/system/keymaster/include/keymaster/
Dserializable.h252 Buffer() : buffer_(nullptr), buffer_size_(0), read_position_(0), write_position_(0) {} in Buffer()
263 buffer_size_ = other.buffer_size_;
264 other.buffer_size_ = 0;
292 size_t buffer_size() const { return buffer_size_; } in buffer_size()
307 size_t buffer_size_; variable
/system/extras/simpleperf/
DRecordReadThread.cpp36 : 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 …]
DRecordReadThread.h43 size_t size() const { return buffer_size_; } in size()
44 char* BufferEnd() const { return buffer_.get() + buffer_size_; } in BufferEnd()
64 const size_t buffer_size_; variable