Searched refs:escape_arg (Results 1 – 6 of 6) sorted by relevance
/packages/modules/adb/ |
D | adb_utils_test.cpp | 84 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 …]
|
D | adb_utils.h | 45 std::string escape_arg(const std::string& s);
|
D | adb_utils.cpp | 81 std::string escape_arg(const std::string& s) { in escape_arg() function
|
/packages/modules/adb/client/ |
D | adb_install.cpp | 87 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() 1004 return send_shell_command("rm " + escape_arg(filename) + " </dev/null"); in delete_device_file()
|
D | commandline.cpp | 1200 std::string quoted = escape_arg(log_tags == nullptr ? "" : log_tags); in logcat() 1211 cmd += " " + escape_arg(*argv++); in logcat() 1271 cmd += " " + escape_arg(*argv++); in backup() 1772 cmd += " " + escape_arg(*argv++); in adb_commandline()
|
D | file_sync_client.cpp | 1368 std::string escaped_path = escape_arg(dir); in copy_local_dir_remote()
|