Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 9 of 9) sorted by relevance

/art/runtime/
Dzip_archive_test.cc57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); in TEST_F() local
58 if (bytes_read == 0) { in TEST_F()
61 computed_crc = crc32(computed_crc, buf, bytes_read); in TEST_F()
Dnative_stack_dump.cc177 int bytes_read = TEMP_FAILURE_RETRY(read(in, buffer, kMaxBuffer - 1)); in Drain() local
178 if (bytes_read <= 0) { in Drain()
183 buffer[bytes_read] = '\0'; in Drain()
/art/dex2oat/linker/
Delf_writer_quick.cc308 int64_t bytes_read = elf_file_->Read(buffer.data(), kBufSize, offset); in ComputeFileBuildId() local
309 CHECK_GE(bytes_read, 0); in ComputeFileBuildId()
310 if (bytes_read == 0) { in ComputeFileBuildId()
314 SHA1_Update(&ctx, buffer.data(), bytes_read); in ComputeFileBuildId()
315 offset += bytes_read; in ComputeFileBuildId()
/art/oatdump/
Doatdump_test.h205 ssize_t bytes_read = in Exec() local
207 if (bytes_read <= 0) { in Exec()
210 line_len += bytes_read; in Exec()
211 total += bytes_read; in Exec()
/art/libartbase/base/unix_file/
Dfd_file.cc260 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset)); in ReadFullyGeneric() local
261 if (bytes_read <= 0) { in ReadFullyGeneric()
266 byte_count -= bytes_read; // Reduce the number of remaining bytes. in ReadFullyGeneric()
267 ptr += bytes_read; // Move the buffer forward. in ReadFullyGeneric()
268 offset += static_cast<size_t>(bytes_read); // Move the offset forward. in ReadFullyGeneric()
/art/dex2oat/
Ddex2oat_image_test.cc219 ssize_t bytes_read = 0; in RunDex2Oat() local
221 while (TEMP_FAILURE_RETRY(bytes_read = read(link[0], buffer, 128)) > 0) { in RunDex2Oat()
222 *error_msg += std::string(buffer, bytes_read); in RunDex2Oat()
Ddex2oat_test.cc262 ssize_t bytes_read = 0; in Dex2Oat() local
264 while (TEMP_FAILURE_RETRY(bytes_read = read(link[0], buffer, 128)) > 0) { in Dex2Oat()
265 output_ += std::string(buffer, bytes_read); in Dex2Oat()
/art/patchoat/
Dpatchoat_test.cc200 ssize_t bytes_read = 0; in RunDex2OatOrPatchoat() local
202 while (TEMP_FAILURE_RETRY(bytes_read = read(link[0], buffer, 128)) > 0) { in RunDex2OatOrPatchoat()
203 *error_msg += std::string(buffer, bytes_read); in RunDex2OatOrPatchoat()
/art/runtime/jit/
Dprofile_compilation_info.cc1225 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, buffer, byte_count));; in Read() local
1226 if (bytes_read == 0) { in Read()
1229 } else if (bytes_read < 0) { in Read()
1233 byte_count -= bytes_read; in Read()
1234 buffer += bytes_read; in Read()