Home
last modified time | relevance | path

Searched refs:EventFwk (Results 1 - 25 of 341) sorted by relevance

12345678910>>...14

/foundation/multimedia/camera_framework/services/deferred_processing_service/src/event_monitor/
H A Devents_subscriber.cpp32 OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_THERMAL_LEVEL_CHANGED,
33 OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON,
34 OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF,
35 OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_CHARGING,
36 OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_DISCHARGING,
37 OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY,
38 OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_LOW,
39 OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED,
42 EventSubscriber::EventSubscriber(const OHOS::EventFwk::CommonEventSubscribeInfo& subscriberInfo) in EventSubscriber()
58 OHOS::EventFwk in Create()
[all...]
/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/
H A Dnet_stats_listener_test.cpp47 EventFwk::MatchingSkills matchingSkills; in SetUpTestCase()
48 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SHUTDOWN); in SetUpTestCase()
49 EventFwk::CommonEventSubscribeInfo subscribeInfo(matchingSkills); in SetUpTestCase()
62 instance_->RegisterStatsCallback(EventFwk::CommonEventSupport::COMMON_EVENT_SHUTDOWN, in HWTEST_F()
63 [this](const EventFwk::Want &want) { return 0; }); in HWTEST_F()
64 EventFwk::Want wantErr; in HWTEST_F()
65 wantErr.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_POWER_SAVE_MODE_CHANGED); in HWTEST_F()
66 EventFwk::CommonEventData eventData; in HWTEST_F()
72 EventFwk::Want wantOk; in HWTEST_F()
73 wantOk.SetAction(EventFwk in HWTEST_F()
[all...]
/foundation/multimedia/ringtone_library/services/ringtone_data_extension/src/
H A Dringtone_subscriber.cpp26 EventFwk::CommonEventSupport::COMMON_EVENT_CHARGING,
27 EventFwk::CommonEventSupport::COMMON_EVENT_DISCHARGING,
28 EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF,
29 EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON,
30 EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED,
31 EventFwk::CommonEventSupport::COMMON_EVENT_BOOT_COMPLETED
34 RingtoneSubscriber::RingtoneSubscriber(const EventFwk::CommonEventSubscribeInfo &subscriberInfo) in RingtoneSubscriber()
35 : EventFwk::CommonEventSubscriber(subscriberInfo) in RingtoneSubscriber()
41 EventFwk::MatchingSkills matchingSkills; in Subscribe()
45 EventFwk in Subscribe()
[all...]
/foundation/communication/nfc/services/src/
H A Dnfc_event_handler.cpp39 class NfcEventHandler::ScreenChangedReceiver : public EventFwk::CommonEventSubscriber {
42 const EventFwk::CommonEventSubscribeInfo& subscribeInfo);
46 void OnReceiveEvent(const EventFwk::CommonEventData& data) override;
54 const EventFwk::CommonEventSubscribeInfo& subscribeInfo) in ScreenChangedReceiver()
55 : EventFwk::CommonEventSubscriber(subscribeInfo), in ScreenChangedReceiver()
87 void NfcEventHandler::ScreenChangedReceiver::OnReceiveEvent(const EventFwk::CommonEventData& data) in OnReceiveEvent()
96 if (action.compare(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON) == 0) { in OnReceiveEvent()
99 } else if (action.compare(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF) == 0) { in OnReceiveEvent()
102 } else if (action.compare(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED) == 0) { in OnReceiveEvent()
113 class NfcEventHandler::PackageChangedReceiver : public EventFwk
[all...]
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/sync_rule/
H A Dbattery_status_listener.cpp25 BatteryStatusSubscriber::BatteryStatusSubscriber(const EventFwk::CommonEventSubscribeInfo &subscribeInfo, in BatteryStatusSubscriber()
27 : EventFwk::CommonEventSubscriber(subscribeInfo), listener_(listener) in BatteryStatusSubscriber()
31 void BatteryStatusSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &eventData) in OnReceiveEvent()
34 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY) { in OnReceiveEvent()
39 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_CHARGING) { in OnReceiveEvent()
42 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_DISCHARGING) { in OnReceiveEvent()
45 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED) { in OnReceiveEvent()
65 EventFwk::MatchingSkills matchingSkills; in Start()
66 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY); in Start()
67 matchingSkills.AddEvent(EventFwk in Start()
[all...]
H A Dscreen_status_listener.cpp26 ScreenStatusSubscriber::ScreenStatusSubscriber(const EventFwk::CommonEventSubscribeInfo &subscribeInfo, in ScreenStatusSubscriber()
28 : EventFwk::CommonEventSubscriber(subscribeInfo), listener_(listener) in ScreenStatusSubscriber()
31 void ScreenStatusSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &eventData) in OnReceiveEvent()
34 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON) { in OnReceiveEvent()
37 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF) { in OnReceiveEvent()
63 EventFwk::MatchingSkills matchingSkills; in Start()
64 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON); in Start()
65 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF); in Start()
66 EventFwk::CommonEventSubscribeInfo info(matchingSkills); in Start()
68 auto subRet = EventFwk in Start()
[all...]
H A Duser_status_listener.cpp24 UserStatusSubscriber::UserStatusSubscriber(const EventFwk::CommonEventSubscribeInfo &subscribeInfo, in UserStatusSubscriber()
25 std::shared_ptr<UserStatusListener> listener) : EventFwk::CommonEventSubscriber(subscribeInfo), listener_(listener) in UserStatusSubscriber()
29 void UserStatusSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &eventData) in OnReceiveEvent()
32 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_UNLOCKED) { in OnReceiveEvent()
37 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_HWID_LOGOUT) { in OnReceiveEvent()
71 EventFwk::MatchingSkills matchingSkills; in Start()
72 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_UNLOCKED); in Start()
73 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_HWID_LOGOUT); in Start()
74 EventFwk::CommonEventSubscribeInfo info(matchingSkills); in Start()
76 auto subRet = EventFwk in Start()
[all...]
/foundation/resourceschedule/work_scheduler/services/test/src/conditions/
H A Dnetwork_listener_test.cpp66 EventFwk::CommonEventData data; in HWTEST_F()
81 EventFwk::CommonEventData data; in HWTEST_F()
82 EventFwk::Want want; in HWTEST_F()
83 want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_CONNECTIVITY_CHANGE); in HWTEST_F()
87 EventFwk::CommonEventManager::PublishCommonEvent(data); in HWTEST_F()
102 EventFwk::CommonEventData data; in HWTEST_F()
103 EventFwk::Want want; in HWTEST_F()
104 want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_CONNECTIVITY_CHANGE); in HWTEST_F()
108 EventFwk::CommonEventManager::PublishCommonEvent(data); in HWTEST_F()
123 EventFwk in HWTEST_F()
[all...]
/foundation/resourceschedule/work_scheduler/services/native/src/conditions/
H A Dstorage_listener.cpp25 StorageEventSubscriber::StorageEventSubscriber(const EventFwk::CommonEventSubscribeInfo &subscribeInfo, in StorageEventSubscriber()
26 StorageListener &listener) : EventFwk::CommonEventSubscriber(subscribeInfo), listener_(listener) {} in StorageEventSubscriber()
28 void StorageEventSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &data) in OnReceiveEvent()
32 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_DEVICE_STORAGE_LOW) { in OnReceiveEvent()
36 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_DEVICE_STORAGE_OK) { in OnReceiveEvent()
45 std::shared_ptr<EventFwk::CommonEventSubscriber> CreateStorageEventSubscriber(StorageListener &listener) in CreateStorageEventSubscriber()
47 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in CreateStorageEventSubscriber()
48 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_DEVICE_STORAGE_LOW); in CreateStorageEventSubscriber()
49 skill.AddEvent(EventFwk in CreateStorageEventSubscriber()
[all...]
H A Dbattery_status_listener.cpp26 BatteryStatusEventSubscriber::BatteryStatusEventSubscriber(const EventFwk::CommonEventSubscribeInfo &subscribeInfo, in BatteryStatusEventSubscriber()
27 BatteryStatusListener &listener) : EventFwk::CommonEventSubscriber(subscribeInfo), listener_(listener) {} in BatteryStatusEventSubscriber()
29 void BatteryStatusEventSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &data) in OnReceiveEvent()
34 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_LOW) { in OnReceiveEvent()
38 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY) { in OnReceiveEvent()
47 std::shared_ptr<EventFwk::CommonEventSubscriber> CreateBatteryEventSubscriber(BatteryStatusListener &listener) in CreateBatteryEventSubscriber()
49 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in CreateBatteryEventSubscriber()
50 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_LOW); in CreateBatteryEventSubscriber()
51 skill.AddEvent(EventFwk in CreateBatteryEventSubscriber()
[all...]
H A Dbattery_level_listener.cpp30 BatteryLevelEventSubscriber::BatteryLevelEventSubscriber(const EventFwk::CommonEventSubscribeInfo &subscribeInfo, in BatteryLevelEventSubscriber()
31 BatteryLevelListener &listener) : EventFwk::CommonEventSubscriber(subscribeInfo), listener_(listener) {} in BatteryLevelEventSubscriber()
33 void BatteryLevelEventSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &data) in OnReceiveEvent()
38 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED) { in OnReceiveEvent()
53 std::shared_ptr<EventFwk::CommonEventSubscriber> CreateBatteryEventSubscriber(BatteryLevelListener &listener) in CreateBatteryEventSubscriber()
55 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in CreateBatteryEventSubscriber()
56 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED); in CreateBatteryEventSubscriber()
57 EventFwk::CommonEventSubscribeInfo info(skill); in CreateBatteryEventSubscriber()
77 return EventFwk in Start()
[all...]
/foundation/resourceschedule/work_scheduler/services/native/src/
H A Devent_publisher.cpp83 EventFwk::Want want; in PublishNetworkEvent()
85 want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_CONNECTIVITY_CHANGE); in PublishNetworkEvent()
88 EventFwk::CommonEventData data; in PublishNetworkEvent()
91 bool isSuccess = EventFwk::CommonEventManager::PublishCommonEvent(data); in PublishNetworkEvent()
94 want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_CONNECTIVITY_CHANGE); in PublishNetworkEvent()
96 EventFwk::CommonEventData data; in PublishNetworkEvent()
99 bool isSuccess = EventFwk::CommonEventManager::PublishCommonEvent(data); in PublishNetworkEvent()
111 EventFwk::Want want; in PublishChargingEvent()
112 EventFwk::CommonEventData data; in PublishChargingEvent()
114 want.SetAction(EventFwk in PublishChargingEvent()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sub_manage/
H A Dwifi_event_subscriber_manager.h40 class CesEventSubscriber : public OHOS::EventFwk::CommonEventSubscriber {
42 explicit CesEventSubscriber(const OHOS::EventFwk::CommonEventSubscribeInfo &subscriberInfo);
44 void OnReceiveEvent(const OHOS::EventFwk::CommonEventData &eventData) override;
45 void OnReceiveStandbyEvent(const OHOS::EventFwk::CommonEventData &eventData);
46 void OnReceiveScreenEvent(const OHOS::EventFwk::CommonEventData &eventData);
47 void OnReceiveAirplaneEvent(const OHOS::EventFwk::CommonEventData &eventData);
48 void OnReceiveBatteryEvent(const OHOS::EventFwk::CommonEventData &eventData);
49 void OnReceiveAppEvent(const OHOS::EventFwk::CommonEventData &eventData);
50 void OnReceiveThermalEvent(const OHOS::EventFwk::CommonEventData &eventData);
51 void OnReceiveNotificationEvent(const OHOS::EventFwk
[all...]
/foundation/multimodalinput/input/service/display_state_manager/src/
H A Ddisplay_event_monitor.cpp41 class DisplyChangedReceiver : public EventFwk::CommonEventSubscriber {
43 explicit DisplyChangedReceiver(const OHOS::EventFwk::CommonEventSubscribeInfo& subscribeInfo) in DisplyChangedReceiver()
44 : OHOS::EventFwk::CommonEventSubscriber(subscribeInfo) in DisplyChangedReceiver()
51 void OnReceiveEvent(const EventFwk::CommonEventData &eventData) in OnReceiveEvent()
65 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON) { in JudgeAction()
77 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF) { in JudgeAction()
86 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_LOCKED) { in JudgeAction()
90 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED) { in JudgeAction()
93 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_DATA_SHARE_READY) { in JudgeAction()
148 EventFwk in InitCommonEventSubscriber()
[all...]
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/utils/
H A Dsystem_event_observer.cpp25 using namespace OHOS::EventFwk;
29 SystemEventObserver::SystemEventObserver(const OHOS::EventFwk::CommonEventSubscribeInfo &subscribeInfo) in SystemEventObserver()
30 : EventFwk::CommonEventSubscriber(subscribeInfo), handler_(nullptr) in SystemEventObserver()
41 const OHOS::EventFwk::CommonEventSubscribeInfo &subscribeInfo) in Create()
48 if (!OHOS::EventFwk::CommonEventManager::SubscribeCommonEvent(GetPtr())) { in Subscribe()
57 if (!OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(GetPtr())) { in Unsubscribe()
69 void SystemEventObserver::OnReceiveEvent(const OHOS::EventFwk::CommonEventData &eventData) in OnReceiveEvent()
86 if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON) { in OnReceiveEvent()
92 } else if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF) { in OnReceiveEvent()
98 } else if (action == OHOS::EventFwk in OnReceiveEvent()
[all...]
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/
H A Daccount_status_listener.cpp45 AccountStatusSubscriber::AccountStatusSubscriber(const EventFwk::CommonEventSubscribeInfo &subscribeInfo) in AccountStatusSubscriber()
46 : EventFwk::CommonEventSubscriber(subscribeInfo) in AccountStatusSubscriber()
50 void AccountStatusSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &eventData) in OnReceiveEvent()
53 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_HWID_LOGIN) { in OnReceiveEvent()
56 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_HWID_LOGOUT) { in OnReceiveEvent()
60 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF && in OnReceiveEvent()
76 EventFwk::MatchingSkills matchingSkills; in Start()
77 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_HWID_LOGIN); in Start()
78 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_HWID_LOGOUT); in Start()
79 matchingSkills.AddEvent(EventFwk in Start()
[all...]
/foundation/multimodalinput/input/intention/adapters/common_event_adapter/src/
H A Dcommon_event_observer.cpp28 EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON,
29 EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF,
30 EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_LOCKED,
31 EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED,
32 EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_LOW,
33 EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY
40 EventFwk::MatchingSkills skill; in CreateCommonEventObserver()
44 return std::make_shared<CommonEventObserver>(EventFwk::CommonEventSubscribeInfo(skill), handle); in CreateCommonEventObserver()
47 void CommonEventObserver::OnReceiveEvent(const EventFwk::CommonEventData &event) in OnReceiveEvent()
/foundation/barrierfree/accessibility/services/aams/include/
H A Daccessibility_common_event.h28 using EventHandle = std::function<void(const OHOS::EventFwk::CommonEventData &)>;
37 void OnReceiveEvent(const EventFwk::CommonEventData &data);
40 class AccessibilityCommonEventSubscriber : public EventFwk::CommonEventSubscriber {
42 explicit AccessibilityCommonEventSubscriber(const EventFwk::CommonEventSubscribeInfo &subscriberInfo, in AccessibilityCommonEventSubscriber()
47 void OnReceiveEvent(const EventFwk::CommonEventData &data) override
56 void HandleUserAdded(const EventFwk::CommonEventData &data) const;
57 void HandleUserRemoved(const EventFwk::CommonEventData &data) const;
58 void HandleUserSwitched(const EventFwk::CommonEventData &data) const;
60 void HandlePackageRemoved(const EventFwk::CommonEventData &data) const;
61 void HandlePackageChanged(const EventFwk
[all...]
/foundation/communication/dsoftbus/tests/adapter/common/src/
H A Dlnn_wifiservice_monitor_test.cpp30 namespace EventFwk { namespace
31 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<EventFwk::CommonEventSubscriber> &subscriber) in SubscribeCommonEvent()
71 EventFwk::SetSoftBusWifiConnState((int)OHOS::Wifi::ConnState::OBTAINING_IPADDR, &state); in HWTEST_F()
74 EventFwk::SetSoftBusWifiConnState((int)OHOS::Wifi::ConnState::CONNECTED, &state); in HWTEST_F()
77 EventFwk::SetSoftBusWifiConnState((int)OHOS::Wifi::ConnState::DISCONNECTED, &state); in HWTEST_F()
81 EventFwk::SetSoftBusWifiConnState((int)OHOS::Wifi::ConnState::UNKNOWN, &state); in HWTEST_F()
95 EventFwk::SetSoftBusWifiUseState((int)OHOS::Wifi::WifiState::DISABLED, &state); in HWTEST_F()
98 EventFwk::SetSoftBusWifiUseState((int)OHOS::Wifi::WifiState::ENABLED, &state); in HWTEST_F()
102 EventFwk::SetSoftBusWifiUseState((int)OHOS::Wifi::WifiState::UNKNOWN, &state); in HWTEST_F()
116 EventFwk in HWTEST_F()
[all...]
/foundation/barrierfree/accessibility/services/aams/test/mock/src/
H A Dmock_accessibility_common_event.cpp21 using namespace OHOS::EventFwk;
41 void AccessibilityCommonEvent::OnReceiveEvent(const EventFwk::CommonEventData &data) in OnReceiveEvent()
46 void AccessibilityCommonEvent::HandleUserAdded(const EventFwk::CommonEventData &data) const in HandleUserAdded()
51 void AccessibilityCommonEvent::HandleUserRemoved(const EventFwk::CommonEventData &data) const in HandleUserRemoved()
56 void AccessibilityCommonEvent::HandleUserSwitched(const EventFwk::CommonEventData &data) const in HandleUserSwitched()
61 void AccessibilityCommonEvent::HandlePackageRemoved(const EventFwk::CommonEventData &data) const in HandlePackageRemoved()
66 void AccessibilityCommonEvent::HandlePackageAdd(const EventFwk::CommonEventData &data) const in HandlePackageAdd()
71 void AccessibilityCommonEvent::HandlePackageChanged(const EventFwk::CommonEventData &data) const in HandlePackageChanged()
/foundation/barrierfree/accessibility/services/test/moduletest/mock/src/
H A Dmock_mt_accessibility_common_event.cpp21 using namespace OHOS::EventFwk;
41 void MockAccessibilityCommonEvent::OnReceiveEvent(const EventFwk::CommonEventData &data) in OnReceiveEvent()
46 void MockAccessibilityCommonEvent::HandleUserAdded(const EventFwk::CommonEventData &data) const in HandleUserAdded()
51 void MockAccessibilityCommonEvent::HandleUserRemoved(const EventFwk::CommonEventData &data) const in HandleUserRemoved()
56 void MockAccessibilityCommonEvent::HandleUserSwitched(const EventFwk::CommonEventData &data) const in HandleUserSwitched()
61 void MockAccessibilityCommonEvent::HandlePackageRemoved(const EventFwk::CommonEventData &data) const in HandlePackageRemoved()
66 void MockAccessibilityCommonEvent::HandlePackageAdd(const EventFwk::CommonEventData &data) const in HandlePackageAdd()
71 void MockAccessibilityCommonEvent::HandlePackageChanged(const EventFwk::CommonEventData &data) const in HandlePackageChanged()
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessibility_common_event.cpp33 handleEventFunc_[EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED] = in AccessibilityCommonEvent()
35 handleEventFunc_[EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED] = in AccessibilityCommonEvent()
37 handleEventFunc_[EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED] = in AccessibilityCommonEvent()
39 handleEventFunc_[EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_ADDED] = in AccessibilityCommonEvent()
41 handleEventFunc_[EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED] = in AccessibilityCommonEvent()
43 handleEventFunc_[EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_CHANGED] = in AccessibilityCommonEvent()
48 eventHandles_.emplace(it->first, [this, it](const OHOS::EventFwk::CommonEventData &eventId) { in AccessibilityCommonEvent()
71 EventFwk::MatchingSkills matchingSkills; in SubscriberEvent()
77 EventFwk::CommonEventSubscribeInfo subscribeInfo(matchingSkills); in SubscriberEvent()
83 bool subscribeResult = EventFwk in SubscriberEvent()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_rdb_test/src/
H A Dmedialibrary_subscriber_test.cpp40 EventFwk::CommonEventData eventData; in HWTEST_F()
41 string action = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF; in HWTEST_F()
46 EXPECT_EQ(want.GetAction(), EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF); in HWTEST_F()
53 EventFwk::CommonEventData eventData; in HWTEST_F()
54 string action = EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED; in HWTEST_F()
59 EXPECT_EQ(want.GetAction(), EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED); in HWTEST_F()
66 EventFwk::CommonEventData eventData; in HWTEST_F()
67 string action = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON; in HWTEST_F()
72 EXPECT_EQ(want.GetAction(), EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON); in HWTEST_F()
79 EventFwk in HWTEST_F()
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtasksystemeventobserver_fuzzer/
H A Dbgtasksystemeventobserver_fuzzer.cpp33 EventFwk::MatchingSkills matchingSkills; in DoSomethingInterestingWithMyAPI()
34 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_ADDED); in DoSomethingInterestingWithMyAPI()
35 EventFwk::CommonEventSubscribeInfo commonEventSubscribeInfo(matchingSkills); in DoSomethingInterestingWithMyAPI()
40 EventFwk::CommonEventData eventData = EventFwk::CommonEventData(); in DoSomethingInterestingWithMyAPI()
50 want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED); in DoSomethingInterestingWithMyAPI()
53 want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED); in DoSomethingInterestingWithMyAPI()
56 want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED); in DoSomethingInterestingWithMyAPI()
60 EventFwk::CommonEventData eventData2 = EventFwk in DoSomethingInterestingWithMyAPI()
[all...]
/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/
H A Dcommon_event_collect.cpp55 commonEventWhitelist.erase(EventFwk::CommonEventSupport::COMMON_EVENT_USER_UNLOCKED); in RemoveWhiteCommonEvent()
121 commonEventWhitelist.insert(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON); in Init()
122 commonEventWhitelist.insert(EventFwk::CommonEventSupport::COMMON_EVENT_DISCHARGING); in Init()
123 commonEventWhitelist.insert(EventFwk::CommonEventSupport::COMMON_EVENT_POWER_DISCONNECTED); in Init()
127 commonEventNames_.insert(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON); in Init()
128 commonEventNames_.insert(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF); in Init()
129 commonEventNames_.insert(EventFwk::CommonEventSupport::COMMON_EVENT_CHARGING); in Init()
130 commonEventNames_.insert(EventFwk::CommonEventSupport::COMMON_EVENT_DISCHARGING); in Init()
131 commonEventNames_.insert(EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED); in Init()
132 commonEventNames_.insert(EventFwk in Init()
[all...]

Completed in 7 milliseconds

12345678910>>...14