Home
last modified time | relevance | path

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

/system/extras/boot_control_copy/
Dboot_control_copy.cpp97 ssize_t num_read; in copy_data() local
99 num_read = read(src_fd, copy_buf, num_to_read); in copy_data()
100 } while (num_read == -1 && errno == EINTR); in copy_data()
101 if (num_read <= 0) { in copy_data()
105 size_t num_to_write = num_read; in copy_data()
107 size_t offset = num_read - num_to_write; in copy_data()
119 remaining -= num_read; in copy_data()
Dbootinfo.cpp131 ssize_t num_read; in boot_info_load() local
133 num_read = read(fd, (void*)out_info, sizeof(BrilloBootInfo)); in boot_info_load()
134 } while (num_read == -1 && errno == EINTR); in boot_info_load()
136 if (num_read != sizeof(BrilloBootInfo)) return false; in boot_info_load()
/system/core/trusty/apploader/
Dapploader.cpp142 ssize_t num_read = TEMP_FAILURE_RETRY( in read_file() local
145 if (num_read < 0) { in read_file()
150 if (num_read == 0) { in read_file()
155 file_offset += (off64_t)num_read; in read_file()
/system/core/fs_mgr/libfs_avb/
Davb_ops.cpp241 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, buffer, num_bytes, offset)); in ReadFromPartition() local
242 if (num_read < 0 || (size_t)num_read != num_bytes) { in ReadFromPartition()
248 *out_num_read = num_read; in ReadFromPartition()
Davb_util.cpp285 ssize_t num_read = in GetAvbFooter() local
287 if (num_read < 0 || num_read != AVB_FOOTER_SIZE) { in GetAvbFooter()
408 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, vbmeta->data(), vbmeta_size, vbmeta_offset)); in VerifyVBMetaData() local
410 if (num_read < 0 || (!is_vbmeta_partition && static_cast<uint64_t>(num_read) != vbmeta_size)) { in VerifyVBMetaData()
/system/core/libutils/binder/
DUnicode.cpp103 static inline int32_t utf32_at_internal(const char* cur, size_t *num_read) in utf32_at_internal() argument
107 *num_read = 1; in utf32_at_internal()
123 *num_read = num_to_read; in utf32_at_internal()
136 size_t num_read; in utf32_from_utf8_at() local
137 int32_t ret = utf32_at_internal(src + index, &num_read); in utf32_from_utf8_at()
139 *next_index = index + num_read; in utf32_from_utf8_at()