Home
last modified time | relevance | path

Searched refs:read_size (Results 1 – 10 of 10) sorted by relevance

/system/core/trusty/storage/proxy/
Drpmb.c113 if (req->read_size) { in send_mmc_rpmb_req()
117 cmd->blocks = req->read_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req()
133 static int send_virt_rpmb_req(int rpmb_fd, void* read_buf, size_t read_size, const void* payload, in send_virt_rpmb_req() argument
136 uint16_t res_count = read_size / MMC_BLOCK_SIZE; in send_virt_rpmb_req()
150 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req()
183 if (req->read_size % MMC_BLOCK_SIZE != 0 || req->read_size > sizeof(read_buf)) { in rpmb_send()
184 ALOGE("%s: invalid read size %u\n", __func__, req->read_size); in rpmb_send()
197 rc = send_virt_rpmb_req(rpmb_fd, read_buf, req->read_size, req->payload, payload_size); in rpmb_send()
203 if (rc != req->read_size) { in rpmb_send()
206 rc, req->read_size); in rpmb_send()
[all …]
/system/core/libunwindstack/tests/
DMemoryRemoteTest.cpp257 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST_F() local
259 ASSERT_LE(page_size, read_size); in TEST_F()
260 for (size_t i = 0; i < read_size; ++i) { in TEST_F()
263 for (size_t i = read_size; i < dst.size(); ++i) { in TEST_F()
292 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST_F() local
293 ASSERT_EQ(page_size, read_size); in TEST_F()
294 for (size_t i = 0; i < read_size; ++i) { in TEST_F()
297 for (size_t i = read_size; i < dst.size(); ++i) { in TEST_F()
/system/bt/stack/a2dp/
Da2dp_sbc_encoder.cc600 uint32_t read_size; in a2dp_sbc_read_feeding() local
637 read_size = in a2dp_sbc_read_feeding()
639 a2dp_sbc_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_sbc_read_feeding()
643 read_size); in a2dp_sbc_read_feeding()
648 if (nb_byte_read != read_size) { in a2dp_sbc_read_feeding()
696 read_size = src_samples; in a2dp_sbc_read_feeding()
697 read_size *= a2dp_sbc_encoder_cb.feeding_params.channel_count; in a2dp_sbc_read_feeding()
698 read_size *= (a2dp_sbc_encoder_cb.feeding_params.bits_per_sample / 8); in a2dp_sbc_read_feeding()
699 a2dp_sbc_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_sbc_read_feeding()
703 a2dp_sbc_encoder_cb.read_callback((uint8_t*)read_buffer, read_size); in a2dp_sbc_read_feeding()
[all …]
Da2dp_aac_encoder.cc668 uint32_t read_size = a2dp_aac_encoder_cb.aac_encoder_params.frame_length * in a2dp_aac_read_feeding() local
673 a2dp_aac_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_aac_read_feeding()
677 a2dp_aac_encoder_cb.read_callback(read_buffer, read_size); in a2dp_aac_read_feeding()
681 if (nb_byte_read < read_size) { in a2dp_aac_read_feeding()
685 memset(((uint8_t*)read_buffer) + nb_byte_read, 0, read_size - nb_byte_read); in a2dp_aac_read_feeding()
686 nb_byte_read = read_size; in a2dp_aac_read_feeding()
Da2dp_vendor_ldac_encoder.cc720 uint32_t read_size = LDACBT_ENC_LSU * in a2dp_ldac_read_feeding() local
725 a2dp_ldac_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_ldac_read_feeding()
729 a2dp_ldac_encoder_cb.read_callback(read_buffer, read_size); in a2dp_ldac_read_feeding()
732 if (nb_byte_read < read_size) { in a2dp_ldac_read_feeding()
736 memset(((uint8_t*)read_buffer) + nb_byte_read, 0, read_size - nb_byte_read); in a2dp_ldac_read_feeding()
737 nb_byte_read = read_size; in a2dp_ldac_read_feeding()
/system/core/fs_mgr/liblp/
Dimages.cpp348 size_t read_size = remaining >= sizeof(buffer) ? sizeof(buffer) : size_t(remaining); in AddPartitionImage() local
353 if (read_size != sizeof(buffer) || !HasFillValue(buffer, read_size / sizeof(uint32_t))) { in AddPartitionImage()
354 int rv = sparse_file_add_fd(output_device, fd, pos, read_size, output_block); in AddPartitionImage()
360 int rv = sparse_file_add_fill(output_device, buffer[0], read_size, output_block); in AddPartitionImage()
366 pos += read_size; in AddPartitionImage()
367 remaining -= read_size; in AddPartitionImage()
/system/core/trusty/storage/interface/include/trusty/interface/
Dstorage.h252 uint32_t read_size; member
/system/core/libziparchive/
Dzip_archive.cc1006 const size_t read_size = (remaining_bytes > kBufSize) ? kBufSize : remaining_bytes; in Inflate() local
1009 if (!reader.ReadAtOffset(read_buf.data(), read_size, offset)) { in Inflate()
1010 ALOGW("Zip: inflate read failed, getSize = %zu: %s", read_size, strerror(errno)); in Inflate()
1014 remaining_bytes -= read_size; in Inflate()
1017 zstream.avail_in = read_size; in Inflate()
/system/core/deprecated-adf/libadf/
Dadf.cpp627 ssize_t read_size = read(fd, &event_ret->data, data_size); in adf_read_event() local
628 if (read_size < 0) in adf_read_event()
630 if ((size_t)read_size < data_size) in adf_read_event()
/system/libhwbinder/
DIPCThreadState.cpp915 bwr.read_size = mIn.dataCapacity(); in talkWithDriver()
918 bwr.read_size = 0; in talkWithDriver()
931 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver()
936 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()