Home
last modified time | relevance | path

Searched refs:WuKongUtil (Results 1 – 25 of 25) sorted by relevance

/test/ostest/wukong/common/src/
Dwukong_util.cpp92 WuKongUtil::WuKongUtil() in WuKongUtil() function in OHOS::WuKong::WuKongUtil
139 WuKongUtil::~WuKongUtil() in ~WuKongUtil()
144 ErrCode WuKongUtil::GetAllAppInfo() in GetAllAppInfo()
179 void WuKongUtil::GetBundleList(std::vector<std::string> &bundlelist, std::vector<std::string> &abil… in GetBundleList()
188 uint32_t WuKongUtil::FindElement(std::vector<std::string> &bundleList, std::string key) in FindElement()
197 bool WuKongUtil::ContainsElement(std::vector<std::string> &bundleList, std::string key) in ContainsElement()
202 ErrCode WuKongUtil::CheckBundleNameList() in CheckBundleNameList()
215 ErrCode WuKongUtil::CheckArgumentList(std::vector<std::string> &arguments, bool isAddToList) in CheckArgumentList()
235 ErrCode WuKongUtil::SetAllowList(const std::string &optarg) in SetAllowList()
249 ErrCode WuKongUtil::CheckAbilityArgumentList(std::vector<std::string> &arguments) in CheckAbilityArgumentList()
[all …]
Dapp_manager.cpp39 auto util = WuKongUtil::GetInstance(); in AllowAbilityStart()
71 if (WuKongUtil::GetInstance()->GetOrderFlag()) { in AllowAbilityBackground()
Dwukong_logger.cpp73 logFileName_ = WuKongUtil::GetInstance()->GetCurrentTestDir() + "wukong.log"; in Start()
/test/ostest/wukong/input_factory/src/
Dappswitch_input.cpp44 auto util = WuKongUtil::GetInstance(); in OrderInput()
68 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in RandomInput()
96 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in PrintResultOfStartAbility()
115 WuKongUtil::GetInstance()->GetAllowList(allowlist); in GetAbilityIndex()
116 WuKongUtil::GetInstance()->GetValidBundleList(validlist); in GetAbilityIndex()
119 …index = WuKongUtil::GetInstance()->FindElement(bundlelist, allowlist.at(rand() % allowlist.size())… in GetAbilityIndex()
121 …index = WuKongUtil::GetInstance()->FindElement(bundlelist, validlist.at(rand() % validlist.size())… in GetAbilityIndex()
Dhardkey_input.cpp40 auto util = WuKongUtil::GetInstance(); in OrderInput()
Dmouse_input.cpp45 ErrCode result = WuKongUtil::GetInstance()->GetScreenSize(screenWidth, screenHeight); in RandomInput()
Dswap_input.cpp65 ErrCode result = WuKongUtil::GetInstance()->GetScreenSize(screenWidth, screenHeight); in RandomInput()
Dtouch_input.cpp59 ErrCode result = WuKongUtil::GetInstance()->GetScreenSize(screenWidth, screenHeight); in RandomInput()
Dcomponent_input.cpp37 bool isFirstStartApp = WuKongUtil::GetInstance()->GetIsFirstStartAppFlag(); in PrepareApp()
40 WuKongUtil::GetInstance()->SetIsFirstStartAppFlag(false); in PrepareApp()
87 WuKongUtil::GetInstance()->SetTempAllowList(tempAllowList); in CheckLauncherApp()
/test/ostest/wukong/test_flow/src/
Drandom_test_flow.cpp263 result = WuKongUtil::GetInstance()->SetAllowList(optarg); in SetBlackWhiteSheet()
266 result = WuKongUtil::GetInstance()->SetBlockList(optarg); in SetBlackWhiteSheet()
268 result = WuKongUtil::GetInstance()->SetAllowAbilityList(optarg); in SetBlackWhiteSheet()
273 result = WuKongUtil::GetInstance()->SetBlockAbilityList(optarg); in SetBlackWhiteSheet()
278 result = WuKongUtil::GetInstance()->SetBlockPageList(optarg); in SetBlackWhiteSheet()
280 WuKongUtil::GetInstance()->SetCompIdBlockList(optarg); in SetBlackWhiteSheet()
282 WuKongUtil::GetInstance()->SetCompTypeBlockList(optarg); in SetBlackWhiteSheet()
358 result = WuKongUtil::GetInstance()->WukongScreenCap(screenStorePath, g_commandUITEST); in RunStep()
403 WuKongUtil::GetInstance()->GetAllowList(allowList); in ProtectRightAbility()
424 WuKongUtil::GetInstance()->GetAllowAbilityList(abilityList); in ProtectRightAbility()
[all …]
Dfocus_test_flow.cpp263 result = WuKongUtil::GetInstance()->SetAllowList(optarg); in SetBlackWhiteSheet()
266 result = WuKongUtil::GetInstance()->SetBlockList(optarg); in SetBlackWhiteSheet()
268 result = WuKongUtil::GetInstance()->SetAllowAbilityList(optarg); in SetBlackWhiteSheet()
273 result = WuKongUtil::GetInstance()->SetBlockAbilityList(optarg); in SetBlackWhiteSheet()
278 result = WuKongUtil::GetInstance()->SetBlockPageList(optarg); in SetBlackWhiteSheet()
280 WuKongUtil::GetInstance()->SetCompIdBlockList(optarg); in SetBlackWhiteSheet()
282 WuKongUtil::GetInstance()->SetCompTypeBlockList(optarg); in SetBlackWhiteSheet()
402 WuKongUtil::GetInstance()->GetAllowList(allowList); in ProtectRightAbility()
437 WuKongUtil::GetInstance()->SetOrderFlag(false); in HandleNormalOption()
Dspecial_test_flow.cpp175 result = WuKongUtil::GetInstance()->WukongScreenCap(screenStorePath, g_commandUITEST); in RunStep()
216 auto util = WuKongUtil::GetInstance(); in ProtectRightAbility()
231 WuKongUtil::GetInstance()->SetIsFirstStartAppFlag(true); in ProtectRightAbility()
311 WuKongUtil::GetInstance()->SetOrderFlag(true); in HandleNormalOption()
375 result = WuKongUtil::GetInstance()->CheckArgumentList(bundleName_, true); in SetRunningParam()
429 ErrCode result = WuKongUtil::GetInstance()->GetScreenSize(screenWidth, screenHeight); in CheckPosition()
Dtest_flow.cpp81 result = WuKongUtil::GetInstance()->GetAllAppInfo(); in CheckVaildityCmd()
/test/ostest/wukong/component_event/src/
Dnormal_scene.cpp42 auto util = WuKongUtil::GetInstance(); in SetInputComponentList()
84 auto util = WuKongUtil::GetInstance(); in SetInputComponent()
119 auto util = WuKongUtil::GetInstance(); in SetInputComponentListForFocusInput()
164 auto util = WuKongUtil::GetInstance(); in IsComponentBlock()
Dscene_delegate.cpp320 ErrCode result = WuKongUtil::GetInstance()->GetScreenSize(width, height); in IsComponentInScreen()
Dfocus_scene_delegate.cpp320 ErrCode result = WuKongUtil::GetInstance()->GetScreenSize(width, height); in IsComponentInScreen()
Dtree_manager.cpp573 ErrCode result = WuKongUtil::GetInstance()->WukongScreenCap(screenStorePath, false); in ScreenCapture()
/test/ostest/wukong/shell_command/src/
Dwukong_shell_command.cpp185 ErrCode result = WuKongUtil::GetInstance()->GetAllAppInfo(); in ShowAllAppInfo()
193 WuKongUtil::GetInstance()->GetIconPath(iconpath); in ShowAllAppInfo()
194 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in ShowAllAppInfo()
Dwukong_main.cpp45 WuKongUtil::DestroyInstance(); in FreeSingtion()
/test/ostest/wukong/common/include/
Dwukong_util.h31 class WuKongUtil : public DelayedSingleton<WuKongUtil> {
290 DECLARE_DELAYED_SINGLETON(WuKongUtil);
/test/ostest/wukong/report/src/
Dreport.cpp77 WuKongUtil::GetInstance()->CopyFile(targetFile, crashDir, destDir); in ListenCrashDir()
107 startRunTime_ = WuKongUtil::GetInstance()->GetStartRunTime(); in EnvInit()
114 currentTestDir_ = WuKongUtil::GetInstance()->GetCurrentTestDir(); in EnvInit()
156 WuKongUtil::GetInstance()->DeleteFile(targetDir_); in EnvInit()
472 std::shared_ptr<WuKongUtil> utilPtr = WuKongUtil::GetInstance(); in HilogFileRecord()
Dexception_manager.cpp61 filePath = DEFAULT_DIR + "/wukong_" + WuKongUtil::GetInstance()->GetStartRunTime() + ".csv"; in InitCsvFile()
Dstatistics_ability.cpp81 WuKongUtil::GetInstance()->GetAllAbilitiesByBundleName(srcData["bundleName"], abilities); in SrcDatasPretreatment()
/test/ostest/wukong/report/include/
Dstatistics_componment.h46 … uint32_t findIndex = WuKongUtil::GetInstance()->FindElement(componmentTypes_, componmentType); in ComponmentTypesIndex()
/test/ostest/wukong/component_event/include/
Dtree_manager.h117 uint32_t focusTypeIndex = WuKongUtil::GetInstance()->FindElement(focusTypeList_, type); in NeedFocus()