Searched refs:bytes_read (Results 1 – 8 of 8) sorted by relevance
/art/libprofile/profile/ |
D | profile_boot_info.cc | 66 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()
|
D | profile_compilation_info.cc | 1257 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, buffer, byte_count));; in Read() local 1258 if (bytes_read == 0) { in Read() 1261 } else if (bytes_read < 0) { in Read() 1265 byte_count -= bytes_read; in Read() 1266 buffer += bytes_read; in Read()
|
/art/libartbase/base/ |
D | zip_archive_test.cc | 58 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()
|
D | common_art_test.cc | 622 ssize_t bytes_read = 0; in ForkAndExec() local 623 while (TEMP_FAILURE_RETRY(bytes_read = read(link[0].get(), buffer, 128)) > 0) { in ForkAndExec() 624 handler(buffer, bytes_read); in ForkAndExec()
|
/art/libartbase/base/unix_file/ |
D | fd_file.cc | 79 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/ |
D | elf_writer_quick.cc | 308 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/runtime/ |
D | native_stack_dump.cc | 193 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/ |
D | signal_dumper.cc | 241 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()
|