/base/notification/distributed_notification_service/services/ans/src/ |
D | notification_slot_filter.cpp | 30 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->notification->SetVibrationStyle(record->slot->GetVibrationStyle()); in OnPublish() 44 record->notification->SetEnableVibration(false); in OnPublish() [all …]
|
D | notification_subscriber_manager.cpp | 232 std::shared_ptr<SubscriberRecord> record = FindSubscriberRecord(object); in OnRemoteDied() local 233 if (record != nullptr) { in OnRemoteDied() 235 subscriberRecordList_.remove(record); in OnRemoteDied() 272 std::shared_ptr<SubscriberRecord> record = std::make_shared<SubscriberRecord>(); in CreateSubscriberRecord() local 273 if (record != nullptr) { in CreateSubscriberRecord() 274 record->subscriber = subscriber; in CreateSubscriberRecord() 276 return record; in CreateSubscriberRecord() 280 std::shared_ptr<SubscriberRecord> &record, const sptr<NotificationSubscribeInfo> &subscribeInfo) in AddRecordInfo() argument 283 record->bundleList_.clear(); in AddRecordInfo() 284 record->subscribedAll = true; in AddRecordInfo() [all …]
|
D | permission_filter.cpp | 31 ErrCode PermissionFilter::OnPublish(const std::shared_ptr<NotificationRecord> &record) in OnPublish() argument 35 …NotificationPreferences::GetInstance().GetNotificationsEnabledForBundle(record->bundleOption, enab… in OnPublish() 40 enable = bundleManager->CheckApiCompatibility(record->bundleOption); in OnPublish() 49 if (record->notification->GetBundleName() != record->notification->GetCreateBundle()) { in OnPublish()
|
D | advanced_notification_service.cpp | 156 inline ErrCode AssignValidNotificationSlot(const std::shared_ptr<NotificationRecord> &record) in AssignValidNotificationSlot() argument 159 NotificationConstant::SlotType slotType = record->request->GetSlotType(); in AssignValidNotificationSlot() 160 …ErrCode result = NotificationPreferences::GetInstance().GetNotificationSlot(record->bundleOption, … in AssignValidNotificationSlot() 166 … result = NotificationPreferences::GetInstance().AddNotificationSlots(record->bundleOption, slots); in AssignValidNotificationSlot() 170 record->slot = slot; in AssignValidNotificationSlot() 412 …cedNotificationService::AssignToNotificationList(const std::shared_ptr<NotificationRecord> &record) in AssignToNotificationList() argument 415 if (!IsNotificationExists(record->notification->GetKey())) { in AssignToNotificationList() 416 result = FlowControl(record); in AssignToNotificationList() 418 if (record->request->IsAlertOneTime()) { in AssignToNotificationList() 419 record->notification->SetEnableLight(false); in AssignToNotificationList() [all …]
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/ |
D | hisysevent_record_c.cpp | 26 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() 71 int GetParamValues(const HiSysEventRecordC& record, const char* name, char*** value, size_t& len) in GetParamValues() argument [all …]
|
/base/hiviewdfx/hisysevent/test/fuzztest/common/hisyseventmanager_fuzzer/ |
D | hisyseventmanager_fuzzer.cpp | 39 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.GetPid(); in HiSysEventRecordTest() [all …]
|
/base/security/access_token/services/privacymanager/src/record/ |
D | permission_record.cpp | 22 void PermissionRecord::TranslationIntoGenericValues(const PermissionRecord& record, GenericValues& … in TranslationIntoGenericValues() argument 24 values.Put(PrivacyFiledConst::FIELD_TOKEN_ID, static_cast<int32_t>(record.tokenId)); in TranslationIntoGenericValues() 25 values.Put(PrivacyFiledConst::FIELD_OP_CODE, record.opCode); in TranslationIntoGenericValues() 26 values.Put(PrivacyFiledConst::FIELD_STATUS, record.status); in TranslationIntoGenericValues() 27 values.Put(PrivacyFiledConst::FIELD_TIMESTAMP, record.timestamp); in TranslationIntoGenericValues() 28 values.Put(PrivacyFiledConst::FIELD_ACCESS_DURATION, record.accessDuration); in TranslationIntoGenericValues() 29 values.Put(PrivacyFiledConst::FIELD_ACCESS_COUNT, record.accessCount); in TranslationIntoGenericValues() 30 values.Put(PrivacyFiledConst::FIELD_REJECT_COUNT, record.rejectCount); in TranslationIntoGenericValues() 33 …ssionRecord::TranslationIntoPermissionRecord(const GenericValues& values, PermissionRecord& record) in TranslationIntoPermissionRecord() argument 35 record.tokenId = values.GetInt(PrivacyFiledConst::FIELD_TOKEN_ID); in TranslationIntoPermissionRecord() [all …]
|
D | permission_record_manager.cpp | 77 void PermissionRecordManager::AddRecord(const PermissionRecord& record) in AddRecord() argument 82 record.tokenId, record.opCode, record.status, record.timestamp); in AddRecord() 83 PermissionUsedRecordCache::GetInstance().AddRecordToBuffer(record); in AddRecord() 87 int32_t successCount, int32_t failCount, PermissionRecord& record) in GetPermissionRecord() argument 100 record.status = PERM_INACTIVE; in GetPermissionRecord() 102 record.status = GetAppStatus(tokenId); in GetPermissionRecord() 104 record.tokenId = tokenId; in GetPermissionRecord() 105 record.accessCount = successCount; in GetPermissionRecord() 106 record.rejectCount = failCount; in GetPermissionRecord() 107 record.opCode = opCode; in GetPermissionRecord() [all …]
|
D | permission_used_record_cache.cpp | 43 void PermissionUsedRecordCache::AddRecordToBuffer(const PermissionRecord& record) in AddRecordToBuffer() argument 46 nextPersistTimestamp_ = record.timestamp + INTERVAL; in AddRecordToBuffer() 51 PermissionRecord mergedRecord = record; in AddRecordToBuffer() 59 if ((record.timestamp - curFindMergePos->record.timestamp) >= INTERVAL) { in AddRecordToBuffer() 62 } else if (curFindMergePos->record.tokenId == record.tokenId && in AddRecordToBuffer() 63 record.opCode == curFindMergePos->record.opCode && in AddRecordToBuffer() 64 record.status == curFindMergePos->record.status && in AddRecordToBuffer() 65 (record.timestamp - curFindMergePos->record.timestamp) <= Constant::PRECISE) { in AddRecordToBuffer() 83 void PermissionUsedRecordCache::MergeRecord(PermissionRecord& record, in MergeRecord() argument 86 record.accessDuration += curFindMergePos->record.accessDuration; in MergeRecord() [all …]
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
D | permission_filter_test.cpp | 64 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); variable 65 record->bundleOption = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID); 66 record->request = new NotificationRequest(); 67 record->request->SetOwnerBundleName(TEST_DEFUALT_BUNDLE); 68 record->notification = new Notification(record->request); 69 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); 70 EXPECT_EQ(permissionFilter.OnPublish(record), ERR_OK); 92 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); variable 93 record->bundleOption = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID); 94 record->request = new NotificationRequest(); [all …]
|
D | notification_slot_filter_test.cpp | 83 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); variable 84 ErrCode result = notificationSlotFilter.OnPublish(record); 97 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); variable 98 record->request = new NotificationRequest(); 99 record->notification = new Notification(record->request); 100 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); 101 notificationSlotFilter.OnPublish(record);
|
/base/hiviewdfx/hisysevent/test/moduletest/common/ |
D | hisysevent_manager_c_test.cpp | 71 void RecordBaseParamPrint(const HiSysEventRecord& record) in RecordBaseParamPrint() argument 77 record.domain, record.eventName, record.type, in RecordBaseParamPrint() 78 record.tz, record.time, record.pid, record.tid, record.uid, in RecordBaseParamPrint() 79 record.traceId, record.spandId, record.pspanId, in RecordBaseParamPrint() 80 record.level, record.tag == nullptr ? "null" : record.tag); in RecordBaseParamPrint() 87 HiSysEventRecord record = records[i]; in OnQueryTest() local 88 ASSERT_EQ(strcmp(record.domain, TEST_DOMAIN), 0); in OnQueryTest() 89 ASSERT_TRUE(strlen(record.eventName) > 0); in OnQueryTest() 90 ASSERT_TRUE(strlen(record.tz) > 0); in OnQueryTest() 91 ASSERT_TRUE(record.type > 0); in OnQueryTest() [all …]
|
/base/telephony/state_registry/services/src/ |
D | telephony_state_registry_service.cpp | 111 TelephonyStateRegistryRecord record = stateRecords_[i]; in UpdateCellularDataConnectState() local 112 … if (record.IsExistStateListener(TelephonyObserverBroker::OBSERVER_MASK_DATA_CONNECTION_STATE) && in UpdateCellularDataConnectState() 113 (record.slotId_ == slotId) && record.telephonyObserver_ != nullptr) { in UpdateCellularDataConnectState() 114 … record.telephonyObserver_->OnCellularDataConnectStateUpdated(slotId, dataState, networkType); in UpdateCellularDataConnectState() 136 TelephonyStateRegistryRecord record = stateRecords_[i]; in UpdateCellularDataFlow() local 137 if (record.IsExistStateListener(TelephonyObserverBroker::OBSERVER_MASK_DATA_FLOW) && in UpdateCellularDataFlow() 138 (record.slotId_ == slotId) && record.telephonyObserver_ != nullptr) { in UpdateCellularDataFlow() 139 record.telephonyObserver_->OnCellularDataFlowUpdated(slotId, flowData); in UpdateCellularDataFlow() 159 TelephonyStateRegistryRecord record = stateRecords_[i]; in UpdateCallState() local 160 if (record.IsExistStateListener(TelephonyObserverBroker::OBSERVER_MASK_CALL_STATE) && in UpdateCallState() [all …]
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/ |
D | hisysevent_record_c.h | 49 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/ |
D | db_helper.cpp | 50 auto record = set.Next(); in SelectEventFromDB() local 52 std::string packageName = record->GetEventValue(FreezeCommon::EVENT_PACKAGE_NAME); in SelectEventFromDB() 54 record->GetEventValue(FreezeCommon::EVENT_PROCESS_NAME) : packageName; in SelectEventFromDB() 61 long pid = record->GetEventIntValue(FreezeCommon::EVENT_PID); in SelectEventFromDB() 62 pid = pid ? pid : record->GetPid(); in SelectEventFromDB() 63 long uid = record->GetEventIntValue(FreezeCommon::EVENT_UID); in SelectEventFromDB() 64 uid = uid ? uid : record->GetUid(); in SelectEventFromDB() 65 … long tid = std::strtoul(record->GetEventValue(EventStore::EventCol::TID).c_str(), nullptr, 0); in SelectEventFromDB() 68 .InitSeq(record->GetSeq()) in SelectEventFromDB() 71 .InitTimestamp(record->happenTime_) in SelectEventFromDB() [all …]
|
/base/notification/common_event_service/services/src/ |
D | common_event_sticky_manager.cpp | 89 for (auto record : records) { in DumpState() local 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->commonEventData->GetWant().GetAction() + "\n"; in DumpState() [all …]
|
D | common_event_subscriber_manager.cpp | 61 auto record = std::make_shared<EventSubscriberRecord>(); in InsertSubscriber() local 62 if (record == nullptr) { in InsertSubscriber() 67 record->eventSubscribeInfo = eventSubscribeInfo; in InsertSubscriber() 68 record->commonEventListener = commonEventListener; in InsertSubscriber() 69 record->recordTime = recordTime; in InsertSubscriber() 70 record->eventRecordInfo = eventRecordInfo; in InsertSubscriber() 76 if (!InsertSubscriberRecordLocked(events, record)) { in InsertSubscriber() 80 return record; in InsertSubscriber() 128 …const std::string &title, const SubscriberRecordPtr &record, const std::string format, std::string… in DumpDetailed() argument 130 if (record == nullptr || record->eventSubscribeInfo == nullptr) { in DumpDetailed() [all …]
|
D | common_event_control_manager.cpp | 102 for (auto record : frozenEventRecords) { in PublishAllFreezeCommonEvents() local 103 PublishFrozenEventsInner(record.second); in PublishAllFreezeCommonEvents() 110 for (auto record : frozenRecords) { in PublishFrozenEventsInner() local 111 for (auto vec : record.second) { in PublishFrozenEventsInner() 112 if (!record.first || !vec) { in PublishFrozenEventsInner() 117 EventSubscriberRecord subscriberRecord = *(record.first); in PublishFrozenEventsInner() 386 HistoryEventRecord record; in EnqueueHistoryEventRecord() local 387 record.want = eventRecordPtr->commonEventData->GetWant(); in EnqueueHistoryEventRecord() 388 record.code = eventRecordPtr->commonEventData->GetCode(); in EnqueueHistoryEventRecord() 389 record.data = eventRecordPtr->commonEventData->GetData(); in EnqueueHistoryEventRecord() [all …]
|
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/ |
D | common_event_control_manager_branch_test.cpp | 560 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); in HWTEST_F() local 561 record->userId = UNDEFINED_USER; in HWTEST_F() 563 record->publishInfo = publishInfo; in HWTEST_F() 565 record->commonEventData = commonEventData; in HWTEST_F() 567 commonEventControlManager->DumpStateByCommonEventRecord(record, dumpInfo); in HWTEST_F() 582 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); in HWTEST_F() local 583 record->userId = 100; in HWTEST_F() 585 record->publishInfo = publishInfo; in HWTEST_F() 587 record->commonEventData = commonEventData; in HWTEST_F() 589 commonEventControlManager->DumpStateByCommonEventRecord(record, dumpInfo); in HWTEST_F() [all …]
|
/base/notification/common_event_service/services/test/unittest/ |
D | common_event_subscriber_manager_test.cpp | 114 SubscriberRecordPtr record = nullptr; in HWTEST_F() local 117 commonEventSubscriberManager->DumpDetailed(title, record, format, dumpInfo); in HWTEST_F() 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->eventSubscribeInfo->SetUserId(userId); in HWTEST_F() 160 commonEventSubscriberManager->DumpDetailed(title, record, format, dumpInfo); in HWTEST_F() 176 SubscriberRecordPtr record = std::make_shared<EventSubscriberRecord>(); in HWTEST_F() local [all …]
|
D | common_event_control_manager_test.cpp | 290 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); in HWTEST_F() local 291 record->userId = ALL_USER + 1; in HWTEST_F() 292 commonEventControlManager->unorderedEventQueue_.emplace_back(record); in HWTEST_F() 311 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); in HWTEST_F() local 312 record->userId = ALL_USER + 2; in HWTEST_F() 313 commonEventControlManager->unorderedEventQueue_.emplace_back(record); in HWTEST_F() 332 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); in HWTEST_F() local 334 record->commonEventData = commonEventData; in HWTEST_F() 335 commonEventControlManager->unorderedEventQueue_.emplace_back(record); in HWTEST_F() 354 std::shared_ptr<OrderedEventRecord> record = std::make_shared<OrderedEventRecord>(); in HWTEST_F() local [all …]
|
/base/customization/enterprise_device_management/framework/extension/src/ |
D | enterprise_admin_extension.cpp | 40 void EnterpriseAdminExtension::Init(const std::shared_ptr<AppExecFwk::AbilityLocalRecord>& record, in Init() argument 46 ExtensionBase<EnterpriseAdminExtensionContext>::Init(record, application, handler, token); in Init() 50 const std::shared_ptr<AppExecFwk::AbilityLocalRecord>& record, in CreateAndInitContext() argument 56 …ExtensionBase<EnterpriseAdminExtensionContext>::CreateAndInitContext(record, application, handler,… in CreateAndInitContext() 57 if (record == nullptr) { in CreateAndInitContext()
|
/base/notification/common_event_service/frameworks/extension/src/ |
D | static_subscriber_extension.cpp | 41 void StaticSubscriberExtension::Init(const std::shared_ptr<AbilityLocalRecord>& record, in Init() argument 47 ExtensionBase<StaticSubscriberExtensionContext>::Init(record, application, handler, token); in Init() 51 const std::shared_ptr<AbilityLocalRecord>& record, in CreateAndInitContext() argument 57 …ExtensionBase<StaticSubscriberExtensionContext>::CreateAndInitContext(record, application, handler… in CreateAndInitContext() 58 if (record == nullptr) { in CreateAndInitContext()
|
/base/sensors/miscdevice/services/miscdevice_service/src/ |
D | miscdevice_dump.cpp | 141 auto record = dumpQueue_.front(); in DumpMiscdeviceRecord() local 142 dumpQueue_.push(record); in DumpMiscdeviceRecord() 144 VibrateInfo info = record.info; in DumpMiscdeviceRecord() 147 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord() 151 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord() 155 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord() 174 void MiscdeviceDump::UpdateRecordQueue(const VibrateRecord &record) in UpdateRecordQueue() argument 177 dumpQueue_.push(record); in UpdateRecordQueue() 185 VibrateRecord record; in SaveVibrateRecord() local 186 record.info = vibrateInfo; in SaveVibrateRecord() [all …]
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/ |
D | notification_subscriber_manager_branch_test.cpp | 149 std::shared_ptr<NotificationSubscriberManager::SubscriberRecord> record = variable 152 notificationSubscriberManager->AddRecordInfo(record, subscribeInfo); 179 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); variable 180 record->notification = nullptr; 181 record->request = nullptr; 182 advancedNotificationService.notificationList_.push_back(record); 197 std::shared_ptr<NotificationRecord> record = std::make_shared<NotificationRecord>(); variable 198 record->notification = new Notification(); 199 record->request = new NotificationRequest(); 200 advancedNotificationService.notificationList_.push_back(record); [all …]
|