Home
last modified time | relevance | path

Searched refs:bundleList (Results 1 - 6 of 6) sorted by relevance

/test/ostest/wukong/input_factory/src/
H A Dappswitch_input.cpp42 std::vector<std::string> bundleList(0); in OrderInput()
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()
50 uint32_t index = util->FindElement(bundleList, bundlename); in OrderInput()
57 ErrCode result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleList[index]); in OrderInput()
66 std::vector<std::string> bundleList(0); in RandomInput()
68 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in RandomInput()
69 if (bundleList in RandomInput()
108 std::vector<std::string> bundleList; PrintResultOfStartAbility() local
[all...]
/test/ostest/wukong/shell_command/src/
H A Dwukong_shell_command.cpp190 std::vector<std::string> bundleList; in ShowAllAppInfo() local
194 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in ShowAllAppInfo()
197 DEBUG_LOG_STR("bundleList size: (%u)", bundleList.size()); in ShowAllAppInfo()
198 for (unsigned index = 0; index < bundleList.size(); index++) { in ShowAllAppInfo()
199 DEBUG_LOG_STR("Bundle Name: (%s), Ability Name: (%s)", bundleList[index].c_str(), abilityList[index].c_str()); in ShowAllAppInfo()
200 appInfo << "BundleName: " << bundleList[index] << std::endl; in ShowAllAppInfo()
/test/ostest/wukong/test_flow/src/
H A Dspecial_test_flow.cpp215 std::vector<std::string> bundleList(0); in ProtectRightAbility()
218 util->GetBundleList(bundleList, abilityList); in ProtectRightAbility()
219 if (bundleList.size() == 0 || abilityList.size() == 0) { in ProtectRightAbility()
220 ERROR_LOG_STR("bundleList (%u) or abilityList (%u) is 0", bundleList.size(), abilityList.size()); in ProtectRightAbility()
223 uint32_t index = util->FindElement(bundleList, lastBundleName); in ProtectRightAbility()
229 result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleList[index]); in ProtectRightAbility()
231 INFO_LOG_STR("Bundle Name: (%s) startup successful", bundleList[index].c_str()); in ProtectRightAbility()
234 INFO_LOG_STR("Bundle Name: (%s) startup failed", bundleList[index].c_str()); in ProtectRightAbility()
/test/ostest/wukong/common/src/
H A Dwukong_util.cpp228 uint32_t WuKongUtil::FindElement(std::vector<std::string> &bundleList, std::string key) in FindElement() argument
230 auto it = find(bundleList.begin(), bundleList.end(), key); in FindElement()
231 if (it != bundleList.end()) { in FindElement()
232 return distance(bundleList.begin(), it); in FindElement()
237 bool WuKongUtil::ContainsElement(std::vector<std::string> &bundleList, std::string key) in ContainsElement() argument
239 return INVALIDVALUE != FindElement(bundleList, key); in ContainsElement()
451 void WuKongUtil::SetAllAppInfo(std::vector<std::string> &bundleList, std::vector<std::string> &abilityList) in SetAllAppInfo() argument
453 bundleList_ = bundleList; in SetAllAppInfo()
/test/ostest/wukong/common/include/
H A Dwukong_util.h42 * @param bundleList the bundlelist of test
46 uint32_t FindElement(std::vector<std::string> &bundleList, std::string key);
50 * @param bundleList the bundlelist of test
54 bool ContainsElement(std::vector<std::string> &bundleList, std::string key);
134 * @param bundleList the bundle list of the test.
137 void SetAllAppInfo(std::vector<std::string> &bundleList, std::vector<std::string> &abilityList);
191 * @param isAddToList should add check item to bundleList.
/test/ostest/wukong/input_factory/include/
H A Dappswitch_input.h74 * @param bundleList the list of all bundle name
78 uint32_t GetAbilityIndex(std::vector<std::string> &bundleList);

Completed in 5 milliseconds