Home
last modified time | relevance | path

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

/bootable/recovery/applypatch/
Dapplypatch_modes.cpp35 static int CheckMode(int argc, const char** argv) { in CheckMode() argument
41 sha1.push_back(argv[i]); in CheckMode()
44 return applypatch_check(argv[2], sha1); in CheckMode()
49 static bool ParsePatchArgs(int argc, const char** argv, std::vector<std::string>* sha1s, in ParsePatchArgs() argument
55 std::vector<std::string> pieces = android::base::Split(argv[i], ":"); in ParsePatchArgs()
57 printf("failed to parse patch argument \"%s\"\n", argv[i]); in ParsePatchArgs()
63 printf("failed to parse sha1 \"%s\"\n", argv[i]); in ParsePatchArgs()
82 static int PatchMode(int argc, const char** argv) { in PatchMode() argument
86 if (argc >= 3 && strcmp(argv[1], "-b") == 0) { in PatchMode()
87 if (LoadFileContents(argv[2], &bonusFc) != 0) { in PatchMode()
[all …]
Dimgdiff_main.cpp19 int main(int argc, char** argv) { in main() argument
20 return imgdiff(argc, const_cast<const char**>(argv)); in main()
Dapplypatch_main.cpp26 int main(int argc, char** argv) { in main() argument
27 return applypatch_modes(argc, const_cast<const char**>(argv)); in main()
Dapplypatch_modes.h20 int applypatch_modes(int argc, const char** argv);
Dimgdiff.cpp853 int imgdiff(int argc, const char** argv) { in imgdiff() argument
856 if (argc >= 2 && strcmp(argv[1], "-z") == 0) { in imgdiff()
859 ++argv; in imgdiff()
863 if (argc >= 3 && strcmp(argv[1], "-b") == 0) { in imgdiff()
864 android::base::unique_fd fd(open(argv[2], O_RDONLY)); in imgdiff()
866 printf("failed to open bonus file %s: %s\n", argv[2], strerror(errno)); in imgdiff()
871 printf("failed to stat bonus file %s: %s\n", argv[2], strerror(errno)); in imgdiff()
878 printf("failed to read bonus file %s: %s\n", argv[2], strerror(errno)); in imgdiff()
883 argv += 2; in imgdiff()
888 argv[0]); in imgdiff()
[all …]
/bootable/recovery/edify/
Dexpr.cpp48 std::unique_ptr<Value> v(expr->fn(expr->name.c_str(), state, expr->argv)); in Evaluate()
62 return expr->fn(expr->name.c_str(), state, expr->argv); in EvaluateValue()
76 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in ConcatFn() argument
77 if (argv.empty()) { in ConcatFn()
81 for (size_t i = 0; i < argv.size(); ++i) { in ConcatFn()
83 if (!Evaluate(state, argv[i], &str)) { in ConcatFn()
92 Value* IfElseFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IfElseFn() argument
93 if (argv.size() != 2 && argv.size() != 3) { in IfElseFn()
99 if (!Evaluate(state, argv[0], &cond)) { in IfElseFn()
104 return EvaluateValue(state, argv[1]); in IfElseFn()
[all …]
Dexpr.h72 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 …]
Dedify_parser.cpp42 for (size_t i = 0; i < n->argv.size(); ++i) { in ExprDump()
43 ExprDump(depth+1, n->argv[i], script); in ExprDump()
47 int main(int argc, char** argv) { in main() argument
51 printf("Usage: %s <edify script>\n", argv[0]); in main()
56 if (!android::base::ReadFileToString(argv[1], &buffer)) { in main()
57 printf("%s: failed to read %s: %s\n", argv[0], argv[1], strerror(errno)); in main()
Dparser.yy49 e->argv.emplace_back(va_arg(v, Expr*));
114 $$->argv = std::move(*$3);
/bootable/recovery/updater/
Dinstall.cpp130 Value* MountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in MountFn() argument
131 if (argv.size() != 4 && argv.size() != 5) { in MountFn()
133 argv.size()); in MountFn()
137 if (!ReadArgs(state, argv, &args)) { in MountFn()
146 if (argv.size() == 5) { in MountFn()
192 Value* IsMountedFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IsMountedFn() argument
193 if (argv.size() != 1) { in IsMountedFn()
194 return ErrorAbort(state, kArgsParsingFailure, "%s() expects 1 arg, got %zu", name, argv.size()); in IsMountedFn()
198 if (!ReadArgs(state, argv, &args)) { in IsMountedFn()
216 Value* UnmountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UnmountFn() argument
[all …]
Dupdater.cpp59 int main(int argc, char** argv) { in main() argument
69 android::base::InitLogging(argv, &UpdaterLogger); in main()
76 char* version = argv[1]; in main()
79 LOG(ERROR) << "wrong updater binary API; expected 1, 2, or 3; got " << argv[1]; in main()
85 int fd = atoi(argv[2]); in main()
91 const char* package_filename = argv[3]; in main()
94 LOG(ERROR) << "failed to map package " << argv[3]; in main()
98 int open_err = OpenArchiveFromMemory(map.addr, map.length, argv[3], &za); in main()
100 LOG(ERROR) << "failed to open package " << argv[3] << ": " << ErrorCodeString(open_err); in main()
162 if (strcmp(argv[4], "retry") == 0) { in main()
[all …]
Dblockimg.cpp1397 const std::vector<std::unique_ptr<Expr>>& argv, in PerformBlockImageUpdate() argument
1407 if (argv.size() != 4) { in PerformBlockImageUpdate()
1409 argv.size()); in PerformBlockImageUpdate()
1414 if (!ReadValueArgs(state, argv, &args)) { in PerformBlockImageUpdate()
1685 const std::vector<std::unique_ptr<Expr>>& argv) { in BlockImageVerifyFn() argument
1699 return PerformBlockImageUpdate(name, state, argv, commands, in BlockImageVerifyFn()
1704 const std::vector<std::unique_ptr<Expr>>& argv) { in BlockImageUpdateFn() argument
1716 return PerformBlockImageUpdate(name, state, argv, commands, in BlockImageUpdateFn()
1720 Value* RangeSha1Fn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in RangeSha1Fn() argument
1721 if (argv.size() != 2) { in RangeSha1Fn()
[all …]
/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()
Drecovery-persist.cpp112 int main(int argc, char **argv) { in main() argument
146 if ((argc <= 1) || !argv[1] || strcmp(argv[1], "--force-persist")) { in main()
Dinterlace-frames.py99 def main(argv): argument
104 args = parser.parse_args(argv)
114 main(sys.argv[1:])
Droots.cpp163 static int exec_cmd(const char* path, char* const argv[]) { in exec_cmd() argument
167 execv(path, argv); in exec_cmd()
Drecovery.cpp311 static std::vector<std::string> get_args(const int argc, char** const argv) { in get_args() argument
333 std::vector<std::string> args(argv, argv + argc); in get_args()
1351 int main(int argc, char **argv) { in main() argument
1354 android::base::InitLogging(argv, &UiLogger); in main()
1376 if (argc == 2 && strcmp(argv[1], "--adbd") == 0) { in main()
1392 std::vector<std::string> args = get_args(argc, argv); in main()
/bootable/recovery/update_verifier/
Dupdate_verifier_main.cpp21 int main(int argc, char** argv) { in main() argument
22 return update_verifier(argc, argv); in main()
Dupdate_verifier.cpp257 int update_verifier(int argc, char** argv) { in update_verifier() argument
259 LOG(INFO) << "Started with arg " << i << ": " << argv[i]; in update_verifier()
/bootable/recovery/update_verifier/include/update_verifier/
Dupdate_verifier.h21 int update_verifier(int argc, char** argv);
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff.h37 int imgdiff(int argc, const char** argv);
/bootable/recovery/minui/
Dmkfont.c4 int main(int argc, char *argv) in main() argument
/bootable/recovery/uncrypt/
Duncrypt.cpp602 int main(int argc, char** argv) { in main() argument
607 if (argc == 2 && strcmp(argv[1], "--clear-bcb") == 0) { in main()
609 } else if (argc == 2 && strcmp(argv[1], "--setup-bcb") == 0) { in main()
614 input_path = argv[1]; in main()
615 map_file = argv[2]; in main()
618 usage(argv[0]); in main()