Home
last modified time | relevance | path

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

/system/core/adb/
Dadb_utils_test.cpp84 TEST(adb_utils, escape_arg) { argument
85 EXPECT_EQ(R"('')", escape_arg(""));
87 EXPECT_EQ(R"('abc')", escape_arg("abc"));
91 EXPECT_EQ(wrap(q), escape_arg("'"));
92 EXPECT_EQ(wrap(q + q), escape_arg("''"));
93 EXPECT_EQ(wrap(q + "abc" + q), escape_arg("'abc'"));
94 EXPECT_EQ(wrap(q + "abc"), escape_arg("'abc"));
95 EXPECT_EQ(wrap("abc" + q), escape_arg("abc'"));
96 EXPECT_EQ(wrap("abc" + q + "def"), escape_arg("abc'def"));
97 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
/system/core/adb/client/
Dadb_install.cpp87 cmd += " " + escape_arg(*argv++); in pm_command()
109 cmd += " " + escape_arg(*argv++); in uninstall_app_streamed()
224 cmd_args.push_back(escape_arg(*argv++)); in install_app_streamed()
575 cmd_args.push_back(escape_arg(argv[i])); in install_multiple_app_streamed()
760 multi_package_cmd_args.push_back(escape_arg(argv[i])); in install_multi_package()
807 individual_cmd_args.push_back(escape_arg(argv[i])); in install_multi_package()
993 return send_shell_command("rm " + escape_arg(filename) + " </dev/null"); in delete_device_file()
Dcommandline.cpp1199 std::string quoted = escape_arg(log_tags == nullptr ? "" : log_tags); in logcat()
1210 cmd += " " + escape_arg(*argv++); in logcat()
1270 cmd += " " + escape_arg(*argv++); in backup()
1771 cmd += " " + escape_arg(*argv++); in adb_commandline()
Dfile_sync_client.cpp1368 std::string escaped_path = escape_arg(dir); in copy_local_dir_remote()