Home
last modified time | relevance | path

Searched refs:commonEventListener (Results 1 - 25 of 39) sorted by relevance

12

/base/notification/common_event_service/frameworks/core/test/unittest/
H A Dcommon_event_listener_test.cpp72 CommonEventListener commonEventListener(commonEventSubscriber); in HWTEST_F()
73 commonEventListener.runner_ = nullptr; in HWTEST_F()
74 EXPECT_EQ(OHOS::ERR_INVALID_OPERATION, commonEventListener.Init()); in HWTEST_F()
89 CommonEventListener commonEventListener(subscriber); in HWTEST_F()
90 EXPECT_EQ(OHOS::ERR_OK, commonEventListener.Init()); in HWTEST_F()
102 std::shared_ptr<CommonEventListener> commonEventListener = in HWTEST_F() local
104 ASSERT_NE(nullptr, commonEventListener); in HWTEST_F()
105 commonEventListener->handler_ = nullptr; in HWTEST_F()
106 commonEventListener->Stop(); in HWTEST_F()
118 std::shared_ptr<CommonEventListener> commonEventListener in HWTEST_F() local
[all...]
H A Dcommon_event_proxy_test.cpp165 OHOS::sptr<OHOS::IRemoteObject> commonEventListener = new OHOS::MockIRemoteObject(); in HWTEST_F() local
173 int result = commonEventProxy.PublishCommonEvent(data, publishInfo, commonEventListener, useId); in HWTEST_F()
190 OHOS::sptr<OHOS::IRemoteObject> commonEventListener = new OHOS::MockIRemoteObject(); in HWTEST_F() local
201 bool result = commonEventProxy.PublishCommonEvent(data, publishInfo, commonEventListener, useId); in HWTEST_F()
218 OHOS::sptr<OHOS::IRemoteObject> commonEventListener = new OHOS::MockIRemoteObject(); in HWTEST_F() local
229 bool result = commonEventProxy.PublishCommonEvent(data, publishInfo, commonEventListener, useId); in HWTEST_F()
246 OHOS::sptr<OHOS::IRemoteObject> commonEventListener = new OHOS::MockIRemoteObject(); in HWTEST_F() local
257 bool result = commonEventProxy.PublishCommonEvent(data, publishInfo, commonEventListener, useId); in HWTEST_F()
274 OHOS::sptr<OHOS::IRemoteObject> commonEventListener = new OHOS::MockIRemoteObject(); in HWTEST_F() local
302 OHOS::sptr<OHOS::IRemoteObject> commonEventListener in HWTEST_F() local
332 OHOS::sptr<OHOS::IRemoteObject> commonEventListener = new OHOS::MockIRemoteObject(); HWTEST_F() local
[all...]
/base/notification/common_event_service/test/benchmarktest/common_event_service_test/
H A Dcommon_event_manager_service_test.cpp75 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() local
79 subscribeInfo, commonEventListener); in BENCHMARK_F()
99 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() local
103 subscribeInfo, commonEventListener); in BENCHMARK_F()
123 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() local
127 subscribeInfo, commonEventListener); in BENCHMARK_F()
147 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() local
151 commonEventListener); in BENCHMARK_F()
178 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() local
182 commonEventData, publishInfo, commonEventListener, UNDEFINED_USE in BENCHMARK_F()
202 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); BENCHMARK_F() local
[all...]
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/
H A Dcommon_event_services_module_test.cpp124 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in HWTEST_F() local
127 subscribeInfo, commonEventListener), ERR_OK); in HWTEST_F()
144 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in HWTEST_F() local
147 subscribeInfo, commonEventListener), ERR_OK); in HWTEST_F()
164 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in HWTEST_F() local
167 subscribeInfo, commonEventListener), ERR_OK); in HWTEST_F()
222 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in HWTEST_F() local
225 subscribeInfo, commonEventListener), ERR_OK); in HWTEST_F()
243 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in HWTEST_F() local
246 subscribeInfo, commonEventListener), ERR_O in HWTEST_F()
264 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
286 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
307 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
327 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
346 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
365 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
384 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
448 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
477 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
584 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
628 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
675 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
724 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
773 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
816 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
843 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
893 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
943 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
975 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1002 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1026 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1052 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1074 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1097 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1122 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1150 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1181 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1214 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1236 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1258 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1283 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1309 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1351 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1385 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
1410 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); HWTEST_F() local
[all...]
/base/notification/common_event_service/services/test/unittest/
H A Dcommon_event_freeze_unit_test.cpp91 // make commonEventListener in HWTEST_F()
92 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
97 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
124 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
129 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
156 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
161 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
170 eventSubscriberRecord->commonEventListener = commonEventListener; in HWTEST_F()
206 OHOS::sptr<CommonEventListener> commonEventListener in HWTEST_F() local
257 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
300 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
343 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
386 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
429 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
459 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
491 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
539 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
[all...]
H A Dcommon_event_unsubscribe_unit_test.cpp101 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
102 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerPtr(commonEventListener); in HWTEST_F()
138 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
139 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerPtr(commonEventListener); in HWTEST_F()
182 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
187 EXPECT_EQ(OHOS::ERR_OK, commonEventSubscriberManager.RemoveSubscriber(commonEventListener)); in HWTEST_F()
205 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
206 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerPtr(commonEventListener); in HWTEST_F()
216 * @tc.desc: When the commonEventListener is null, verify RemoveSubscriberRecordLocked success.
228 OHOS::sptr<CommonEventListener> commonEventListener in HWTEST_F() local
[all...]
H A Dcommon_event_freeze_test.cpp58 OHOS::sptr<OHOS::IRemoteObject> commonEventListener; member
72 OHOS::sptr<OHOS::IRemoteObject> &commonEventListener);
74 const std::shared_ptr<CommonEventSubscriber> &subscriber, OHOS::sptr<OHOS::IRemoteObject> &commonEventListener);
118 std::function<void()> asyncProcessFunc = std::bind(&SubscriberTest::AsyncProcess, this, commonEventListener); in ProcessSubscriberTestCase1()
128 void AsyncProcess(OHOS::sptr<OHOS::IRemoteObject> commonEventListener) in AsyncProcess() argument
130 EXPECT_TRUE(CommonEventFreezeTest::FinishReceiver(commonEventListener, CHANGECODE, CHANGEDATA, false)); in AsyncProcess()
183 void AsyncProcess(OHOS::sptr<OHOS::IRemoteObject> commonEventListener) in AsyncProcess() argument
185 EXPECT_TRUE(CommonEventFreezeTest::FinishReceiver(commonEventListener, CHANGECODE2, CHANGEDATA2, false)); in AsyncProcess()
242 void AsyncProcess(OHOS::sptr<OHOS::IRemoteObject> commonEventListener) in AsyncProcess() argument
244 EXPECT_TRUE(CommonEventFreezeTest::FinishReceiver(commonEventListener, CHANGECODE in AsyncProcess()
277 SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber, uid_t callingUid, OHOS::sptr<OHOS::IRemoteObject> &commonEventListener) SubscribeCommonEvent() argument
308 PublishCommonEvent(const CommonEventData &data, const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscriber, OHOS::sptr<OHOS::IRemoteObject> &commonEventListener) PublishCommonEvent() argument
[all...]
H A Dcommon_event_subscribe_unit_test.cpp81 const OHOS::sptr<OHOS::IRemoteObject> &commonEventListener, const int32_t &userId) in PublishCommonEvent()
87 const CommonEventSubscribeInfo &subscribeInfo, const OHOS::sptr<OHOS::IRemoteObject> &commonEventListener, in SubscribeCommonEvent()
93 virtual int32_t UnsubscribeCommonEvent(const OHOS::sptr<OHOS::IRemoteObject> &commonEventListener) in UnsubscribeCommonEvent() argument
636 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
637 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerPtr(commonEventListener); in HWTEST_F()
664 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
665 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerPtr(commonEventListener); in HWTEST_F()
719 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
720 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerPtr(commonEventListener); in HWTEST_F()
730 subscribeInfoPtr, commonEventListener, curTim in HWTEST_F()
80 PublishCommonEvent(const CommonEventData &event, const CommonEventPublishInfo &publishinfo, const OHOS::sptr<OHOS::IRemoteObject> &commonEventListener, const int32_t &userId) PublishCommonEvent() argument
86 SubscribeCommonEvent( const CommonEventSubscribeInfo &subscribeInfo, const OHOS::sptr<OHOS::IRemoteObject> &commonEventListener, const int32_t instanceKey) SubscribeCommonEvent() argument
752 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
817 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
850 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
886 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
[all...]
H A Dcommon_event_publish_ordered_event_unit_test.cpp148 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
159 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
199 // make commonEventListener in HWTEST_F()
200 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
208 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
248 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
249 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerPtr(commonEventListener); in HWTEST_F()
297 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
298 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerPtr(commonEventListener); in HWTEST_F()
589 OHOS::sptr<CommonEventListener> commonEventListener in HWTEST_F() local
646 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
703 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
760 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); HWTEST_F() local
[all...]
/base/notification/common_event_service/services/include/
H A Dcommon_event_subscriber_manager.h34 sptr<IRemoteObject> commonEventListener; member
42 commonEventListener(nullptr), in EventSubscriberRecord()
49 if (commonEventListener == nullptr) { in operator <()
50 EVENT_LOGE("commonEventListener is null"); in operator <()
54 if (other.commonEventListener == nullptr) { in operator <()
55 EVENT_LOGE("other's commonEventListener is null"); in operator <()
58 return commonEventListener < other.commonEventListener; in operator <()
85 * @param commonEventListener Indicates the subscriber object.
91 const sptr<IRemoteObject> &commonEventListener, cons
[all...]
H A Dcommon_event_manager_service.h41 * @param commonEventListener Indicates the common event subscriber object.
46 const sptr<IRemoteObject> &commonEventListener, const int32_t &userId) override;
53 * @param commonEventListener Indicates the common event subscriber.
60 const sptr<IRemoteObject> &commonEventListener, const uid_t &uid, const int32_t &callerToken,
67 * @param commonEventListener Indicates the common event subscriber.
72 const sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey = 0) override;
77 * @param commonEventListener Indicates the common event subscriber.
80 int32_t UnsubscribeCommonEvent(const sptr<IRemoteObject> &commonEventListener) override;
180 const sptr<IRemoteObject> &commonEventListener, const pid_t &pid, const uid_t &uid,
/base/notification/common_event_service/frameworks/core/src/
H A Dcommon_event_stub.cpp46 sptr<IRemoteObject> commonEventListener = nullptr; in OnRemoteRequest() local
49 commonEventListener = data.ReadRemoteObject(); in OnRemoteRequest()
60 int32_t ret = PublishCommonEvent(*event, *publishinfo, commonEventListener, userId); in OnRemoteRequest()
70 sptr<IRemoteObject> commonEventListener = nullptr; in OnRemoteRequest() local
73 commonEventListener = data.ReadRemoteObject(); in OnRemoteRequest()
86 bool ret = PublishCommonEvent(*event, *publishinfo, commonEventListener, uid, callerToken, userId); in OnRemoteRequest()
102 EVENT_LOGE("no valid commonEventListener!"); in OnRemoteRequest()
105 sptr<IRemoteObject> commonEventListener = data.ReadRemoteObject(); in OnRemoteRequest() local
106 if (commonEventListener == nullptr) { in OnRemoteRequest()
111 int32_t ret = SubscribeCommonEvent(*subscribeInfo, commonEventListener, instanceKe in OnRemoteRequest()
125 sptr<IRemoteObject> commonEventListener = data.ReadRemoteObject(); OnRemoteRequest() local
271 PublishCommonEvent(const CommonEventData &event, const CommonEventPublishInfo &publishinfo, const sptr<IRemoteObject> &commonEventListener, const int32_t &userId) PublishCommonEvent() argument
279 PublishCommonEvent(const CommonEventData &event, const CommonEventPublishInfo &publishinfo, const sptr<IRemoteObject> &commonEventListener, const uid_t &uid, const int32_t &callerToken, const int32_t &userId) PublishCommonEvent() argument
288 SubscribeCommonEvent(const CommonEventSubscribeInfo &subscribeInfo, const sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey) SubscribeCommonEvent() argument
296 UnsubscribeCommonEvent(const sptr<IRemoteObject> &commonEventListener) UnsubscribeCommonEvent() argument
[all...]
H A Dcommon_event.cpp57 sptr<IRemoteObject> commonEventListener = nullptr; in PublishCommonEvent() local
58 if (!PublishParameterCheck(data, publishInfo, subscriber, commonEventListener)) { in PublishCommonEvent()
68 data, publishInfo, commonEventListener, UNDEFINED_USER) == ERR_OK ? true : false; in PublishCommonEvent()
76 sptr<IRemoteObject> commonEventListener = nullptr; in PublishCommonEventAsUser() local
77 if (!PublishParameterCheck(data, publishInfo, subscriber, commonEventListener)) { in PublishCommonEventAsUser()
86 return proxy->PublishCommonEvent(data, publishInfo, commonEventListener, userId); in PublishCommonEventAsUser()
94 sptr<IRemoteObject> commonEventListener = nullptr; in PublishCommonEvent() local
95 if (!PublishParameterCheck(data, publishInfo, subscriber, commonEventListener)) { in PublishCommonEvent()
104 return proxy->PublishCommonEvent(data, publishInfo, commonEventListener, uid, callerToken, UNDEFINED_USER); in PublishCommonEvent()
113 sptr<IRemoteObject> commonEventListener in PublishCommonEventAsUser() local
126 PublishParameterCheck(const CommonEventData &data, const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscriber, sptr<IRemoteObject> &commonEventListener) PublishParameterCheck() argument
172 sptr<IRemoteObject> commonEventListener = nullptr; SubscribeCommonEvent() local
376 CreateCommonEventListener( const std::shared_ptr<CommonEventSubscriber> &subscriber, sptr<IRemoteObject> &commonEventListener) CreateCommonEventListener() argument
[all...]
/base/notification/common_event_service/services/test/unittest/common_event_manager_service_branch_test/
H A Dcommon_event_manager_service_branch_test.cpp81 sptr<IRemoteObject> commonEventListener = nullptr; in HWTEST_F() local
85 EXPECT_EQ(false, comm->PublishCommonEvent(event, publishinfo, commonEventListener, uid, callerToken, userId)); in HWTEST_F()
104 sptr<IRemoteObject> commonEventListener = nullptr; in HWTEST_F() local
106 ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID, comm->SubscribeCommonEvent(subscribeInfo, commonEventListener)); in HWTEST_F()
124 sptr<IRemoteObject> commonEventListener = nullptr; in HWTEST_F() local
126 ERR_NOTIFICATION_CES_COMMON_PARAM_INVALID, comm->UnsubscribeCommonEvent(commonEventListener)); in HWTEST_F()
167 sptr<IRemoteObject> commonEventListener = nullptr; in HWTEST_F() local
172 comm->PublishCommonEvent(event, publishinfo, commonEventListener, userId)); in HWTEST_F()
198 sptr<IRemoteObject> commonEventListener = nullptr; in HWTEST_F() local
201 comm->PublishCommonEvent(event, publishinfo, commonEventListener, userI in HWTEST_F()
225 sptr<IRemoteObject> commonEventListener = nullptr; HWTEST_F() local
252 sptr<IRemoteObject> commonEventListener = nullptr; HWTEST_F() local
279 sptr<IRemoteObject> commonEventListener = nullptr; HWTEST_F() local
305 sptr<IRemoteObject> commonEventListener = nullptr; HWTEST_F() local
331 sptr<IRemoteObject> commonEventListener = nullptr; HWTEST_F() local
357 sptr<IRemoteObject> commonEventListener = nullptr; HWTEST_F() local
[all...]
/base/notification/common_event_service/test/fuzztest/commoneventmanagerservice_fuzzer/
H A Dcommoneventmanagerservice_fuzzer.cpp53 sptr<IRemoteObject> commonEventListener = nullptr; in DoSomethingInterestingWithMyAPI() local
54 service->PublishCommonEvent(commonEventData, commonEventPublishInfo, commonEventListener, code); in DoSomethingInterestingWithMyAPI()
56 commonEventData, commonEventPublishInfo, commonEventListener, code, code, code); in DoSomethingInterestingWithMyAPI()
61 service->SubscribeCommonEvent(subscribeInfo, commonEventListener); in DoSomethingInterestingWithMyAPI()
62 service->UnsubscribeCommonEvent(commonEventListener); in DoSomethingInterestingWithMyAPI()
68 service->FinishReceiver(commonEventListener, code, stringData, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/frameworks/native/test/unittest/
H A Dcommon_event_unsubscribe_test.cpp75 const OHOS::sptr<IRemoteObject> &commonEventListener, const int32_t &userId) in PublishCommonEvent()
81 const OHOS::sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey) in SubscribeCommonEvent()
86 virtual int32_t UnsubscribeCommonEvent(const OHOS::sptr<IRemoteObject> &commonEventListener) in UnsubscribeCommonEvent() argument
209 sptr<IRemoteObject> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
211 EXPECT_EQ(true, innerCommonEventManager->UnsubscribeCommonEvent(commonEventListener)); in HWTEST_F()
227 sptr<IRemoteObject> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
229 ERR_OK, DelayedSingleton<CommonEventSubscriberManager>::GetInstance()->RemoveSubscriber(commonEventListener)); in HWTEST_F()
292 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberTest); in HWTEST_F() local
295 ERR_OK, DelayedSingleton<CommonEventSubscriberManager>::GetInstance()->RemoveSubscriber(commonEventListener)); in HWTEST_F()
74 PublishCommonEvent(const CommonEventData &event, const CommonEventPublishInfo &publishinfo, const OHOS::sptr<IRemoteObject> &commonEventListener, const int32_t &userId) PublishCommonEvent() argument
80 SubscribeCommonEvent(const CommonEventSubscribeInfo &subscribeInfo, const OHOS::sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey) SubscribeCommonEvent() argument
H A Dcommon_event_subscribe_test.cpp98 const OHOS::sptr<IRemoteObject> &commonEventListener, const int32_t &userId) in PublishCommonEvent()
104 const OHOS::sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey) in SubscribeCommonEvent()
109 virtual int32_t UnsubscribeCommonEvent(const OHOS::sptr<IRemoteObject> &commonEventListener) in UnsubscribeCommonEvent() argument
330 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
332 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerPtr(commonEventListener); in HWTEST_F()
393 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriber); in HWTEST_F() local
395 OHOS::sptr<OHOS::IRemoteObject> commonEventListenerSp(commonEventListener); in HWTEST_F()
424 CommonEventListener commonEventListener(subscriber); in HWTEST_F()
425 commonEventListener.runner_ = nullptr; in HWTEST_F()
427 bool result = commonEventListener in HWTEST_F()
97 PublishCommonEvent(const CommonEventData &event, const CommonEventPublishInfo &publishinfo, const OHOS::sptr<IRemoteObject> &commonEventListener, const int32_t &userId) PublishCommonEvent() argument
103 SubscribeCommonEvent(const CommonEventSubscribeInfo &subscribeInfo, const OHOS::sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey) SubscribeCommonEvent() argument
[all...]
/base/notification/common_event_service/frameworks/core/include/
H A Dcommon_event_stub.h49 * @param commonEventListener Indicates the last subscriber to receive the event.
54 const sptr<IRemoteObject> &commonEventListener, const int32_t &userId) override;
61 * @param commonEventListener Indicates the last subscriber to receive the event.
68 const sptr<IRemoteObject> &commonEventListener, const uid_t &uid, const int32_t &callerToken,
75 * @param commonEventListener Indicates the subscriber object.
80 const sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey = 0) override;
85 * @param commonEventListener Indicates the subscriber object.
88 int32_t UnsubscribeCommonEvent(const sptr<IRemoteObject> &commonEventListener) override;
H A Dicommon_event.h36 * @param commonEventListener Indicates the last subscriber to receive the event.
41 const sptr<IRemoteObject> &commonEventListener, const int32_t &userId) = 0;
48 * @param commonEventListener Indicates the last subscriber to receive the event.
55 const sptr<IRemoteObject> &commonEventListener, const uid_t &uid, const int32_t &callerToken,
62 * @param commonEventListener Indicates the subscriber object.
67 const sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey = 0) = 0;
72 * @param commonEventListener Indicates the subscriber object.
75 virtual int32_t UnsubscribeCommonEvent(const sptr<IRemoteObject> &commonEventListener) = 0;
H A Dcommon_event_proxy.h41 * @param commonEventListener Indicates the last subscriber to receive the event.
46 const sptr<IRemoteObject> &commonEventListener, const int32_t &userId) override;
53 * @param commonEventListener Indicates the last subscriber to receive the event
60 const sptr<IRemoteObject> &commonEventListener, const uid_t &uid, const int32_t &callerToken,
67 * @param commonEventListener Indicates the subscriber object
72 const sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey = 0) override;
77 * @param commonEventListener Indicates the subscriber object
80 int32_t UnsubscribeCommonEvent(const sptr<IRemoteObject> &commonEventListener) override;
/base/notification/common_event_service/test/fuzztest/commoneventstub_fuzzer/
H A Dcommoneventstub_fuzzer.cpp52 sptr<IRemoteObject> commonEventListener = nullptr; in DoSomethingInterestingWithMyAPI() local
53 commonEventStub.PublishCommonEvent(commonEventData, commonEventPublishInfo, commonEventListener, code, code, code); in DoSomethingInterestingWithMyAPI()
59 commonEventStub.SubscribeCommonEvent(subscribeInfo, commonEventListener); in DoSomethingInterestingWithMyAPI()
61 commonEventStub.UnsubscribeCommonEvent(commonEventListener); in DoSomethingInterestingWithMyAPI()
70 commonEventStub.FinishReceiver(commonEventListener, code, stringData, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/test/fuzztest/commoneventproxy_fuzzer/
H A Dcommoneventproxy_fuzzer.cpp31 EventFwk::CommonEventListener commonEventListener(commonEventSubscriber); in DoSomethingInterestingWithMyAPI()
32 commonEventListener.Stop(); in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/services/src/
H A Dcommon_event_manager_service.cpp108 const CommonEventPublishInfo &publishinfo, const sptr<IRemoteObject> &commonEventListener, in PublishCommonEvent()
128 commonEventListener, in PublishCommonEvent()
136 const CommonEventPublishInfo &publishinfo, const sptr<IRemoteObject> &commonEventListener, const uid_t &uid, in PublishCommonEvent()
153 event, publishinfo, commonEventListener, UNDEFINED_PID, uid, callerToken, userId) == ERR_OK ? true : false; in PublishCommonEvent()
157 const CommonEventPublishInfo &publishinfo, const sptr<IRemoteObject> &commonEventListener, const pid_t &pid, in PublishCommonEventDetailed()
187 commonEventListener, in PublishCommonEventDetailed()
210 commonEventListener, in PublishCommonEventDetailed()
228 const sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey) in SubscribeCommonEvent()
260 commonEventListener, in SubscribeCommonEvent()
274 commonEventListener, in SubscribeCommonEvent()
107 PublishCommonEvent(const CommonEventData &event, const CommonEventPublishInfo &publishinfo, const sptr<IRemoteObject> &commonEventListener, const int32_t &userId) PublishCommonEvent() argument
135 PublishCommonEvent(const CommonEventData &event, const CommonEventPublishInfo &publishinfo, const sptr<IRemoteObject> &commonEventListener, const uid_t &uid, const int32_t &callerToken, const int32_t &userId) PublishCommonEvent() argument
156 PublishCommonEventDetailed(const CommonEventData &event, const CommonEventPublishInfo &publishinfo, const sptr<IRemoteObject> &commonEventListener, const pid_t &pid, const uid_t &uid, const int32_t &clientToken, const int32_t &userId) PublishCommonEventDetailed() argument
227 SubscribeCommonEvent(const CommonEventSubscribeInfo &subscribeInfo, const sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey) SubscribeCommonEvent() argument
292 UnsubscribeCommonEvent(const sptr<IRemoteObject> &commonEventListener) UnsubscribeCommonEvent() argument
[all...]
/base/notification/common_event_service/tools/test/mock/
H A Dmock_common_event_stub.h39 * @param commonEventListener Indicates the last subscriber to receive the ordered common event.
44 const sptr<IRemoteObject> &commonEventListener, const int32_t &userId) override;
50 * @param commonEventListener the subscriber object.
55 const sptr<IRemoteObject> &commonEventListener, const int32_t instanceKey = 0) override;
/base/notification/common_event_service/frameworks/core/test/unittest/common_event_branch_test/
H A Dcommon_event_branch_test.cpp83 sptr<IRemoteObject> commonEventListener = nullptr; in HWTEST_F() local
84 EXPECT_EQ(subscribeFailed, commonEvent.CreateCommonEventListener(subscriber, commonEventListener)); in HWTEST_F()
227 sptr<IRemoteObject> commonEventListener = nullptr; in HWTEST_F() local
228 EXPECT_EQ(false, commonEvent.PublishParameterCheck(data, publishInfo, subscriber, commonEventListener)); in HWTEST_F()
244 sptr<IRemoteObject> commonEventListener = nullptr; in HWTEST_F() local
245 EXPECT_EQ(true, commonEvent.PublishParameterCheck(data, publishInfo, subscriber, commonEventListener)); in HWTEST_F()

Completed in 14 milliseconds

12