Searched refs:num_read (Results 1 – 5 of 5) sorted by relevance
/system/extras/boot_control_copy/ |
D | boot_control_copy.cpp | 106 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()
|
D | bootinfo.cpp | 128 ssize_t num_read; in boot_info_load() local 130 num_read = read(fd, (void*) out_info, sizeof(BrilloBootInfo)); in boot_info_load() 131 } while (num_read == -1 && errno == EINTR); in boot_info_load() 133 if (num_read != sizeof(BrilloBootInfo)) in boot_info_load()
|
/system/core/libutils/ |
D | Unicode.cpp | 136 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() 490 size_t num_read; in utf8_to_utf32() local 491 *cur_utf32++ = static_cast<char32_t>(utf32_at_internal(cur, &num_read)); in utf8_to_utf32() 492 cur += num_read; in utf8_to_utf32()
|
/system/core/fs_mgr/libfs_avb/ |
D | avb_ops.cpp | 213 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()
|
D | avb_util.cpp | 301 ssize_t num_read = in GetAvbFooter() local 303 if (num_read < 0 || num_read != AVB_FOOTER_SIZE) { in GetAvbFooter() 424 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, vbmeta->data(), vbmeta_size, vbmeta_offset)); in VerifyVBMetaData() local 426 if (num_read < 0 || (!is_vbmeta_partition && static_cast<uint64_t>(num_read) != vbmeta_size)) { in VerifyVBMetaData()
|