Lines Matching refs:updater
71 static bool UpdateBlockDeviceNameForPartition(UpdaterInterface* updater, Partition* partition) { in UpdateBlockDeviceNameForPartition() argument
72 CHECK(updater); in UpdateBlockDeviceNameForPartition()
73 std::string name = updater->FindBlockDeviceName(partition->name); in UpdateBlockDeviceNameForPartition()
92 state->updater->UiPrint(buffer); in UIPrintFn()
118 ZipArchiveHandle za = state->updater->GetPackageHandle(); in PackageExtractFileFn()
127 if (std::string block_device_name = state->updater->FindBlockDeviceName(dest_path); in PackageExtractFileFn()
168 ZipArchiveHandle za = state->updater->GetPackageHandle(); in PackageExtractFileFn()
228 if (!UpdateBlockDeviceNameForPartition(state->updater, &source) || in PatchPartitionCheckFn()
229 !UpdateBlockDeviceNameForPartition(state->updater, &target)) { in PatchPartitionCheckFn()
274 if (!UpdateBlockDeviceNameForPartition(state->updater, &source) || in PatchPartitionFn()
275 !UpdateBlockDeviceNameForPartition(state->updater, &target)) { in PatchPartitionFn()
322 auto updater = state->updater; in MountFn() local
323 if (updater->GetRuntime()->Mount(location, mount_point, fs_type, mount_options) != 0) { in MountFn()
324 updater->UiPrint(android::base::StringPrintf("%s: Failed to mount %s at %s: %s", name, in MountFn()
349 auto updater_runtime = state->updater->GetRuntime(); in IsMountedFn()
371 auto updater = state->updater; in UnmountFn() local
372 auto [mounted, result] = updater->GetRuntime()->Unmount(mount_point); in UnmountFn()
374 updater->UiPrint( in UnmountFn()
378 updater->UiPrint(android::base::StringPrintf("Failed to unmount %s: %s", mount_point.c_str(), in UnmountFn()
429 auto updater_runtime = state->updater->GetRuntime(); in FormatFn()
508 state->updater->WriteToCommandPipe(android::base::StringPrintf("progress %f %d", frac, sec)); in ShowProgressFn()
531 state->updater->WriteToCommandPipe(android::base::StringPrintf("set_progress %f", frac)); in SetProgressFn()
545 auto updater_runtime = state->updater->GetRuntime(); in GetPropFn()
571 auto updater_runtime = state->updater->GetRuntime(); in FileGetPropFn()
634 state->updater->WriteToCommandPipe("wipe_cache"); in WipeCacheFn()
648 auto updater_runtime = state->updater->GetRuntime(); in RunProgramFn()
667 auto updater_runtime = state->updater->GetRuntime(); in ReadFileFn()
697 auto updater_runtime = state->updater->GetRuntime(); in WriteValueFn()
828 auto updater_runtime = state->updater->GetRuntime(); in WipeBlockDeviceFn()
838 state->updater->WriteToCommandPipe("enable_reboot"); in EnableRebootFn()
854 auto updater_runtime = state->updater->GetRuntime(); in Tune2FsFn()
871 auto updater_runtime = state->updater->GetRuntime(); in AddSlotSuffixFn()