Lines Matching refs:SPUtils
50 bool SPUtils::FileAccess(const std::string &fileName)
54 bool SPUtils::HasNumber(const std::string &str)
58 bool SPUtils::Cmp(const std::string &a, const std::string &b)
73 bool SPUtils::LoadFile(const std::string &filePath, std::string &content)
95 bool SPUtils::LoadCmdWithLinkBreak(const std::string &cmd, bool isClearLinkBreak, std::string &result)
119 bool SPUtils::LoadCmd(const std::string &cmd, std::string &result)
124 std::string SPUtils::IncludePathDelimiter(const std::string &path)
133 void SPUtils::ForDirFiles(const std::string &path, std::vector<std::string> &files)
160 bool SPUtils::IsSubString(const std::string &str, const std::string &sub)
169 void SPUtils::StrSplit(const std::string &content, const std::string &sp, std::vector<std::string> &out)
185 std::string SPUtils::ExtractNumber(const std::string &str)
198 void SPUtils::ReplaceString(std::string &res)
214 long long SPUtils::GetCurTime()
222 std::string SPUtils::GetTopPkgName()
233 std::string SPUtils::GetRadar()
240 std::string SPUtils::GetScreen()
250 std::string SPUtils::GetRadarFrame()
257 std::string SPUtils::GetRadarResponse()
264 std::string SPUtils::GetRadarComplete()
274 SPUtils::LoadCmd(cmd, result);
278 std::string SPUtils::GetDeviceInfoMap()
304 std::map<std::string, std::string> SPUtils::GetDeviceInfo()
326 std::map<std::string, std::string> SPUtils::GetCpuInfo(bool isTcpMessage)
371 std::map<std::string, std::string> SPUtils::GetGpuInfo(bool isTcpMessage)
381 SPUtils::LoadFile(path + "/max_freq", max);
383 SPUtils::LoadFile(path + "/min_freq", min);
391 void SPUtils::RemoveSpace(std::string &str)
424 bool SPUtils::IntegerVerification(std::string str, std::string errorInfo)
465 bool SPUtils::VeriyParameter(std::set<std::string> &keys, std::string param, std::string &errorInfo)
478 SPUtils::StrSplit(param, "-", out);
482 SPUtils::StrSplit(*it, " ", subOut);
491 SPUtils::RemoveSpace(keyParam);
492 SPUtils::RemoveSpace(valueParm);
496 SPUtils::RemoveSpace(keyParam);
518 bool SPUtils::VeriyKey(std::set<std::string> &keys, std::map<std::string, std::string> &mapInfo,
531 bool SPUtils::VerifyValueStr(std::map<std::string, std::string> &mapInfo, std::string &errorInfo)
561 (!SPUtils::FileAccess(a->second.substr(0, pos)))) { // determine if the directory exists
567 SPUtils::StrSplit(outStr, "/", outList);
578 bool SPUtils::IntegerValueVerification(std::set<std::string> &keys, std::map<std::string, std::string> &mapInfo,
600 if (!SPUtils::IntegerVerification(a->second, errorInfo)) {
610 bool SPUtils::IsHmKernel()
621 std::string SPUtils::GetCpuNum()
635 void SPUtils::GetCurrentTime(int num, int prevTime)
649 bool SPUtils::IsForeGround(std::string &pkg)
681 bool SPUtils::IsFindForeGround(std::string line)
690 bool SPUtils::IsFindAbilist()
699 void SPUtils::SetRkFlag()