Home
last modified time | relevance | path

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

12

/system/bt/hci/src/
Dhci_inject.cc48 size_t buffer_size; member
157 socket_read(client->socket, client->buffer + client->buffer_size, in read_ready()
158 sizeof(client->buffer) - client->buffer_size); in read_ready()
163 client->buffer_size += ret; in read_ready()
165 while (client->buffer_size > 3) { in read_ready()
171 if (client->buffer_size < frame_len) break; in read_ready()
190 size_t remainder = client->buffer_size - frame_len; in read_ready()
192 client->buffer_size -= frame_len; in read_ready()
/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/bt/audio_hearing_aid_hw/test/
Daudio_hearing_aid_hw_test.cc104 size_t buffer_size = audio_ha_hw_stream_compute_buffer_size( in TEST_F() local
111 EXPECT_EQ(buffer_size, in TEST_F()
142 EXPECT_EQ(buffer_size, expected_buffer_size); in TEST_F()
/system/bt/audio_a2dp_hw/test/
Daudio_a2dp_hw_test.cc104 size_t buffer_size = audio_a2dp_hw_stream_compute_buffer_size( in TEST_F() local
111 EXPECT_EQ(buffer_size, in TEST_F()
142 EXPECT_EQ(buffer_size, expected_buffer_size); in TEST_F()
/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/core/fs_mgr/libsnapshot/
Dcow_decompress.cpp36 size_t buffer_size = stream_remaining; in Decompress() local
37 uint8_t* buffer = reinterpret_cast<uint8_t*>(sink_->GetBuffer(buffer_size, &buffer_size)); in Decompress()
45 size_t bytes_to_read = std::min(buffer_size, stream_remaining); in Decompress()
Dmake_cow_from_ab_ota.cpp523 auto buffer_size = op.data_length(); in ProcessReplace() local
524 auto buffer = std::make_unique<char[]>(buffer_size); in ProcessReplace()
530 if (!android::base::ReadFully(in_fd_, buffer.get(), buffer_size)) { in ProcessReplace()
531 PLOG(ERROR) << "read " << buffer_size << " bytes from offset " << offs << "failed"; in ProcessReplace()
550 auto rv = BZ2_bzBuffToBuffDecompress(tmp.get(), &actual_size, buffer.get(), buffer_size, 0, in ProcessReplace()
561 buffer_size = dst_size; in ProcessReplace()
582 args.in_size = buffer_size; in ProcessReplace()
593 buffer_size = dst_size; in ProcessReplace()
599 if (buffer_size - buffer_pos < extent_size) { in ProcessReplace()
Dcow_writer.cpp97 header_.buffer_size = 0; in SetupHeaders()
170 next_op_pos_ = sizeof(header_) + header_.buffer_size; in InitPos()
195 header_.buffer_size = BUFFER_REGION_DEFAULT_SIZE; in OpenForWrite()
207 std::string data(header_.buffer_size, 0); in OpenForWrite()
208 if (!android::base::WriteFully(fd_, data.data(), header_.buffer_size)) { in OpenForWrite()
219 if (lseek(fd_.get(), sizeof(header_) + header_.buffer_size, SEEK_SET) < 0) { in OpenForWrite()
Dcow_reader.cpp137 if (header_.major_version >= 2 && (header_.buffer_size > 0)) { in ParseOps()
138 LOG(DEBUG) << " Scratch space found of size: " << header_.buffer_size; in ParseOps()
139 size_t init_offset = header_.header_size + header_.buffer_size; in ParseOps()
152 header_.buffer_size = 0; in ParseOps()
/system/update_engine/payload_consumer/
Dfilesystem_verifier_action.cc205 const size_t buffer_size) { in WriteVerityAndHashPartition() argument
223 HashPartition(partition_fd_, 0, partition_size_, buffer, buffer_size); in WriteVerityAndHashPartition()
233 std::min<size_t>(buffer_size, end_offset - start_offset); in WriteVerityAndHashPartition()
257 buffer_size))); in WriteVerityAndHashPartition()
264 const size_t buffer_size) { in HashPartition() argument
279 std::min<size_t>(buffer_size, end_offset - start_offset); in HashPartition()
303 buffer_size))); in HashPartition()
Dfilesystem_verifier_action.h93 const size_t buffer_size);
98 const size_t buffer_size);
/system/teeui/test/
Dteeui_device_config.cpp50 uint32_t buffer_size = h * linestride; in runRenderTest() local
51 std::vector<uint32_t> buffer(buffer_size); in runRenderTest()
56 sCurrentExample->renderUIIntoBuffer(0, 0, w, h, linestride, buffer.data(), buffer_size); in runRenderTest()
/system/bt/gd/rust/hci/src/
Dcontroller.rs63 let buffer_size = assert_success!(hci.send(ReadBufferSizeBuilder {})); in provide_controller() localVariable
64 let acl_buffer_length = buffer_size.get_acl_data_packet_length(); in provide_controller()
65 let mut acl_buffers = buffer_size.get_total_num_acl_data_packets(); in provide_controller()
155 sco_buffer_length: buffer_size.get_synchronous_data_packet_length(), in provide_controller()
156 sco_buffers: buffer_size.get_total_num_synchronous_data_packets(), in provide_controller()
/system/core/trusty/utils/acvp/
Dacvp_ipc.h60 uint32_t buffer_size; member
/system/libprocinfo/include/procinfo/
Dprocess_map.h256 inline bool ReadMapFileAsyncSafe(const char* map_file, void* buffer, size_t buffer_size, in ReadMapFileAsyncSafe() argument
258 if (buffer == nullptr || buffer_size == 0) { in ReadMapFileAsyncSafe()
274 TEMP_FAILURE_RETRY(read(fd, char_buffer + read_bytes, buffer_size - read_bytes - 1)); in ReadMapFileAsyncSafe()
306 if (start == 0 && read_bytes == buffer_size - 1) { in ReadMapFileAsyncSafe()
/system/libhwbinder/include/hwbinder/
DParcel.h165 status_t readBuffer(size_t buffer_size, size_t *buffer_handle,
167 status_t readNullableBuffer(size_t buffer_size, size_t *buffer_handle,
169 status_t readEmbeddedBuffer(size_t buffer_size, size_t *buffer_handle,
172 status_t readNullableEmbeddedBuffer(size_t buffer_size,
212 status_t readBuffer(size_t buffer_size, size_t *buffer_handle,
/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()
171 size_t buffer_size; in KernelRecordReader() local
172 buffer_ = event_fd_->GetMappedBuffer(buffer_size); in KernelRecordReader()
173 buffer_mask_ = buffer_size - 1; in KernelRecordReader()
DRecordReadThread_test.cpp117 MockEventFd(const perf_event_attr& attr, int cpu, char* buffer, size_t buffer_size, in MockEventFd()
121 mmap_data_buffer_size_ = buffer_size; in MockEventFd()
225 size_t buffer_size = AlignToPowerOfTwo(data_size); in CreateFakeEventFds() local
227 buffer.resize(buffer_size); in CreateFakeEventFds()
231 event_fds_[i].reset(new MockEventFd(attr, i, buffers_[i].data(), buffer_size, false)); in CreateFakeEventFds()
/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/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()
/system/bt/include/hardware/
Dbt_hd.h69 uint16_t buffer_size);
/system/bt/bta/include/
Dbta_hd_api.h96 uint16_t buffer_size; member
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_format.h80 uint32_t buffer_size; member
/system/libhwbinder/
DParcel.cpp1358 status_t Parcel::readBuffer(size_t buffer_size, size_t *buffer_handle, in readBuffer() argument
1368 if (!verifyBufferObject(buffer_obj, buffer_size, flags, parent, parentOffset)) { in readBuffer()
1378 status_t Parcel::readNullableBuffer(size_t buffer_size, size_t *buffer_handle, in readNullableBuffer() argument
1381 return readBuffer(buffer_size, buffer_handle, in readNullableBuffer()
1386 status_t Parcel::readBuffer(size_t buffer_size, size_t *buffer_handle, in readBuffer() argument
1389 status_t status = readNullableBuffer(buffer_size, buffer_handle, buffer_out); in readBuffer()
1397 status_t Parcel::readEmbeddedBuffer(size_t buffer_size, in readEmbeddedBuffer() argument
1403 status_t status = readNullableEmbeddedBuffer(buffer_size, buffer_handle, in readEmbeddedBuffer()
1412 status_t Parcel::readNullableEmbeddedBuffer(size_t buffer_size, in readNullableEmbeddedBuffer() argument
1418 return readBuffer(buffer_size, buffer_handle, BINDER_BUFFER_FLAG_HAS_PARENT, in readNullableEmbeddedBuffer()

12