Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 8 of 8) sorted by relevance

/bootable/recovery/tests/unit/
Dinstall_test.cpp126 std::vector<std::string> cmd; in TEST() local
127 ASSERT_TRUE(SetUpNonAbUpdateCommands(package, zip, 0, status_fd, &cmd)); in TEST()
128 ASSERT_EQ(4U, cmd.size()); in TEST()
129 ASSERT_EQ(binary_path, cmd[0]); in TEST()
130 ASSERT_EQ("3", cmd[1]); // RECOVERY_API_VERSION in TEST()
131 ASSERT_EQ(std::to_string(status_fd), cmd[2]); in TEST()
132 ASSERT_EQ(package, cmd[3]); in TEST()
138 cmd.clear(); in TEST()
139 ASSERT_TRUE(SetUpNonAbUpdateCommands(package, zip, 2, status_fd, &cmd)); in TEST()
140 ASSERT_EQ(5U, cmd.size()); in TEST()
[all …]
Dupdater_test.cpp274 std::string cmd = in TEST_F() local
276 expect("t", cmd, kNoCause); in TEST_F()
280 cmd = "patch_partition_check(\"" + source.ToString() + "\", \"" + bad_target.ToString() + "\")"; in TEST_F()
281 expect("t", cmd, kNoCause); in TEST_F()
285 cmd = "patch_partition_check(\"" + bad_source.ToString() + "\", \"" + target.ToString() + "\")"; in TEST_F()
286 expect("t", cmd, kNoCause); in TEST_F()
289 cmd = in TEST_F()
291 expect("", cmd, kNoCause); in TEST_F()
600 std::string cmd; in TEST_F() local
601 ASSERT_TRUE(android::base::ReadFileToString(tf.path, &cmd)); in TEST_F()
[all …]
/bootable/recovery/install/include/private/
Dsetup_commands.h31 int status_fd, std::vector<std::string>* cmd);
39 std::vector<std::string>* cmd);
/bootable/recovery/otautil/
Dsysutil.cpp223 std::string cmd = "reboot," + std::string(target); in Reboot() local
227 cmd += ",quiescent"; in Reboot()
229 if (!android::base::SetProperty(ANDROID_RB_PROPERTY, cmd)) { in Reboot()
237 std::string cmd = "shutdown," + std::string(target); in Shutdown() local
238 return android::base::SetProperty(ANDROID_RB_PROPERTY, cmd); in Shutdown()
/bootable/recovery/tools/image_generator/
DImageGenerator.java720 CommandLine cmd; in main() local
722 cmd = new GnuParser().parse(options, args); in main()
729 int imageWidth = Integer.parseUnsignedInt(cmd.getOptionValue("image_width")); in main()
731 if (cmd.hasOption("verbose")) { in main()
740 cmd.getOptionValue("text_name"), in main()
742 cmd.getOptionValue("font_dir"), in main()
743 cmd.hasOption("center_alignment")); in main()
746 if (cmd.hasOption("locales")) { in main()
747 String[] localesList = cmd.getOptionValue("locales").split(","); in main()
753 imageGenerator.readLocalizedStringFromXmls(cmd.getOptionValue("resource_dir"), in main()
[all …]
/bootable/recovery/install/
Dinstall.cpp238 std::vector<std::string>* cmd) { in SetUpAbUpdateCommands() argument
239 CHECK(cmd != nullptr); in SetUpAbUpdateCommands()
265 *cmd = { in SetUpAbUpdateCommands()
276 int status_fd, std::vector<std::string>* cmd) { in SetUpNonAbUpdateCommands() argument
277 CHECK(cmd != nullptr); in SetUpNonAbUpdateCommands()
306 *cmd = { in SetUpNonAbUpdateCommands()
313 cmd->push_back("retry"); in SetUpNonAbUpdateCommands()
/bootable/recovery/minadbd/
Dminadbd_services.cpp67 static bool WriteCommandToFd(MinadbdCommand cmd, int fd) { in WriteCommandToFd() argument
70 android::base::put_unaligned(message + strlen(kMinadbdStatusPrefix), cmd); in WriteCommandToFd()
/bootable/recovery/tests/
DAndroid.bp102cmd: "cat $(location testdata/recovery_head) <(cat $(location testdata/recovery_body) | $(location…