Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 27) sorted by relevance

12

/bootable/recovery/edify/
Dexpr.cpp50 std::unique_ptr<Value> v(expr->fn(expr->name.c_str(), state, expr->argv)); in Evaluate()
64 return expr->fn(expr->name.c_str(), state, expr->argv); in EvaluateValue()
78 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in ConcatFn() argument
79 if (argv.empty()) { in ConcatFn()
83 for (size_t i = 0; i < argv.size(); ++i) { in ConcatFn()
85 if (!Evaluate(state, argv[i], &str)) { in ConcatFn()
94 Value* IfElseFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IfElseFn() argument
95 if (argv.size() != 2 && argv.size() != 3) { in IfElseFn()
101 if (!Evaluate(state, argv[0], &cond)) { in IfElseFn()
106 return EvaluateValue(state, argv[1]); in IfElseFn()
[all …]
Dparser.yy49 e->argv.emplace_back(va_arg(v, Expr*));
114 $$->argv = std::move(*$3);
/bootable/recovery/updater/
Dinstall.cpp99 Value* UIPrintFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UIPrintFn() argument
101 if (!ReadArgs(state, argv, &args)) { in UIPrintFn()
115 const std::vector<std::unique_ptr<Expr>>& argv) { in PackageExtractFileFn() argument
116 if (argv.size() < 1 || argv.size() > 2) { in PackageExtractFileFn()
118 argv.size()); in PackageExtractFileFn()
121 if (argv.size() == 2) { in PackageExtractFileFn()
125 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn()
127 argv.size()); in PackageExtractFileFn()
170 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn()
172 argv.size()); in PackageExtractFileFn()
[all …]
Dupdater.cpp58 int main(int argc, char** argv) { in main() argument
68 android::base::InitLogging(argv, &UpdaterLogger); in main()
75 char* version = argv[1]; in main()
78 LOG(ERROR) << "wrong updater binary API; expected 1, 2, or 3; got " << argv[1]; in main()
84 int fd = atoi(argv[2]); in main()
90 const char* package_filename = argv[3]; in main()
93 LOG(ERROR) << "failed to map package " << argv[3]; in main()
97 int open_err = OpenArchiveFromMemory(map.addr, map.length, argv[3], &za); in main()
99 LOG(ERROR) << "failed to open package " << argv[3] << ": " << ErrorCodeString(open_err); in main()
162 if (strcmp(argv[4], "retry") == 0) { in main()
[all …]
Ddynamic_partitions.cpp63 const std::vector<std::unique_ptr<Expr>>& argv, in ReadStringArgs() argument
65 if (argv.size() != arg_names.size()) { in ReadStringArgs()
67 arg_names.size(), argv.size()); in ReadStringArgs()
72 if (!ReadValueArgs(state, argv, &args)) { in ReadStringArgs()
121 const std::vector<std::unique_ptr<Expr>>& argv) { in UnmapPartitionFn() argument
122 auto args = ReadStringArgs(name, state, argv, { "name" }); in UnmapPartitionFn()
129 const std::vector<std::unique_ptr<Expr>>& argv) { in MapPartitionFn() argument
130 auto args = ReadStringArgs(name, state, argv, { "name" }); in MapPartitionFn()
337 const std::vector<std::unique_ptr<Expr>>& argv) { in UpdateDynamicPartitionsFn() argument
338 if (argv.size() != 1) { in UpdateDynamicPartitionsFn()
[all …]
Dblockimg.cpp1622 const std::vector<std::unique_ptr<Expr>>& argv, in PerformBlockImageUpdate() argument
1633 if (argv.size() != 4) { in PerformBlockImageUpdate()
1635 argv.size()); in PerformBlockImageUpdate()
1640 if (!ReadValueArgs(state, argv, &args)) { in PerformBlockImageUpdate()
2016 const std::vector<std::unique_ptr<Expr>>& argv) { in BlockImageVerifyFn() argument
2035 return PerformBlockImageUpdate(name, state, argv, command_map, true); in BlockImageVerifyFn()
2039 const std::vector<std::unique_ptr<Expr>>& argv) { in BlockImageUpdateFn() argument
2056 return PerformBlockImageUpdate(name, state, argv, command_map, false); in BlockImageUpdateFn()
2059 Value* RangeSha1Fn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in RangeSha1Fn() argument
2060 if (argv.size() != 2) { in RangeSha1Fn()
[all …]
/bootable/recovery/edify/include/edify/
Dexpr.h71 const std::vector<std::unique_ptr<Expr>>& argv);
76 std::vector<std::unique_ptr<Expr>> argv; member
95 Value* Literal(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
100 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
101 Value* LogicalAndFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
102 Value* LogicalOrFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
103 Value* LogicalNotFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
104 Value* SubstringFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
105 Value* EqualityFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
106 Value* InequalityFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
[all …]
/bootable/recovery/minadbd/
Dminadbd.cpp36 int main(int argc, char** argv) { in main() argument
37 android::base::InitLogging(argv, &android::base::StderrLogger); in main()
39 if ((argc != 3 && argc != 4) || argv[1] != "--socket_fd"s || in main()
40 (argc == 4 && argv[3] != "--rescue"s)) { in main()
46 if (!android::base::ParseInt(argv[2], &socket_fd)) { in main()
47 LOG(ERROR) << "Failed to parse int in " << argv[2]; in main()
/bootable/recovery/
Drecovery-refresh.cpp47 int main(int argc, char **argv) { in main() argument
54 if ((argc <= 1) || !argv[1] || in main()
55 (((doRotate = strcmp(argv[1], rotate_flag))) && in main()
56 strcmp(argv[1], force_rotate_flag))) { in main()
Dfsck_unshare_blocks.cpp86 std::vector<char*> argv(args.size()); in run_e2fsck() local
87 std::transform(args.cbegin(), args.cend(), argv.begin(), in run_e2fsck()
89 argv.push_back(nullptr); in run_e2fsck()
93 if (posix_spawn(&child, argv[0], nullptr, nullptr, argv.data(), env)) { in run_e2fsck()
Dinterlace-frames.py99 def main(argv): argument
104 args = parser.parse_args(argv)
114 main(sys.argv[1:])
Drecovery-persist.cpp129 int main(int argc, char **argv) { in main() argument
167 if ((argc <= 1) || !argv[1] || strcmp(argv[1], "--force-persist")) { in main()
Drecovery_main.cpp88 static std::vector<std::string> get_args(const int argc, char** const argv) { in get_args() argument
115 std::vector<std::string> args(argv, argv + argc); in get_args()
313 int main(int argc, char** argv) { in main() argument
316 android::base::InitLogging(argv, &UiLogger); in main()
336 std::vector<std::string> args = get_args(argc, argv); in main()
/bootable/recovery/applypatch/
Dapplypatch_main.cpp22 int main(int argc, char** argv) { in main() argument
23 android::base::InitLogging(argv); in main()
24 return applypatch_modes(argc, argv); in main()
Dimgdiff_main.cpp19 int main(int argc, char** argv) { in main() argument
20 return imgdiff(argc, const_cast<const char**>(argv)); in main()
Dapplypatch_modes.h20 int applypatch_modes(int argc, char* argv[]);
Dapplypatch_modes.cpp111 int applypatch_modes(int argc, char* argv[]) { in applypatch_modes() argument
139 while ((arg = getopt_long(argc, argv, "", OPTIONS, &option_index)) != -1) { in applypatch_modes()
Dimgdiff.cpp1474 int imgdiff(int argc, const char** argv) { in imgdiff() argument
1486 while ((opt = getopt_long(argc, const_cast<char**>(argv), "zb:v", OPTIONS, &option_index)) != in imgdiff()
1538 LOG(ERROR) << "usage: " << argv[0] << " [options] <src-img> <tgt-img> <patch-file>"; in imgdiff()
1557 if (!src_image.Initialize(argv[optind])) { in imgdiff()
1560 if (!tgt_image.Initialize(argv[optind + 1])) { in imgdiff()
1583 argv[optind + 2], split_info_file, debug_dir)) { in imgdiff()
1587 } else if (!ZipModeImage::GeneratePatches(tgt_image, src_image, argv[optind + 2])) { in imgdiff()
1594 if (!src_image.Initialize(argv[optind])) { in imgdiff()
1597 if (!tgt_image.Initialize(argv[optind + 1])) { in imgdiff()
1609 if (!ImageModeImage::GeneratePatches(tgt_image, src_image, argv[optind + 2])) { in imgdiff()
/bootable/recovery/update_verifier/
Dupdate_verifier_main.cpp26 int main(int argc, char** argv) { in main() argument
35 android::base::InitLogging(argv, &android::base::KernelLogger); in main()
37 return update_verifier(argc, argv); in main()
Dcare_map_generator.py89 def main(argv): argument
108 args = parser.parse_args(argv)
129 main(sys.argv[1:])
/bootable/recovery/misc_writer/
Dmisc_writer.cpp59 int main(int argc, char** argv) { in main() argument
72 while ((arg = getopt_long(argc, argv, "", OPTIONS, &option_index)) != -1) { in main()
75 return Usage(argv[0]); in main()
81 return Usage(argv[0]); in main()
93 return Usage(argv[0]); in main()
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff.h37 int imgdiff(int argc, const char** argv);
/bootable/recovery/update_verifier/include/update_verifier/
Dupdate_verifier.h34 int update_verifier(int argc, char** argv);
/bootable/recovery/otautil/
Droots.cpp93 auto argv = StringVectorToNullTerminatedArray(args); in exec_cmd() local
97 execv(argv[0], argv.data()); in exec_cmd()
/bootable/recovery/uncrypt/
Duncrypt.cpp621 int main(int argc, char** argv) { in main() argument
626 if (argc == 2 && strcmp(argv[1], "--clear-bcb") == 0) { in main()
628 } else if (argc == 2 && strcmp(argv[1], "--setup-bcb") == 0) { in main()
633 input_path = argv[1]; in main()
634 map_file = argv[2]; in main()
637 usage(argv[0]); in main()

12