/system/core/trusty/storage/proxy/ |
D | rpmb.c | 179 if (req->read_size) { in send_mmc_rpmb_req() 183 cmd->blocks = req->read_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req() 245 if (req->read_size) { in send_ufs_rpmb_req() 247 in_cdb.length = __builtin_bswap32(req->read_size); in send_ufs_rpmb_req() 250 req->read_size, read_buf, (unsigned char*)&in_cdb, sense_buffer); in send_ufs_rpmb_req() 266 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 269 uint16_t res_count = read_size / MMC_BLOCK_SIZE; in send_virt_rpmb_req() 283 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req() 316 if (req->read_size % MMC_BLOCK_SIZE != 0 || req->read_size > sizeof(read_buf)) { in rpmb_send() 317 ALOGE("%s: invalid read size %u\n", __func__, req->read_size); in rpmb_send() [all …]
|
/system/teeui/libteeui/include/teeui/ |
D | common_message_types.h | 92 size_t read_size = 0; in readSimpleVecInPlace() local 93 std::tie(std::get<0>(result), pos, read_size) = read(in); in readSimpleVecInPlace() 94 if (!std::get<0>(result) || read_size % sizeof(T)) { in readSimpleVecInPlace() 100 reinterpret_cast<T*>(const_cast<uint8_t*>(pos)) + (read_size / sizeof(T))); in readSimpleVecInPlace() 161 size_t read_size = 0; in read() local 162 std::tie(in_, pos, read_size) = read(in); in read() 164 if (read_size != size) { in read()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapuserd_worker.cpp | 372 bool WorkerThread::ZerofillDiskExceptions(size_t read_size) { in ZerofillDiskExceptions() argument 375 if (read_size > size) { in ZerofillDiskExceptions() 402 bool WorkerThread::ReadDiskExceptions(chunk_t chunk, size_t read_size) { in ReadDiskExceptions() argument 413 if (read_size != size) { in ReadDiskExceptions() 414 SNAP_LOG(ERROR) << "ReadDiskExceptions: read_size: " << read_size in ReadDiskExceptions() 427 return ZerofillDiskExceptions(read_size); in ReadDiskExceptions() 684 size_t read_size = std::min(PAYLOAD_SIZE, remaining_size); in DmuserWriteRequest() local 693 void* buffer = bufsink_.GetPayloadBuffer(read_size); in DmuserWriteRequest() 696 << read_size; in DmuserWriteRequest() 701 if (!ReadDmUserPayload(buffer, read_size)) { in DmuserWriteRequest() [all …]
|
D | snapuserd.h | 178 bool ZerofillDiskExceptions(size_t read_size); 296 bool IsBlockAligned(int read_size) { return ((read_size & (BLOCK_SZ - 1)) == 0); } in IsBlockAligned() argument
|
/system/update_engine/payload_consumer/ |
D | filesystem_verifier_action.cc | 232 const auto read_size = in WriteVerityAndHashPartition() local 234 const auto bytes_read = fd->Read(buffer, read_size); in WriteVerityAndHashPartition() 235 if (bytes_read < 0 || static_cast<size_t>(bytes_read) != read_size) { in WriteVerityAndHashPartition() 237 << read_size << " bytes, actual: " << bytes_read; in WriteVerityAndHashPartition() 242 start_offset, static_cast<const uint8_t*>(buffer), read_size)) { in WriteVerityAndHashPartition() 278 const auto read_size = in HashPartition() local 280 const auto bytes_read = fd->Read(buffer, read_size); in HashPartition() 281 if (bytes_read < 0 || static_cast<size_t>(bytes_read) != read_size) { in HashPartition() 283 << read_size << " bytes, actual: " << bytes_read; in HashPartition() 287 if (!hasher_->Update(buffer, read_size)) { in HashPartition()
|
/system/unwinding/libunwindstack/tests/ |
D | MemoryRemoteTest.cpp | 240 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST() local 242 ASSERT_LE(page_size, read_size); in TEST() 243 for (size_t i = 0; i < read_size; ++i) { in TEST() 246 for (size_t i = read_size; i < dst.size(); ++i) { in TEST() 277 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST() local 278 ASSERT_EQ(page_size, read_size); in TEST() 279 for (size_t i = 0; i < read_size; ++i) { in TEST() 282 for (size_t i = read_size; i < dst.size(); ++i) { in TEST()
|
/system/bt/stack/a2dp/ |
D | a2dp_sbc_encoder.cc | 591 uint32_t read_size; in a2dp_sbc_read_feeding() local 628 read_size = in a2dp_sbc_read_feeding() 630 a2dp_sbc_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_sbc_read_feeding() 634 read_size); in a2dp_sbc_read_feeding() 639 if (nb_byte_read != read_size) { in a2dp_sbc_read_feeding() 687 read_size = src_samples; in a2dp_sbc_read_feeding() 688 read_size *= a2dp_sbc_encoder_cb.feeding_params.channel_count; in a2dp_sbc_read_feeding() 689 read_size *= (a2dp_sbc_encoder_cb.feeding_params.bits_per_sample / 8); in a2dp_sbc_read_feeding() 690 a2dp_sbc_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_sbc_read_feeding() 694 a2dp_sbc_encoder_cb.read_callback((uint8_t*)read_buffer, read_size); in a2dp_sbc_read_feeding() [all …]
|
D | a2dp_aac_encoder.cc | 706 uint32_t read_size = a2dp_aac_encoder_cb.aac_encoder_params.frame_length * in a2dp_aac_read_feeding() local 711 a2dp_aac_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_aac_read_feeding() 715 a2dp_aac_encoder_cb.read_callback(read_buffer, read_size); in a2dp_aac_read_feeding() 719 if (nb_byte_read < read_size) { in a2dp_aac_read_feeding() 723 memset(((uint8_t*)read_buffer) + nb_byte_read, 0, read_size - nb_byte_read); in a2dp_aac_read_feeding() 724 nb_byte_read = read_size; in a2dp_aac_read_feeding()
|
D | a2dp_vendor_ldac_encoder.cc | 715 uint32_t read_size = LDACBT_ENC_LSU * in a2dp_ldac_read_feeding() local 720 a2dp_ldac_encoder_cb.stats.media_read_total_expected_read_bytes += read_size; in a2dp_ldac_read_feeding() 724 a2dp_ldac_encoder_cb.read_callback(read_buffer, read_size); in a2dp_ldac_read_feeding() 727 if (nb_byte_read < read_size) { in a2dp_ldac_read_feeding() 731 memset(((uint8_t*)read_buffer) + nb_byte_read, 0, read_size - nb_byte_read); in a2dp_ldac_read_feeding() 732 nb_byte_read = read_size; in a2dp_ldac_read_feeding()
|
/system/core/fs_mgr/liblp/ |
D | images.cpp | 382 size_t read_size = remaining >= sizeof(buffer) ? sizeof(buffer) : size_t(remaining); in AddPartitionImage() local 387 if (read_size != sizeof(buffer) || !HasFillValue(buffer, read_size / sizeof(uint32_t))) { in AddPartitionImage() 388 int rv = sparse_file_add_fd(output_device, fd, pos, read_size, output_block); in AddPartitionImage() 394 int rv = sparse_file_add_fill(output_device, buffer[0], read_size, output_block); in AddPartitionImage() 400 pos += read_size; in AddPartitionImage() 401 remaining -= read_size; in AddPartitionImage()
|
/system/core/trusty/storage/interface/include/trusty/interface/ |
D | storage.h | 252 uint32_t read_size; member
|
/system/libhwbinder/ |
D | IPCThreadState.cpp | 905 bwr.read_size = mIn.dataCapacity(); in talkWithDriver() 908 bwr.read_size = 0; in talkWithDriver() 921 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver() 926 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()
|
/system/libziparchive/ |
D | zip_archive.cc | 1316 const uint32_t read_size = in inflateImpl() local 1320 if (!reader.ReadAtOffset(read_buf.data(), read_size, offset)) { in inflateImpl() 1321 ALOGW("Zip: inflate read failed, getSize = %u: %s", read_size, strerror(errno)); in inflateImpl() 1325 remaining_bytes -= read_size; in inflateImpl() 1328 zstream.avail_in = read_size; in inflateImpl()
|