Lines Matching refs:string

44 const std::string DEFAULT_DIR = "/data/local/tmp/wukong/report/";
76 bool TakeWuKongScreenCap(const std::string &wkScreenPath, const bool checkBWScreen = false)
149 startRunTime_ = std::string(fileNameBuf);
156 std::string dirStr = "/";
157 std::vector<std::string> strs;
203 std::string bundleName = item.elementName.GetBundleName();
219 void WuKongUtil::GetBundleList(std::vector<std::string> &bundlelist, std::vector<std::string> &abilitylist)
228 uint32_t WuKongUtil::FindElement(std::vector<std::string> &bundleList, std::string key)
237 bool WuKongUtil::ContainsElement(std::vector<std::string> &bundleList, std::string key)
244 std::set<std::string> m(allowList_.begin(), allowList_.end());
255 ErrCode WuKongUtil::CheckArgumentList(std::vector<std::string> &arguments, bool isAddToList)
275 ErrCode WuKongUtil::SetAllowList(const std::string &optarg)
289 ErrCode WuKongUtil::CheckAbilityArgumentList(std::vector<std::string> &arguments)
303 ErrCode WuKongUtil::SetAllowAbilityList(const std::string &optarg)
317 ErrCode WuKongUtil::SetBlockAbilityList(const std::string &optarg)
333 std::set<std::string> m(allowAbilityList_.begin(), allowAbilityList_.end());
344 ErrCode WuKongUtil::SetBlockList(const std::string &optarg)
358 ErrCode WuKongUtil::SetBlockPageList(const std::string &optarg)
361 std::vector<std::string> temp;
377 ErrCode WuKongUtil::SetComponentUri(const std::string &optarg)
391 ErrCode WuKongUtil::SetComponentUriType(const std::string &optarg)
405 std::string WuKongUtil::GetComponentUri()
410 std::string WuKongUtil::GetComponentUriType()
415 void WuKongUtil::DelRepeatArguments(std::vector<std::string> &argumentlist)
417 std::set<std::string> s(argumentlist.begin(), argumentlist.end());
421 void WuKongUtil::GetAllowList(std::vector<std::string> &allowList)
426 void WuKongUtil::GetAllowAbilityList(std::vector<std::string> &allowAbilityList)
431 void WuKongUtil::GetBlockList(std::vector<std::string> &blockList)
436 void WuKongUtil::GetBlockAbilityList(std::vector<std::string> &blockAbilityList)
441 void WuKongUtil::GetBlockPageList(std::vector<std::string> &blockPageList)
446 void WuKongUtil::GetValidBundleList(std::vector<std::string> &validbundlelist)
451 void WuKongUtil::SetAllAppInfo(std::vector<std::string> &bundleList, std::vector<std::string> &abilityList)
457 void WuKongUtil::SetTempAllowList(std::vector<std::string> tempAllowList)
462 std::vector<std::string> WuKongUtil::GetTempAllowList()
495 void WuKongUtil::GetIconPath(std::string &iconpath)
500 ErrCode WuKongUtil::WukongScreenCap(std::string &screenStorePath, bool gCommandUitest, bool g_commandCHECKBWSCREEN)
522 std::string uitestCmd = "uitest dumpLayout -i -p " + curDir_ + "screenshot" + "/" + wukongts + ".json";
523 std::string res = Common::runProcess(uitestCmd);
559 void WuKongUtil::GetAllAbilitiesByBundleName(std::string bundleName, std::vector<std::string> &abilities)
613 std::string bundleName = bundleIter.name;
645 std::string WuKongUtil::GetCurrentTestDir()
650 bool WuKongUtil::CopyFile(std::string &targetFile, std::string &sourceDir, std::string &destDir)
656 std::string sourceFile = sourceDir + targetFile;
677 std::string destFile = destDir + targetFile;
691 bool WuKongUtil::DeleteFile(std::string targetDir)
700 std::string currentFileName(dp->d_name);
701 std::string sourceFile = targetDir + currentFileName;
714 void WuKongUtil::SetCompIdBlockList(const std::string &optarg)
719 std::vector<std::string> WuKongUtil::GetCompIdBlockList()
724 void WuKongUtil::SetCompTypeBlockList(const std::string &optarg)
729 std::vector<std::string> WuKongUtil::GetCompTypeBlockList()
734 std::string WuKongUtil::runProcess(std::string cmd)
758 std::string WuKongUtil::GetBundlePid()
761 std::string curBundleName = elementName.GetBundleName();
762 std::string bufCmd = "pidof " + curBundleName;
773 std::string pidStr(pid);
785 std::string pidStr = GetBundlePid();