Home
last modified time | relevance | path

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

/art/libprofile/profile/
Dprofile_boot_info.cc66 int bytes_read = TEMP_FAILURE_RETRY(read(fd, &string_length, sizeof(uint8_t))); in Load() local
67 if (bytes_read < 0) { in Load()
70 } else if (bytes_read == 0) { in Load()
83 bytes_read = TEMP_FAILURE_RETRY(read(fd, data.get(), string_length)); in Load()
84 if (bytes_read < 0) { in Load()
87 } else if (bytes_read == 0) { in Load()
111 int bytes_read = TEMP_FAILURE_RETRY(read(fd, &dex_file_index, sizeof(dex_file_index))); in Load() local
112 if (bytes_read <= 0) { in Load()
115 bytes_read = TEMP_FAILURE_RETRY(read(fd, &method_id, sizeof(method_id))); in Load()
116 if (bytes_read <= 0) { in Load()
Dprofile_compilation_info.cc1436 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, buffer, byte_count));; in Read() local
1437 if (bytes_read == 0) { in Read()
1440 } else if (bytes_read < 0) { in Read()
1444 byte_count -= bytes_read; in Read()
1445 reinterpret_cast<uint8_t*&>(buffer) += bytes_read; in Read()
/art/libartbase/base/
Dzip_archive_test.cc58 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); in TEST_F() local
59 if (bytes_read == 0) { in TEST_F()
62 computed_crc = crc32(computed_crc, buf, bytes_read); in TEST_F()
Dcommon_art_test.cc641 ssize_t bytes_read = 0; in ForkAndExec() local
642 while (TEMP_FAILURE_RETRY(bytes_read = read(link[0].get(), buffer, 128)) > 0) { in ForkAndExec()
643 handler(buffer, bytes_read); in ForkAndExec()
/art/libartbase/base/unix_file/
Dfd_file.cc79 DWORD bytes_read = 0; in pread() local
84 if (!ReadFile(handle, data, static_cast<DWORD>(byte_count), &bytes_read, &overlapped)) { in pread()
90 !::GetOverlappedResult(handle, &overlapped, &bytes_read, TRUE)) { in pread()
96 return static_cast<ssize_t>(bytes_read); in pread()
424 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset)); in ReadFullyGeneric() local
425 if (bytes_read <= 0) { in ReadFullyGeneric()
430 byte_count -= bytes_read; // Reduce the number of remaining bytes. in ReadFullyGeneric()
431 ptr += bytes_read; // Move the buffer forward. in ReadFullyGeneric()
432 offset += static_cast<size_t>(bytes_read); // Move the offset forward. in ReadFullyGeneric()
/art/dex2oat/linker/
Delf_writer_quick.cc310 int64_t bytes_read = elf_file_->Read(buffer.data(), kBufSize, offset); in ComputeFileBuildId() local
311 CHECK_GE(bytes_read, 0); in ComputeFileBuildId()
312 if (bytes_read == 0) { in ComputeFileBuildId()
316 SHA1_Update(&ctx, buffer.data(), bytes_read); in ComputeFileBuildId()
317 offset += bytes_read; in ComputeFileBuildId()
/art/runtime/
Dnative_stack_dump.cc193 int bytes_read = TEMP_FAILURE_RETRY(read(in, buffer, kMaxBuffer - 1)); in Drain() local
194 if (bytes_read <= 0) { in Drain()
199 buffer[bytes_read] = '\0'; in Drain()
/art/tools/signal_dumper/
Dsignal_dumper.cc241 int bytes_read = TEMP_FAILURE_RETRY(read(in, buffer, kMaxBuffer - 1)); in Drain() local
242 if (bytes_read <= 0) { in Drain()
247 buffer[bytes_read] = '\0'; in Drain()