Searched refs:RunCmd (Results 1 – 10 of 10) sorted by relevance
/system/extras/simpleperf/ |
D | test_util.h | 147 Workload::RunCmd({"pm", "uninstall", package}); in ~AppHelper() 152 if (Workload::RunCmd({"pm", "install", "-t", "--abi", GetABI(), apk_path})) { in InstallApk()
|
D | workload.h | 40 static bool RunCmd(const std::vector<std::string>& args, bool report_error = true);
|
D | cmd_api_test.cpp | 83 ASSERT_TRUE(Workload::RunCmd({"unzip", "-d", tmpdir.path, tmpfile.path})); in RecordApp()
|
D | cmd_api.cpp | 218 return Workload::RunCmd({"rm", "-rf", SIMPLEPERF_DATA_DIR}); in RemoveRecordingData()
|
D | workload.cpp | 44 bool Workload::RunCmd(const std::vector<std::string>& args, bool report_error) { in RunCmd() function in Workload
|
D | environment.cpp | 611 return Workload::RunCmd({"run-as", package_name, "echo", ">/dev/null", "2>/dev/null"}, false); in IsAppDebuggable() 743 Workload::RunCmd({"run-as", package_name_, "rm", "-rf", "simpleperf"}); in ~RunAs() 776 if (!Workload::RunCmd({"run-as", package_name_, "cp", simpleperf_path_, "simpleperf"})) { in Prepare()
|
D | cmd_debug_unwind.cpp | 299 if (!Workload::RunCmd({"mv", output_filename_, tmp_file->path})) { in JoinCallChains()
|
D | cmd_stat_test.cpp | 312 ASSERT_TRUE(Workload::RunCmd({"am", "start", app_name + "/.MainActivity"})); in TestStatingApps()
|
D | cmd_record.cpp | 1566 if (!Workload::RunCmd({"mv", record_filename_, tmp_file->path})) { in PostUnwindRecords() 1598 if (!Workload::RunCmd({"mv", record_filename_, tmp_file->path})) { in JoinCallChains()
|
/system/extras/simpleperf/app_api/cpp/ |
D | simpleperf.cpp | 299 static bool RunCmd(std::vector<const char*> args, std::string* stdout) { in RunCmd() function 359 if (!RunCmd({"/system/bin/cp", path.c_str(), to_path.c_str()}, nullptr)) { in FindSimpleperfInTempDir() 366 if (!RunCmd({to_path.c_str(), "list", "sw"}, &s)) { in FindSimpleperfInTempDir() 377 if (!RunCmd({"/system/bin/getprop", "security.perf_harden"}, &s)) { in CheckIfPerfEnabled()
|