Lines Matching refs:argv

85 Value* UIPrintFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) {  in UIPrintFn()  argument
87 if (!ReadArgs(state, argv, &args)) { in UIPrintFn()
101 const std::vector<std::unique_ptr<Expr>>& argv) { in PackageExtractFileFn() argument
102 if (argv.size() < 1 || argv.size() > 2) { in PackageExtractFileFn()
104 argv.size()); in PackageExtractFileFn()
107 if (argv.size() == 2) { in PackageExtractFileFn()
111 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn()
113 argv.size()); in PackageExtractFileFn()
162 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn()
164 argv.size()); in PackageExtractFileFn()
204 const std::vector<std::unique_ptr<Expr>>& argv) { in PatchPartitionCheckFn() argument
205 if (argv.size() != 2) { in PatchPartitionCheckFn()
207 "%s(): Invalid number of args (expected 2, got %zu)", name, argv.size()); in PatchPartitionCheckFn()
211 if (!ReadArgs(state, argv, &args, 0, 2)) { in PatchPartitionCheckFn()
245 const std::vector<std::unique_ptr<Expr>>& argv) { in PatchPartitionFn() argument
246 if (argv.size() != 3) { in PatchPartitionFn()
248 "%s(): Invalid number of args (expected 3, got %zu)", name, argv.size()); in PatchPartitionFn()
252 if (!ReadArgs(state, argv, &args, 0, 2)) { in PatchPartitionFn()
270 if (!ReadValueArgs(state, argv, &values, 2, 1) || values[0]->type != Value::Type::BLOB) { in PatchPartitionFn()
287 Value* MountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in MountFn() argument
288 if (argv.size() != 4 && argv.size() != 5) { in MountFn()
290 argv.size()); in MountFn()
294 if (!ReadArgs(state, argv, &args)) { in MountFn()
303 if (argv.size() == 5) { in MountFn()
334 Value* IsMountedFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IsMountedFn() argument
335 if (argv.size() != 1) { in IsMountedFn()
336 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in IsMountedFn()
340 if (!ReadArgs(state, argv, &args)) { in IsMountedFn()
357 Value* UnmountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UnmountFn() argument
358 if (argv.size() != 1) { in UnmountFn()
359 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in UnmountFn()
362 if (!ReadArgs(state, argv, &args)) { in UnmountFn()
392 Value* FormatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in FormatFn() argument
393 if (argv.size() != 5) { in FormatFn()
395 argv.size()); in FormatFn()
399 if (!ReadArgs(state, argv, &args)) { in FormatFn()
484 const std::vector<std::unique_ptr<Expr>>& argv) { in ShowProgressFn() argument
485 if (argv.size() != 2) { in ShowProgressFn()
487 argv.size()); in ShowProgressFn()
491 if (!ReadArgs(state, argv, &args)) { in ShowProgressFn()
514 const std::vector<std::unique_ptr<Expr>>& argv) { in SetProgressFn() argument
515 if (argv.size() != 1) { in SetProgressFn()
516 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in SetProgressFn()
520 if (!ReadArgs(state, argv, &args)) { in SetProgressFn()
536 Value* GetPropFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in GetPropFn() argument
537 if (argv.size() != 1) { in GetPropFn()
538 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetPropFn()
541 if (!Evaluate(state, argv[0], &key)) { in GetPropFn()
557 const std::vector<std::unique_ptr<Expr>>& argv) { in FileGetPropFn() argument
558 if (argv.size() != 2) { in FileGetPropFn()
560 argv.size()); in FileGetPropFn()
564 if (!ReadArgs(state, argv, &args)) { in FileGetPropFn()
604 const std::vector<std::unique_ptr<Expr>>& argv) { in ApplyPatchSpaceFn() argument
605 if (argv.size() != 1) { in ApplyPatchSpaceFn()
607 argv.size()); in ApplyPatchSpaceFn()
610 if (!ReadArgs(state, argv, &args)) { in ApplyPatchSpaceFn()
628 Value* WipeCacheFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in WipeCacheFn() argument
629 if (!argv.empty()) { in WipeCacheFn()
631 argv.size()); in WipeCacheFn()
638 Value* RunProgramFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv)… in RunProgramFn() argument
639 if (argv.size() < 1) { in RunProgramFn()
644 if (!ReadArgs(state, argv, &args)) { in RunProgramFn()
655 Value* ReadFileFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in ReadFileFn() argument
656 if (argv.size() != 1) { in ReadFileFn()
657 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in ReadFileFn()
661 if (!ReadArgs(state, argv, &args)) { in ReadFileFn()
680 Value* WriteValueFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv)… in WriteValueFn() argument
681 if (argv.size() != 2) { in WriteValueFn()
683 argv.size()); in WriteValueFn()
687 if (!ReadArgs(state, argv, &args)) { in WriteValueFn()
714 Value* RebootNowFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in RebootNowFn() argument
715 if (argv.size() != 2) { in RebootNowFn()
717 argv.size()); in RebootNowFn()
721 if (!ReadArgs(state, argv, &args)) { in RebootNowFn()
755 Value* SetStageFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in SetStageFn() argument
756 if (argv.size() != 2) { in SetStageFn()
758 argv.size()); in SetStageFn()
762 if (!ReadArgs(state, argv, &args)) { in SetStageFn()
789 Value* GetStageFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in GetStageFn() argument
790 if (argv.size() != 1) { in GetStageFn()
791 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in GetStageFn()
795 if (!ReadArgs(state, argv, &args)) { in GetStageFn()
810 …WipeBlockDeviceFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in WipeBlockDeviceFn() argument
811 if (argv.size() != 2) { in WipeBlockDeviceFn()
813 argv.size()); in WipeBlockDeviceFn()
817 if (!ReadArgs(state, argv, &args)) { in WipeBlockDeviceFn()
833 …e* EnableRebootFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in EnableRebootFn() argument
834 if (!argv.empty()) { in EnableRebootFn()
836 argv.size()); in EnableRebootFn()
842 Value* Tune2FsFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in Tune2FsFn() argument
843 if (argv.empty()) { in Tune2FsFn()
844 return ErrorAbort(state, kArgsParsingFailure, "%s() expects args, got %zu", name, argv.size()); in Tune2FsFn()
848 if (!ReadArgs(state, argv, &args)) { in Tune2FsFn()
862 const std::vector<std::unique_ptr<Expr>>& argv) { in AddSlotSuffixFn() argument
863 if (argv.size() != 1) { in AddSlotSuffixFn()
864 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in AddSlotSuffixFn()
867 if (!ReadArgs(state, argv, &args)) { in AddSlotSuffixFn()