Home
last modified time | relevance | path

Searched refs:escape_arg (Results 1 – 6 of 6) sorted by relevance

/packages/modules/adb/
Dadb_utils_test.cpp85 TEST(adb_utils, escape_arg) { argument
86 EXPECT_EQ(R"('')", escape_arg(""));
88 EXPECT_EQ(R"('abc')", escape_arg("abc"));
92 EXPECT_EQ(wrap(q), escape_arg("'"));
93 EXPECT_EQ(wrap(q + q), escape_arg("''"));
94 EXPECT_EQ(wrap(q + "abc" + q), escape_arg("'abc'"));
95 EXPECT_EQ(wrap(q + "abc"), escape_arg("'abc"));
96 EXPECT_EQ(wrap("abc" + q), escape_arg("abc'"));
97 EXPECT_EQ(wrap("abc" + q + "def"), escape_arg("abc'def"));
98 EXPECT_EQ(wrap("a" + q + "b" + q + "c"), escape_arg("a'b'c"));
[all …]
Dadb_utils.h45 std::string escape_arg(const std::string& s);
Dadb_utils.cpp81 std::string escape_arg(const std::string& s) { in escape_arg() function
/packages/modules/adb/client/
Dadb_install.cpp82 cmd += " " + escape_arg(*argv++); in pm_command()
104 cmd += " " + escape_arg(*argv++); in uninstall_app_streamed()
219 cmd_args.push_back(escape_arg(*argv++)); in install_app_streamed()
570 cmd_args.push_back(escape_arg(argv[i])); in install_multiple_app_streamed()
755 multi_package_cmd_args.push_back(escape_arg(argv[i])); in install_multi_package()
802 individual_cmd_args.push_back(escape_arg(argv[i])); in install_multi_package()
1000 return send_shell_command("rm " + escape_arg(filename) + " </dev/null"); in delete_device_file()
Dcommandline.cpp1150 std::string quoted = escape_arg(log_tags == nullptr ? "" : log_tags); in logcat()
1161 cmd += " " + escape_arg(*argv++); in logcat()
1221 cmd += " " + escape_arg(*argv++); in backup()
1257 cmd += " " + escape_arg(*argv++); in restore()
1794 cmd += " " + escape_arg(*argv++); in adb_commandline()
Dfile_sync_client.cpp1385 std::string escaped_path = escape_arg(dir); in copy_local_dir_remote()