Searched refs:RunCmd (Results 1 – 8 of 8) sorted by relevance
/system/extras/simpleperf/ |
D | test_util.h | 164 Workload::RunCmd({"pm", "uninstall", package}); in ~AppHelper() 169 if (Workload::RunCmd({"pm", "install", "-t", "--abi", GetABI(), apk_path})) { in InstallApk()
|
D | workload.h | 42 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 | 206 return Workload::RunCmd({"rm", "-rf", SIMPLEPERF_DATA_DIR}); in RemoveRecordingData()
|
D | workload.cpp | 46 bool Workload::RunCmd(const std::vector<std::string>& args, bool report_error) { in RunCmd() function in simpleperf::Workload
|
D | environment.cpp | 534 return Workload::RunCmd({"run-as", package_name, "--user", std::to_string(user_id), "echo", in IsAppDebuggable() 671 Workload::RunCmd({"run-as", package_name_, "--user", user_id_, "rm", "-rf", "simpleperf"}); in ~RunAs() 712 if (!Workload::RunCmd( in Prepare()
|
D | cmd_stat_test.cpp | 311 ASSERT_TRUE(Workload::RunCmd({"am", "start", app_name + "/.MainActivity"})); in TestStatingApps()
|
/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()
|