Home
last modified time | relevance | path

Searched refs:AsyncCommonEventResult (Results 1 - 21 of 21) sorted by relevance

/base/notification/common_event_service/frameworks/native/src/
H A Dasync_common_event_result.cpp23 AsyncCommonEventResult::AsyncCommonEventResult(const int32_t &resultCode, const std::string &resultData, in AsyncCommonEventResult() function in OHOS::EventFwk::AsyncCommonEventResult
34 AsyncCommonEventResult::~AsyncCommonEventResult() in ~AsyncCommonEventResult()
37 bool AsyncCommonEventResult::SetCode(const int32_t &code) in SetCode()
49 int32_t AsyncCommonEventResult::GetCode() const in GetCode()
54 bool AsyncCommonEventResult::SetData(const std::string &data) in SetData()
66 std::string AsyncCommonEventResult::GetData() const in GetData()
71 bool AsyncCommonEventResult::SetCodeAndData(const int32_t &code, const std::string &data) in SetCodeAndData()
84 bool AsyncCommonEventResult
[all...]
H A Dcommon_event_subscriber.cpp122 std::shared_ptr<AsyncCommonEventResult> CommonEventSubscriber::GoAsyncCommonEvent() in GoAsyncCommonEvent()
124 std::shared_ptr<AsyncCommonEventResult> res = result_; in GoAsyncCommonEvent()
139 bool CommonEventSubscriber::SetAsyncCommonEventResult(const std::shared_ptr<AsyncCommonEventResult> &result) in SetAsyncCommonEventResult()
146 std::shared_ptr<AsyncCommonEventResult> CommonEventSubscriber::GetAsyncCommonEventResult() in GetAsyncCommonEventResult()
/base/notification/common_event_service/interfaces/inner_api/
H A Dcommon_event_subscriber.h118 std::shared_ptr<AsyncCommonEventResult> GoAsyncCommonEvent();
136 * Sets AsyncCommonEventResult for init before perform onReceiveEvent.
140 bool SetAsyncCommonEventResult(const std::shared_ptr<AsyncCommonEventResult> &result);
143 * Gets AsyncCommonEventResult for check after perform onReceiveEvent.
147 std::shared_ptr<AsyncCommonEventResult> GetAsyncCommonEventResult();
160 std::shared_ptr<AsyncCommonEventResult> result_;
H A Dasync_common_event_result.h23 class AsyncCommonEventResult { class
26 * Creates a AsyncCommonEventResult instance based on the parameters.
34 AsyncCommonEventResult(const int32_t &resultCode, const std::string &resultData, const bool &ordered,
37 ~AsyncCommonEventResult();
/base/notification/common_event_service/interfaces/kits/cj/src/
H A Dcommon_event.h22 using AsyncCommonEventResult = OHOS::EventFwk::AsyncCommonEventResult;
32 std::shared_ptr<AsyncCommonEventResult> commonEventResult = nullptr;
37 std::shared_ptr<AsyncCommonEventResult> GetAsyncResult(const SubscriberImpl *objectInfo);
H A Dcommon_event.cpp43 std::shared_ptr<AsyncCommonEventResult> GetAsyncResult(const SubscriberImpl *objectInfo) in GetAsyncResult()
117 std::shared_ptr<AsyncCommonEventResult> result = GetAsyncResult(subscriber.get()); in GetSubscriberCode()
127 std::shared_ptr<AsyncCommonEventResult> result = GetAsyncResult(subscriber.get()); in SetSubscriberCode()
136 std::shared_ptr<AsyncCommonEventResult> result = GetAsyncResult(subscriber.get()); in GetSubscriberData()
146 std::shared_ptr<AsyncCommonEventResult> result = GetAsyncResult(subscriber.get()); in SetSubscriberData()
155 std::shared_ptr<AsyncCommonEventResult> result = GetAsyncResult(subscriber.get()); in SetSubscriberCodeAndData()
164 std::shared_ptr<AsyncCommonEventResult> result = GetAsyncResult(subscriber.get()); in IsCommonEventSticky()
174 std::shared_ptr<AsyncCommonEventResult> result = GetAsyncResult(subscriber.get()); in IsCommonEventOrdered()
H A Dcommon_event_manager_ffi.cpp262 std::shared_ptr<AsyncCommonEventResult> result = GetAsyncResult(subscriber.get()); in CJ_FinishCommonEvent()
/base/notification/common_event_service/services/test/unittest/
H A Dmock_common_event_subscriber.cpp85 std::shared_ptr<AsyncCommonEventResult> CommonEventSubscriber::GoAsyncCommonEvent() in GoAsyncCommonEvent()
88 std::shared_ptr<AsyncCommonEventResult> res = result_; in GoAsyncCommonEvent()
105 bool CommonEventSubscriber::SetAsyncCommonEventResult(const std::shared_ptr<AsyncCommonEventResult>& result) in SetAsyncCommonEventResult()
112 std::shared_ptr<AsyncCommonEventResult> CommonEventSubscriber::GetAsyncCommonEventResult() in GetAsyncCommonEventResult()
H A Dcommon_event_freeze_test.cpp117 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTestCase1()
172 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTest2Case1()
234 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTestLastCase1()
H A Dcommon_event_dump_test.cpp163 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTestCase1()
170 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTestCase2()
215 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTest2Case1()
228 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTest2Case2()
274 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTestLastCase1()
/base/notification/common_event_service/test/fuzztest/asynccommoneventresult_fuzzer/
H A Dasynccommoneventresult_fuzzer.cpp29 std::shared_ptr<EventFwk::AsyncCommonEventResult> result = std::make_shared<EventFwk::AsyncCommonEventResult>( in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/frameworks/native/test/unittest/
H A Dmatching_skills_test.cpp403 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token); in HWTEST_F()
410 * @tc.name: AsyncCommonEventResult CheckSynchronous
421 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token); in HWTEST_F()
430 * @tc.name: AsyncCommonEventResult SetData
441 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token); in HWTEST_F()
450 * @tc.name: AsyncCommonEventResult SetCodeAndData
461 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token); in HWTEST_F()
471 * @tc.name: AsyncCommonEventResult AbortCommonEvent
482 AsyncCommonEventResult asyncCommonEventResult(resultCode, resultData, ordered, sticky, token); in HWTEST_F()
490 * @tc.name: AsyncCommonEventResult ClearAbortCommonEven
[all...]
/base/notification/common_event_service/frameworks/core/src/
H A Dcommon_event_listener.cpp137 std::shared_ptr<AsyncCommonEventResult> result = in OnReceiveEvent()
138 std::make_shared<AsyncCommonEventResult>(code, data, ordered, sticky, this); in OnReceiveEvent()
140 EVENT_LOGE("Failed to create AsyncCommonEventResult"); in OnReceiveEvent()
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/
H A Dnapi_common_event.cpp415 std::shared_ptr<AsyncCommonEventResult> GetAsyncResult(const SubscriberInstance *objectInfo) in GetAsyncResult()
949 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(subscriber.get()); in IsOrderedCommonEventSync()
977 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(subscriber.get()); in GetCodeSync()
1007 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(subscriber.get()); in SetCodeSync()
1032 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(subscriber.get()); in GetDataSync()
1068 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(subscriber.get()); in SetDataSync()
1106 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(subscriber.get()); in SetCodeAndDataSync()
1126 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(subscriber.get()); in AbortCommonEventSync()
1148 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(subscriber.get()); in ClearAbortCommonEventSync()
1172 std::shared_ptr<AsyncCommonEventResult> asyncResul in GetAbortCommonEventSync()
[all...]
H A Dcommon_event_set_param.cpp159 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult( in SetCode()
236 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult( in SetData()
314 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult( in SetCodeAndData()
/base/notification/common_event_service/interfaces/kits/napi/common_event/src/
H A Dcommon_event_set_param.cpp131 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in SetCode()
210 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in SetData()
291 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in SetCodeAndData()
H A Dcommon_event.cpp372 std::shared_ptr<AsyncCommonEventResult> GetAsyncResult(const SubscriberInstance *objectInfo) in GetAsyncResult()
435 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in IsOrderedCommonEvent()
521 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in IsStickyCommonEvent()
605 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in GetCode()
687 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in GetData()
768 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in AbortCommonEvent()
845 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in ClearAbortCommonEvent()
922 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in GetAbortCommonEvent()
1004 std::shared_ptr<AsyncCommonEventResult> asyncResult = GetAsyncResult(asyncCallbackInfo->subscriber.get()); in FinishCommonEvent()
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_publish_ordered_system_test/
H A Dcommon_event_services_publish_ordered_system_test.cpp182 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTestCase4()
213 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTestCase6()
220 void AsyncProcess(const std::shared_ptr<AsyncCommonEventResult> &result, time_t outtime) in AsyncProcess()
341 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberAnotherTestCase6()
348 void AsyncProcess(const std::shared_ptr<AsyncCommonEventResult> &result, time_t outtime) in AsyncProcess()
/base/notification/common_event_service/services/test/moduletest/common_event_services_publish_ordered_module_test/
H A Dcommon_event_services_publish_ordered_module_test.cpp193 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTestCase4()
226 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberTestCase6()
233 void AsyncProcess(const std::shared_ptr<AsyncCommonEventResult> &result, time_t outtime) in AsyncProcess()
354 std::shared_ptr<AsyncCommonEventResult> result = GoAsyncCommonEvent(); in ProcessSubscriberAnotherTestCase6()
361 void AsyncProcess(const std::shared_ptr<AsyncCommonEventResult> &result, time_t outtime) in AsyncProcess()
1194 std::shared_ptr<AsyncCommonEventResult> result = std::make_shared<AsyncCommonEventResult>( in HWTEST_F()
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/include/
H A Dnapi_common_event.h45 std::shared_ptr<AsyncCommonEventResult> commonEventResult = nullptr;
334 std::shared_ptr<AsyncCommonEventResult> GetAsyncResult(const SubscriberInstance *objectInfo);
/base/notification/common_event_service/interfaces/kits/napi/common_event/include/
H A Dcommon_event.h42 std::shared_ptr<AsyncCommonEventResult> commonEventResult = nullptr;
310 std::shared_ptr<AsyncCommonEventResult> GetAsyncResult(const SubscriberInstance *objectInfo);

Completed in 20 milliseconds