Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 25 of 47) sorted by relevance

12

/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dcow_decompress.cpp34 ssize_t IByteStream::ReadFully(void* buffer, size_t buffer_size) { in ReadFully() argument
39 size_t buffer_remaining = buffer_size; in ReadFully()
76 ssize_t Decompress(void* buffer, size_t buffer_size, size_t decompressed_size,
93 ssize_t StreamDecompressor::Decompress(void* buffer, size_t buffer_size, size_t, in Decompress() argument
101 output_buffer_remaining_ = buffer_size; in Decompress()
137 return buffer_size - output_buffer_remaining_; in Decompress()
281 ssize_t Decompress(void* buffer, size_t buffer_size, size_t decompressed_size, in Decompress() argument
291 size_t decode_buffer_size = buffer_size; in Decompress()
296 if (buffer_size < decompressed_size) { in Decompress()
331 size_t max_copy = std::min(bytes_decompressed - ignore_bytes, buffer_size); in Decompress()
[all …]
Dsnapshot_reader.cpp149 size_t buffer_size) { in ReadBlock() argument
150 size_t bytes_to_read = std::min(static_cast<size_t>(block_size_), buffer_size); in ReadBlock()
186 size_t buffer_size = CowOpCompressionSize(op, block_size_); in ReadBlock() local
187 uint8_t temp_buffer[buffer_size]; in ReadBlock()
188 if (cow_->ReadData(op, temp_buffer, buffer_size, 0) < buffer_size) { in ReadBlock()
190 << buffer_size << "start_offset: " << start_offset; in ReadBlock()
Dparser_v2.cpp69 if (header_.prefix.major_version >= 2 && (header_.buffer_size > 0)) { in ParseOps()
70 LOG(DEBUG) << " Scratch space found of size: " << header_.buffer_size; in ParseOps()
71 size_t init_offset = header_.prefix.header_size + header_.buffer_size; in ParseOps()
84 header_.buffer_size = 0; in ParseOps()
Dcow_decompress.h61 virtual ssize_t Decompress(void* buffer, size_t buffer_size, size_t decompressed_size,
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dsnapuserd_core.cpp257 if (header.prefix.major_version >= 2 && header.buffer_size > 0) { in MmapMetadata()
382 size_t buffer_size = header.buffer_size; in GetBufferMetadataSize() local
386 if (buffer_size == 0) { in GetBufferMetadataSize()
387 buffer_size = BUFFER_REGION_DEFAULT_SIZE; in GetBufferMetadataSize()
390 return ((buffer_size * sizeof(struct ScratchMetadata)) / BLOCK_SZ); in GetBufferMetadataSize()
404 size_t buffer_size = header.buffer_size; in GetBufferDataSize() local
408 if (buffer_size == 0) { in GetBufferDataSize()
409 buffer_size = BUFFER_REGION_DEFAULT_SIZE; in GetBufferDataSize()
412 return (buffer_size - GetBufferMetadataSize()); in GetBufferDataSize()
Dread_worker.cpp51 bool ReadWorker::ProcessReplaceOp(const CowOperation* cow_op, void* buffer, size_t buffer_size) { in ProcessReplaceOp() argument
52 if (!reader_->ReadData(cow_op, buffer, buffer_size)) { in ProcessReplaceOp()
54 << " buffer_size: " << buffer_size; in ProcessReplaceOp()
187 size_t buffer_size = CowOpCompressionSize(cow_op, BLOCK_SZ); in ProcessCowOp() local
188 uint8_t chunk[buffer_size]; in ProcessCowOp()
189 if (!ProcessReplaceOp(cow_op, chunk, buffer_size)) { in ProcessCowOp()
469 size_t buffer_size = CowOpCompressionSize(cow_op, BLOCK_SZ); in ReadUnalignedSector() local
470 uint8_t chunk[buffer_size]; in ReadUnalignedSector()
472 if (!ProcessReplaceOp(cow_op, chunk, buffer_size)) { in ReadUnalignedSector()
476 size_t write_sz = std::min(size, buffer_size - skip_offset); in ReadUnalignedSector()
/system/media/audio_utils/include/audio_utils/
Dclock.h54 static inline void audio_utils_ns_to_string(int64_t ns, char *buffer, size_t buffer_size) in audio_utils_ns_to_string() argument
56 if (buffer_size == 0) return; in audio_utils_ns_to_string()
68 if (snprintf(buffer, buffer_size, "%02d-%02d %02d:%02d:%02d.%03d", in audio_utils_ns_to_string()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action.cc226 const size_t buffer_size) { in WriteVerityData() argument
237 HashPartition(0, partition_size_, buffer, buffer_size); in WriteVerityData()
252 buffer_size))); in WriteVerityData()
259 const size_t buffer_size) { in WriteVerityAndHashPartition() argument
266 WriteVerityData(fd, buffer, buffer_size); in WriteVerityAndHashPartition()
276 std::min<size_t>(buffer_size, end_offset - start_offset); in WriteVerityAndHashPartition()
299 buffer_size))); in WriteVerityAndHashPartition()
305 const size_t buffer_size) { in HashPartition() argument
322 std::min<size_t>(buffer_size, end_offset - start_offset); in HashPartition()
353 buffer_size))); in HashPartition()
Dfilesystem_verifier_action.h92 const size_t buffer_size);
96 const size_t buffer_size);
100 const size_t buffer_size);
/system/core/fs_mgr/libsnapshot/snapuserd/
Ddm_user_block_server.cpp28 Delegate* delegate, size_t buffer_size) in DmUserBlockServer() argument
30 buffer_.Initialize(buffer_size); in DmUserBlockServer()
136 size_t buffer_size) { in Open() argument
142 return std::make_unique<DmUserBlockServer>(misc_name_, std::move(fd), delegate, buffer_size); in Open()
/system/core/fs_mgr/libsnapshot/snapuserd/include/snapuserd/
Ddm_user_block_server.h30 Delegate* delegate, size_t buffer_size);
55 size_t buffer_size) override;
Dblock_server.h83 size_t buffer_size) = 0;
/system/nfc/utils/test/ringbuffer_fuzzer/
Dringbuffer_fuzzer.cpp17 uint16_t buffer_size = *((const uint16_t*)Data); in LLVMFuzzerTestOneInput() local
18 ringbuffer_t* buffer = ringbuffer_init(buffer_size); in LLVMFuzzerTestOneInput()
/system/teeui/test/
Dteeui_device_config.cpp85 uint32_t buffer_size = h * linestride; in runRenderTest() local
86 std::vector<uint32_t> buffer(buffer_size); in runRenderTest()
91 sCurrentExample->renderUIIntoBuffer(0, 0, w, h, linestride, buffer.data(), buffer_size); in runRenderTest()
/system/libhwbinder/include/hwbinder/
DParcel.h163 status_t readBuffer(size_t buffer_size, size_t *buffer_handle,
165 status_t readNullableBuffer(size_t buffer_size, size_t *buffer_handle,
167 status_t readEmbeddedBuffer(size_t buffer_size, size_t *buffer_handle,
170 status_t readNullableEmbeddedBuffer(size_t buffer_size,
210 status_t readBuffer(size_t buffer_size, size_t *buffer_handle,
/system/core/trusty/utils/acvp/
Dacvp_ipc.h60 uint32_t buffer_size; member
/system/extras/simpleperf/
Devent_fd.h77 char* GetMappedBuffer(size_t& buffer_size) { in GetMappedBuffer() argument
78 buffer_size = mmap_data_buffer_size_; in GetMappedBuffer()
DRecordReadThread.cpp35 RecordBuffer::RecordBuffer(size_t buffer_size) in RecordBuffer() argument
36 : read_head_(0), write_head_(0), buffer_size_(buffer_size), buffer_(new char[buffer_size]) {} in RecordBuffer()
184 size_t buffer_size; in KernelRecordReader() local
185 buffer_ = event_fd_->GetMappedBuffer(buffer_size); in KernelRecordReader()
186 buffer_mask_ = buffer_size - 1; in KernelRecordReader()
/system/libprocinfo/include/procinfo/
Dprocess_map.h284 inline bool ReadMapFileAsyncSafe(const char* map_file, void* buffer, size_t buffer_size, in ReadMapFileAsyncSafe() argument
286 if (buffer == nullptr || buffer_size == 0) { in ReadMapFileAsyncSafe()
302 TEMP_FAILURE_RETRY(read(fd, char_buffer + read_bytes, buffer_size - read_bytes - 1)); in ReadMapFileAsyncSafe()
334 if (start == 0 && read_bytes == buffer_size - 1) { in ReadMapFileAsyncSafe()
/system/dmesgd/
Ddmesgd.cpp99 size_t buffer_size = 0; in ProcessDmesg() local
100 while (getline(&buffer, &buffer_size, pipe.get()) != -1) { in ProcessDmesg()
/system/libbase/
Dfile.cpp547 static int _basename_r(const char* path, size_t path_size, char* buffer, size_t buffer_size) { in _basename_r() argument
586 if (len > static_cast<int>(buffer_size) - 1) { in _basename_r()
587 len = buffer_size - 1; in _basename_r()
632 static int _dirname_r(const char* path, size_t path_size, char* buffer, size_t buffer_size) { in _dirname_r() argument
678 if (len > static_cast<int>(buffer_size) - 1) { in _dirname_r()
679 len = buffer_size - 1; in _dirname_r()
/system/core/trusty/keymaster/ipc/
Dtrusty_keymaster_ipc.cpp155 size_t buffer_size = 0; in trusty_keymaster_call_2() local
157 reinterpret_cast<uintptr_t>(write_pos), &buffer_size)) { in trusty_keymaster_call_2()
160 iov[1] = {.iov_base = write_pos, .iov_len = buffer_size}; in trusty_keymaster_call_2()
/system/extras/sound/
Dplaywav.c25 uint32_t buffer_size; member
67 sz = config.buffer_size; in pcm_play()
249 sz = cfg.buffer_size; in wav_rec()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_reader.h74 virtual ssize_t ReadData(const CowOperation* op, void* buffer, size_t buffer_size,
144 ssize_t ReadData(const CowOperation* op, void* buffer, size_t buffer_size,
/system/logging/logd/
DSerializedLogBuffer.cpp222 size_t buffer_size = it_to_prune->PruneSize(); in Prune() local
225 if (buffer_size >= bytes_to_free) { in Prune()
228 bytes_to_free -= buffer_size; in Prune()

12