Home
last modified time | relevance | path

Searched refs:num_read (Results 1 – 5 of 5) sorted by relevance

/system/extras/boot_control_copy/
Dboot_control_copy.cpp106 ssize_t num_read; in copy_data() local
108 num_read = read(src_fd, copy_buf, num_to_read); in copy_data()
109 } while (num_read == -1 && errno == EINTR); in copy_data()
110 if (num_read <= 0) { in copy_data()
115 size_t num_to_write = num_read; in copy_data()
117 size_t offset = num_read - num_to_write; in copy_data()
129 remaining -= num_read; in copy_data()
Dbootinfo.cpp136 ssize_t num_read; in boot_info_load() local
138 num_read = read(fd, (void*) out_info, sizeof(BrilloBootInfo)); in boot_info_load()
139 } while (num_read == -1 && errno == EINTR); in boot_info_load()
141 if (num_read != sizeof(BrilloBootInfo)) in boot_info_load()
/system/core/fs_mgr/libfs_avb/
Davb_ops.cpp213 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, buffer, num_bytes, offset)); in ReadFromPartition() local
214 if (num_read < 0 || (size_t)num_read != num_bytes) { in ReadFromPartition()
220 *out_num_read = num_read; in ReadFromPartition()
Davb_util.cpp351 ssize_t num_read = in GetAvbFooter() local
353 if (num_read < 0 || num_read != AVB_FOOTER_SIZE) { in GetAvbFooter()
474 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, vbmeta->data(), vbmeta_size, vbmeta_offset)); in VerifyVBMetaData() local
476 if (num_read < 0 || (!is_vbmeta_partition && static_cast<uint64_t>(num_read) != vbmeta_size)) { in VerifyVBMetaData()
/system/core/libutils/
DUnicode.cpp136 static inline int32_t utf32_at_internal(const char* cur, size_t *num_read) in utf32_at_internal() argument
140 *num_read = 1; in utf32_at_internal()
156 *num_read = num_to_read; in utf32_at_internal()
169 size_t num_read; in utf32_from_utf8_at() local
170 int32_t ret = utf32_at_internal(src + index, &num_read); in utf32_from_utf8_at()
172 *next_index = index + num_read; in utf32_from_utf8_at()