Home
last modified time | relevance | path

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

12

/system/bt/hci/src/
Dhci_inject.cc47 size_t buffer_size; member
154 socket_read(client->socket, client->buffer + client->buffer_size, in read_ready()
155 sizeof(client->buffer) - client->buffer_size); in read_ready()
160 client->buffer_size += ret; in read_ready()
162 while (client->buffer_size > 3) { in read_ready()
168 if (client->buffer_size < frame_len) break; in read_ready()
187 size_t remainder = client->buffer_size - frame_len; in read_ready()
189 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_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/extras/simpleperf/
Devent_fd.h74 char* GetMappedBuffer(size_t& buffer_size) { in GetMappedBuffer() argument
75 buffer_size = mmap_data_buffer_size_; in GetMappedBuffer()
DRecordReadThread.cpp33 RecordBuffer::RecordBuffer(size_t buffer_size) in RecordBuffer() argument
34 : read_head_(0), write_head_(0), buffer_size_(buffer_size), buffer_(new char[buffer_size]) { in RecordBuffer()
166 size_t buffer_size; in KernelRecordReader() local
167 buffer_ = event_fd_->GetMappedBuffer(buffer_size); in KernelRecordReader()
168 buffer_mask_ = buffer_size - 1; in KernelRecordReader()
DRecordReadThread_test.cpp109 MockEventFd(const perf_event_attr& attr, int cpu, char* buffer, size_t buffer_size) in MockEventFd()
112 mmap_data_buffer_size_ = buffer_size; in MockEventFd()
205 size_t buffer_size = AlignToPowerOfTwo(data_size); in CreateFakeEventFds() local
207 buffer.resize(buffer_size); in CreateFakeEventFds()
211 event_fds_[i].reset(new MockEventFd(attr, i, buffers_[i].data(), buffer_size)); in CreateFakeEventFds()
DRecordReadThread.h41 RecordBuffer(size_t buffer_size);
/system/vold/
DMetadataCrypt.cpp167 static struct dm_ioctl* dm_ioctl_init(char* buffer, size_t buffer_size, const std::string& dm_name)… in dm_ioctl_init() argument
168 if (buffer_size < sizeof(dm_ioctl)) { in dm_ioctl_init()
173 memset(buffer, 0, buffer_size); in dm_ioctl_init()
175 io->data_size = buffer_size; in dm_ioctl_init()
DKeymaster.cpp224 static bool write_string_to_buf(const std::string& towrite, uint8_t* buffer, uint32_t buffer_size, in write_string_to_buf() argument
231 if (buffer_size < towrite.size()) { in write_string_to_buf()
232 LOG(ERROR) << "Buffer too small " << buffer_size << " < " << towrite.size(); in write_string_to_buf()
235 memset(buffer, '\0', buffer_size); in write_string_to_buf()
/system/libhwbinder/include/hwbinder/
DParcel.h162 status_t readBuffer(size_t buffer_size, size_t *buffer_handle,
164 status_t readNullableBuffer(size_t buffer_size, size_t *buffer_handle,
166 status_t readEmbeddedBuffer(size_t buffer_size, size_t *buffer_handle,
169 status_t readNullableEmbeddedBuffer(size_t buffer_size,
214 status_t readBuffer(size_t buffer_size, size_t *buffer_handle,
/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/libsparse/
Doutput_file.cpp657 uint64_t buffer_size; in write_fd_chunk() local
662 buffer_size = (uint64_t)len + (uint64_t)aligned_diff; in write_fd_chunk()
665 if (buffer_size > SIZE_MAX) return -E2BIG; in write_fd_chunk()
667 … reinterpret_cast<char*>(mmap64(nullptr, buffer_size, PROT_READ, MAP_SHARED, fd, aligned_offset)); in write_fd_chunk()
694 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/iorap/src/perfetto/
Drx_producer.h51 uint32_t buffer_size = 4096);
Drx_producer.cc93 uint32_t buffer_size) { in CreateConfig() argument
97 trace_config.add_buffers()->set_size_kb(buffer_size); in CreateConfig()
/system/core/fs_mgr/liblp/
Dreader.cpp440 static std::string NameFromFixedArray(const char* name, size_t buffer_size) { in NameFromFixedArray() argument
444 if (name[buffer_size - 1] == '\0') { in NameFromFixedArray()
447 return std::string(name, buffer_size); in NameFromFixedArray()
/system/libhwbinder/
DParcel.cpp1564 status_t Parcel::readBuffer(size_t buffer_size, size_t *buffer_handle, in readBuffer() argument
1574 if (!verifyBufferObject(buffer_obj, buffer_size, flags, parent, parentOffset)) { in readBuffer()
1584 status_t Parcel::readNullableBuffer(size_t buffer_size, size_t *buffer_handle, in readNullableBuffer() argument
1587 return readBuffer(buffer_size, buffer_handle, in readNullableBuffer()
1592 status_t Parcel::readBuffer(size_t buffer_size, size_t *buffer_handle, in readBuffer() argument
1595 status_t status = readNullableBuffer(buffer_size, buffer_handle, buffer_out); in readBuffer()
1603 status_t Parcel::readEmbeddedBuffer(size_t buffer_size, in readEmbeddedBuffer() argument
1609 status_t status = readNullableEmbeddedBuffer(buffer_size, buffer_handle, in readEmbeddedBuffer()
1618 status_t Parcel::readNullableEmbeddedBuffer(size_t buffer_size, in readNullableEmbeddedBuffer() argument
1624 return readBuffer(buffer_size, buffer_handle, BINDER_BUFFER_FLAG_HAS_PARENT, in readNullableEmbeddedBuffer()
/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/gatekeeper/
Dgatekeeper_messages.cpp53 const size_t buffer_size = end - *buffer; in read_from_buffer() local
54 if (buffer_size < target->length) return ERROR_INVALID; in read_from_buffer()
/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.cc92 size_t buffer_size = in out_get_buffer_size() local
95 << ", buffer_size=" << buffer_size; in out_get_buffer_size()
96 return buffer_size; in out_get_buffer_size()
/system/core/adb/client/
Dcommandline.cpp482 size_t buffer_size = sizeof(raw_buffer); in stdin_read_thread_loop() local
485 buffer_size = args->protocol->data_capacity(); in stdin_read_thread_loop()
490 buffer_size = 1; in stdin_read_thread_loop()
500 buffer_size); in stdin_read_thread_loop()

12