Home
last modified time | relevance | path

Searched refs:eventRecordInfo (Results 1 – 15 of 15) sorted by relevance

/base/notification/common_event_service/services/src/
Dinner_common_event_manager.cpp118 eventRecord.eventRecordInfo.pid = pid; in PublishCommonEvent()
119 eventRecord.eventRecordInfo.uid = uid; in PublishCommonEvent()
120 eventRecord.eventRecordInfo.callerToken = callerToken; in PublishCommonEvent()
122 eventRecord.eventRecordInfo.bundleName = bundleName; in PublishCommonEvent()
123 eventRecord.eventRecordInfo.isSubsystem = comeFrom.isSubsystem; in PublishCommonEvent()
124 eventRecord.eventRecordInfo.isSystemApp = (comeFrom.isSystemApp || comeFrom.isCemShell); in PublishCommonEvent()
125 eventRecord.eventRecordInfo.isProxy = comeFrom.isProxy; in PublishCommonEvent()
189 EventRecordInfo eventRecordInfo; in SubscribeCommonEvent() local
190 eventRecordInfo.pid = pid; in SubscribeCommonEvent()
191 eventRecordInfo.uid = uid; in SubscribeCommonEvent()
[all …]
Dcommon_event_control_manager.cpp156 subscriberRecord.eventRecordInfo.bundleName.c_str(), in NotifyFreezeEvents()
157 subscriberRecord.eventRecordInfo.pid, in NotifyFreezeEvents()
158 subscriberRecord.eventRecordInfo.uid); in NotifyFreezeEvents()
161 AccessTokenHelper::RecordSensitivePermissionUsage(subscriberRecord.eventRecordInfo.callerToken, in NotifyFreezeEvents()
215 AccessTokenHelper::RecordSensitivePermissionUsage(vec->eventRecordInfo.callerToken, in NotifyUnorderedEvent()
396 record.pid = eventRecordPtr->eventRecordInfo.pid; in EnqueueHistoryEventRecord()
397 record.uid = eventRecordPtr->eventRecordInfo.uid; in EnqueueHistoryEventRecord()
399 record.bundleName = eventRecordPtr->eventRecordInfo.bundleName; in EnqueueHistoryEventRecord()
400 record.isSystemApp = eventRecordPtr->eventRecordInfo.isSystemApp; in EnqueueHistoryEventRecord()
409 receiver.bundleName = vec->eventRecordInfo.bundleName; in EnqueueHistoryEventRecord()
[all …]
Dcommon_event_subscriber_manager.cpp40 const struct tm &recordTime, const EventRecordInfo &eventRecordInfo) in InsertSubscriber() argument
70 record->eventRecordInfo = eventRecordInfo; in InsertSubscriber()
138 std::string pid = format + "PID: " + std::to_string(record->eventRecordInfo.pid) + "\n"; in DumpDetailed()
139 std::string uid = format + "UID: " + std::to_string(record->eventRecordInfo.uid) + "\n"; in DumpDetailed()
140 std::string bundleName = format + "BundleName: " + record->eventRecordInfo.bundleName + "\n"; in DumpDetailed()
352 …bool isSystemApp = (eventRecord.eventRecordInfo.isSystemApp || eventRecord.eventRecordInfo.isSubsy… in GetSubscriberRecordsByWantLocked()
353 !eventRecord.eventRecordInfo.isProxy; in GetSubscriberRecordsByWantLocked()
355 auto bundleName = eventRecord.eventRecordInfo.bundleName; in GetSubscriberRecordsByWantLocked()
356 auto uid = eventRecord.eventRecordInfo.uid; in GetSubscriberRecordsByWantLocked()
368 eventRecord.publishInfo->GetBundleName() != (*it)->eventRecordInfo.bundleName) { in GetSubscriberRecordsByWantLocked()
[all …]
Dcommon_event_sticky_manager.cpp103 std::string pid = "\tPID: " + std::to_string(record->eventRecordInfo.pid) + "\n"; in DumpState()
104 std::string uid = "\tUID: " + std::to_string(record->eventRecordInfo.uid) + "\n"; in DumpState()
105 std::string bundleName = "\tBundleName: " + record->eventRecordInfo.bundleName + "\n"; in DumpState()
243 if (it->second->eventRecordInfo.uid == callerUid) { in RemoveStickyCommonEvent()
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_subscribe_unit_test.cpp718 EventRecordInfo eventRecordInfo; variable
719 eventRecordInfo.pid = 0;
720 eventRecordInfo.uid = 0;
721 eventRecordInfo.bundleName = "bundleName";
724 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo);
751 EventRecordInfo eventRecordInfo; variable
752 eventRecordInfo.pid = 0;
753 eventRecordInfo.uid = 0;
754 eventRecordInfo.bundleName = "bundleName";
757 …EventSubscriberManager.InsertSubscriber(nullptr, commonEventListenerPtr, curTime, eventRecordInfo);
[all …]
Dcommon_event_publish_permission_event_unit_test.cpp287 eventSubRecord.eventRecordInfo.bundleName = "hello";
301 commonEventRecord.eventRecordInfo.bundleName = "hello";
328 eventSubRecord.eventRecordInfo.bundleName = "hello";
342 commonEventRecord.eventRecordInfo.bundleName = "hello world";
343 commonEventRecord.eventRecordInfo.callerToken = 1;
449 eventSubRecord.eventRecordInfo.bundleName = "hello world";
450 eventSubRecord.eventRecordInfo.callerToken = 1;
533 eventSubRecord.eventRecordInfo.bundleName = "hello world";
534 eventSubRecord.eventRecordInfo.callerToken = 1;
549 commonEventRecord.eventRecordInfo.bundleName = "hello";
[all …]
Dcommon_event_freeze_unit_test.cpp171 eventSubscriberRecord->eventRecordInfo = eventRecordInfo_;
181 commonEventRecord.eventRecordInfo = eventRecordInfo_;
221 eventSubscriberRecord->eventRecordInfo = eventRecordInfo_;
231 commonEventRecord.eventRecordInfo = eventRecordInfo_;
262 eventSubscriberRecord->eventRecordInfo = eventRecordInfo_;
305 eventSubscriberRecord->eventRecordInfo = eventRecordInfo_;
348 eventSubscriberRecord->eventRecordInfo = eventRecordInfo_;
391 eventSubscriberRecord->eventRecordInfo = eventRecordInfo_;
512 commonEventRecord.eventRecordInfo = eventRecordInfo_;
554 eventSubscriberRecord->eventRecordInfo = eventRecordInfo_;
Dcommon_event_control_manager_test.cpp203 subscriberRecord.eventRecordInfo.isProxy = false; in HWTEST_F()
204 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F()
205 subscriberRecord.eventRecordInfo.isSystemApp = true; in HWTEST_F()
224 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
225 subscriberRecord.eventRecordInfo.isSubsystem = false; in HWTEST_F()
226 subscriberRecord.eventRecordInfo.isSystemApp = false; in HWTEST_F()
246 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
247 subscriberRecord.eventRecordInfo.isSubsystem = false; in HWTEST_F()
248 subscriberRecord.eventRecordInfo.isSystemApp = false; in HWTEST_F()
Dcommon_event_publish_ordered_event_unit_test.cpp235 commonEventRecord.eventRecordInfo.pid = 0;
236 commonEventRecord.eventRecordInfo.uid = 0;
237 commonEventRecord.eventRecordInfo.bundleName = "bundleName";
285 commonEventRecord.eventRecordInfo.pid = 0;
286 commonEventRecord.eventRecordInfo.uid = 0;
287 commonEventRecord.eventRecordInfo.bundleName = "bundleName";
Dcommon_event_subscriber_manager_test.cpp518 subscriberRecord->eventRecordInfo.uid = uids; in HWTEST_F()
/base/notification/common_event_service/frameworks/native/test/unittest/
Dcommon_event_subscribe_test.cpp335 EventRecordInfo eventRecordInfo; variable
336 eventRecordInfo.pid = 0;
337 eventRecordInfo.uid = 0;
338 eventRecordInfo.bundleName = "bundleName";
341 nullptr, commonEventListenerPtr, curTime, eventRecordInfo);
365 EventRecordInfo eventRecordInfo; variable
366 eventRecordInfo.pid = 0;
367 eventRecordInfo.uid = 0;
368 eventRecordInfo.bundleName = "bundleName";
371 commonEventSubscribeInfo, nullptr, curTime, eventRecordInfo);
[all …]
/base/notification/common_event_service/services/include/
Dordered_event_record.h68 eventRecordInfo = commonEventRecord.eventRecordInfo; in FillCommonEventRecord()
Dcommon_event_record.h42 EventRecordInfo eventRecordInfo; member
Dcommon_event_subscriber_manager.h31 EventRecordInfo eventRecordInfo; member
99 const EventRecordInfo &eventRecordInfo);
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/
Dcommon_event_control_manager_branch_test.cpp92 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
93 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F()
94 subscriberRecord.eventRecordInfo.isSystemApp = true; in HWTEST_F()
124 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
125 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F()
126 subscriberRecord.eventRecordInfo.isSystemApp = true; in HWTEST_F()
150 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
151 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F()
152 subscriberRecord.eventRecordInfo.isSystemApp = true; in HWTEST_F()
180 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
[all …]