Home
last modified time | relevance | path

Searched refs:to_read (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/applypatch/
Dapplypatch.cpp297 size_t to_read = len - p; in WriteToPartition() local
298 if (to_read > sizeof(buffer)) { in WriteToPartition()
299 to_read = sizeof(buffer); in WriteToPartition()
303 while (so_far < to_read) { in WriteToPartition()
304 ssize_t read_count = TEMP_FAILURE_RETRY(ota_read(fd, buffer + so_far, to_read - so_far)); in WriteToPartition()
312 if (static_cast<size_t>(read_count) < to_read) { in WriteToPartition()
313 printf("short verify read %s at %zu: %zd %zu\n", partition, p, read_count, to_read); in WriteToPartition()
318 if (memcmp(buffer, data + p, to_read) != 0) { in WriteToPartition()
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp175 size_t to_read = std::min(remain, 1024 * kBlockSize); in read_blocks() local
176 if (!android::base::ReadFully(fd.get(), buf.data(), to_read)) { in read_blocks()
180 remain -= to_read; in read_blocks()
/bootable/recovery/uncrypt/
Duncrypt.cpp349 size_t to_read = static_cast<size_t>( in produce_block_map() local
351 if (!android::base::ReadFully(fd, buffers[tail].data(), to_read)) { in produce_block_map()
355 pos += to_read; in produce_block_map()