Searched refs:bundleList (Results 1 – 6 of 6) sorted by relevance
/test/ostest/wukong/input_factory/src/ |
D | appswitch_input.cpp | 42 std::vector<std::string> bundleList(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() 50 uint32_t index = util->FindElement(bundleList, bundlename); in OrderInput() 57 …esult = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleList[index]); in OrderInput() 66 std::vector<std::string> bundleList(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() [all …]
|
/test/ostest/wukong/shell_command/src/ |
D | wukong_shell_command.cpp | 190 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[inde… in ShowAllAppInfo() 200 appInfo << "BundleName: " << bundleList[index] << std::endl; in ShowAllAppInfo()
|
/test/ostest/wukong/test_flow/src/ |
D | special_test_flow.cpp | 214 std::vector<std::string> bundleList(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() 222 uint32_t index = util->FindElement(bundleList, lastBundleName); in ProtectRightAbility() 228 …esult = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleList[index]); in ProtectRightAbility() 230 INFO_LOG_STR("Bundle Name: (%s) startup successful", bundleList[index].c_str()); in ProtectRightAbility() 233 INFO_LOG_STR("Bundle Name: (%s) startup failed", bundleList[index].c_str()); in ProtectRightAbility()
|
/test/ostest/wukong/common/include/ |
D | wukong_util.h | 45 uint32_t FindElement(std::vector<std::string> &bundleList, std::string key); 53 bool ContainsElement(std::vector<std::string> &bundleList, std::string key); 136 void SetAllAppInfo(std::vector<std::string> &bundleList, std::vector<std::string> &abilityList);
|
/test/ostest/wukong/common/src/ |
D | wukong_util.cpp | 188 uint32_t WuKongUtil::FindElement(std::vector<std::string> &bundleList, std::string key) in FindElement() argument 190 auto it = find(bundleList.begin(), bundleList.end(), key); in FindElement() 191 if (it != bundleList.end()) { in FindElement() 192 return distance(bundleList.begin(), it); in FindElement() 197 bool WuKongUtil::ContainsElement(std::vector<std::string> &bundleList, std::string key) in ContainsElement() argument 199 return INVALIDVALUE != FindElement(bundleList, key); in ContainsElement() 373 void WuKongUtil::SetAllAppInfo(std::vector<std::string> &bundleList, std::vector<std::string> &abil… in SetAllAppInfo() argument 375 bundleList_ = bundleList; in SetAllAppInfo()
|
/test/ostest/wukong/input_factory/include/ |
D | appswitch_input.h | 66 uint32_t GetAbilityIndex(std::vector<std::string> &bundleList);
|