Home
last modified time | relevance | path

Searched refs:eventSubscribeInfo (Results 1 – 9 of 9) sorted by relevance

/base/notification/common_event_service/services/src/
Dcommon_event_subscriber_manager.cpp39 const SubscribeInfoPtr &eventSubscribeInfo, const sptr<IRemoteObject> &commonEventListener, in InsertSubscriber() argument
45 if (eventSubscribeInfo == nullptr) { in InsertSubscriber()
55 std::vector<std::string> events = eventSubscribeInfo->GetMatchingSkills().GetEvents(); in InsertSubscriber()
67 record->eventSubscribeInfo = eventSubscribeInfo; in InsertSubscriber()
130 if (record == nullptr || record->eventSubscribeInfo == nullptr) { in DumpDetailed()
141 …std::string priority = format + "Priority: " + std::to_string(record->eventSubscribeInfo->GetPrior… in DumpDetailed()
143 switch (record->eventSubscribeInfo->GetUserId()) { in DumpDetailed()
151 userId = std::to_string(record->eventSubscribeInfo->GetUserId()); in DumpDetailed()
155 …std::string permission = format + "Permission: " + record->eventSubscribeInfo->GetPermission() + "… in DumpDetailed()
156 … std::string deviceId = format + "DevicedID: " + record->eventSubscribeInfo->GetDeviceId() + "\n"; in DumpDetailed()
[all …]
Dcommon_event_control_manager.cpp410 receiver.priority = vec->eventSubscribeInfo->GetPriority(); in EnqueueHistoryEventRecord()
411 receiver.userId = vec->eventSubscribeInfo->GetUserId(); in EnqueueHistoryEventRecord()
412 receiver.permission = vec->eventSubscribeInfo->GetPermission(); in EnqueueHistoryEventRecord()
413 receiver.deviceId = vec->eventSubscribeInfo->GetDeviceId(); in EnqueueHistoryEventRecord()
724 std::string subscriberRequiredPermission = subscriberRecord.eventSubscribeInfo->GetPermission(); in CheckPermission()
820 subscriberRecord.eventSubscribeInfo->GetUserId(), in CheckSubscriberRequiredPermission()
849 subscriberRecord.eventSubscribeInfo->GetUserId(), in CheckPublisherRequiredPermissions()
1371 if (subscriberRecord->eventSubscribeInfo != nullptr) { in SendOrderedEventProcTimeoutHiSysEvent()
1372 eventInfo.userId = subscriberRecord->eventSubscribeInfo->GetUserId(); in SendOrderedEventProcTimeoutHiSysEvent()
Dinner_common_event_manager.cpp499 if (subscriberRecord->eventSubscribeInfo != nullptr) { in SendUnSubscribeHiSysEvent()
500 eventInfo.userId = subscriberRecord->eventSubscribeInfo->GetUserId(); in SendUnSubscribeHiSysEvent()
501 …std::vector<std::string> events = subscriberRecord->eventSubscribeInfo->GetMatchingSkills().GetEve… in SendUnSubscribeHiSysEvent()
/base/notification/common_event_service/services/include/
Dcommon_event_subscriber_manager.h29 std::shared_ptr<CommonEventSubscribeInfo> eventSubscribeInfo; member
37 : eventSubscribeInfo(nullptr), in EventSubscriberRecord()
67 if (a == nullptr || a->eventSubscribeInfo == nullptr) {
71 if (b == nullptr || b->eventSubscribeInfo == nullptr) {
74 return a->eventSubscribeInfo->GetPriority() > b->eventSubscribeInfo->GetPriority();
97 …std::shared_ptr<EventSubscriberRecord> InsertSubscriber(const SubscribeInfoPtr &eventSubscribeInfo,
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_subscriber_manager_test.cpp134 record->eventSubscribeInfo = nullptr; in HWTEST_F()
155 record->eventSubscribeInfo = std::make_shared<CommonEventSubscribeInfo>(matchingSkills_); in HWTEST_F()
157 record->eventSubscribeInfo->SetUserId(userId); in HWTEST_F()
178 record->eventSubscribeInfo = std::make_shared<CommonEventSubscribeInfo>(matchingSkills_); in HWTEST_F()
180 record->eventSubscribeInfo->SetUserId(userId); in HWTEST_F()
212 record->eventSubscribeInfo = std::make_shared<CommonEventSubscribeInfo>(matchingSkills_); in HWTEST_F()
214 record->eventSubscribeInfo->SetUserId(userId); in HWTEST_F()
252 record->eventSubscribeInfo = std::make_shared<CommonEventSubscribeInfo>(matchingSkills_); in HWTEST_F()
404 record->eventSubscribeInfo = std::make_shared<CommonEventSubscribeInfo>(matchingSkills_); in HWTEST_F()
405 record->eventSubscribeInfo->SetUserId(userId); in HWTEST_F()
[all …]
Dcommon_event_freeze_unit_test.cpp169 eventSubscriberRecord->eventSubscribeInfo = subscribeInfoPtr;
219 eventSubscriberRecord->eventSubscribeInfo = subscribeInfoPtr;
260 eventSubscriberRecord->eventSubscribeInfo = subscribeInfoPtr;
303 eventSubscriberRecord->eventSubscribeInfo = subscribeInfoPtr;
346 eventSubscriberRecord->eventSubscribeInfo = subscribeInfoPtr;
389 eventSubscriberRecord->eventSubscribeInfo = subscribeInfoPtr;
552 eventSubscriberRecord->eventSubscribeInfo = subscribeInfoPtr;
Dcommon_event_publish_permission_event_unit_test.cpp286 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
327 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
369 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
407 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
448 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
492 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
532 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
576 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
620 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
688 eventSubRecord.eventSubscribeInfo = commonEventSubscribeInfoSptr;
[all …]
Dcommon_event_subscribe_unit_test.cpp853 record->eventSubscribeInfo = std::make_shared<CommonEventSubscribeInfo>(subscribeInfo);
889 record->eventSubscribeInfo = std::make_shared<CommonEventSubscribeInfo>(subscribeInfo);
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/
Dcommon_event_control_manager_branch_test.cpp90 …std::shared_ptr<CommonEventSubscribeInfo> eventSubscribeInfo = std::make_shared<CommonEventSubscri… in HWTEST_F() local
91 subscriberRecord.eventSubscribeInfo = eventSubscribeInfo; in HWTEST_F()
122 …std::shared_ptr<CommonEventSubscribeInfo> eventSubscribeInfo = std::make_shared<CommonEventSubscri… in HWTEST_F() local
123 subscriberRecord.eventSubscribeInfo = eventSubscribeInfo; in HWTEST_F()
148 …std::shared_ptr<CommonEventSubscribeInfo> eventSubscribeInfo = std::make_shared<CommonEventSubscri… in HWTEST_F() local
149 subscriberRecord.eventSubscribeInfo = eventSubscribeInfo; in HWTEST_F()
178 …std::shared_ptr<CommonEventSubscribeInfo> eventSubscribeInfo = std::make_shared<CommonEventSubscri… in HWTEST_F() local
179 subscriberRecord.eventSubscribeInfo = eventSubscribeInfo; in HWTEST_F()
204 …std::shared_ptr<CommonEventSubscribeInfo> eventSubscribeInfo = std::make_shared<CommonEventSubscri… in HWTEST_F() local
205 subscriberRecord.eventSubscribeInfo = eventSubscribeInfo; in HWTEST_F()
[all …]