Home
last modified time | relevance | path

Searched refs:EventFwk (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/base/notification/common_event_service/interfaces/kits/napi/support/src/
Dsupport.cpp35 …env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_BOOT_COMPLETED, "COMMON_EVENT_BOOT_COMPLETED"… in SupportInit()
38 EventFwk::CommonEventSupport::COMMON_EVENT_LOCKED_BOOT_COMPLETED, in SupportInit()
40 …SetNamedPropertyByStr(env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_SHUTDOWN, "COMMON_EVENT… in SupportInit()
42 …env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED, "COMMON_EVENT_BATTERY_CHANGE… in SupportInit()
43 …SetNamedPropertyByStr(env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_LOW, "COMMON_EV… in SupportInit()
45 … env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY, "COMMON_EVENT_BATTERY_OKAY"); in SupportInit()
47 …env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED, "COMMON_EVENT_POWER_CONNECTE… in SupportInit()
49 …env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_POWER_DISCONNECTED, "COMMON_EVENT_POWER_DISCO… in SupportInit()
50 …SetNamedPropertyByStr(env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF, "COMMON_EVE… in SupportInit()
51 …SetNamedPropertyByStr(env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON, "COMMON_EVEN… in SupportInit()
[all …]
/base/notification/distributed_notification_service/services/ans/src/
Dsystem_event_observer.cpp29 EventFwk::MatchingSkills matchingSkills; in SystemEventObserver()
30 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED); in SystemEventObserver()
32 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON); in SystemEventObserver()
33 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF); in SystemEventObserver()
35 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED); in SystemEventObserver()
36 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED); in SystemEventObserver()
37 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_DATA_CLEARED); in SystemEventObserver()
38 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_ADDED); in SystemEventObserver()
39 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_CHANGED); in SystemEventObserver()
40 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BOOT_COMPLETED); in SystemEventObserver()
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dsystem_event_observer_test.cpp66 EventFwk::Want want;
67 EventFwk::CommonEventData data;
68 data.SetWant(want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED));
81 EventFwk::Want want;
82 EventFwk::CommonEventData data;
83 data.SetWant(want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED));
95 EventFwk::Want want;
96 EventFwk::CommonEventData data;
97 data.SetWant(want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED));
109 EventFwk::Want want;
[all …]
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_common_event_subscriber.cpp24 void WallpaperCommonEventSubscriber::OnReceiveEvent(const OHOS::EventFwk::CommonEventData &data) in OnReceiveEvent()
29 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_BOOT_COMPLETED) { in OnReceiveEvent()
31 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED) { in OnReceiveEvent()
33 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED) { in OnReceiveEvent()
35 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED) { in OnReceiveEvent()
42 OHOS::EventFwk::MatchingSkills matchingSkills; in CreateSubscriberInfo()
43 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BOOT_COMPLETED); in CreateSubscriberInfo()
44 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED); in CreateSubscriberInfo()
45 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED); in CreateSubscriberInfo()
46 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED); in CreateSubscriberInfo()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/sa/
Dcm_event_observer.cpp32 SystemEventSubscriber::SystemEventSubscriber(const OHOS::EventFwk::CommonEventSubscribeInfo &subscr… in SystemEventSubscriber()
33 : OHOS::EventFwk::CommonEventSubscriber(subscriberInfo) in SystemEventSubscriber()
37 void SystemEventSubscriber::OnReceiveEvent(const OHOS::EventFwk::CommonEventData &data) in OnReceiveEvent()
45 if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED || in OnReceiveEvent()
46 action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_SANDBOX_PACKAGE_REMOVED) { in OnReceiveEvent()
53 } else if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED) { in OnReceiveEvent()
69 OHOS::EventFwk::MatchingSkills matchingSkills; in SubscribeSystemEvent()
70 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED); in SubscribeSystemEvent()
71 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SANDBOX_PACKAGE_REMOVED); in SubscribeSystemEvent()
72 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED); in SubscribeSystemEvent()
[all …]
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
Dapp_uninstall_observer.cpp28 AppUninstallObserver::AppUninstallObserver(const EventFwk::CommonEventSubscribeInfo& subscribeInfo) in AppUninstallObserver()
32 void AppUninstallObserver::OnReceiveEvent(const EventFwk::CommonEventData& data) in OnReceiveEvent()
37 if (action != EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED && in OnReceiveEvent()
38 action != EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_FULLY_REMOVED) { in OnReceiveEvent()
54 EventFwk::MatchingSkills matchingSkills; in DlpEventSubSubscriber()
55 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED); in DlpEventSubSubscriber()
56 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_FULLY_REMOVED); in DlpEventSubSubscriber()
57 EventFwk::CommonEventSubscribeInfo subscribeInfo(matchingSkills); in DlpEventSubSubscriber()
59 EventFwk::CommonEventManager::SubscribeCommonEvent(appUninstallObserver); in DlpEventSubSubscriber()
/base/web/webview/ohos_adapter/date_time_format_adapter/src/
Ddate_time_format_adapter_impl.cpp38 EventFwk::CommonEventSubscribeInfo& in, TimeZoneEventCallback& cb) in NWebTimeZoneEventSubscriber()
39 : EventFwk::CommonEventSubscriber(in), eventCallback_(cb) in NWebTimeZoneEventSubscriber()
42 void NWebTimeZoneEventSubscriber::OnReceiveEvent(const EventFwk::CommonEventData& data) in OnReceiveEvent()
46 if (action != EventFwk::CommonEventSupport::COMMON_EVENT_TIMEZONE_CHANGED) { in OnReceiveEvent()
66 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in StartListen()
67 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_TIMEZONE_CHANGED); in StartListen()
68 EventFwk::CommonEventSubscribeInfo info(skill); in StartListen()
70 bool ret = EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber_); in StartListen()
81 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber_); in StopListen()
/base/account/os_account/services/accountmgr/src/
Daccount_event_subscribe.cpp32 …const EventFwk::CommonEventSubscribeInfo &subscribeInfo, const AccountCommonEventCallback &callbac… in AccountEventSubscriberCallback()
36 void AccountEventSubscriberCallback::OnReceiveEvent(const EventFwk::CommonEventData &data) in OnReceiveEvent()
40 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED) { in OnReceiveEvent()
48 EventFwk::MatchingSkills matchingSkills; in AccountEventSubscriber()
49 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED); in AccountEventSubscriber()
50 EventFwk::CommonEventSubscribeInfo subscribeInfo(matchingSkills); in AccountEventSubscriber()
56 return EventFwk::CommonEventManager::SubscribeCommonEvent(subscriber_); in CreateEventSubscribe()
61 return EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriber_); in DestroyEventSubscribe()
/base/security/access_token/services/privacymanager/src/sensitive/lockscreen_manager/
Dlockscreen_status_observer.cpp51 auto skill = std::make_shared<EventFwk::MatchingSkills>(); in RegisterEvent()
52 skill->AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED); in RegisterEvent()
53 skill->AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_LOCKED); in RegisterEvent()
54 auto info = std::make_shared<EventFwk::CommonEventSubscribeInfo>(*skill); in RegisterEvent()
56 const auto result = EventFwk::CommonEventManager::SubscribeCommonEvent(g_lockscreenObserver); in RegisterEvent()
67 const auto result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(g_lockscreenObserver); in UnRegisterEvent()
75 void LockscreenObserver::OnReceiveEvent(const EventFwk::CommonEventData& event) in OnReceiveEvent()
79 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED) { in OnReceiveEvent()
83 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_LOCKED) { in OnReceiveEvent()
/base/notification/distributed_notification_service/services/ans/include/
Dsystem_event_subscriber.h25 class SystemEventSubscriber : public EventFwk::CommonEventSubscriber {
33 SystemEventSubscriber(const EventFwk::CommonEventSubscribeInfo &subscribeInfo, in SystemEventSubscriber()
34 const std::function<void(const EventFwk::CommonEventData &)> &callback) in SystemEventSubscriber()
35 : EventFwk::CommonEventSubscriber(subscribeInfo), callback_(callback) in SystemEventSubscriber()
49 void OnReceiveEvent(const EventFwk::CommonEventData &data) override in OnReceiveEvent()
57 std::function<void(const EventFwk::CommonEventData &)> callback_;
Dreminder_event_manager.h37 class ReminderEventSubscriber : public EventFwk::CommonEventSubscriber {
39 ReminderEventSubscriber(const EventFwk::CommonEventSubscribeInfo &subscriberInfo,
41 virtual void OnReceiveEvent(const EventFwk::CommonEventData &data);
44 sptr<NotificationBundleOption> GetBundleOption(const OHOS::EventFwk::Want &want) const;
45 void HandlePackageRemove(const EventFwk::Want &want) const;
46 void HandleProcessDied(const EventFwk::Want &want) const;
50 class ReminderEventCustomSubscriber : public EventFwk::CommonEventSubscriber {
52 ReminderEventCustomSubscriber(const EventFwk::CommonEventSubscribeInfo &subscriberInfo,
54 virtual void OnReceiveEvent(const EventFwk::CommonEventData &data);
Dsystem_event_observer.h44 void OnReceiveEvent(const EventFwk::CommonEventData &data);
45 void OnReceiveEventInner(const EventFwk::CommonEventData &data);
50 void OnBundleUpdateEventInner(const EventFwk::CommonEventData &data);
51 void OnBundleAddEventInner(const EventFwk::CommonEventData &data);
52 void OnBootSystemCompletedEventInner(const EventFwk::CommonEventData &data);
56 …using SystemEventObserverFunc = void (SystemEventObserver::*)(const EventFwk::CommonEventData &dat…
/base/useriam/user_auth_framework/services/ipc/src/
Dpublish_event_adapter.cpp32 void PublishEvent(EventFwk::CommonEventData data) in PublishEvent()
34 EventFwk::CommonEventPublishInfo publishInfo; in PublishEvent()
36 if (!EventFwk::CommonEventManager::PublishCommonEvent(data, publishInfo)) { in PublishEvent()
46 EventFwk::Want want; in PublishDeletedEvent()
48 EventFwk::CommonEventData data(want); in PublishDeletedEvent()
60 EventFwk::Want want; in PublishCreatedEvent()
63 EventFwk::CommonEventData data(want); in PublishCreatedEvent()
75 EventFwk::Want want; in PublishUpdatedEvent()
78 EventFwk::CommonEventData data(want); in PublishUpdatedEvent()
/base/telephony/call_manager/services/call/include/
Dcall_broadcast_subscriber.h29 class CallBroadcastSubscriber : public EventFwk::CommonEventSubscriber {
31 explicit CallBroadcastSubscriber(const EventFwk::CommonEventSubscribeInfo &subscriberInfo);
33 virtual void OnReceiveEvent(const EventFwk::CommonEventData &data);
40 …using broadcastSubscriberFunc = void (CallBroadcastSubscriber::*)(const EventFwk::CommonEventData …
42 void UnknownBroadcast(const EventFwk::CommonEventData &data);
43 void SimStateBroadcast(const EventFwk::CommonEventData &data);
/base/telephony/call_manager/services/call/src/
Dcall_broadcast_subscriber.cpp25 using namespace OHOS::EventFwk;
26 CallBroadcastSubscriber::CallBroadcastSubscriber(const OHOS::EventFwk::CommonEventSubscribeInfo &su… in CallBroadcastSubscriber()
33 void CallBroadcastSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &data) in OnReceiveEvent()
36 OHOS::EventFwk::Want want = data.GetWant(); in OnReceiveEvent()
39 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SIM_STATE_CHANGED) { in OnReceiveEvent()
53 void CallBroadcastSubscriber::UnknownBroadcast(const EventFwk::CommonEventData &data) in UnknownBroadcast()
58 void CallBroadcastSubscriber::SimStateBroadcast(const EventFwk::CommonEventData &data) in SimStateBroadcast()
/base/msdp/device_status/services/interaction/drag/src/
Devent_hub.cpp30 { EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON, EventId::EVENT_SCREEN_ON },
31 { EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF, EventId::EVENT_SCREEN_OFF },
32 { EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_LOCKED, EventId::EVENT_SCREEN_LOCK },
33 { EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED, EventId::EVENT_SCREEN_UNLOCK },
34 { EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_LOW, EventId::EVENT_BATTERY_LOW },
35 { EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY, EventId::EVENT_BATTERY_OKAY },
41 auto skill = std::make_shared<EventFwk::MatchingSkills>(); in GetEventHub()
45 auto info = std::make_shared<EventFwk::CommonEventSubscribeInfo>(*skill); in GetEventHub()
52 bool result = EventFwk::CommonEventManager::SubscribeCommonEvent(eventHub); in RegisterEvent()
61 bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(eventHub); in UnRegisterEvent()
[all …]
/base/theme/wallpaper_mgr/services/include/
Dwallpaper_common_event_subscriber.h26 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber;
27 using CommonEventData = OHOS::EventFwk::CommonEventData;
28 using CommonEventSubscribeInfo = OHOS::EventFwk::CommonEventSubscribeInfo;
31 class WallpaperCommonEventSubscriber : public OHOS::EventFwk::CommonEventSubscriber {
39 void OnReceiveEvent(const OHOS::EventFwk::CommonEventData &data) override;
42 OHOS::EventFwk::CommonEventSubscribeInfo CreateSubscriberInfo();
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/
Dhks_event_observer.cpp90 SystemEventSubscriber::SystemEventSubscriber(const OHOS::EventFwk::CommonEventSubscribeInfo &subscr… in SystemEventSubscriber()
91 : OHOS::EventFwk::CommonEventSubscriber(subscriberInfo) in SystemEventSubscriber()
94 void SystemEventSubscriber::OnReceiveEvent(const OHOS::EventFwk::CommonEventData &data) in OnReceiveEvent()
100 if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED || in OnReceiveEvent()
101 action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_SANDBOX_PACKAGE_REMOVED) { in OnReceiveEvent()
113 } else if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED) { in OnReceiveEvent()
134 OHOS::EventFwk::MatchingSkills matchingSkills; in SubscribeSystemEvent()
135 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED); in SubscribeSystemEvent()
136 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SANDBOX_PACKAGE_REMOVED); in SubscribeSystemEvent()
137 matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED); in SubscribeSystemEvent()
[all …]
/base/web/webview/ohos_adapter/enterprise_device_management_adapter/src/
Denterprise_device_management_adapter_impl.cpp44 EventFwk::CommonEventSubscribeInfo& in, in NWebEdmEventSubscriber()
46 : EventFwk::CommonEventSubscriber(in), eventCallback_(eventCallback) {} in NWebEdmEventSubscriber()
48 void NWebEdmEventSubscriber::OnReceiveEvent(const EventFwk::CommonEventData& data) in OnReceiveEvent()
74 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in StartObservePolicyChange()
76 EventFwk::CommonEventSubscribeInfo info(skill); in StartObservePolicyChange()
78 bool ret = EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber_); in StartObservePolicyChange()
94 … bool ret = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber_); in StopObservePolicyChange()
/base/web/webview/ohos_adapter/battery_mgr_adapter/src/
Dbattery_mgr_client_adapter_impl.cpp43 NWebBatteryEventSubscriber::NWebBatteryEventSubscriber(EventFwk::CommonEventSubscribeInfo& in, Batt… in NWebBatteryEventSubscriber()
44 : EventFwk::CommonEventSubscriber(in), eventCallback_(cb) {} in NWebBatteryEventSubscriber()
46 void NWebBatteryEventSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &data) in OnReceiveEvent()
50 if (action != EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED) { in OnReceiveEvent()
79 EventFwk::MatchingSkills skill = EventFwk::MatchingSkills(); in StartListen()
80 skill.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED); in StartListen()
81 EventFwk::CommonEventSubscribeInfo info(skill); in StartListen()
83 bool ret = EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber_); in StartListen()
96 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber_); in StopListen()
/base/telephony/sms_mms/test/unittest/
Dsms_broadcast_subscriber.h26 class SmsBroadcastSubscriber : public EventFwk::CommonEventSubscriber {
28 explicit SmsBroadcastSubscriber(const OHOS::EventFwk::CommonEventSubscribeInfo &subscriberInfo);
30 virtual void OnReceiveEvent(const OHOS::EventFwk::CommonEventData &data);
32 void CbMessageTest(const OHOS::EventFwk::Want &want) const;
33 void WapPushMessageTest(const OHOS::EventFwk::Want &want) const;
/base/telephony/call_manager/test/unittest/ui_client/
Dcommon_event_subscriber_test.cpp24 using namespace OHOS::EventFwk;
27 CommonEventSubscriberTest::CommonEventSubscriberTest(const OHOS::EventFwk::CommonEventSubscribeInfo… in CommonEventSubscriberTest()
31 void CommonEventSubscriberTest::OnReceiveEvent(const OHOS::EventFwk::CommonEventData &data) in OnReceiveEvent()
33 OHOS::EventFwk::Want want = data.GetWant(); in OnReceiveEvent()
35 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_INCOMING_CALL_MISSED) { in OnReceiveEvent()
/base/notification/common_event_service/services/test/unittest/mock/
Dmock_access_token_kit.cpp22 namespace EventFwk { namespace
54 if (!EventFwk::g_mockVerfyPermisson) { in VerifyAccessToken()
58 if (tokenID == EventFwk::NON_NATIVE_TOKEN) { in VerifyAccessToken()
66 return EventFwk::g_mockGetTokenTypeFlagRet; in GetTokenTypeFlag()
71 info.dlpType = EventFwk::g_mockDlpType; in GetHapTokenInfo()
72 info.apl = EventFwk::g_mockApl; in GetHapTokenInfo()
/base/powermgr/thermal_manager/services/native/include/thermal_observer/
Dthermal_common_event_receiver.h28 using Ces = OHOS::EventFwk::CommonEventSubscriber;
29 using CesInfo = OHOS::EventFwk::CommonEventSubscribeInfo;
30 using EventHandle = std::function<void(const OHOS::EventFwk::CommonEventData &data)>;
49 void OnReceiveEvent(const EventFwk::CommonEventData &data) override in OnReceiveEvent()
55 void HandleEvent(const OHOS::EventFwk::CommonEventData &data);
63 void HandleEventChanged(const OHOS::EventFwk::CommonEventData &data) const;
64 void HandleBatteryChargerCompleted(const OHOS::EventFwk::CommonEventData &data) const;
/base/security/device_auth/services/frameworks/src/account_subscriber/
Daccount_subscriber.cpp24 AccountSubscriber::AccountSubscriber(const EventFwk::CommonEventSubscribeInfo &subscriberInfo, in AccountSubscriber()
26 : EventFwk::CommonEventSubscriber(subscriberInfo), notifier_(notifier) in AccountSubscriber()
29 void AccountSubscriber::OnReceiveEvent(const EventFwk::CommonEventData &eventData) in OnReceiveEvent()
36 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_UNLOCKED) { in OnReceiveEvent()
38 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED) { in OnReceiveEvent()

12345678910>>...18