Searched refs:appPackage (Results 1 – 7 of 7) sorted by relevance
| /developtools/hiperf/src/ |
| D | subcommand.cpp | 66 bool SubCommand::CheckRestartOption(std::string appPackage, bool targetSystemWide, bool restart, in CheckRestartOption() argument 72 if (appPackage.empty()) { in CheckRestartOption() 81 if (!appPackage.empty()) { in CheckRestartOption() 82 printf("please restart %s for profiling within 30 seconds\n", appPackage.c_str()); in CheckRestartOption() 83 pid_t oldAppPid = GetAppPackagePid(appPackage, -1, CHECK_FREQUENCY, 0); in CheckRestartOption() 84 pid_t newAppPid = GetAppPackagePid(appPackage, oldAppPid, CHECK_FREQUENCY, CHECK_TIMEOUT); in CheckRestartOption() 86 printf("app %s was not restarted within 30 seconds\n", appPackage.c_str()); in CheckRestartOption()
|
| D | utilities.cpp | 594 pid_t GetAppPackagePid(const std::string &appPackage, const pid_t oldPid, const int checkAppMs, in GetAppPackagePid() argument 609 if (!IsNeedCheckSamePid(fileName, appPackage, subDir, res, oldPid)) { in GetAppPackagePid() 619 bool IsNeedCheckSamePid(const std::string &fileName, const std::string &appPackage, const std::stri… in IsNeedCheckSamePid() argument 622 if (IsSameCommand(ReadFileToString(fileName), appPackage)) { in IsNeedCheckSamePid() 629 HLOGD("[GetAppPackagePid]: get appid for %s is %d", appPackage.c_str(), res); in IsNeedCheckSamePid() 636 bool CheckAppIsRunning (std::vector<pid_t> &selectPids, const std::string &appPackage, int checkApp… in CheckAppIsRunning() argument 638 if (!appPackage.empty()) { in CheckAppIsRunning() 639 pid_t appPid = GetAppPackagePid(appPackage, -1, checkAppMs, waitAppRunCheckTimeOut); in CheckAppIsRunning() 641 printf("app %s not running\n", appPackage.c_str()); in CheckAppIsRunning() 644 HLOGD("[CheckAppIsRunning] get appPid %d for app %s\n", appPid, appPackage.c_str()); in CheckAppIsRunning()
|
| /developtools/hiperf/interfaces/kits/js/ |
| D | @ohos.hiperf.d.ts | 226 function setAppPackage(appPackage: string): boolean;
|
| /developtools/hiperf/include/ |
| D | utilities.h | 330 pid_t GetAppPackagePid(const std::string &appPackage, const pid_t oldPid, const int checkAppMs, 332 bool IsNeedCheckSamePid(const std::string &fileName, const std::string &appPackage, const std::stri… 334 bool CheckAppIsRunning (std::vector<pid_t> &selectPids, const std::string &appPackage, int checkApp…
|
| D | subcommand.h | 88 bool CheckRestartOption(std::string appPackage, bool targetSystemWide, bool restart,
|
| /developtools/hiperf/interfaces/innerkits/native/include/ |
| D | hiperf_client.h | 207 void SetAppPackage(const std::string &appPackage);
|
| /developtools/hiperf/interfaces/innerkits/native/src/ |
| D | hiperf_client.cpp | 251 void RecordOption::SetAppPackage(const std::string &appPackage) in SetAppPackage() argument 253 SetOption(ArgAppPackage, appPackage); in SetAppPackage()
|