Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 17 of 17) 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 …]
/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 if (!android::base::SetProperty(ANDROID_RB_PROPERTY, cmd)) { in Shutdown()
/bootable/recovery/tools/image_generator/
DImageGenerator.java716 CommandLine cmd; in main() local
718 cmd = new GnuParser().parse(options, args); in main()
725 int imageWidth = Integer.parseUnsignedInt(cmd.getOptionValue("image_width")); in main()
727 if (cmd.hasOption("verbose")) { in main()
736 cmd.getOptionValue("text_name"), in main()
738 cmd.getOptionValue("font_dir"), in main()
739 cmd.hasOption("center_alignment")); in main()
742 if (cmd.hasOption("locales")) { in main()
743 String[] localesList = cmd.getOptionValue("locales").split(","); in main()
749 imageGenerator.readLocalizedStringFromXmls(cmd.getOptionValue("resource_dir"), in main()
[all …]
/bootable/deprecated-ota/tests/unit/
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/libbootloader/gbl/libfastboot/src/
Dlib.rs350 cmd: &str, in oem()
632 let Some(cmd) = args.next() else { in process_next_packet()
635 match cmd { in process_next_packet()
829 cmd: &str, in flash()
836 cmd.strip_prefix("flash:").ok_or::<CommandError>("Missing partition".into())?; in flash()
864 cmd: &str, in fetch()
871 let cmd = in fetch() localVariable
872 cmd.strip_prefix("fetch:").ok_or::<CommandError>("Missing arguments".into())?; in fetch()
881 let part = &cmd[..cmd.len() - (off.len() + sz.len() + 2)]; in fetch()
894 cmd: &str, in oem()
[all …]
/bootable/libbootloader/gbl/smoltcp/
DBUILD.smoltcp.bazel27 cmd = """cat <<EOT > $@
54 cmd = "cp $(SRCS) $(OUTS)",
75 cmd = """
/bootable/recovery/install/
Dinstall.cpp298 std::vector<std::string>* cmd) { in SetUpAbUpdateCommands() argument
299 CHECK(cmd != nullptr); in SetUpAbUpdateCommands()
315 *cmd = { in SetUpAbUpdateCommands()
326 int status_fd, std::vector<std::string>* cmd) { in SetUpNonAbUpdateCommands() argument
327 CHECK(cmd != nullptr); in SetUpNonAbUpdateCommands()
356 *cmd = { in SetUpNonAbUpdateCommands()
363 cmd->push_back("retry"); in SetUpNonAbUpdateCommands()
/bootable/libbootloader/gbl/libbootimg/
DBUILD28 cmd = "touch $(OUTS)",
93 cmd = """
/bootable/libbootloader/gbl/libefi/
DBUILD29 cmd = "touch $(OUTS)",
95 cmd = "cat $(location :efi_defs_bindgen) > $@",
/bootable/recovery/minadbd/
Dminadbd_services.cpp68 static bool WriteCommandToFd(MinadbdCommand cmd, int fd) { in WriteCommandToFd() argument
71 android::base::put_unaligned(message + strlen(kMinadbdStatusPrefix), cmd); in WriteCommandToFd()
/bootable/libbootloader/gbl/libfdt/
DBUILD62 cmd = "cp $(SRCS) $(OUTS)",
/bootable/libbootloader/gbl/libboot/
DBUILD28 cmd = "touch $(OUTS)",
/bootable/recovery/tests/
DAndroid.bp93cmd: "cat $(location testdata/recovery_head) <(cat $(location testdata/recovery_body) | gzip) $(lo…
/bootable/libbootloader/gbl/efi/
DBUILD73 cmd = select({
/bootable/libbootloader/gbl/toolchain/
DBUILD.android_rust_prebuilts.bazel81 cmd = " cp $(location {}) $(OUTS) && patch -u -f $(OUTS) $(location {})"
/bootable/libbootloader/gbl/libavb/
DBUILD.avb.bazel32 cmd = "touch $(OUTS)",