/bootable/recovery/edify/ |
D | expr.cpp | 50 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 …]
|
D | parser.yy | 49 e->argv.emplace_back(va_arg(v, Expr*)); 114 $$->argv = std::move(*$3);
|
/bootable/recovery/updater/ |
D | install.cpp | 84 Value* UIPrintFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UIPrintFn() argument 86 if (!ReadArgs(state, argv, &args)) { in UIPrintFn() 100 const std::vector<std::unique_ptr<Expr>>& argv) { in PackageExtractFileFn() argument 101 if (argv.size() < 1 || argv.size() > 2) { in PackageExtractFileFn() 103 argv.size()); in PackageExtractFileFn() 106 if (argv.size() == 2) { in PackageExtractFileFn() 110 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn() 112 argv.size()); in PackageExtractFileFn() 161 if (!ReadArgs(state, argv, &args)) { in PackageExtractFileFn() 163 argv.size()); in PackageExtractFileFn() [all …]
|
D | updater_main.cpp | 48 int main(int argc, char** argv) { in main() argument 58 android::base::InitLogging(argv, &UpdaterLogger); in main() 71 char* version = argv[1]; in main() 74 LOG(ERROR) << "wrong updater binary API; expected 1, 2, or 3; got " << argv[1]; in main() 79 if (!android::base::ParseInt(argv[2], &fd)) { in main() 80 LOG(ERROR) << "Failed to parse fd in " << argv[2]; in main() 84 std::string package_name = argv[3]; in main() 88 if (strcmp(argv[4], "retry") == 0) { in main() 91 LOG(ERROR) << "unexpected argument: " << argv[4]; in main()
|
D | dynamic_partitions.cpp | 37 const std::vector<std::unique_ptr<Expr>>& argv, in ReadStringArgs() argument 39 if (argv.size() != arg_names.size()) { in ReadStringArgs() 41 arg_names.size(), argv.size()); in ReadStringArgs() 46 if (!ReadValueArgs(state, argv, &args)) { in ReadStringArgs() 67 const std::vector<std::unique_ptr<Expr>>& argv) { in UnmapPartitionFn() argument 68 auto args = ReadStringArgs(name, state, argv, { "name" }); in UnmapPartitionFn() 77 const std::vector<std::unique_ptr<Expr>>& argv) { in MapPartitionFn() argument 78 auto args = ReadStringArgs(name, state, argv, { "name" }); in MapPartitionFn() 90 const std::vector<std::unique_ptr<Expr>>& argv) { in UpdateDynamicPartitionsFn() argument 91 if (argv.size() != 1) { in UpdateDynamicPartitionsFn() [all …]
|
D | update_simulator_main.cpp | 53 int main(int argc, char** argv) { in main() argument 55 android::base::InitLogging(argv, &android::base::StderrLogger); in main() 76 while ((arg = getopt_long(argc, argv, "", OPTIONS, &option_index)) != -1) { in main() 79 Usage(argv[0]); in main() 98 Usage(argv[0]); in main() 104 Usage(argv[0]); in main()
|
D | updater_runtime.cpp | 162 auto argv = StringVectorToNullTerminatedArray(args); in RunProgram() local 163 LOG(INFO) << "about to run program [" << args[0] << "] with " << argv.size() << " args"; in RunProgram() 167 execv(argv[0], argv.data()); in RunProgram()
|
D | blockimg.cpp | 1627 const std::vector<std::unique_ptr<Expr>>& argv, in PerformBlockImageUpdate() argument 1638 if (argv.size() != 4) { in PerformBlockImageUpdate() 1640 argv.size()); in PerformBlockImageUpdate() 1645 if (!ReadValueArgs(state, argv, &args)) { in PerformBlockImageUpdate() 2025 const std::vector<std::unique_ptr<Expr>>& argv) { in BlockImageVerifyFn() argument 2044 return PerformBlockImageUpdate(name, state, argv, command_map, true); in BlockImageVerifyFn() 2048 const std::vector<std::unique_ptr<Expr>>& argv) { in BlockImageUpdateFn() argument 2065 return PerformBlockImageUpdate(name, state, argv, command_map, false); in BlockImageUpdateFn() 2068 Value* RangeSha1Fn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in RangeSha1Fn() argument 2069 if (argv.size() != 2) { in RangeSha1Fn() [all …]
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 72 const std::vector<std::unique_ptr<Expr>>& argv); 77 std::vector<std::unique_ptr<Expr>> argv; member 96 Value* Literal(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 101 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 102 Value* LogicalAndFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 103 Value* LogicalOrFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 104 Value* LogicalNotFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 105 Value* SubstringFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 106 Value* EqualityFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); 107 Value* InequalityFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv); [all …]
|
/bootable/recovery/minadbd/ |
D | minadbd.cpp | 36 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/ |
D | recovery-refresh.cpp | 48 int main(int argc, char **argv) { in main() argument 55 if ((argc <= 1) || !argv[1] || in main() 56 (((doRotate = strcmp(argv[1], rotate_flag))) && in main() 57 strcmp(argv[1], force_rotate_flag))) { in main()
|
D | recovery-persist.cpp | 113 int main(int argc, char **argv) { in main() argument 150 if ((argc <= 1) || !argv[1] || strcmp(argv[1], "--force-persist")) { in main()
|
D | interlace-frames.py | 99 def main(argv): argument 104 args = parser.parse_args(argv) 114 main(sys.argv[1:])
|
D | recovery_main.cpp | 92 static std::vector<std::string> get_args(const int argc, char** const argv, std::string* stage) { in get_args() argument 121 std::vector<std::string> args(argv, argv + argc); in get_args() 319 int main(int argc, char** argv) { in main() argument 322 android::base::InitLogging(argv, &UiLogger); in main() 342 std::vector<std::string> args = get_args(argc, argv, &stage); in main()
|
/bootable/recovery/applypatch/ |
D | applypatch_main.cpp | 22 int main(int argc, char** argv) { in main() argument 23 android::base::InitLogging(argv); in main() 24 return applypatch_modes(argc, argv); in main()
|
D | imgdiff_main.cpp | 19 int main(int argc, char** argv) { in main() argument 20 return imgdiff(argc, const_cast<const char**>(argv)); in main()
|
D | applypatch_modes.h | 20 int applypatch_modes(int argc, char* argv[]);
|
D | applypatch_modes.cpp | 111 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()
|
D | imgdiff.cpp | 1474 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/ |
D | update_verifier_main.cpp | 26 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()
|
D | care_map_generator.py | 89 def main(argv): argument 108 args = parser.parse_args(argv) 129 main(sys.argv[1:])
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 621 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()
|
/bootable/recovery/recovery_utils/ |
D | roots.cpp | 94 auto argv = StringVectorToNullTerminatedArray(args); in exec_cmd() local 98 execv(argv[0], argv.data()); in exec_cmd()
|
/bootable/recovery/applypatch/include/applypatch/ |
D | imgdiff.h | 37 int imgdiff(int argc, const char** argv);
|
/bootable/recovery/update_verifier/include/update_verifier/ |
D | update_verifier.h | 34 int update_verifier(int argc, char** argv);
|