Lines Matching refs:filename

567   const std::string& filename = args[0];  in FileGetPropFn()  local
572 if (!updater_runtime->ReadFileToString(filename, &buffer)) { in FileGetPropFn()
573 ErrorAbort(state, kFreadFailure, "%s: failed to read %s", name, filename.c_str()); in FileGetPropFn()
664 const std::string& filename = args[0]; in ReadFileFn() local
668 if (updater_runtime->ReadFileToString(filename, &contents)) { in ReadFileFn()
673 PLOG(ERROR) << name << ": Failed to read " << filename; in ReadFileFn()
691 const std::string& filename = args[1]; in WriteValueFn() local
692 if (filename.empty()) { in WriteValueFn()
698 if (!updater_runtime->WriteStringToFile(value, filename)) { in WriteValueFn()
699 PLOG(ERROR) << name << ": Failed to write to \"" << filename << "\""; in WriteValueFn()
724 const std::string& filename = args[0]; in RebootNowFn() local
730 if (!read_bootloader_message_from(&boot, filename, &err)) { in RebootNowFn()
731 LOG(ERROR) << name << "(): Failed to read from \"" << filename << "\": " << err; in RebootNowFn()
735 if (!write_bootloader_message_to(boot, filename, &err)) { in RebootNowFn()
736 LOG(ERROR) << name << "(): Failed to write to \"" << filename << "\": " << err; in RebootNowFn()
765 const std::string& filename = args[0]; in SetStageFn() local
774 if (!read_bootloader_message_from(&boot, filename, &err)) { in SetStageFn()
775 LOG(ERROR) << name << "(): Failed to read from \"" << filename << "\": " << err; in SetStageFn()
779 if (!write_bootloader_message_to(boot, filename, &err)) { in SetStageFn()
780 LOG(ERROR) << name << "(): Failed to write to \"" << filename << "\": " << err; in SetStageFn()
784 return StringValue(filename); in SetStageFn()
798 const std::string& filename = args[0]; in GetStageFn() local
802 if (!read_bootloader_message_from(&boot, filename, &err)) { in GetStageFn()
803 LOG(ERROR) << name << "(): Failed to read from \"" << filename << "\": " << err; in GetStageFn()
820 const std::string& filename = args[0]; in WipeBlockDeviceFn() local
829 int status = updater_runtime->WipeBlockDevice(filename, len); in WipeBlockDeviceFn()