Home
last modified time | relevance | path

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

/art/libprofile/profile/
Dprofile_helpers.h31 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count)); in WriteBuffer() local
32 if (bytes_written == -1) { in WriteBuffer()
35 byte_count -= bytes_written; // Reduce the number of remaining bytes. in WriteBuffer()
36 buffer += bytes_written; // Move the buffer forward. in WriteBuffer()
Dprofile_compilation_info.cc803 bool ProfileCompilationInfo::Save(const std::string& filename, uint64_t* bytes_written) { in Save() argument
838 if (bytes_written != nullptr) { in Save()
839 *bytes_written = static_cast<uint64_t>(size); in Save()
851 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count)); in WriteBuffer() local
852 if (bytes_written == -1) { in WriteBuffer()
855 byte_count -= bytes_written; // Reduce the number of remaining bytes. in WriteBuffer()
856 reinterpret_cast<const uint8_t*&>(buffer) += bytes_written; // Move the buffer forward. in WriteBuffer()
Dprofile_compilation_info.h475 bool Save(const std::string& filename, uint64_t* bytes_written);
/art/odrefresh/
Dodr_statslog_android.cc154 int bytes_written = art::metrics::statsd::stats_write(metrics::statsd::ODREFRESH_REPORTED, in UploadStatsIfAvailable() local
164 if (bytes_written <= 0) { in UploadStatsIfAvailable()
165 *error_msg = android::base::StringPrintf("stats_write returned %d", bytes_written); in UploadStatsIfAvailable()
/art/libartbase/base/unix_file/
Dfd_file.cc108 DWORD bytes_written = 0; in pwrite() local
113 if (!::WriteFile(handle, buf, count, &bytes_written, &overlapped)) { in pwrite()
119 !::GetOverlappedResult(handle, &overlapped, &bytes_written, TRUE)) { in pwrite()
125 return static_cast<ssize_t>(bytes_written); in pwrite()
452 ssize_t bytes_written = kUseOffset in WriteFullyGeneric() local
455 if (bytes_written == -1) { in WriteFullyGeneric()
458 byte_count -= bytes_written; // Reduce the number of remaining bytes. in WriteFullyGeneric()
459 ptr += bytes_written; // Move the buffer forward. in WriteFullyGeneric()
460 offset += static_cast<size_t>(bytes_written); in WriteFullyGeneric()
/art/runtime/jit/
Dprofile_saver.cc931 uint64_t bytes_written; in ProcessProfilingInfo() local
934 if (info.Save(filename, &bytes_written)) { in ProcessProfilingInfo()
941 if (bytes_written > 0) { in ProcessProfilingInfo()
943 total_bytes_written_ += bytes_written; in ProcessProfilingInfo()