Home
last modified time | relevance | path

Searched refs:skills (Results 1 - 25 of 40) sorted by relevance

12

/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/
H A Dability_info_utils.cpp41 SetAbilityInfoSkill(des, src.skills); in CopyAbilityInfo()
52 SetAbilityInfoSkill(des, src.abilityInfos->skills); in CopyBundleProfileToAbilityInfo()
196 bool AbilityInfoUtils::SetAbilityInfoSkill(AbilityInfo *abilityInfo, Skill * const skills[]) in SetAbilityInfoSkill() argument
198 if (abilityInfo == nullptr || skills == nullptr) { in SetAbilityInfoSkill()
202 if (abilityInfo->skills[i] != nullptr) { in SetAbilityInfoSkill()
203 ClearStringArray(abilityInfo->skills[i]->entities, MAX_SKILL_ITEM); in SetAbilityInfoSkill()
204 ClearStringArray(abilityInfo->skills[i]->actions, MAX_SKILL_ITEM); in SetAbilityInfoSkill()
205 AdapterFree(abilityInfo->skills[i]); in SetAbilityInfoSkill()
207 if (skills[i] == nullptr) { in SetAbilityInfoSkill()
210 abilityInfo->skills[ in SetAbilityInfoSkill()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/defaultappmgr_fuzzer/
H A Ddefaultappmgr_fuzzer.cpp59 std::vector<Skill> skills; in DoSomethingInterestingWithMyAPI() local
60 ret = DefaultAppMgr::GetInstance().IsMatch(type, skills); in DoSomethingInterestingWithMyAPI()
66 ret = DefaultAppMgr::GetInstance().IsEmailSkillsValid(skills); in DoSomethingInterestingWithMyAPI()
67 ret = DefaultAppMgr::GetInstance().IsBrowserSkillsValid(skills); in DoSomethingInterestingWithMyAPI()
68 ret = DefaultAppMgr::GetInstance().MatchAppType(type, skills); in DoSomethingInterestingWithMyAPI()
69 ret = DefaultAppMgr::GetInstance().MatchUtd(type, skills); in DoSomethingInterestingWithMyAPI()
70 ret = DefaultAppMgr::GetInstance().MatchActionAndType(type, type, skills); in DoSomethingInterestingWithMyAPI()
/foundation/ability/ability_base/test/unittest/want/
H A Dskills_test.cpp24 #include "skills.h"
791 Skills skills; in HWTEST_F() local
793 skills.AddEntity(filterEntity); in HWTEST_F()
797 EXPECT_EQ(true, skills.Match(want)); in HWTEST_F()
808 Skills skills; in HWTEST_F() local
810 skills.AddEntity(filterEntity); in HWTEST_F()
815 EXPECT_EQ(false, skills.Match(want)); in HWTEST_F()
826 Skills skills; in HWTEST_F() local
830 skills.AddEntity(filterEntity); in HWTEST_F()
831 skills in HWTEST_F()
848 Skills skills; HWTEST_F() local
868 Skills skills; HWTEST_F() local
888 Skills skills; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/default_app/
H A Ddefault_app_mgr.h59 bool IsMatch(const std::string& type, const std::vector<Skill>& skills) const;
60 bool MatchAppType(const std::string& type, const std::vector<Skill>& skills) const;
61 bool MatchUtd(const std::string& utd, const std::vector<Skill>& skills) const;
65 bool IsBrowserSkillsValid(const std::vector<Skill>& skills) const;
66 bool IsEmailSkillsValid(const std::vector<Skill>& skills) const;
70 bool MatchActionAndType(const std::string& action, const std::string& type, const std::vector<Skill>& skills) const;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_default_app_test/
H A Dbms_bundle_default_app_mgr_test.cpp143 std::vector skills{ skill }; in AddInnerBundleInfo()
146 innerBundleInfo.InsertSkillInfo(key, skills); in AddInnerBundleInfo()
419 std::vector<Skill> skills; in HWTEST_F() local
420 auto ret = DefaultAppMgr::GetInstance().IsEmailSkillsValid(skills); in HWTEST_F()
432 std::vector<Skill> skills{ skill }; in HWTEST_F()
433 auto ret = DefaultAppMgr::GetInstance().IsEmailSkillsValid(skills); in HWTEST_F()
450 std::vector<Skill> skills{ skill }; in HWTEST_F()
451 auto ret = DefaultAppMgr::GetInstance().IsEmailSkillsValid(skills); in HWTEST_F()
853 std::vector<Skill> skills; in HWTEST_F() local
855 skills in HWTEST_F()
868 std::vector<Skill> skills; HWTEST_F() local
882 std::vector<Skill> skills; HWTEST_F() local
896 std::vector<Skill> skills; HWTEST_F() local
911 std::vector<Skill> skills; HWTEST_F() local
925 std::vector<Skill> skills; HWTEST_F() local
940 std::vector<Skill> skills; HWTEST_F() local
[all...]
H A Dbms_bundle_default_app_test.cpp993 const std::vector<Skill> skills; in HWTEST_F() local
994 bool ret = DefaultAppMgr::GetInstance().IsMatch(type, skills); in HWTEST_F()
1006 const std::vector<Skill> skills; in HWTEST_F() local
1007 bool ret = DefaultAppMgr::GetInstance().MatchAppType(type, skills); in HWTEST_F()
1248 std::vector<Skill> skills; in HWTEST_F() local
1249 auto ret = dataMgr->QueryInfoAndSkillsByElement(USER_ID, element, abilityInfo, extensionInfo, skills); in HWTEST_F()
1271 std::vector<Skill> skills; in HWTEST_F() local
1272 auto ret = dataMgr->QueryInfoAndSkillsByElement(USER_ID, element, abilityInfo, extensionInfo, skills); in HWTEST_F()
1294 std::vector<Skill> skills; in HWTEST_F() local
1295 auto ret = dataMgr->QueryInfoAndSkillsByElement(USER_ID, element, abilityInfo, extensionInfo, skills); in HWTEST_F()
1828 std::vector<Skill> skills; HWTEST_F() local
1848 std::vector<Skill> skills; HWTEST_F() local
1868 std::vector<Skill> skills; HWTEST_F() local
2300 std::vector<Skill> skills; HWTEST_F() local
2318 std::vector<Skill> skills; HWTEST_F() local
2333 std::vector<Skill> skills; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/
H A Ddefault_app_mgr.cpp580 std::vector<Skill> skills; in GetBundleInfo() local
582 ret = dataMgr->QueryInfoAndSkillsByElement(userId, element, abilityInfo, extensionInfo, skills); in GetBundleInfo()
587 // match type and skills in GetBundleInfo()
588 ret = IsMatch(type, skills); in GetBundleInfo()
590 LOG_W(BMS_TAG_DEFAULT, "GetBundleInfo, type and skills not match"); in GetBundleInfo()
609 const std::string& action, const std::string& type, const std::vector<Skill>& skills) const in MatchActionAndType()
612 for (const Skill& skill : skills) { in MatchActionAndType()
627 bool DefaultAppMgr::IsMatch(const std::string& type, const std::vector<Skill>& skills) const in IsMatch()
630 return MatchAppType(type, skills); in IsMatch()
632 return MatchUtd(type, skills); in IsMatch()
765 std::vector<Skill> skills; IsElementValid() local
[all...]
/foundation/resourceschedule/work_scheduler/services/native/src/conditions/
H A Dcharger_listener.cpp76 EventFwk::MatchingSkills skills = EventFwk::MatchingSkills(); in CreateChargerEventSubscriber() local
77 skills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED); in CreateChargerEventSubscriber()
78 skills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_POWER_DISCONNECTED); in CreateChargerEventSubscriber()
79 EventFwk::CommonEventSubscribeInfo info(skills); in CreateChargerEventSubscriber()
/foundation/window/window_manager/wmserver/src/
H A Dwindow_common_event.cpp22 #include "skills.h"
54 EventFwk::MatchingSkills skills; in SubscriberEvent() local
55 skills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED); in SubscriberEvent()
56 EventFwk::CommonEventSubscribeInfo info(skills); in SubscriberEvent()
/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Dskills.cpp16 #include "skills.h"
34 * @param skills Indicates skills used to create a Skills instance.
36 Skills::Skills(const Skills &skills) in Skills() argument
39 entities_ = skills.entities_; in Skills()
41 actions_ = skills.actions_; in Skills()
43 authorities_ = skills.authorities_; in Skills()
45 schemes_ = skills.schemes_; in Skills()
48 paths_ = skills.paths_; in Skills()
50 schemeSpecificParts_ = skills in Skills()
956 Skills *skills = new (std::nothrow) Skills(); Unmarshalling() local
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/
H A Dbundle_manager_convert.cpp193 RetCArrSkill skills; in ConvertSkills() local
194 skills.size = static_cast<int64_t>(cSkills.size()); in ConvertSkills()
195 skills.head = nullptr; in ConvertSkills()
196 RetSkill *retValue = reinterpret_cast<RetSkill *>(malloc(sizeof(RetSkill) * skills.size)); in ConvertSkills()
198 for (int32_t i = 0; i < skills.size; i++) { in ConvertSkills()
201 skills.head = retValue; in ConvertSkills()
204 return skills; in ConvertSkills()
206 return skills; in ConvertSkills()
285 exInfo.skills = ConvertSkills(extensionInfos.skills); in ConvertExtensionAbilityInfo()
[all...]
H A Dbundle_manager_utils.h161 RetCArrSkill skills; member
186 RetCArrSkill skills; member
/foundation/bundlemanager/bundle_framework_lite/interfaces/kits/bundle_lite/
H A Dability_info.h154 /** metadata/skills for ablity info. */
156 Skill *skills[SKILL_SIZE]; member
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/include/
H A Dability_info_utils.h41 static bool SetAbilityInfoSkill(AbilityInfo *abilityInfo, Skill * const skills[]);
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dextension_ability_info.cpp31 const char* JSON_KEY_SKILLS = "skills";
58 const char* SKILLS = "skills";
239 CONTAINER_SECURITY_VERIFY(parcel, skillsSize, &skills); in ReadFromParcel()
246 skills.emplace_back(*extensionSkillPtr); in ReadFromParcel()
333 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, skills.size()); in Marshalling()
334 for (auto &skill : skills) { in Marshalling()
380 {JSON_KEY_SKILLS, extensionInfo.skills}, in to_json()
579 extensionInfo.skills, in from_json()
H A Dability_info.cpp110 const char* JSON_KEY_SKILLS = "skills";
318 CONTAINER_SECURITY_VERIFY(parcel, skillsSize, &skills); in ReadFromParcel()
325 skills.emplace_back(*abilitySkillPtr); in ReadFromParcel()
497 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, skills.size()); in Marshalling()
498 for (auto &skill : skills) { in Marshalling()
634 {JSON_KEY_SKILLS, abilityInfo.skills}, in to_json()
1239 abilityInfo.skills, in from_json()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dmodule_profile.cpp193 std::vector<Skill> skills; member
220 std::vector<Skill> skills; member
476 ability.skills, in from_json()
771 extension.skills, in from_json()
2142 void ToAbilitySkills(const std::vector<Skill> &skills, AbilityInfo &abilityInfo) in ToAbilitySkills() argument
2144 for (const Skill &skill : skills) { in ToAbilitySkills()
2145 abilityInfo.skills.push_back(skill); in ToAbilitySkills()
2149 void ToExtensionAbilitySkills(const std::vector<Skill> &skills, ExtensionAbilityInfo &extensionInfo) in ToExtensionAbilitySkills() argument
2151 for (const Skill &skill : skills) { in ToExtensionAbilitySkills()
2152 extensionInfo.skills in ToExtensionAbilitySkills()
[all...]
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dgt_bundle_manager_service.cpp309 // find bundleInfo->abilityInfo->skills[i]->actions whether contain target string in QueryAbilityInfos()
310 if (MatchSkills(want, info->abilityInfo->skills)) { in QueryAbilityInfos()
328 // find bundleInfo->abilityInfo->skills[i]->actions whether contain HOST_APDU_SERVICE in QueryAbilityInfos()
329 if (MatchSkills(want, info->abilityInfo->skills)) { in QueryAbilityInfos()
336 bool GtManagerService::MatchSkills(const Want *want, Skill *const skills[]) in MatchSkills() argument
338 if (skills == nullptr || want == nullptr) { in MatchSkills()
342 if (skills[i] == nullptr) { in MatchSkills()
345 if (isMatchActions(want->actions, skills[i]->actions) || isMatchEntities(want->entities, skills[i]->entities)) { in MatchSkills()
H A Dgt_bundle_extractor.cpp230 // find bundleInfo->abilityInfo->skills[i]->actions whether contain HOST_APDU_SERVICE in ExtractInstallMsg()
249 // find bundleInfo->abilityInfo->skills[i]->actions whether contain HOST_APDU_SERVICE in ParseBundleInfoGetActionService()
259 if (abilityInfo->skills[i] != nullptr) { in FindSkillService()
260 if (CompareStringArray(abilityInfo->skills[i]->actions, MAX_SKILL_ITEM)) { in FindSkillService()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dinner_bundle_info.h102 std::string entryAbilityKey; // skills contains "action.system.home" and "entity.system.home"
311 for (const auto &skills : skillInfos) { in AddModuleSkillInfo()
312 skillInfos_.try_emplace(skills.first, skills.second); in AddModuleSkillInfo()
317 for (const auto &skills : extensionSkillInfos) { in AddModuleExtensionSkillInfos()
318 extensionSkillInfos_.try_emplace(skills.first, skills.second); in AddModuleExtensionSkillInfos()
568 * @param skills ability skills.
570 void InsertSkillInfo(const std::string &key, const std::vector<Skill> &skills) in InsertSkillInfo() argument
579 InsertExtensionSkillInfo(const std::string &key, const std::vector<Skill> &skills) InsertExtensionSkillInfo() argument
[all...]
/foundation/ability/ability_base/interfaces/kits/native/want/include/
H A Dskills.h42 * @param skills Indicates skills used to create a Skills instance.
44 Skills(const Skills &skills);
470 * @brief Match this skills against a Want's action. If the skills does not
475 * @return True if the action is listed in the skills.
480 * @brief Match this skills against a Want's data (type, scheme and path).
495 * @brief Match this skills against a Want's entities. Each entity in
496 * the Want must be specified by the skills; if any are not in the
497 * skills, th
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dextension_ability_info.h178 std::vector<Skill> skills; member
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dgt_bundle_manager_service.h109 static bool MatchSkills(const Want *want, Skill *const skills[]);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_data_mgr_test/
H A Dbms_data_mgr_test.cpp1462 std::vector<Skill> skills; in HWTEST_F() local
1463 skills.emplace_back(skill); in HWTEST_F()
1464 innerBundleInfo.InsertSkillInfo(BUNDLE_NAME, skills); in HWTEST_F()
1910 std::vector<Skill> skills; in HWTEST_F() local
1911 bool result = dataMgr->MatchShare(want, skills); in HWTEST_F()
1914 result = dataMgr->MatchShare(want, skills); in HWTEST_F()
1917 skills.emplace_back(skill); in HWTEST_F()
1918 result = dataMgr->MatchShare(want, skills); in HWTEST_F()
1978 * @tc.desc: 1.test find skills that include sharing action
1984 std::vector<Skill> skills; in HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_kit_service_test.cpp645 std::vector<Skill> skills; in MockInstallBundle() local
646 skills.emplace_back(skill); in MockInstallBundle()
647 innerBundleInfo.InsertSkillInfo(keyName, skills); in MockInstallBundle()
666 std::vector<Skill> skills; in MockInstallExtension() local
667 skills.emplace_back(skill); in MockInstallExtension()
668 innerBundleInfo.InsertExtensionSkillInfo(keyName, skills); in MockInstallExtension()
669 innerBundleInfo.InsertExtensionSkillInfo(keyName02, skills); in MockInstallExtension()
686 std::vector<Skill> skills; in MockInstallExtensionWithUri() local
687 skills.emplace_back(skill); in MockInstallExtensionWithUri()
688 innerBundleInfo.InsertExtensionSkillInfo(keyName, skills); in MockInstallExtensionWithUri()
775 std::vector<Skill> skills; MockInstallBundle() local
3045 std::vector<Skill> skills; HWTEST_F() local
11581 std::vector<Skill> skills; HWTEST_F() local
11620 std::vector<Skill> skills; HWTEST_F() local
11644 std::vector<Skill> skills; HWTEST_F() local
[all...]

Completed in 42 milliseconds

12