/system/core/trusty/storage/proxy/ |
D | rpmb.c | 366 if (req->read_size) { in send_mmc_rpmb_req() 370 cmd->blocks = req->read_size / MMC_BLOCK_SIZE; in send_mmc_rpmb_req() 463 if (req->read_size) { in send_ufs_rpmb_req() 465 in_cdb.length = __builtin_bswap32(req->read_size); in send_ufs_rpmb_req() 468 req->read_size, read_buf, (unsigned char*)&in_cdb, sense_buffer); in send_ufs_rpmb_req() 487 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 490 uint16_t res_count = read_size / MMC_BLOCK_SIZE; in send_virt_rpmb_req() 504 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req() 537 if (req->read_size % MMC_BLOCK_SIZE != 0 || req->read_size > sizeof(read_buf)) { in rpmb_send() 538 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/snapuserd/user-space-merge/ |
D | read_worker.cpp | 280 bool ReadWorker::ReadDataFromBaseDevice(sector_t sector, void* buffer, size_t read_size) { in ReadDataFromBaseDevice() argument 281 CHECK(read_size <= BLOCK_SZ); in ReadDataFromBaseDevice() 284 if (!android::base::ReadFullyAtOffset(base_path_merge_fd_, buffer, read_size, offset)) { in ReadDataFromBaseDevice() 286 << "at sector :" << sector << " size: " << read_size; in ReadDataFromBaseDevice() 314 size_t read_size = std::min(PAYLOAD_BUFFER_SZ, remaining_size); in ReadAlignedSector() local 318 while (read_size) { in ReadAlignedSector() 321 size_t size = std::min(BLOCK_SZ, read_size); in ReadAlignedSector() 425 ret = std::min(BLOCK_SZ, read_size); in ReadAlignedSector() 428 read_size -= ret; in ReadAlignedSector() 623 size_t read_size = std::min(remaining_size, diff_size); in ReadUnalignedSector() local [all …]
|
D | snapuserd_verify.h | 73 bool IsBlockAligned(uint64_t read_size) { return ((read_size & (BLOCK_SZ - 1)) == 0); } in IsBlockAligned() argument
|
D | snapuserd_test.cpp | 1141 size_t read_size = 1019; // bytes in ReadSnapshotWithVariableBlockSize() local 1146 ASSERT_EQ(ReadFullyAtOffset(fd, snapshot_buffer.get(), read_size, offset), true); in ReadSnapshotWithVariableBlockSize() 1149 ASSERT_EQ(std::memcmp(snapshot_buffer.get(), (char*)orig_buffer_.get() + offset, read_size), 0); in ReadSnapshotWithVariableBlockSize() 1153 read_size = 8111; in ReadSnapshotWithVariableBlockSize() 1157 ASSERT_EQ(ReadFullyAtOffset(fd, snapshot_buffer.get(), read_size, offset), true); in ReadSnapshotWithVariableBlockSize() 1160 ASSERT_EQ(std::memcmp(snapshot_buffer.get(), (char*)orig_buffer_.get() + offset, read_size), 0); in ReadSnapshotWithVariableBlockSize() 1167 read_size = 1; in ReadSnapshotWithVariableBlockSize() 1168 ASSERT_EQ(ReadFullyAtOffset(fd, snapshot_buffer.get(), read_size, offset), true); in ReadSnapshotWithVariableBlockSize() 1170 ASSERT_EQ(std::memcmp(snapshot_buffer.get(), (char*)orig_buffer_.get() + offset, read_size), 0); in ReadSnapshotWithVariableBlockSize() 1178 read_size = 30; in ReadSnapshotWithVariableBlockSize() [all …]
|
D | snapuserd_core.h | 193 bool IsBlockAligned(uint64_t read_size) { return ((read_size & (BLOCK_SZ - 1)) == 0); } in IsBlockAligned() argument
|
D | read_worker.h | 58 bool ReadDataFromBaseDevice(sector_t sector, void* buffer, size_t read_size);
|
/system/unwinding/libunwindstack/tests/ |
D | MemoryRemoteTest.cpp | 173 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST_F() local 175 ASSERT_LE(page_size, read_size); in TEST_F() 176 for (size_t i = 0; i < read_size; ++i) { in TEST_F() 179 for (size_t i = read_size; i < dst.size(); ++i) { in TEST_F() 199 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST_F() local 200 ASSERT_EQ(page_size, read_size); in TEST_F() 201 for (size_t i = 0; i < read_size; ++i) { in TEST_F() 204 for (size_t i = read_size; i < dst.size(); ++i) { in TEST_F()
|
/system/update_engine/payload_consumer/ |
D | filesystem_verifier_action.cc | 275 const auto read_size = in WriteVerityAndHashPartition() local 277 const auto bytes_read = fd->Read(buffer, read_size); in WriteVerityAndHashPartition() 278 if (bytes_read < 0 || static_cast<size_t>(bytes_read) != read_size) { in WriteVerityAndHashPartition() 280 << read_size << " bytes, actual: " << bytes_read; in WriteVerityAndHashPartition() 285 start_offset, static_cast<const uint8_t*>(buffer), read_size)) { in WriteVerityAndHashPartition() 321 const auto read_size = in HashPartition() local 323 const auto bytes_read = fd->Read(buffer, read_size); in HashPartition() 324 if (bytes_read < 0 || static_cast<size_t>(bytes_read) != read_size) { in HashPartition() 326 << read_size << " bytes, actual: " << bytes_read; in HashPartition() 330 if (!hasher_->Update(buffer, read_size)) { in HashPartition()
|
/system/core/fs_mgr/liblp/ |
D | images.cpp | 421 size_t read_size = remaining >= sizeof(buffer) ? sizeof(buffer) : size_t(remaining); in AddPartitionImage() local 426 if (read_size != sizeof(buffer) || !HasFillValue(buffer, read_size / sizeof(uint32_t))) { in AddPartitionImage() 427 int rv = sparse_file_add_fd(output_device, fd, pos, read_size, output_block); in AddPartitionImage() 433 int rv = sparse_file_add_fill(output_device, buffer[0], read_size, output_block); in AddPartitionImage() 439 pos += read_size; in AddPartitionImage() 440 remaining -= read_size; in AddPartitionImage()
|
/system/core/trusty/storage/interface/include/trusty/interface/ |
D | storage.h | 280 uint32_t read_size; member
|
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
D | create_cow.cpp | 95 bool IsBlockAligned(uint64_t read_size) { return ((read_size & (BLOCK_SZ - 1)) == 0); } in IsBlockAligned() argument
|
/system/libhwbinder/ |
D | IPCThreadState.cpp | 919 bwr.read_size = mIn.dataCapacity(); in talkWithDriver() 922 bwr.read_size = 0; in talkWithDriver() 935 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver() 940 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()
|
/system/libziparchive/ |
D | zip_archive.cc | 1468 const auto read_size = static_cast<uint32_t>(std::min(remaining_bytes, max_read_size)); in inflateImpl() local 1470 auto buf = reader.AccessAtOffset(read_buf.data(), read_size, offset); in inflateImpl() 1472 ALOGW("Zip: inflate read failed, getSize = %u: %s", read_size, strerror(errno)); in inflateImpl() 1476 remaining_bytes -= read_size; in inflateImpl() 1479 zstream.avail_in = read_size; in inflateImpl()
|