Home
last modified time | relevance | path

Searched refs:payload_size (Results 1 – 25 of 28) sorted by relevance

12

/system/update_engine/aosp/
Dcow_converter.cc105 auto payload_size = chromeos_update_engine::utils::FileSize(payload_fd); in main() local
106 if (payload_size <= 0) { in main()
114 mmap(nullptr, payload_size, PROT_READ, MAP_PRIVATE, payload_fd, 0)); in main()
118 auto munmap_deleter = [payload_size](auto payload) { in main()
119 munmap(payload, payload_size); in main()
128 if (payload_metadata.ParsePayloadHeader(payload, payload_size, nullptr) != in main()
134 if (!payload_metadata.GetManifest(payload, payload_size, &manifest)) { in main()
Dota_extractor.cc233 auto payload_size = chromeos_update_engine::utils::FileSize(payload_fd); in main() local
234 if (payload_size <= 0) { in main()
242 mmap(nullptr, payload_size, PROT_READ, MAP_PRIVATE, payload_fd, 0)); in main()
249 auto munmap_deleter = [payload_size](auto payload) { in main()
250 munmap(payload, payload_size); in main()
255 payload_size - FLAGS_payload_offset, in main()
263 payload_size - FLAGS_payload_offset, in main()
Dmetrics_reporter_android.cc90 int64_t payload_size, in ReportUpdateAttemptMetrics() argument
93 int64_t payload_size_mib = payload_size / kNumBytesInOneMiB; in ReportUpdateAttemptMetrics()
167 int64_t payload_size, in ReportSuccessfulUpdateMetrics() argument
174 int64_t payload_size_mib = payload_size / kNumBytesInOneMiB; in ReportSuccessfulUpdateMetrics()
Dservice_delegate_android_interface.h59 int64_t payload_size,
66 int64_t payload_size,
Dupdate_attempter_android.cc218 int64_t payload_size, in ApplyPayload() argument
245 payload.size = payload_size; in ApplyPayload()
380 int64_t payload_size, in ApplyPayload() argument
400 payload_url, payload_offset, payload_size, key_value_pair_headers, error); in ApplyPayload()
770 size_t payload_size = in SetStatusAndNotify() local
774 .new_size_bytes = payload_size}; in SetStatusAndNotify()
862 int64_t payload_size = 0; in CollectAndReportUpdateMetricsOnUpdateFinished() local
866 payload_size += p.size; in CollectAndReportUpdateMetricsOnUpdateFinished()
871 if (payload_size == 0) { in CollectAndReportUpdateMetricsOnUpdateFinished()
889 payload_size, in CollectAndReportUpdateMetricsOnUpdateFinished()
[all …]
Dmetrics_reporter_android.h55 int64_t payload_size,
72 int64_t payload_size,
Dbinder_service_android.cc104 int64_t payload_size, in applyPayload() argument
111 payload_url, payload_offset, payload_size, str_headers, &error)) { in applyPayload()
120 int64_t payload_size, in applyPayloadFd() argument
126 pfd.get(), payload_offset, payload_size, str_headers, &error)) { in applyPayloadFd()
Dbinder_service_stable_android.cc110 int64_t payload_size, in applyPayloadFd() argument
116 pfd.get(), payload_offset, payload_size, str_headers, &error)) { in applyPayloadFd()
Dbinder_service_android.h54 int64_t payload_size,
59 int64_t payload_size,
Dsideload_main.cc125 int64_t payload_size, in ApplyUpdatePayload() argument
165 payload, payload_offset, payload_size, headers, nullptr)); in ApplyUpdatePayload()
Dbinder_service_stable_android.h57 int64_t payload_size,
Dupdate_attempter_android.h78 int64_t payload_size,
83 int64_t payload_size,
/system/update_engine/binder_bindings/android/os/
DIUpdateEngine.aidl27 in long payload_size, in applyPayload() argument
32 in long payload_size, in applyPayloadFd() argument
/system/core/fs_mgr/libdm/
Ddm.cpp351 uint32_t payload_size = sizeof(struct dm_target_versions); in GetAvailableTargets() local
352 payload_size += DM_MAX_TYPE_NAME; in GetAvailableTargets()
354 payload_size = DM_ALIGN(payload_size); in GetAvailableTargets()
355 payload_size *= kMaxPossibleDmTargets; in GetAvailableTargets()
357 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableTargets()
428 uint32_t payload_size = sizeof(struct dm_name_list); in GetAvailableDevices() local
430 payload_size += DM_NAME_LEN; in GetAvailableDevices()
432 payload_size = DM_ALIGN(payload_size); in GetAvailableDevices()
433 payload_size *= kMaxPossibleDmDevices; in GetAvailableDevices()
434 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableDevices()
/system/update_engine/common/
Dmetrics_reporter_stub.h50 int64_t payload_size, in ReportUpdateAttemptMetrics() argument
67 int64_t payload_size, in ReportSuccessfulUpdateMetrics() argument
Dmock_metrics_reporter.h49 int64_t payload_size,
66 int64_t payload_size,
Dmetrics_reporter_interface.h121 int64_t payload_size,
170 int64_t payload_size,
/system/update_engine/stable/aidl_api/libupdate_engine_stable/current/android/os/
DIUpdateEngineStable.aidl20 …void applyPayloadFd(in ParcelFileDescriptor pfd, in long payload_offset, in long payload_size, in … in applyPayloadFd() argument
/system/update_engine/stable/aidl_api/libupdate_engine_stable/1/android/os/
DIUpdateEngineStable.aidl36 …void applyPayloadFd(in ParcelFileDescriptor pfd, in long payload_offset, in long payload_size, in … in applyPayloadFd() argument
/system/update_engine/stable/android/os/
DIUpdateEngineStable.aidl41 in long payload_size, in applyPayloadFd() argument
/system/update_engine/
Dlibcurl_http_fetcher.cc589 const size_t payload_size = size * nmemb; in LibcurlWrite() local
592 if (payload_size == 0 || !IsHttpResponseSuccess()) { in LibcurlWrite()
594 << ") or no payload (" << payload_size << "), nothing to do"; in LibcurlWrite()
610 bytes_downloaded_ += payload_size; in LibcurlWrite()
613 auto should_terminate = !delegate_->ReceivedBytes(this, ptr, payload_size); in LibcurlWrite()
623 return payload_size; in LibcurlWrite()
/system/core/trusty/storage/proxy/
Drpmb.c488 size_t payload_size) { in send_virt_rpmb_req() argument
491 uint16_t cmd_count = payload_size / MMC_BLOCK_SIZE; in send_virt_rpmb_req()
500 rc = write(rpmb_fd, payload, payload_size); in send_virt_rpmb_req()
557 size_t payload_size = req->reliable_write_size + req->write_size; in rpmb_send() local
558 rc = send_virt_rpmb_req(rpmb_fd, read_buf, req->read_size, req->payload, payload_size); in rpmb_send()
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dsnapuserd_dm_user.cpp291 size_t payload_size = size; in WriteDmUserPayload() local
294 payload_size += sizeof(struct dm_user_header); in WriteDmUserPayload()
298 if (!android::base::WriteFully(ctrl_fd_, buf, payload_size)) { in WriteDmUserPayload()
299 SNAP_PLOG(ERROR) << "Write to dm-user failed size: " << payload_size; in WriteDmUserPayload()
/system/core/fs_mgr/libsnapshot/snapuserd/dm-snapshot-merge/
Dsnapuserd_worker.cpp611 size_t payload_size = size; in WriteDmUserPayload() local
614 payload_size += sizeof(struct dm_user_header); in WriteDmUserPayload()
618 if (!android::base::WriteFully(ctrl_fd_, buf, payload_size)) { in WriteDmUserPayload()
619 SNAP_PLOG(ERROR) << "Write to dm-user failed size: " << payload_size; in WriteDmUserPayload()
/system/update_engine/payload_consumer/
Ddelta_performer.cc99 size_t payload_size = payload_->size; in LogProgress() local
102 if (payload_size) { in LogProgress()
103 payload_size_str = std::to_string(payload_size); in LogProgress()
106 " (%" PRIu64 "%%)", IntRatio(total_bytes_received_, payload_size, 100)); in LogProgress()
133 size_t payload_size = payload_->size; in UpdateOverallProgress() local
135 if (payload_size) in UpdateOverallProgress()
138 total_bytes_received_, payload_size, kProgressDownloadWeight)), in UpdateOverallProgress()

12