Home
last modified time | relevance | path

Searched refs:CommonEventSubscriber (Results 1 – 25 of 139) sorted by relevance

123456

/base/notification/common_event_service/frameworks/native/src/
Dcommon_event_subscriber.cpp21 CommonEventSubscriber::CommonEventSubscriber() : result_(nullptr) in CommonEventSubscriber() function in OHOS::EventFwk::CommonEventSubscriber
26 CommonEventSubscriber::CommonEventSubscriber(const CommonEventSubscribeInfo &subscribeInfo) in CommonEventSubscriber() function in OHOS::EventFwk::CommonEventSubscriber
32 CommonEventSubscriber::~CommonEventSubscriber() in ~CommonEventSubscriber()
37 const CommonEventSubscribeInfo &CommonEventSubscriber::GetSubscribeInfo() const in GetSubscribeInfo()
42 bool CommonEventSubscriber::SetCode(const int32_t &code) in SetCode()
52 int32_t CommonEventSubscriber::GetCode() const in GetCode()
62 bool CommonEventSubscriber::SetData(const std::string &data) in SetData()
72 std::string CommonEventSubscriber::GetData() const in GetData()
82 bool CommonEventSubscriber::SetCodeAndData(const int32_t &code, const std::string &data) in SetCodeAndData()
92 bool CommonEventSubscriber::AbortCommonEvent() in AbortCommonEvent()
[all …]
Dcommon_event_manager.cpp61 const std::shared_ptr<CommonEventSubscriber> &subscriber) in PublishCommonEvent()
67 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishCommonEventAsUser()
74 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in NewPublishCommonEventAsUser()
82 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT… in PublishCommonEvent()
88 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishCommonEventAsUser()
95 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent()
100 int32_t CommonEventManager::NewSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &s… in NewSubscribeCommonEvent()
105 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
110 int32_t CommonEventManager::NewUnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> … in NewUnSubscribeCommonEvent()
/base/notification/common_event_service/interfaces/inner_api/
Dcommon_event_manager.h93 const std::shared_ptr<CommonEventSubscriber> &subscriber);
105 const std::shared_ptr<CommonEventSubscriber> &subscriber, const int32_t &userId);
117 const std::shared_ptr<CommonEventSubscriber> &subscriber, const int32_t &userId);
130 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT…
144 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT…
153 static bool SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber);
161 … static int32_t NewSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber);
169 static bool UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber);
177 …static int32_t NewUnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber);
Dcommon_event_subscriber.h25 class CommonEventSubscriber {
27 CommonEventSubscriber();
35 explicit CommonEventSubscriber(const CommonEventSubscribeInfo &subscribeInfo);
37 virtual ~CommonEventSubscriber();
/base/notification/common_event_service/frameworks/core/include/
Dcommon_event.h39 const std::shared_ptr<CommonEventSubscriber> &subscriber);
51 const std::shared_ptr<CommonEventSubscriber> &subscriber, const int32_t &userId);
64 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT…
78 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT…
87 int32_t SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber);
95 int32_t UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber);
190 …const std::shared_ptr<CommonEventSubscriber> &subscriber, sptr<IRemoteObject> &commonEventListener…
201 …const std::shared_ptr<CommonEventSubscriber> &subscriber, sptr<IRemoteObject> &commonEventListener…
209 std::map<std::shared_ptr<CommonEventSubscriber>, sptr<CommonEventListener>> eventListeners_;
Dcommon_event_listener.h37 … explicit CommonEventListener(const std::shared_ptr<CommonEventSubscriber> &commonEventSubscriber);
70 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber_;
/base/location/test/location_locator/mock/include/
Dmock_common_event_manager.h31 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe…
33 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe…
35 const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid));
36 …MOCK_METHOD(bool, SubscribeCommonEvent, (const std::shared_ptr<CommonEventSubscriber> &subscriber)…
37 …MOCK_METHOD(bool, UnSubscribeCommonEvent, (const std::shared_ptr<CommonEventSubscriber> &subscribe…
/base/theme/wallpaper_mgr/services/include/
Dwallpaper_common_event_subscriber.h26 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable
31 class WallpaperCommonEventSubscriber : public OHOS::EventFwk::CommonEventSubscriber {
34 : CommonEventSubscriber(CreateSubscriberInfo()), wallpaperService_(wallpaperService) in WallpaperCommonEventSubscriber()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_common_event_manager.cpp23 std::list<std::shared_ptr<CommonEventSubscriber>> subscriberList;
39 const std::shared_ptr<CommonEventSubscriber> &subscriber) in PublishCommonEvent()
44 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent()
50 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
/base/account/os_account/services/accountmgr/include/appaccount/
Dapp_account_common_event_subscriber.h26 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable
30 class AppAccountCommonEventSubscriber : public CommonEventSubscriber {
/base/location/test/location_locator/mock/src/
Dmock_common_event_manager.cpp32 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishCommonEvent()
38 const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid) in PublishCommonEvent()
43 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent()
48 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
/base/telephony/call_manager/services/call/call_state_observer/include/
Dcall_records_manager.h34 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable
36 class UserSwitchEventSubscriber : public CommonEventSubscriber {
38 …it UserSwitchEventSubscriber(const CommonEventSubscribeInfo &info) : CommonEventSubscriber(info) {} in UserSwitchEventSubscriber()
/base/telephony/sms_mms/services/sms/include/
Dsms_state_observer.h27 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable
37 class SmsStateEventSubscriber : public CommonEventSubscriber {
39 …explicit SmsStateEventSubscriber(const CommonEventSubscribeInfo &info) : CommonEventSubscriber(inf… in SmsStateEventSubscriber()
/base/notification/common_event_service/frameworks/core/test/unittest/
Dcommon_event_listener_test.cpp56 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr;
70 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr;
85 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr;
100 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr;
116 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber = nullptr;
/base/telephony/core_service/services/network_search/test/
Dtest_broadcast.h24 class TestBroadCast : public EventFwk::CommonEventSubscriber {
26 …explicit TestBroadCast(const EventFwk::CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) {} in TestBroadCast()
/base/powermgr/battery_statistics/services/native/include/
Dbattery_stats_subscriber.h25 class BatteryStatsSubscriber : public EventFwk::CommonEventSubscriber {
28 : EventFwk::CommonEventSubscriber(subscribeInfo) {} in BatteryStatsSubscriber()
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_operator_brocast_test.h28 class SimOperatorBrocastTest : public EventFwk::CommonEventSubscriber {
30 …SimOperatorBrocastTest(const EventFwk::CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) {} in SimOperatorBrocastTest()
/base/hiviewdfx/hidumper/services/native/include/
Ddump_battery_stats_subscriber.h25 class DumpBatteryStatsSubscriber : public EventFwk::CommonEventSubscriber {
28 : EventFwk::CommonEventSubscriber(subscribeInfo) {} in DumpBatteryStatsSubscriber()
/base/telephony/core_service/services/sim/include/
Dsim_state_tracker.h33 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable
56 class UserSwitchEventSubscriber : public CommonEventSubscriber {
60 : CommonEventSubscriber(info), slotId_(slotId), configLoader_(configLoader) in UserSwitchEventSubscriber()
Dmulti_sim_monitor.h35 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable
53 class UserSwitchEventSubscriber : public CommonEventSubscriber {
57 : CommonEventSubscriber(info), multiSimMonitorHandler_(multiSimMonitorHandler) in UserSwitchEventSubscriber()
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_event_system_test.cpp63 class CommonEventBatteryChangedTest : public CommonEventSubscriber {
73 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryChangedTest()
77 class CommonEventBatteryLowTest : public CommonEventSubscriber {
87 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryLowTest()
91 class CommonEventBatteryOkayTest : public CommonEventSubscriber {
101 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryOkayTest()
105 class CommonEventBatteryChargingTest : public CommonEventSubscriber {
115 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryChargingTest()
119 class CommonEventBatteryDischargingTest : public CommonEventSubscriber {
129 : CommonEventSubscriber(subscriberInfo) in CommonEventBatteryDischargingTest()
[all …]
/base/notification/distributed_notification_service/services/ans/include/
Dsystem_event_subscriber.h25 class SystemEventSubscriber : public EventFwk::CommonEventSubscriber {
35 : EventFwk::CommonEventSubscriber(subscribeInfo), callback_(callback) in SystemEventSubscriber()
/base/telephony/core_service/services/network_search/include/
Ddevice_state_observer.h33 using CommonEventSubscriber = OHOS::EventFwk::CommonEventSubscriber; variable
49 class DeviceStateEventSubscriber : public CommonEventSubscriber {
51 …t DeviceStateEventSubscriber(const CommonEventSubscribeInfo &info) : CommonEventSubscriber(info) {} in DeviceStateEventSubscriber()
/base/powermgr/thermal_manager/test/systemtest/src/
Dthermal_level_event_system_test.cpp62 class CommonEventThermalLevel1Test : public CommonEventSubscriber {
72 : CommonEventSubscriber(subscriberInfo) in CommonEventThermalLevel1Test()
76 class CommonEventThermalLevel2Test : public CommonEventSubscriber {
86 : CommonEventSubscriber(subscriberInfo) in CommonEventThermalLevel2Test()
90 class CommonEventThermalLevel3Test : public CommonEventSubscriber {
100 : CommonEventSubscriber(subscriberInfo) in CommonEventThermalLevel3Test()
104 class CommonEventThermalIdleTrueTest : public CommonEventSubscriber {
114 : CommonEventSubscriber(subscriberInfo) in CommonEventThermalIdleTrueTest()
118 class CommonEventThermalIdleFalseTest : public CommonEventSubscriber {
128 : CommonEventSubscriber(subscriberInfo) in CommonEventThermalIdleFalseTest()
/base/notification/common_event_service/frameworks/core/src/
Dcommon_event.cpp35 const std::shared_ptr<CommonEventSubscriber> &subscriber) in PublishCommonEvent()
50 const std::shared_ptr<CommonEventSubscriber> &subscriber, const int32_t &userId) in PublishCommonEventAsUser()
64 …const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT… in PublishCommonEvent()
79 const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, in PublishCommonEventAsUser()
94 …const std::shared_ptr<CommonEventSubscriber> &subscriber, sptr<IRemoteObject> &commonEventListener) in PublishParameterCheck()
122 int32_t CommonEvent::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber) in SubscribeCommonEvent()
163 int32_t CommonEvent::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscribe… in UnSubscribeCommonEvent()
352 …const std::shared_ptr<CommonEventSubscriber> &subscriber, sptr<IRemoteObject> &commonEventListener) in CreateCommonEventListener()

123456