Home
last modified time | relevance | path

Searched refs:abilityList (Results 1 – 6 of 6) sorted by relevance

/test/ostest/wukong/input_factory/src/
Dappswitch_input.cpp43 std::vector<std::string> abilityList(0); in OrderInput() local
45 util->GetBundleList(bundleList, abilityList); in OrderInput()
46 if (bundleList.size() == 0 || abilityList.size() == 0) { in OrderInput()
47 … ERROR_LOG_STR("bundleList (%u) or abilityList (%u) is 0", bundleList.size(), abilityList.size()); in OrderInput()
57 …ErrCode result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleLis… in OrderInput()
67 std::vector<std::string> abilityList(0); in RandomInput() local
68 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in RandomInput()
69 if (bundleList.size() == 0 || abilityList.size() == 0) { in RandomInput()
70 … ERROR_LOG_STR("bundleList (%u) or abilityList (%u) is 0", bundleList.size(), abilityList.size()); in RandomInput()
79 …ErrCode result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleLis… in RandomInput()
[all …]
/test/ostest/wukong/shell_command/src/
Dwukong_shell_command.cpp191 std::vector<std::string> abilityList; in ShowAllAppInfo() local
194 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in ShowAllAppInfo()
199 …TR("Bundle Name: (%s), Ability Name: (%s)", bundleList[index].c_str(), abilityList[index].c_str()); in ShowAllAppInfo()
201 appInfo << "AbilityName: " << abilityList[index] << std::endl; in ShowAllAppInfo()
/test/ostest/wukong/test_flow/src/
Drandom_test_flow.cpp423 std::vector<std::string> abilityList; in ProtectRightAbility() local
424 WuKongUtil::GetInstance()->GetAllowAbilityList(abilityList); in ProtectRightAbility()
430 auto abilityIndex = find(abilityList.begin(), abilityList.end(), curAbilityName); in ProtectRightAbility()
431 if (bundleIndex == allowList.end() || abilityIndex == abilityList.end()) { in ProtectRightAbility()
432 int index = rand() % abilityList.size(); in ProtectRightAbility()
434 …ErrCode result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], allowList… in ProtectRightAbility()
437 … INFO_LOG_STR("Ability Name : ("%s") startup successful", abilityList[index].c_str()); in ProtectRightAbility()
439 ERROR_LOG_STR("Ability Name : ("%s") startup failed", abilityList[index].c_str()); in ProtectRightAbility()
Dspecial_test_flow.cpp215 std::vector<std::string> abilityList(0); in ProtectRightAbility() local
217 util->GetBundleList(bundleList, abilityList); in ProtectRightAbility()
218 if (bundleList.size() == 0 || abilityList.size() == 0) { in ProtectRightAbility()
219 … ERROR_LOG_STR("bundleList (%u) or abilityList (%u) is 0", bundleList.size(), abilityList.size()); in ProtectRightAbility()
228 …result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleList[index]… in ProtectRightAbility()
/test/ostest/wukong/common/include/
Dwukong_util.h136 void SetAllAppInfo(std::vector<std::string> &bundleList, std::vector<std::string> &abilityList);
/test/ostest/wukong/common/src/
Dwukong_util.cpp373 …ongUtil::SetAllAppInfo(std::vector<std::string> &bundleList, std::vector<std::string> &abilityList) in SetAllAppInfo() argument
376 abilityList_ = abilityList; in SetAllAppInfo()