/bootable/recovery/tests/unit/ |
D | install_test.cpp | 126 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/ |
D | setup_commands.h | 31 int status_fd, std::vector<std::string>* cmd); 39 std::vector<std::string>* cmd);
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 223 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/ |
D | ImageGenerator.java | 716 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/ |
D | updater_test.cpp | 274 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/ |
D | lib.rs | 350 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/ |
D | BUILD.smoltcp.bazel | 27 cmd = """cat <<EOT > $@ 54 cmd = "cp $(SRCS) $(OUTS)", 75 cmd = """
|
/bootable/recovery/install/ |
D | install.cpp | 298 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/ |
D | BUILD | 28 cmd = "touch $(OUTS)", 93 cmd = """
|
/bootable/libbootloader/gbl/libefi/ |
D | BUILD | 29 cmd = "touch $(OUTS)", 95 cmd = "cat $(location :efi_defs_bindgen) > $@",
|
/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 68 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/ |
D | BUILD | 62 cmd = "cp $(SRCS) $(OUTS)",
|
/bootable/libbootloader/gbl/libboot/ |
D | BUILD | 28 cmd = "touch $(OUTS)",
|
/bootable/recovery/tests/ |
D | Android.bp | 93 …cmd: "cat $(location testdata/recovery_head) <(cat $(location testdata/recovery_body) | gzip) $(lo…
|
/bootable/libbootloader/gbl/efi/ |
D | BUILD | 73 cmd = select({
|
/bootable/libbootloader/gbl/toolchain/ |
D | BUILD.android_rust_prebuilts.bazel | 81 cmd = " cp $(location {}) $(OUTS) && patch -u -f $(OUTS) $(location {})"
|
/bootable/libbootloader/gbl/libavb/ |
D | BUILD.avb.bazel | 32 cmd = "touch $(OUTS)",
|