Lines Matching refs:name

72   std::string name = updater->FindBlockDeviceName(partition->name);  in UpdateBlockDeviceNameForPartition()  local
73 if (name.empty()) { in UpdateBlockDeviceNameForPartition()
74 LOG(ERROR) << "Failed to find the block device " << partition->name; in UpdateBlockDeviceNameForPartition()
78 partition->name = std::move(name); in UpdateBlockDeviceNameForPartition()
84 Value* UIPrintFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UIPrintFn() argument
87 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse the argument(s)", name); in UIPrintFn()
99 Value* PackageExtractFileFn(const char* name, State* state, in PackageExtractFileFn() argument
102 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 or 2 args, got %zu", name, in PackageExtractFileFn()
111 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse %zu args", name, in PackageExtractFileFn()
120 LOG(ERROR) << name << ": no " << zip_path << " in package"; in PackageExtractFileFn()
134 PLOG(ERROR) << name << ": can't open " << dest_path << " for write"; in PackageExtractFileFn()
141 LOG(ERROR) << name << ": Failed to extract entry \"" << zip_path << "\" (" in PackageExtractFileFn()
162 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse %zu args", name, in PackageExtractFileFn()
170 return ErrorAbort(state, kPackageExtractFileFailure, "%s(): no %s in package", name, in PackageExtractFileFn()
181 "%s: Failed to extract entry \"%s\" (%zu bytes) to memory: %s", name, in PackageExtractFileFn()
197 Value* PatchPartitionCheckFn(const char* name, State* state, in PatchPartitionCheckFn() argument
201 "%s(): Invalid number of args (expected 2, got %zu)", name, argv.size()); in PatchPartitionCheckFn()
206 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse the argument(s)", name); in PatchPartitionCheckFn()
212 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse target \"%s\": %s", name, in PatchPartitionCheckFn()
218 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse source \"%s\": %s", name, in PatchPartitionCheckFn()
238 Value* PatchPartitionFn(const char* name, State* state, in PatchPartitionFn() argument
242 "%s(): Invalid number of args (expected 3, got %zu)", name, argv.size()); in PatchPartitionFn()
247 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse the argument(s)", name); in PatchPartitionFn()
253 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse target \"%s\": %s", name, in PatchPartitionFn()
259 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse source \"%s\": %s", name, in PatchPartitionFn()
265 return ErrorAbort(state, kArgsParsingFailure, "%s(): Invalid patch arg", name); in PatchPartitionFn()
281 Value* MountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in MountFn() argument
283 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 4-5 args, got %zu", name, in MountFn()
289 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in MountFn()
302 return ErrorAbort(state, kArgsParsingFailure, "fs_type argument to %s() can't be empty", name); in MountFn()
306 name); in MountFn()
309 return ErrorAbort(state, kArgsParsingFailure, "location argument to %s() can't be empty", name); in MountFn()
313 name); in MountFn()
318 updater->UiPrint(android::base::StringPrintf("%s: Failed to mount %s at %s: %s", name, in MountFn()
328 Value* IsMountedFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IsMountedFn() argument
330 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in IsMountedFn()
335 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in IsMountedFn()
351 Value* UnmountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UnmountFn() argument
353 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in UnmountFn()
357 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in UnmountFn()
386 Value* FormatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in FormatFn() argument
388 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 5 args, got %zu", name, in FormatFn()
394 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in FormatFn()
403 return ErrorAbort(state, kArgsParsingFailure, "fs_type argument to %s() can't be empty", name); in FormatFn()
407 name); in FormatFn()
410 return ErrorAbort(state, kArgsParsingFailure, "location argument to %s() can't be empty", name); in FormatFn()
414 name); in FormatFn()
419 return ErrorAbort(state, kArgsParsingFailure, "%s: failed to parse int in %s", name, in FormatFn()
433 LOG(ERROR) << name << ": mke2fs failed (" << status << ") on " << location; in FormatFn()
440 LOG(ERROR) << name << ": e2fsdroid failed (" << status << ") on " << location; in FormatFn()
448 LOG(ERROR) << name << ": fs_size can't be negative for f2fs: " << fs_size; in FormatFn()
458 LOG(ERROR) << name << ": make_f2fs failed (" << status << ") on " << location; in FormatFn()
465 LOG(ERROR) << name << ": sload_f2fs failed (" << status << ") on " << location; in FormatFn()
472 LOG(ERROR) << name << ": unsupported fs_type \"" << fs_type << "\" partition_type \"" in FormatFn()
477 Value* ShowProgressFn(const char* name, State* state, in ShowProgressFn() argument
480 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 2 args, got %zu", name, in ShowProgressFn()
486 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in ShowProgressFn()
493 return ErrorAbort(state, kArgsParsingFailure, "%s: failed to parse double in %s", name, in ShowProgressFn()
498 return ErrorAbort(state, kArgsParsingFailure, "%s: failed to parse int in %s", name, in ShowProgressFn()
507 Value* SetProgressFn(const char* name, State* state, in SetProgressFn() argument
510 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in SetProgressFn()
515 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in SetProgressFn()
521 return ErrorAbort(state, kArgsParsingFailure, "%s: failed to parse double in %s", name, in SetProgressFn()
530 Value* GetPropFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in GetPropFn() argument
532 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetPropFn()
550 Value* FileGetPropFn(const char* name, State* state, in FileGetPropFn() argument
553 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 2 args, got %zu", name, in FileGetPropFn()
559 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in FileGetPropFn()
567 ErrorAbort(state, kFreadFailure, "%s: failed to read %s", name, filename.c_str()); in FileGetPropFn()
597 Value* ApplyPatchSpaceFn(const char* name, State* state, in ApplyPatchSpaceFn() argument
600 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 args, got %zu", name, in ApplyPatchSpaceFn()
605 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in ApplyPatchSpaceFn()
611 return ErrorAbort(state, kArgsParsingFailure, "%s(): can't parse \"%s\" as byte count", name, in ApplyPatchSpaceFn()
622 Value* WipeCacheFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in WipeCacheFn() argument
624 return ErrorAbort(state, kArgsParsingFailure, "%s() expects no args, got %zu", name, in WipeCacheFn()
632 Value* RunProgramFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv)… in RunProgramFn() argument
634 return ErrorAbort(state, kArgsParsingFailure, "%s() expects at least 1 arg", name); in RunProgramFn()
639 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in RunProgramFn()
649 Value* ReadFileFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in ReadFileFn() argument
651 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in ReadFileFn()
656 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse the argument(s)", name); in ReadFileFn()
667 PLOG(ERROR) << name << ": Failed to read " << filename; in ReadFileFn()
674 Value* WriteValueFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv)… in WriteValueFn() argument
676 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 2 args, got %zu", name, in WriteValueFn()
682 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse the argument(s)", name); in WriteValueFn()
687 return ErrorAbort(state, kArgsParsingFailure, "%s(): Filename cannot be empty", name); in WriteValueFn()
693 PLOG(ERROR) << name << ": Failed to write to \"" << filename << "\""; in WriteValueFn()
708 Value* RebootNowFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in RebootNowFn() argument
710 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 2 args, got %zu", name, in RebootNowFn()
716 return ErrorAbort(state, kArgsParsingFailure, "%s(): Failed to parse the argument(s)", name); in RebootNowFn()
725 LOG(ERROR) << name << "(): Failed to read from \"" << filename << "\": " << err; in RebootNowFn()
730 LOG(ERROR) << name << "(): Failed to write to \"" << filename << "\": " << err; in RebootNowFn()
736 return ErrorAbort(state, kRebootFailure, "%s() failed to reboot", name); in RebootNowFn()
749 Value* SetStageFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in SetStageFn() argument
751 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 2 args, got %zu", name, in SetStageFn()
757 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in SetStageFn()
769 LOG(ERROR) << name << "(): Failed to read from \"" << filename << "\": " << err; in SetStageFn()
774 LOG(ERROR) << name << "(): Failed to write to \"" << filename << "\": " << err; in SetStageFn()
783 Value* GetStageFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in GetStageFn() argument
785 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetStageFn()
790 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in GetStageFn()
797 LOG(ERROR) << name << "(): Failed to read from \"" << filename << "\": " << err; in GetStageFn()
804 Value* WipeBlockDeviceFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& … in WipeBlockDeviceFn() argument
806 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 2 args, got %zu", name, in WipeBlockDeviceFn()
812 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in WipeBlockDeviceFn()
827 Value* EnableRebootFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& arg… in EnableRebootFn() argument
829 return ErrorAbort(state, kArgsParsingFailure, "%s() expects no args, got %zu", name, in EnableRebootFn()
836 Value* Tune2FsFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in Tune2FsFn() argument
838 return ErrorAbort(state, kArgsParsingFailure, "%s() expects args, got %zu", name, argv.size()); in Tune2FsFn()
843 return ErrorAbort(state, kArgsParsingFailure, "%s() could not read args", name); in Tune2FsFn()
850 return ErrorAbort(state, kTune2FsFailure, "%s() returned error code %d", name, result); in Tune2FsFn()
855 Value* AddSlotSuffixFn(const char* name, State* state, in AddSlotSuffixFn() argument
858 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in AddSlotSuffixFn()
862 return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name); in AddSlotSuffixFn()