Home
last modified time | relevance | path

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

/bootable/recovery/install/
Dpackage.cpp252 uint64_t read_size = std::min<uint64_t>(length - so_far, 16 * MiB); in UpdateHashAtOffset() local
253 std::vector<uint8_t> buffer(read_size); in UpdateHashAtOffset()
254 if (!ReadFullyAtOffset(buffer.data(), read_size, start + so_far)) { in UpdateHashAtOffset()
259 hasher(buffer.data(), read_size); in UpdateHashAtOffset()
261 so_far += read_size; in UpdateHashAtOffset()
Dverifier.cpp230 uint64_t read_size = std::min<uint64_t>(signed_len - so_far, 16 * MiB); in verify_file() local
231 package->UpdateHashAtOffset(hashers, so_far, read_size); in verify_file()
232 so_far += read_size; in verify_file()
235 if (f > frac + 0.02 || read_size == so_far) { in verify_file()
/bootable/recovery/recovery_utils/
Dlogging.cpp282 size_t read_size = std::min<size_t>(sb.st_size, 1 << 19); in ReadLogFilesToMemory() local
283 std::string data(read_size, '\0'); in ReadLogFilesToMemory()
286 if (log_fd == -1 || !android::base::ReadFully(log_fd, data.data(), read_size)) { in ReadLogFilesToMemory()