Home
last modified time | relevance | path

Searched refs:RunCmd (Results 1 – 8 of 8) sorted by relevance

/system/extras/simpleperf/
Dtest_util.h164 Workload::RunCmd({"pm", "uninstall", package}); in ~AppHelper()
169 if (Workload::RunCmd({"pm", "install", "-t", "--abi", GetABI(), apk_path})) { in InstallApk()
Dworkload.h42 static bool RunCmd(const std::vector<std::string>& args, bool report_error = true);
Dcmd_api_test.cpp83 ASSERT_TRUE(Workload::RunCmd({"unzip", "-d", tmpdir.path, tmpfile.path})); in RecordApp()
Dcmd_api.cpp206 return Workload::RunCmd({"rm", "-rf", SIMPLEPERF_DATA_DIR}); in RemoveRecordingData()
Dworkload.cpp46 bool Workload::RunCmd(const std::vector<std::string>& args, bool report_error) { in RunCmd() function in simpleperf::Workload
Denvironment.cpp534 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()
Dcmd_stat_test.cpp311 ASSERT_TRUE(Workload::RunCmd({"am", "start", app_name + "/.MainActivity"})); in TestStatingApps()
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp299 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()