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.h43 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.cpp65 cmd += " " + escape_arg(*argv++); in pm_command()
87 cmd += " " + escape_arg(*argv++); in uninstall_app_streamed()
208 cmd += " " + escape_arg(std::string(*argv++)); in install_app_streamed()
431 cmd += " " + escape_arg(argv[i]); in install_multiple_app()
554 multi_package_cmd += " " + escape_arg(argv[i]); in install_multi_package()
598 individual_cmd += " " + escape_arg(argv[i]); in install_multi_package()
742 std::string cmd = "rm -f " + escape_arg(filename); in delete_device_file()
Dcommandline.cpp1193 std::string quoted = escape_arg(log_tags == nullptr ? "" : log_tags); in logcat()
1204 cmd += " " + escape_arg(*argv++); in logcat()
1262 cmd += " " + escape_arg(*argv++); in backup()
1645 cmd += " " + escape_arg(*argv++); in adb_commandline()
Dfile_sync_client.cpp889 std::string escaped_path = escape_arg(dir); in copy_local_dir_remote()