Home
last modified time | relevance | path

Searched refs:skill (Results 1 - 25 of 42) sorted by relevance

12

/foundation/resourceschedule/work_scheduler/services/native/src/policy/
H A Dapp_data_clear_listener.cpp56 MatchingSkills skill = MatchingSkills(); in CreateAppDataClearSubscriber() local
57 skill.AddEvent(CommonEventSupport::COMMON_EVENT_PACKAGE_DATA_CLEARED); in CreateAppDataClearSubscriber()
58 skill.AddEvent(CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED); in CreateAppDataClearSubscriber()
59 skill.AddEvent(CommonEventSupport::COMMON_EVENT_PACKAGE_CHANGED); in CreateAppDataClearSubscriber()
60 skill.AddEvent(CommonEventSupport::COMMON_EVENT_PACKAGE_ADDED); in CreateAppDataClearSubscriber()
61 skill.AddEvent(CommonEventSupport::COMMON_EVENT_USER_SWITCHED); in CreateAppDataClearSubscriber()
62 CommonEventSubscribeInfo info(skill); in CreateAppDataClearSubscriber()
/foundation/resourceschedule/work_scheduler/services/native/src/conditions/
H A Dstorage_listener.cpp47 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in CreateStorageEventSubscriber() local
48 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_DEVICE_STORAGE_LOW); in CreateStorageEventSubscriber()
49 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_DEVICE_STORAGE_OK); in CreateStorageEventSubscriber()
50 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_DEVICE_STORAGE_FULL); in CreateStorageEventSubscriber()
51 EventFwk::CommonEventSubscribeInfo info(skill); in CreateStorageEventSubscriber()
H A Dbattery_status_listener.cpp49 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in CreateBatteryEventSubscriber() local
50 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_LOW); in CreateBatteryEventSubscriber()
51 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY); in CreateBatteryEventSubscriber()
52 EventFwk::CommonEventSubscribeInfo info(skill); in CreateBatteryEventSubscriber()
H A Dscreen_listener.cpp72 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in CreateScreenEventSubscriber() local
73 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED); in CreateScreenEventSubscriber()
74 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF); in CreateScreenEventSubscriber()
75 EventFwk::CommonEventSubscribeInfo info(skill); in CreateScreenEventSubscriber()
H A Dbattery_level_listener.cpp55 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in CreateBatteryEventSubscriber() local
56 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED); in CreateBatteryEventSubscriber()
57 EventFwk::CommonEventSubscribeInfo info(skill); in CreateBatteryEventSubscriber()
H A Dnetwork_listener.cpp93 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in CreateNetworkEventSubscriber() local
94 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_CONNECTIVITY_CHANGE); in CreateNetworkEventSubscriber()
95 EventFwk::CommonEventSubscribeInfo info(skill); in CreateNetworkEventSubscriber()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_default_app_test/
H A Dbms_bundle_default_app_mgr_test.cpp137 Skill skill; in AddInnerBundleInfo() local
140 skill.actions.emplace_back("image/*"); in AddInnerBundleInfo()
141 skill.actions.emplace_back("ohos.want.action.viewData"); in AddInnerBundleInfo()
142 skill.uris.emplace_back(uri); in AddInnerBundleInfo()
143 std::vector skills{ skill }; in AddInnerBundleInfo()
431 Skill skill; in HWTEST_F() local
432 std::vector<Skill> skills{ skill }; in HWTEST_F()
444 Skill skill; in HWTEST_F() local
447 skill.actions.emplace_back("ohos.want.action.sendToData"); in HWTEST_F()
448 skill in HWTEST_F()
854 Skill skill; HWTEST_F() local
869 Skill skill; HWTEST_F() local
883 Skill skill; HWTEST_F() local
897 Skill skill; HWTEST_F() local
912 Skill skill; HWTEST_F() local
926 Skill skill; HWTEST_F() local
942 Skill skill; HWTEST_F() local
[all...]
H A Dbms_bundle_default_app_test.cpp1829 Skill skill; in HWTEST_F() local
1830 skill.actions.clear(); in HWTEST_F()
1834 skill.uris.push_back(uris); in HWTEST_F()
1836 skills.push_back(skill); in HWTEST_F()
1849 Skill skill; in HWTEST_F() local
1850 skill.actions.push_back(ACTION_VIEW_DATA); in HWTEST_F()
1854 skill.uris.push_back(uris); in HWTEST_F()
1856 skills.push_back(skill); in HWTEST_F()
2334 Skill skill; in HWTEST_F() local
2335 skill in HWTEST_F()
[all...]
/foundation/multimodalinput/input/intention/adapters/common_event_adapter/src/
H A Dcommon_event_observer.cpp40 EventFwk::MatchingSkills skill; in CreateCommonEventObserver() local
42 skill.AddEvent(action); in CreateCommonEventObserver()
44 return std::make_shared<CommonEventObserver>(EventFwk::CommonEventSubscribeInfo(skill), handle); in CreateCommonEventObserver()
/foundation/resourceschedule/background_task_mgr/services/transient_task/src/
H A Devent_hub.cpp40 auto skill = std::make_shared<EventFwk::MatchingSkills>(); in RegisterEvent() local
42 skill->AddEvent(actionPair.first); in RegisterEvent()
44 auto info = std::make_shared<EventFwk::CommonEventSubscribeInfo>(*skill); in RegisterEvent()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dskill.cpp17 #include "skill.h"
466 // 1.param : mimeType, skill : mimeType in MatchUtd()
469 // 2.param : utd, skill : utd in MatchUtd()
472 // 3.param : mimeType, skill : utd in MatchUtd()
485 // 4.param : utd, skill : mimeType in MatchUtd()
619 Skill *skill = new (std::nothrow) Skill(); in Unmarshalling() local
620 if (skill && !skill->ReadFromParcel(parcel)) { in Unmarshalling()
622 delete skill; in Unmarshalling()
623 skill in Unmarshalling()
716 from_json(const nlohmann::json &jsonObject, Skill &skill) from_json() argument
776 to_json(nlohmann::json &jsonObject, const Skill &skill) to_json() argument
[all...]
/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/
H A Ddevice_switch_collect.cpp46 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in InitCommonEventSubscriber() local
47 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_WIFI_POWER_STATE); in InitCommonEventSubscriber()
48 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE); in InitCommonEventSubscriber()
49 EventFwk::CommonEventSubscribeInfo info(skill); in InitCommonEventSubscriber()
H A Dcommon_event_collect.cpp148 void CommonEventCollect::AddSkillsEvent(EventFwk::MatchingSkills& skill) in AddSkillsEvent() argument
153 skill.AddEvent(commonEventName); in AddSkillsEvent()
163 EventFwk::MatchingSkills skill = commonEventSubscriber_->GetSubscribeInfo().GetMatchingSkills(); in CleanFailedEventLocked() local
164 skill.RemoveEvent(eventName); in CleanFailedEventLocked()
190 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in CreateCommonEventSubscriberLocked() local
191 AddSkillsEvent(skill); in CreateCommonEventSubscriberLocked()
192 EventFwk::CommonEventSubscribeInfo info(skill); in CreateCommonEventSubscriberLocked()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_kit_service_test.cpp314 void CheckSkillInfos(const std::vector<Skill> &skill) const;
642 Skill skill; in MockInstallBundle() local
643 skill.actions = {ACTION}; in MockInstallBundle()
644 skill.entities = {ENTITY}; in MockInstallBundle()
646 skills.emplace_back(skill); in MockInstallBundle()
663 Skill skill; in MockInstallExtension() local
664 skill.actions = {ACTION}; in MockInstallExtension()
665 skill.entities = {ENTITY}; in MockInstallExtension()
667 skills.emplace_back(skill); in MockInstallExtension()
685 Skill skill in MockInstallExtensionWithUri() local
772 Skill skill; MockInstallBundle() local
976 Skill skill = MockAbilitySkillInfo(); MockAbilityInfo() local
989 Skill skill = MockExtensionSkillInfo(); MockExtensionInfo() local
3044 Skill skill; HWTEST_F() local
5972 struct Skill skill; HWTEST_F() local
5985 struct Skill skill; HWTEST_F() local
5999 struct Skill skill; HWTEST_F() local
6013 struct Skill skill; HWTEST_F() local
6028 struct Skill skill; HWTEST_F() local
6043 struct Skill skill; HWTEST_F() local
6057 struct Skill skill; HWTEST_F() local
6072 struct Skill skill; HWTEST_F() local
6087 struct Skill skill; HWTEST_F() local
6103 struct Skill skill; HWTEST_F() local
6121 struct Skill skill; HWTEST_F() local
6137 struct Skill skill; HWTEST_F() local
6153 struct Skill skill; HWTEST_F() local
6171 struct Skill skill; HWTEST_F() local
6189 struct Skill skill; HWTEST_F() local
6207 struct Skill skill; HWTEST_F() local
6225 struct Skill skill; HWTEST_F() local
6244 struct Skill skill; HWTEST_F() local
6266 struct Skill skill; HWTEST_F() local
6288 struct Skill skill; HWTEST_F() local
6309 struct Skill skill; HWTEST_F() local
6349 struct Skill skill; HWTEST_F() local
6396 struct Skill skill; HWTEST_F() local
6439 struct Skill skill; HWTEST_F() local
6482 struct Skill skill; HWTEST_F() local
6517 struct Skill skill; HWTEST_F() local
6544 struct Skill skill; HWTEST_F() local
6565 struct Skill skill; HWTEST_F() local
6583 struct Skill skill; HWTEST_F() local
6600 struct Skill skill; HWTEST_F() local
6621 struct Skill skill; HWTEST_F() local
6645 struct Skill skill; HWTEST_F() local
6664 struct Skill skill; HWTEST_F() local
6691 struct Skill skill; HWTEST_F() local
6713 struct Skill skill; HWTEST_F() local
6740 struct Skill skill; HWTEST_F() local
11578 Skill skill; HWTEST_F() local
11617 Skill skill; HWTEST_F() local
11641 Skill skill; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/
H A Ddefault_app_mgr.cpp545 Skill skill; in GetBundleInfoByUtd() local
547 if (skill.MatchType(utd, mimeType) && GetBundleInfo(userId, utd, item.second, bundleInfo)) { in GetBundleInfoByUtd()
612 for (const Skill& skill : skills) { in MatchActionAndType()
613 auto item = std::find(skill.actions.cbegin(), skill.actions.cend(), action); in MatchActionAndType()
614 if (item == skill.actions.cend()) { in MatchActionAndType()
617 for (const SkillUri& skillUri : skill.uris) { in MatchActionAndType()
618 if (skill.MatchType(type, skillUri.type)) { in MatchActionAndType()
673 for (const Skill& skill : skills) { in IsBrowserSkillsValid()
674 if (skill in IsBrowserSkillsValid()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dskill.h58 void from_json(const nlohmann::json &jsonObject, Skill &skill);
60 void to_json(nlohmann::json &jsonObject, const Skill &skill);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dmodule_profile.cpp2144 for (const Skill &skill : skills) { in ToAbilitySkills()
2145 abilityInfo.skills.push_back(skill); in ToAbilitySkills()
2151 for (const Skill &skill : skills) { in ToExtensionAbilitySkills()
2152 extensionInfo.skills.push_back(skill); in ToExtensionAbilitySkills()
2411 for (const auto &skill : ability.skills) { in ToInnerBundleInfo()
2412 bool isEntryAction = std::find_if(skill.actions.begin(), skill.actions.end(), in ToInnerBundleInfo()
2413 entryActionMatcher) != skill.actions.end(); in ToInnerBundleInfo()
2414 bool isEntryEntity = std::find(skill.entities.begin(), skill in ToInnerBundleInfo()
[all...]
H A Dbundle_profile.cpp2388 for (const auto &skill : ability.skills) { in ToInnerBundleInfo()
2389 bool isEntryAction = std::find_if(skill.actions.begin(), skill.actions.end(), in ToInnerBundleInfo()
2390 entryActionMatcher) != skill.actions.end(); in ToInnerBundleInfo()
2391 bool isEntryEntity = std::find(skill.entities.begin(), skill.entities.end(), in ToInnerBundleInfo()
2392 Constants::ENTITY_HOME) != skill.entities.end(); in ToInnerBundleInfo()
2406 if (std::find(skill.entities.begin(), skill.entities.end(), in ToInnerBundleInfo()
2408 skill in ToInnerBundleInfo()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/
H A Dbundle_manager_convert.cpp183 RetSkill skill; in ConvertSkill() local
184 skill.actions = ConvertArrString(cSkill.actions); in ConvertSkill()
185 skill.entities = ConvertArrString(cSkill.entities); in ConvertSkill()
186 skill.uris = ConvertArrSkillUris(cSkill.uris); in ConvertSkill()
187 skill.domainVerify = cSkill.domainVerify; in ConvertSkill()
188 return skill; in ConvertSkill()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dgt_bundle_parser.h50 static uint8_t ParseOneSkill(const cJSON *skillObject, Skill &skill);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_data_storage_test/
H A Dbms_bundle_data_storage_database_test.cpp1834 Skill skill; in HWTEST_F() local
1835 bool ret = skill.MatchLauncher(want); in HWTEST_F()
1840 skill.actions = actions; in HWTEST_F()
1842 ret = skill.MatchLauncher(want); in HWTEST_F()
1846 ret = skill.MatchLauncher(want); in HWTEST_F()
1859 Skill skill; in HWTEST_F() local
1862 skill.actions = actions; in HWTEST_F()
1869 skill.uris = uris; in HWTEST_F()
1870 bool ret = skill.Match(want); in HWTEST_F()
1875 skill in HWTEST_F()
1955 std::vector<Skill> skill; HWTEST_F() local
[all...]
/foundation/systemabilitymgr/samgr/services/samgr/native/include/collect/
H A Dcommon_event_collect.h64 void AddSkillsEvent(EventFwk::MatchingSkills& skill);
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/src/
H A Dcommon_event_collect_test.cpp237 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in HWTEST_F() local
238 EventFwk::CommonEventSubscribeInfo info(skill); in HWTEST_F()
803 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in HWTEST_F() local
804 EventFwk::CommonEventSubscribeInfo info(skill); in HWTEST_F()
H A Ddevice_switch_collect_test.cpp354 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in HWTEST_F() local
355 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_WIFI_POWER_STATE); in HWTEST_F()
356 EventFwk::CommonEventSubscribeInfo info(skill); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_data_mgr_test/
H A Dbms_data_mgr_test.cpp1459 Skill skill; in HWTEST_F() local
1460 skill.actions = {ACTION}; in HWTEST_F()
1461 skill.entities = {ENTITY}; in HWTEST_F()
1463 skills.emplace_back(skill); in HWTEST_F()
1900 * @tc.desc: 1.test match share based on want and skill
1916 struct Skill skill; in HWTEST_F() local
1917 skills.emplace_back(skill); in HWTEST_F()
1931 struct Skill skill; in HWTEST_F() local
1934 bool result = dataMgr->MatchUtd(skill, utd, count); in HWTEST_F()
1939 skill in HWTEST_F()
1968 struct Skill skill; HWTEST_F() local
1988 struct Skill skill; HWTEST_F() local
[all...]

Completed in 40 milliseconds

12