Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 25 of 31) 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/core/libprocinfo/
Dprocess_map.cpp28 bool ReadMapFileAsyncSafe(const char* map_file, void* buffer, size_t buffer_size, in ReadMapFileAsyncSafe() argument
31 if (buffer == nullptr || buffer_size == 0) { in ReadMapFileAsyncSafe()
47 TEMP_FAILURE_RETRY(read(fd, char_buffer + read_bytes, buffer_size - read_bytes - 1)); in ReadMapFileAsyncSafe()
79 if (start == 0 && read_bytes == buffer_size - 1) { in ReadMapFileAsyncSafe()
/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_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/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/teeui/test/
Dteeui_device_config.cpp45 uint32_t buffer_size = h * linestride; in runRenderTest() local
46 std::vector<uint32_t> buffer(buffer_size); in runRenderTest()
47 int error = renderUIIntoBuffer(0, 0, w, h, linestride, buffer.data(), buffer_size); in runRenderTest()
/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/libhwbinder/include/hwbinder/
DParcel.h156 status_t readBuffer(size_t buffer_size, size_t *buffer_handle,
158 status_t readNullableBuffer(size_t buffer_size, size_t *buffer_handle,
160 status_t readEmbeddedBuffer(size_t buffer_size, size_t *buffer_handle,
163 status_t readNullableEmbeddedBuffer(size_t buffer_size,
203 status_t readBuffer(size_t buffer_size, size_t *buffer_handle,
/system/extras/simpleperf/
Devent_fd.h75 char* GetMappedBuffer(size_t& buffer_size) { in GetMappedBuffer() argument
76 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()
172 size_t buffer_size; in KernelRecordReader() local
173 buffer_ = event_fd_->GetMappedBuffer(buffer_size); in KernelRecordReader()
174 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()
222 size_t buffer_size = AlignToPowerOfTwo(data_size); in CreateFakeEventFds() local
224 buffer.resize(buffer_size); in CreateFakeEventFds()
228 event_fds_[i].reset(new MockEventFd(attr, i, buffers_[i].data(), buffer_size, false)); in CreateFakeEventFds()
DRecordReadThread.h41 RecordBuffer(size_t buffer_size);
/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/vold/
DKeymaster.cpp262 static bool write_string_to_buf(const std::string& towrite, uint8_t* buffer, uint32_t buffer_size, in write_string_to_buf() argument
269 if (buffer_size < towrite.size()) { in write_string_to_buf()
270 LOG(ERROR) << "Buffer too small " << buffer_size << " < " << towrite.size(); in write_string_to_buf()
273 memset(buffer, '\0', buffer_size); in write_string_to_buf()
/system/core/libsparse/
Doutput_file.cpp655 uint64_t buffer_size; in write_fd_chunk() local
660 buffer_size = (uint64_t)len + (uint64_t)aligned_diff; in write_fd_chunk()
663 if (buffer_size > SIZE_MAX) return -E2BIG; in write_fd_chunk()
665 … reinterpret_cast<char*>(mmap64(nullptr, buffer_size, PROT_READ, MAP_SHARED, fd, aligned_offset)); in write_fd_chunk()
692 munmap(data, buffer_size); in write_fd_chunk()
/system/bt/include/hardware/
Dbt_hd.h69 uint16_t buffer_size);
/system/bt/bta/include/
Dbta_hd_api.h93 uint16_t buffer_size; member
/system/libhwbinder/
DParcel.cpp1363 status_t Parcel::readBuffer(size_t buffer_size, size_t *buffer_handle, in readBuffer() argument
1373 if (!verifyBufferObject(buffer_obj, buffer_size, flags, parent, parentOffset)) { in readBuffer()
1383 status_t Parcel::readNullableBuffer(size_t buffer_size, size_t *buffer_handle, in readNullableBuffer() argument
1386 return readBuffer(buffer_size, buffer_handle, in readNullableBuffer()
1391 status_t Parcel::readBuffer(size_t buffer_size, size_t *buffer_handle, in readBuffer() argument
1394 status_t status = readNullableBuffer(buffer_size, buffer_handle, buffer_out); in readBuffer()
1402 status_t Parcel::readEmbeddedBuffer(size_t buffer_size, in readEmbeddedBuffer() argument
1408 status_t status = readNullableEmbeddedBuffer(buffer_size, buffer_handle, in readEmbeddedBuffer()
1417 status_t Parcel::readNullableEmbeddedBuffer(size_t buffer_size, in readNullableEmbeddedBuffer() argument
1423 return readBuffer(buffer_size, buffer_handle, BINDER_BUFFER_FLAG_HAS_PARENT, in readNullableEmbeddedBuffer()
/system/core/fs_mgr/liblp/
Dreader.cpp481 static std::string NameFromFixedArray(const char* name, size_t buffer_size) { in NameFromFixedArray() argument
485 if (name[buffer_size - 1] == '\0') { in NameFromFixedArray()
488 return std::string(name, buffer_size); in NameFromFixedArray()
/system/core/libprocinfo/include/procinfo/
Dprocess_map.h179 bool ReadMapFileAsyncSafe(const char* map_file, void* buffer, size_t buffer_size,
/system/iorap/src/perfetto/
Drx_producer.h51 uint32_t buffer_size = 4096);
/system/update_engine/scripts/
Dupdate_device.py44 def CopyFileObjLength(fsrc, fdst, buffer_size=128 * 1024, copy_length=None): argument
61 chunk_size = buffer_size
/system/nvram/hal/
Dnvram_device_adapter.cpp223 uint64_t buffer_size, in device_write_space() argument
228 if (!write_space_request.buffer.Assign(buffer, buffer_size) || in device_write_space()
/system/keymaster/include/keymaster/
Dserializable.h229 size_t buffer_size() const { return buffer_size_; } in buffer_size() function
/system/bt/audio_bluetooth_hw/
Dstream_apis.cc174 size_t buffer_size = in out_get_buffer_size() local
177 << ", buffer_size=" << buffer_size; in out_get_buffer_size()
178 return buffer_size; in out_get_buffer_size()

12