Home
last modified time | relevance | path

Searched refs:record (Results 1 - 25 of 148) sorted by relevance

123456

/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_slot_filter.cpp30 ErrCode NotificationSlotFilter::OnPublish(const std::shared_ptr<NotificationRecord> &record) in OnPublish() argument
32 if (record->slot != nullptr) { in OnPublish()
33 if (record->slot->CanEnableLight()) { in OnPublish()
34 record->notification->SetEnableLight(true); in OnPublish()
35 record->notification->SetLedLightColor(record->slot->GetLedLightColor()); in OnPublish()
37 record->notification->SetEnableLight(false); in OnPublish()
40 if (record->slot->CanVibrate()) { in OnPublish()
41 record->notification->SetEnableVibration(true); in OnPublish()
42 record in OnPublish()
[all...]
H A Dnotification_subscriber_manager.cpp159 const sptr<NotificationSortingMap> &notificationMap, const std::shared_ptr<SubscriberRecord> &record) in BatchNotifyConsumed()
163 if (notifications.empty() || notificationMap == nullptr || record == nullptr) { in BatchNotifyConsumed()
174 &NotificationSubscriberManager::BatchNotifyConsumedInner, this, notifications, notificationMap, record); in BatchNotifyConsumed()
279 std::shared_ptr<SubscriberRecord> record = FindSubscriberRecord(object); in OnRemoteDied()
280 if (record != nullptr) { in OnRemoteDied()
281 auto subscriberUid = record->subscriberUid; in OnRemoteDied()
282 ANS_LOGI("subscriber removed . subscriberUid = %{public}d", record->subscriberUid); in OnRemoteDied()
283 subscriberRecordList_.remove(record); in OnRemoteDied()
284 AdvancedNotificationService::GetInstance()->RemoveSystemLiveViewNotificationsOfSa(record->subscriberUid); in OnRemoteDied()
319 std::shared_ptr<SubscriberRecord> record in CreateSubscriberRecord() local
158 BatchNotifyConsumed(const std::vector<sptr<Notification>> &notifications, const sptr<NotificationSortingMap> &notificationMap, const std::shared_ptr<SubscriberRecord> &record) BatchNotifyConsumed() argument
326 AddRecordInfo( std::shared_ptr<SubscriberRecord> &record, const sptr<NotificationSubscribeInfo> &subscribeInfo) AddRecordInfo() argument
348 RemoveRecordInfo( std::shared_ptr<SubscriberRecord> &record, const sptr<NotificationSubscribeInfo> &subscribeInfo) RemoveRecordInfo() argument
369 std::shared_ptr<SubscriberRecord> record = FindSubscriberRecord(subscriber); AddSubscriberInner() local
396 std::shared_ptr<SubscriberRecord> record = FindSubscriberRecord(subscriber); RemoveSubscriberInner() local
458 BatchNotifyConsumedInner(const std::vector<sptr<Notification>> &notifications, const sptr<NotificationSortingMap> &notificationMap, const std::shared_ptr<SubscriberRecord> &record) BatchNotifyConsumedInner() argument
512 IsSubscribedBysubscriber( const std::shared_ptr<SubscriberRecord> &record, const sptr<Notification> &notification) IsSubscribedBysubscriber() argument
[all...]
H A Dadvanced_notification_live_view_service.cpp70 auto record = std::make_shared<NotificationRecord>(); in RecoverLiveViewFromDb()
71 record->isNeedFlowCtrl = false; in RecoverLiveViewFromDb()
72 if (FillNotificationRecord(requestObj, record) != ERR_OK) { in RecoverLiveViewFromDb()
73 ANS_LOGE("Fill notification record failed."); in RecoverLiveViewFromDb()
77 if (Filter(record, true) != ERR_OK) { in RecoverLiveViewFromDb()
78 ANS_LOGE("Filter record failed."); in RecoverLiveViewFromDb()
82 if (FlowControl(record) != ERR_OK) { in RecoverLiveViewFromDb()
88 auto notificationFlags = record->request->GetFlags(); in RecoverLiveViewFromDb()
91 record->request->SetFlags(notificationFlags); in RecoverLiveViewFromDb()
93 record in RecoverLiveViewFromDb()
117 UpdateNotificationTimerInfo(const std::shared_ptr<NotificationRecord> &record) UpdateNotificationTimerInfo() argument
156 ProcForDeleteLiveView(const std::shared_ptr<NotificationRecord> &record) ProcForDeleteLiveView() argument
173 OnSubscriberAddInffrt( const std::shared_ptr<NotificationSubscriberManager::SubscriberRecord> &record) OnSubscriberAddInffrt() argument
181 OnSubscriberAdd( const std::shared_ptr<NotificationSubscriberManager::SubscriberRecord> &record) OnSubscriberAdd() argument
524 UpdateInDelayNotificationList(const std::shared_ptr<NotificationRecord> &record) UpdateInDelayNotificationList() argument
541 AddToDelayNotificationList(const std::shared_ptr<NotificationRecord> &record) AddToDelayNotificationList() argument
550 SaPublishSystemLiveViewAsBundle(const std::shared_ptr<NotificationRecord> &record) SaPublishSystemLiveViewAsBundle() argument
608 auto record = GetFromDelayedNotificationList(ownerUid, notificationId); StartPublishDelayedNotificationTimeOut() local
621 StartPublishDelayedNotification(const std::shared_ptr<NotificationRecord> &record) StartPublishDelayedNotification() argument
668 IsSaCreateSystemLiveViewAsBundle( const std::shared_ptr<NotificationRecord> &record, int32_t ipcUid) IsSaCreateSystemLiveViewAsBundle() argument
690 UpdateRecordByOwner( const std::shared_ptr<NotificationRecord> &record, bool isSystemApp) UpdateRecordByOwner() argument
736 StartFinishTimerForUpdate( const std::shared_ptr<NotificationRecord> &record, uint64_t process) StartFinishTimerForUpdate() argument
[all...]
H A Dpermission_filter.cpp32 ErrCode PermissionFilter::OnPublish(const std::shared_ptr<NotificationRecord> &record) in OnPublish() argument
38 NotificationPreferences::GetInstance()->GetNotificationsEnabledForBundle(record->bundleOption, enable); in OnPublish()
43 enable = bundleManager->CheckApiCompatibility(record->bundleOption); in OnPublish()
48 NotificationConstant::SlotType slotType = record->request->GetSlotType(); in OnPublish()
50 result = NotificationPreferences::GetInstance()->GetNotificationSlot(record->bundleOption, slotType, slot); in OnPublish()
56 NotificationAnalyticsUtil::ReportPublishFailedEvent(record->request, message); in OnPublish()
65 NotificationAnalyticsUtil::ReportPublishFailedEvent(record->request, message); in OnPublish()
70 if (record->notification->GetBundleName() != record->notification->GetCreateBundle()) { in OnPublish()
H A Dnotification_local_live_view_subscriber_manager.cpp156 std::shared_ptr<LocalLiveViewSubscriberRecord> record = FindSubscriberRecord(object); in OnRemoteDied()
157 if (record != nullptr) { in OnRemoteDied()
158 ANS_LOGI("subscriber removed . userId = %{public}d", record->userId); in OnRemoteDied()
160 record->bundleName, record->userId); in OnRemoteDied()
161 buttonRecordList_.remove(record); in OnRemoteDied()
199 std::shared_ptr<LocalLiveViewSubscriberRecord> record = std::make_shared<LocalLiveViewSubscriberRecord>(); in CreateSubscriberRecord() local
201 if (record != nullptr) { in CreateSubscriberRecord()
202 record->subscriber = subscriber; in CreateSubscriberRecord()
203 record in CreateSubscriberRecord()
216 std::shared_ptr<LocalLiveViewSubscriberRecord> record = FindSubscriberRecord(subscriber); AddSubscriberInner() local
238 std::shared_ptr<LocalLiveViewSubscriberRecord> record = FindSubscriberRecord(subscriber); RemoveSubscriberInner() local
[all...]
H A Dadvanced_notification_service.cpp355 ErrCode AdvancedNotificationService::AssignToNotificationList(const std::shared_ptr<NotificationRecord> &record) in AssignToNotificationList() argument
358 if (!IsNotificationExists(record->notification->GetKey())) { in AssignToNotificationList()
359 record->request->SetCreateTime(GetCurrentTime()); in AssignToNotificationList()
360 result = PublishFlowControl(record); in AssignToNotificationList()
362 if (record->request->IsAlertOneTime()) { in AssignToNotificationList()
363 CloseAlert(record); in AssignToNotificationList()
365 result = UpdateInNotificationList(record); in AssignToNotificationList()
459 ErrCode AdvancedNotificationService::StartFinishTimer(const std::shared_ptr<NotificationRecord> &record, in StartFinishTimer() argument
462 uint64_t timerId = StartAutoDelete(record, in StartFinishTimer()
472 record in StartFinishTimer()
476 SetFinishTimer(const std::shared_ptr<NotificationRecord> &record) SetFinishTimer() argument
488 CancelFinishTimer(const std::shared_ptr<NotificationRecord> &record) CancelFinishTimer() argument
495 StartUpdateTimer( const std::shared_ptr<NotificationRecord> &record, int64_t expireTimePoint, const int32_t reason) StartUpdateTimer() argument
513 SetUpdateTimer(const std::shared_ptr<NotificationRecord> &record) SetUpdateTimer() argument
525 CancelUpdateTimer(const std::shared_ptr<NotificationRecord> &record) CancelUpdateTimer() argument
532 StartArchiveTimer(const std::shared_ptr<NotificationRecord> &record) StartArchiveTimer() argument
553 CancelArchiveTimer(const std::shared_ptr<NotificationRecord> &record) CancelArchiveTimer() argument
560 StartAutoDeletedTimer(const std::shared_ptr<NotificationRecord> &record) StartAutoDeletedTimer() argument
573 FillNotificationRecord( const NotificationRequestDb &requestdbObj, std::shared_ptr<NotificationRecord> record) FillNotificationRecord() argument
602 auto record = std::make_shared<NotificationRecord>(); MakeNotificationRecord() local
642 auto record = MakeNotificationRecord(request, bundleOption); PublishPreparedNotification() local
749 CheckDoNotDisturbProfile(const std::shared_ptr<NotificationRecord> &record) CheckDoNotDisturbProfile() argument
792 DoNotDisturbUpdataReminderFlags(const std::shared_ptr<NotificationRecord> &record) DoNotDisturbUpdataReminderFlags() argument
815 UpdateSlotAuthInfo(const std::shared_ptr<NotificationRecord> &record) UpdateSlotAuthInfo() argument
868 Filter(const std::shared_ptr<NotificationRecord> &record, bool isRecover) Filter() argument
908 ChangeNotificationByControlFlags(const std::shared_ptr<NotificationRecord> &record, const bool isAgentController) ChangeNotificationByControlFlags() argument
965 CheckPublishPreparedNotification( const std::shared_ptr<NotificationRecord> &record, bool isSystemApp) CheckPublishPreparedNotification() argument
986 AddToNotificationList(const std::shared_ptr<NotificationRecord> &record) AddToNotificationList() argument
992 UpdateFlowCtrl(const std::shared_ptr<NotificationRecord> &record) UpdateFlowCtrl() argument
1030 UpdateInNotificationList(const std::shared_ptr<NotificationRecord> &record) UpdateInNotificationList() argument
1519 FlowControl(const std::shared_ptr<NotificationRecord> &record) FlowControl() argument
1556 PublishFlowControlInner(const std::shared_ptr<NotificationRecord> &record) PublishFlowControlInner() argument
1594 PublishFlowControl(const std::shared_ptr<NotificationRecord> &record) PublishFlowControl() argument
2290 AddRecordToMemory( const std::shared_ptr<NotificationRecord> &record, bool isSystemApp, bool isUpdateByOwner, const bool isAgentController) AddRecordToMemory() argument
2352 RemoveNotificationList(const std::shared_ptr<NotificationRecord> &record) RemoveNotificationList() argument
[all...]
H A Dadvanced_notification_publish_service.cpp196 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); in PublishNotificationForIndirectProxy() local
197 record->request = request; in PublishNotificationForIndirectProxy()
198 record->isThirdparty = false; in PublishNotificationForIndirectProxy()
199 record->bundleOption = new (std::nothrow) NotificationBundleOption(bundle, uid); in PublishNotificationForIndirectProxy()
200 record->bundleOption->SetInstanceKey(request->GetCreatorInstanceKey()); in PublishNotificationForIndirectProxy()
202 if (record->bundleOption == nullptr || bundleOption == nullptr) { in PublishNotificationForIndirectProxy()
206 record->notification = new (std::nothrow) Notification(request); in PublishNotificationForIndirectProxy()
207 if (record->notification == nullptr) { in PublishNotificationForIndirectProxy()
217 SetRequestBySlotType(record->request, bundleOption); in PublishNotificationForIndirectProxy()
221 if (AssignValidNotificationSlot(record, bundleOptio in PublishNotificationForIndirectProxy()
1260 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); PublishContinuousTaskNotification() local
2188 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); PublishNotificationBySa() local
2484 PublishRemoveDuplicateEvent(const std::shared_ptr<NotificationRecord> &record) PublishRemoveDuplicateEvent() argument
[all...]
/base/hiviewdfx/hiview/plugins/performance/scene_data_processor/
H A DAppLaunchSceneDataProcessor.cpp81 AppStartRecord record = GetRecord(bundleName); in ProcessSceneData() local
89 if (record.bundleName.empty()) { in ProcessSceneData()
92 SaveCheckPoint(record, data); in ProcessSceneData()
149 AppStartRecord record = GetRecord(bundleName); in SaveCheckPoint() local
150 if (record.bundleName.empty()) { in SaveCheckPoint()
153 SaveCheckPoint(record, data); in SaveCheckPoint()
156 void AppLaunchSceneDataProcessor::SaveCheckPoint(AppStartRecord& record, const AppStartCheckPointData& data) in SaveCheckPoint() argument
160 record.interactionResponse = interactionResponse; in SaveCheckPoint()
163 record.startAbility = startAbility; in SaveCheckPoint()
165 if (!record in SaveCheckPoint()
211 HaveStartPoint(const AppStartRecord& record) HaveStartPoint() argument
216 HaveAllEndPoints(const AppStartRecord& record) HaveAllEndPoints() argument
221 HaveEndPoint(const AppStartRecord& record) HaveEndPoint() argument
226 HaveResponseOrCompletedPoint(const AppStartRecord& record) HaveResponseOrCompletedPoint() argument
233 AppStartRecord record = GetRecord(bundleName); AllPointsReceived() local
240 GetProcessName(const AppStartRecord& record) GetProcessName() argument
254 GetAppPid(const AppStartRecord& record) GetAppPid() argument
265 GetInputTime(const AppStartRecord& record) GetInputTime() argument
276 AppStartRecord record = GetRecord(bundleName); CalcMetrics() local
317 CalcLatency(AppStartMetrics& appStartMetrics, const AppStartRecord& record, const uint64_t inputTime) CalcLatency() argument
354 AppStartRecord record = GetRecord(bundleName); ReportConditionMet() local
376 AppStartRecord record; CreateRecord() local
415 AppStartRecord record = GetRecord(data.bundleName); CheckOutExistStartPoint() local
[all...]
H A DAnimatorSceneDataProcessor.cpp87 AnimatorRecord* record = GetRecord(evt->animatorInfo.basicInfo.uniqueId); in ProcessSceneData() local
88 if (record == nullptr) { in ProcessSceneData()
89 HIVIEW_LOGD("[AnimatorSceneDataProcessor::ProcessSceneData] record == nullptr"); in ProcessSceneData()
92 AnimatorMetrics metrics = CalcMetrics(*record); in ProcessSceneData()
115 AnimatorRecord* record = GetRecord(evt->animatorInfo.basicInfo.uniqueId); in HasStartPoint() local
116 if (record != nullptr && record->hasStartPoint) { in HasStartPoint()
127 AnimatorRecord* record = GetRecord(evt->animatorInfo.basicInfo.uniqueId); in AllPointsReceived() local
128 if (record != nullptr) { in AllPointsReceived()
129 if (record in AllPointsReceived()
143 AnimatorRecord* record = GetRecord(evt->animatorInfo.basicInfo.uniqueId); SaveAnimatorPoint() local
160 CalcMetrics(const AnimatorRecord& record) CalcMetrics() argument
186 AnimatorRecord* record = nullptr; GetRecord() local
[all...]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
H A Dhisysevent_record_c.cpp26 int GetParamValue(const HiSysEventRecordC& record, const char* name, T& value) in GetParamValue() argument
28 if (record.jsonStr == nullptr || name == nullptr) { in GetParamValue()
31 HiSysEventRecordCls recordObj(record.jsonStr); in GetParamValue()
35 int GetParamValue(const HiSysEventRecordC& record, const char* name, char** value) in GetParamValue() argument
37 if (record.jsonStr == nullptr || name == nullptr) { in GetParamValue()
40 HiSysEventRecordCls recordObj(record.jsonStr); in GetParamValue()
49 int GetParamValues(const HiSysEventRecordC& record, const char* name, T** value, size_t& len) in GetParamValues() argument
51 if (record.jsonStr == nullptr || name == nullptr) { in GetParamValues()
54 HiSysEventRecordCls recordObj(record.jsonStr); in GetParamValues()
74 int GetParamValues(const HiSysEventRecordC& record, cons argument
90 GetParamNames(const HiSysEventRecordC& record, char*** names, size_t& len) GetParamNames() argument
104 GetParamInt64Value(const HiSysEventRecordC& record, const char* name, int64_t& value) GetParamInt64Value() argument
109 GetParamUint64Value(const HiSysEventRecordC& record, const char* name, uint64_t& value) GetParamUint64Value() argument
114 GetParamDoubleValue(const HiSysEventRecordC& record, const char* name, double& value) GetParamDoubleValue() argument
119 GetParamStringValue(const HiSysEventRecordC& record, const char* name, char** value) GetParamStringValue() argument
124 GetParamInt64Values(const HiSysEventRecordC& record, const char* name, int64_t** value, size_t& len) GetParamInt64Values() argument
129 GetParamUint64Values(const HiSysEventRecordC& record, const char* name, uint64_t** value, size_t& len) GetParamUint64Values() argument
134 GetParamDoubleValues(const HiSysEventRecordC& record, const char* name, double** value, size_t& len) GetParamDoubleValues() argument
139 GetParamStringValues(const HiSysEventRecordC& record, const char* name, char*** value, size_t& len) GetParamStringValues() argument
149 OH_HiSysEvent_GetParamNames(const HiSysEventRecordC* record, char*** names, size_t* len) OH_HiSysEvent_GetParamNames() argument
154 OH_HiSysEvent_GetParamInt64Value(const HiSysEventRecordC* record, const char* name, int64_t* value) OH_HiSysEvent_GetParamInt64Value() argument
159 OH_HiSysEvent_GetParamUint64Value(const HiSysEventRecordC* record, const char* name, uint64_t* value) OH_HiSysEvent_GetParamUint64Value() argument
164 OH_HiSysEvent_GetParamDoubleValue(const HiSysEventRecordC* record, const char* name, double* value) OH_HiSysEvent_GetParamDoubleValue() argument
169 OH_HiSysEvent_GetParamStringValue(const HiSysEventRecordC* record, const char* name, char** value) OH_HiSysEvent_GetParamStringValue() argument
174 OH_HiSysEvent_GetParamInt64Values(const HiSysEventRecordC* record, const char* name, int64_t** value, size_t* len) OH_HiSysEvent_GetParamInt64Values() argument
179 OH_HiSysEvent_GetParamUint64Values(const HiSysEventRecordC* record, const char* name, uint64_t** value, size_t* len) OH_HiSysEvent_GetParamUint64Values() argument
184 OH_HiSysEvent_GetParamDoubleValues(const HiSysEventRecordC* record, const char* name, double** value, size_t* len) OH_HiSysEvent_GetParamDoubleValues() argument
189 OH_HiSysEvent_GetParamStringValues(const HiSysEventRecordC* record, const char* name, char*** value, size_t* len) OH_HiSysEvent_GetParamStringValues() argument
[all...]
/base/security/access_token/services/privacymanager/src/record/
H A Dpermission_record.cpp23 void PermissionRecord::TranslationIntoGenericValues(const PermissionRecord& record, GenericValues& values) in TranslationIntoGenericValues() argument
25 values.Put(PrivacyFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(record.tokenId)); in TranslationIntoGenericValues()
26 values.Put(PrivacyFiledConst::FIELD_OP_CODE, record.opCode); in TranslationIntoGenericValues()
27 values.Put(PrivacyFiledConst::FIELD_STATUS, record.status); in TranslationIntoGenericValues()
28 values.Put(PrivacyFiledConst::FIELD_TIMESTAMP, record.timestamp); in TranslationIntoGenericValues()
29 values.Put(PrivacyFiledConst::FIELD_ACCESS_DURATION, record.accessDuration); in TranslationIntoGenericValues()
30 values.Put(PrivacyFiledConst::FIELD_USED_TYPE, record.type); in TranslationIntoGenericValues()
31 values.Put(PrivacyFiledConst::FIELD_ACCESS_COUNT, record.accessCount); in TranslationIntoGenericValues()
32 values.Put(PrivacyFiledConst::FIELD_REJECT_COUNT, record.rejectCount); in TranslationIntoGenericValues()
33 values.Put(PrivacyFiledConst::FIELD_LOCKSCREEN_STATUS, record in TranslationIntoGenericValues()
36 TranslationIntoPermissionRecord(const GenericValues& values, PermissionRecord& record) TranslationIntoPermissionRecord() argument
[all...]
/base/hiviewdfx/hisysevent/test/fuzztest/common/hisyseventmanager_fuzzer/
H A Dhisyseventmanager_fuzzer.cpp39 void HiSysEventRecordTest(const HiSysEventRecord& record, const std::string& data) in HiSysEventRecordTest() argument
41 (void)record.AsJson(); in HiSysEventRecordTest()
42 (void)record.GetDomain(); in HiSysEventRecordTest()
43 (void)record.GetEventName(); in HiSysEventRecordTest()
44 (void)record.GetLevel(); in HiSysEventRecordTest()
45 (void)record.GetTag(); in HiSysEventRecordTest()
46 (void)record.GetTimeZone(); in HiSysEventRecordTest()
47 (void)record.GetEventType(); in HiSysEventRecordTest()
48 (void)record.GetTraceFlag(); in HiSysEventRecordTest()
49 (void)record in HiSysEventRecordTest()
[all...]
/base/hiviewdfx/hiview/plugins/performance/persistence/
H A DAppLaunchSceneDbAdapter.cpp20 void AppLaunchSceneDbAdapter::CreateRecord(const std::string& bundleName, const AppStartRecord& record) in CreateRecord() argument
22 appStartRecords.insert(std::make_pair(bundleName, record)); in CreateRecord()
25 void AppLaunchSceneDbAdapter::UpdateRecord(const std::string& bundleName, const AppStartRecord& record) in UpdateRecord() argument
27 appStartRecords[bundleName] = record; in UpdateRecord()
37 AppStartRecord record; in QueryRecord() local
40 record = it->second; in QueryRecord()
42 return record; in QueryRecord()
45 void AppLaunchSceneDbAdapter::CreateRecord(const AppStartRecord& record) in CreateRecord() argument
47 appStartRecords.insert(std::make_pair(record.bundleName, record)); in CreateRecord()
50 UpdateRecord(const AppStartRecord& record) UpdateRecord() argument
[all...]
/base/hiviewdfx/hiview/plugins/event_store/event_export/database/
H A Dexport_db_manager.cpp34 ExportDetailRecord record = GetExportDetailRecord(moduleName); in GetExportEnabledSeq() local
35 if (record.moduleName.empty()) { in GetExportEnabledSeq()
36 HIVIEW_LOGW("no export details record found of %{public}s module in db", moduleName.c_str()); in GetExportEnabledSeq()
39 HIVIEW_LOGD("export enabled sequence is %{public}" PRId64 "", record.exportEnabledSeq); in GetExportEnabledSeq()
40 return record.exportEnabledSeq; in GetExportEnabledSeq()
46 ExportDetailRecord record = GetExportDetailRecord(moduleName); in GetExportBeginSeq() local
47 if (record.exportEnabledSeq == INVALID_SEQ_VAL) { in GetExportBeginSeq()
51 return std::max(record.exportEnabledSeq, record.exportedMaxSeq); in GetExportBeginSeq()
59 HIVIEW_LOGW("no export details record foun in HandleExportSwitchChanged()
60 ExportDetailRecord record = { HandleExportSwitchChanged() local
81 ExportDetailRecord record = { HandleExportTaskFinished() local
98 ExportDetailRecord record; GetExportDetailRecord() local
105 ExportDetailRecord record = GetExportDetailRecord(moduleName); IsUnrecordedModule() local
[all...]
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dpermission_filter_test.cpp64 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); in HWTEST_F() local
65 record->bundleOption = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID); in HWTEST_F()
66 record->request = new NotificationRequest(); in HWTEST_F()
67 record->request->SetOwnerBundleName(TEST_DEFUALT_BUNDLE); in HWTEST_F()
68 record->notification = new Notification(record->request); in HWTEST_F()
69 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
70 // ASSERT_EQ(permissionFilter.OnPublish(record), ERR_OK); in HWTEST_F()
92 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); in HWTEST_F() local
93 record in HWTEST_F()
[all...]
H A Dnotification_slot_filter_test.cpp83 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); in HWTEST_F() local
84 ErrCode result = notificationSlotFilter.OnPublish(record); in HWTEST_F()
97 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); in HWTEST_F() local
98 record->request = new NotificationRequest(); in HWTEST_F()
99 record->notification = new Notification(record->request); in HWTEST_F()
100 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
101 notificationSlotFilter.OnPublish(record); in HWTEST_F()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
H A Dwrite_controller.cpp69 struct EventWroteRecord record; member
86 EventWroteRecord record; in Get() local
88 return record; in Get()
91 return key2Index_[key].record; in Get()
94 void Put(uint64_t key, struct EventWroteRecord record) in Put() argument
98 key2Index_[key].record = record; in Put()
109 .record = record in Put()
141 auto record in CheckLimitWritingEvent() local
[all...]
/base/hiviewdfx/hisysevent/test/moduletest/common/
H A Dhisysevent_manager_c_test.cpp76 void RecordBaseParamPrint(const HiSysEventRecord& record) in RecordBaseParamPrint() argument
82 record.domain, record.eventName, record.type, in RecordBaseParamPrint()
83 record.tz, record.time, record.pid, record.tid, record.uid, in RecordBaseParamPrint()
84 record in RecordBaseParamPrint()
92 HiSysEventRecord record = records[i]; OnQueryTest() local
125 OnEventTest(HiSysEventRecordC record) OnEventTest() argument
173 RecordParamNameTest(const HiSysEventRecord& record, const std::map<std::string, std::string>& recordData) RecordParamNameTest() argument
186 RecordParamIntValueTest(const HiSysEventRecord& record, const std::string& name, int64_t value) RecordParamIntValueTest() argument
194 RecordParamUintValueTest(const HiSysEventRecord& record, const std::string& name, uint64_t value) RecordParamUintValueTest() argument
202 RecordParamDouValueTest(const HiSysEventRecord& record, const std::string& name, double value) RecordParamDouValueTest() argument
210 RecordParamStrValueTest(const HiSysEventRecord& record, const std::string& name, const std::string& value) RecordParamStrValueTest() argument
219 RecordParamIntValuesTest(const HiSysEventRecord& record, const std::string& name, const std::vector<int64_t>& values) RecordParamIntValuesTest() argument
233 RecordParamUintValuesTest(const HiSysEventRecord& record, const std::string& name, const std::vector<uint64_t>& values) RecordParamUintValuesTest() argument
247 RecordParamDouValuesTest(const HiSysEventRecord& record, const std::string& name, const std::vector<double>& values) RecordParamDouValuesTest() argument
261 RecordParamStrValuesTest(const HiSysEventRecord& record, const std::string& name, const std::vector<std::string>& values) RecordParamStrValuesTest() argument
274 RecordParamNameInvalidTest(const HiSysEventRecord& record) RecordParamNameInvalidTest() argument
282 RecordParamIntValueInvalidTest(const HiSysEventRecord& record, const std::string& name, int expRes) RecordParamIntValueInvalidTest() argument
289 RecordParamUintValueInvalidTest(const HiSysEventRecord& record, const std::string& name, int expRes) RecordParamUintValueInvalidTest() argument
296 RecordParamDouValueInvalidTest(const HiSysEventRecord& record, const std::string& name, int expRes) RecordParamDouValueInvalidTest() argument
303 RecordParamStrValueInvalidTest(const HiSysEventRecord& record, const std::string& name, int expRes) RecordParamStrValueInvalidTest() argument
310 RecordParamIntValuesInvalidTest(const HiSysEventRecord& record, const std::string& name, int expRes) RecordParamIntValuesInvalidTest() argument
318 RecordParamUintValuesInvalidTest(const HiSysEventRecord& record, const std::string& name, int expRes) RecordParamUintValuesInvalidTest() argument
326 RecordParamDouValuesInvalidTest(const HiSysEventRecord& record, const std::string& name, int expRes) RecordParamDouValuesInvalidTest() argument
334 RecordParamStrValuesInvalidTest(const HiSysEventRecord& record, const std::string& name, int expRes) RecordParamStrValuesInvalidTest() argument
980 HiSysEventRecord record; HWTEST_F() local
1026 HiSysEventRecord record; HWTEST_F() local
1061 HiSysEventRecord record; HWTEST_F() local
1091 struct HiSysEventRecord record; HWTEST_F() local
[all...]
/base/telephony/state_registry/services/src/
H A Dtelephony_state_registry_service.cpp134 TelephonyStateRegistryRecord record = stateRecords_[i]; in UpdateCellularDataConnectState() local
135 if (record.IsExistStateListener(TelephonyObserverBroker::OBSERVER_MASK_DATA_CONNECTION_STATE) && in UpdateCellularDataConnectState()
136 (record.slotId_ == slotId) && record.telephonyObserver_ != nullptr) { in UpdateCellularDataConnectState()
139 TELEPHONY_EXT_WRAPPER.onCellularDataConnectStateUpdated_(slotId, record, networkTypeExt); in UpdateCellularDataConnectState()
140 record.telephonyObserver_->OnCellularDataConnectStateUpdated(slotId, dataState, networkTypeExt); in UpdateCellularDataConnectState()
142 record.telephonyObserver_->OnCellularDataConnectStateUpdated(slotId, dataState, networkType); in UpdateCellularDataConnectState()
165 TelephonyStateRegistryRecord record = stateRecords_[i]; in UpdateCellularDataFlow() local
166 if (record.IsExistStateListener(TelephonyObserverBroker::OBSERVER_MASK_DATA_FLOW) && in UpdateCellularDataFlow()
167 (record in UpdateCellularDataFlow()
187 TelephonyStateRegistryRecord record = stateRecords_[i]; UpdateCallState() local
221 TelephonyStateRegistryRecord record = stateRecords_[i]; UpdateCallStateForSlotId() local
250 TelephonyStateRegistryRecord record = stateRecords_[i]; UpdateSimState() local
275 TelephonyStateRegistryRecord record = stateRecords_[i]; UpdateSignalInfo() local
307 TelephonyStateRegistryRecord record = stateRecords_[i]; UpdateCellInfo() local
375 TelephonyStateRegistryRecord record = stateRecords_[i]; UpdateCfuIndicator() local
395 TelephonyStateRegistryRecord record = stateRecords_[i]; UpdateIccAccount() local
420 TelephonyStateRegistryRecord record = stateRecords_[i]; UpdateVoiceMailMsgIndicator() local
467 TelephonyStateRegistryRecord record; RegisterStateChange() local
542 GetCallIncomingNumberForSlotId( TelephonyStateRegistryRecord record, int32_t slotId) GetCallIncomingNumberForSlotId() argument
552 UpdateData(const TelephonyStateRegistryRecord &record) UpdateData() argument
[all...]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
H A Dhisysevent_record_c.h49 const HiSysEventRecordC* record, char*** params, size_t* len);
51 const HiSysEventRecordC* record, const char* name, int64_t* value);
53 const HiSysEventRecordC* record, const char* name, uint64_t* value);
55 const HiSysEventRecordC* record, const char* name, double* value);
57 const HiSysEventRecordC* record, const char* name, char** value);
59 const HiSysEventRecordC* record, const char* name, int64_t** value, size_t* len);
61 const HiSysEventRecordC* record, const char* name, uint64_t** value, size_t* len);
63 const HiSysEventRecordC* record, const char* name, double** value, size_t* len);
65 const HiSysEventRecordC* record, const char* name, char*** value, size_t* len);
/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Ddb_helper.cpp35 auto record = set.Next(); in GetResultMap() local
36 std::string key = record->domain_ + "-" + record->eventName_; in GetResultMap()
38 std::string packageName = record->GetEventValue(FreezeCommon::EVENT_PACKAGE_NAME); in GetResultMap()
40 record->GetEventValue(FreezeCommon::EVENT_PROCESS_NAME) : packageName; in GetResultMap()
41 long pid = record->GetEventIntValue(FreezeCommon::EVENT_PID); in GetResultMap()
42 pid = pid ? pid : record->GetPid(); in GetResultMap()
49 long uid = record->GetEventIntValue(FreezeCommon::EVENT_UID); in GetResultMap()
50 uid = uid ? uid : record->GetUid(); in GetResultMap()
51 long tid = std::strtol(record in GetResultMap()
[all...]
/base/notification/common_event_service/services/src/
H A Dcommon_event_sticky_manager.cpp89 for (auto record : records) { in DumpState()
100 strftime(systime, sizeof(char) * LENGTH, "%Y%m%d %I:%M %p", &record->recordTime); in DumpState()
103 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()
110 for (auto permissionVec : record->publishInfo->GetSubscriberPermissions()) { in DumpState()
122 if (record->publishInfo->IsSticky()) { in DumpState()
129 if (record->publishInfo->IsOrdered()) { in DumpState()
134 std::string isSystemEvent = record->isSystemEvent ? "true" : "false"; in DumpState()
137 std::string action = "\t\tAction: " + record in DumpState()
198 UpdateStickyEventLocked(const std::string &event, const CommonEventRecordPtr &record) UpdateStickyEventLocked() argument
[all...]
/base/notification/common_event_service/services/test/unittest/
H A Dcommon_event_subscriber_manager_test.cpp104 * @tc.desc: test DumpDetailed function and record is nullptr.
114 SubscriberRecordPtr record = nullptr; in HWTEST_F() local
117 commonEventSubscriberManager->DumpDetailed(title, record, format, dumpInfo); in HWTEST_F()
123 * @tc.desc: test DumpDetailed function and record->eventSubscribeInfo is nullptr.
133 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); in HWTEST_F() local
134 record->eventSubscribeInfo = nullptr; in HWTEST_F()
137 commonEventSubscriberManager->DumpDetailed(title, record, format, dumpInfo); in HWTEST_F()
153 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); in HWTEST_F() local
155 record->eventSubscribeInfo = std::make_shared<CommonEventSubscribeInfo>(matchingSkills_); in HWTEST_F()
157 record in HWTEST_F()
176 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); HWTEST_F() local
210 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); HWTEST_F() local
233 SubscriberRecordPtr record = nullptr; HWTEST_F() local
250 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); HWTEST_F() local
402 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); HWTEST_F() local
425 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); HWTEST_F() local
468 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); HWTEST_F() local
494 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); HWTEST_F() local
540 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); HWTEST_F() local
598 std::shared_ptr<CommonEventRecord> record = nullptr; HWTEST_F() local
613 std::shared_ptr<CommonEventRecord> record = nullptr; HWTEST_F() local
[all...]
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/
H A Dcommon_event_control_manager_branch_test.cpp61 * @tc.desc: test PublishStickyCommonEvent function record.first is nullptr and record.second is nullptr.
584 * @tc.desc: test DumpStateByCommonEventRecord and record->userId is UNDEFINED_USER.
593 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); in HWTEST_F() local
594 record->userId = UNDEFINED_USER; in HWTEST_F()
596 record->publishInfo = publishInfo; in HWTEST_F()
598 record->commonEventData = commonEventData; in HWTEST_F()
600 commonEventControlManager->DumpStateByCommonEventRecord(record, dumpInfo); in HWTEST_F()
606 * @tc.desc: test DumpStateByCommonEventRecord and record->userId is default.
615 std::shared_ptr<OrderedEventRecord> record in HWTEST_F() local
637 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); HWTEST_F() local
668 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); HWTEST_F() local
692 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); HWTEST_F() local
717 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); HWTEST_F() local
742 HistoryEventRecord record; HWTEST_F() local
760 HistoryEventRecord record; HWTEST_F() local
778 HistoryEventRecord record; HWTEST_F() local
800 HistoryEventRecord record; HWTEST_F() local
819 HistoryEventRecord record; HWTEST_F() local
838 HistoryEventRecord record; HWTEST_F() local
857 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); HWTEST_F() local
874 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); HWTEST_F() local
896 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); HWTEST_F() local
918 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); HWTEST_F() local
940 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); HWTEST_F() local
962 HistoryEventRecord record; HWTEST_F() local
984 HistoryEventRecord record; HWTEST_F() local
1006 HistoryEventRecord record; HWTEST_F() local
[all...]
/base/hiviewdfx/hiview/plugins/event_store/event_export/database/adapter/
H A Dexport_db_storage.cpp89 void ExportDbStorage::InsertExportDetailRecord(ExportDetailRecord& record) in InsertExportDetailRecord() argument
92 bucket.PutString(COLUMN_MODULE_NAME, record.moduleName); in InsertExportDetailRecord()
93 bucket.PutLong(COLUMN_EXPORT_ENABLED_SEQ, record.exportEnabledSeq); in InsertExportDetailRecord()
94 bucket.PutLong(COLUMN_EXPORTED_MAX_SEQ, record.exportedMaxSeq); in InsertExportDetailRecord()
97 HIVIEW_LOGE("failed to insert record into %{public}s table.", MODULE_EXPORT_DETAILS_TABLE_NAME); in InsertExportDetailRecord()
101 void ExportDbStorage::UpdateExportEnabledSeq(ExportDetailRecord& record) in UpdateExportEnabledSeq() argument
103 UpdateExportDetailRecordSeq(record, COLUMN_EXPORT_ENABLED_SEQ, record.exportEnabledSeq); in UpdateExportEnabledSeq()
106 void ExportDbStorage::UpdateExportedMaxSeq(ExportDetailRecord& record) in UpdateExportedMaxSeq() argument
108 UpdateExportDetailRecordSeq(record, COLUMN_EXPORTED_MAX_SE in UpdateExportedMaxSeq()
111 QueryExportDetailRecord(const std::string& moduleName, ExportDetailRecord& record) QueryExportDetailRecord() argument
168 UpdateExportDetailRecordSeq(ExportDetailRecord& record, const std::string& seqName, int64_t seqValue) UpdateExportDetailRecordSeq() argument
[all...]

Completed in 17 milliseconds

123456