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.cpp111 eventRecord.eventRecordInfo.pid = pid; in PublishCommonEvent()
112 eventRecord.eventRecordInfo.uid = uid; in PublishCommonEvent()
113 eventRecord.eventRecordInfo.callerToken = callerToken; in PublishCommonEvent()
115 eventRecord.eventRecordInfo.bundleName = bundleName; in PublishCommonEvent()
116 eventRecord.eventRecordInfo.isSubsystem = comeFrom.isSubsystem; in PublishCommonEvent()
117 eventRecord.eventRecordInfo.isSystemApp = (comeFrom.isSystemApp || comeFrom.isCemShell); in PublishCommonEvent()
118 eventRecord.eventRecordInfo.isProxy = comeFrom.isProxy; in PublishCommonEvent()
182 EventRecordInfo eventRecordInfo; in SubscribeCommonEvent() local
183 eventRecordInfo.pid = pid; in SubscribeCommonEvent()
184 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()
365 eventRecord.publishInfo->GetBundleName() != (*it)->eventRecordInfo.bundleName) { in GetSubscriberRecordsByWantLocked()
412 if (recordPtr->eventRecordInfo.uid == uid) { in UpdateFreezeInfo()
419 EVENT_LOGD("recordPtr->uid: %{public}d", recordPtr->eventRecordInfo.uid); in UpdateFreezeInfo()
[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.cpp664 EventRecordInfo eventRecordInfo; variable
665 eventRecordInfo.pid = 0;
666 eventRecordInfo.uid = 0;
667 eventRecordInfo.bundleName = "bundleName";
670 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo);
697 EventRecordInfo eventRecordInfo; variable
698 eventRecordInfo.pid = 0;
699 eventRecordInfo.uid = 0;
700 eventRecordInfo.bundleName = "bundleName";
703 …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.h30 EventRecordInfo eventRecordInfo; member
85 const EventRecordInfo &eventRecordInfo);
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/
Dcommon_event_control_manager_branch_test.cpp87 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
88 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F()
89 subscriberRecord.eventRecordInfo.isSystemApp = true; in HWTEST_F()
109 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
110 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F()
111 subscriberRecord.eventRecordInfo.isSystemApp = true; in HWTEST_F()
131 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
132 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F()
133 subscriberRecord.eventRecordInfo.isSystemApp = true; in HWTEST_F()
155 subscriberRecord.eventRecordInfo.isProxy = true; in HWTEST_F()
[all …]