Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 88) sorted by relevance

1234

/base/notification/distributed_notification_service/services/ans/src/
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->notification->SetVibrationStyle(record->slot->GetVibrationStyle()); in OnPublish()
44 record->notification->SetEnableVibration(false); in OnPublish()
[all …]
Dnotification_subscriber_manager.cpp184 std::shared_ptr<SubscriberRecord> record = FindSubscriberRecord(object); in OnRemoteDied() local
185 if (record != nullptr) { in OnRemoteDied()
187 subscriberRecordList_.remove(record); in OnRemoteDied()
222 std::shared_ptr<SubscriberRecord> record = std::make_shared<SubscriberRecord>(); in CreateSubscriberRecord() local
223 if (record != nullptr) { in CreateSubscriberRecord()
224 record->subscriber = subscriber; in CreateSubscriberRecord()
226 return record; in CreateSubscriberRecord()
230 std::shared_ptr<SubscriberRecord> &record, const sptr<NotificationSubscribeInfo> &subscribeInfo) in AddRecordInfo() argument
233 record->bundleList_.clear(); in AddRecordInfo()
234 record->subscribedAll = true; in AddRecordInfo()
[all …]
Dadvanced_notification_service.cpp173 inline ErrCode AssignValidNotificationSlot(const std::shared_ptr<NotificationRecord> &record) in AssignValidNotificationSlot() argument
176 NotificationConstant::SlotType slotType = record->request->GetSlotType(); in AssignValidNotificationSlot()
177 …ErrCode result = NotificationPreferences::GetInstance().GetNotificationSlot(record->bundleOption, … in AssignValidNotificationSlot()
183 … result = NotificationPreferences::GetInstance().AddNotificationSlots(record->bundleOption, slots); in AssignValidNotificationSlot()
187 record->slot = slot; in AssignValidNotificationSlot()
377 …cedNotificationService::AssignToNotificationList(const std::shared_ptr<NotificationRecord> &record) in AssignToNotificationList() argument
380 if (!IsNotificationExists(record->notification->GetKey())) { in AssignToNotificationList()
381 result = FlowControl(record); in AssignToNotificationList()
383 if (record->request->IsAlertOneTime()) { in AssignToNotificationList()
384 record->notification->SetEnableLight(false); in AssignToNotificationList()
[all …]
Dpermission_filter.cpp31 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()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
Dhisysevent_record_c.cpp26 int GetParamValue(const HiSysEventRecord& 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 HiSysEventRecord& 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 HiSysEventRecord& 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 HiSysEventRecord& record, const char* name, char*** value, size_t& len) in GetParamValues() argument
[all …]
/base/hiviewdfx/hisysevent/test/fuzztest/common/hisyseventmanager_fuzzer/
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.GetPid(); in HiSysEventRecordTest()
[all …]
/base/security/access_token/services/privacymanager/src/record/
Dpermission_record.cpp22 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 …]
Dpermission_used_record_cache.cpp43 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 …]
Dpermission_record_manager.cpp76 void PermissionRecordManager::AddRecord(const PermissionRecord& record) in AddRecord() argument
81 record.tokenId, record.opCode, record.status, record.timestamp); in AddRecord()
82 PermissionUsedRecordCache::GetInstance().AddRecordToBuffer(record); in AddRecord()
86 int32_t successCount, int32_t failCount, PermissionRecord& record) in GetPermissionRecord() argument
99 record.status = PERM_INACTIVE; in GetPermissionRecord()
101 record.status = GetAppStatus(tokenId); in GetPermissionRecord()
103 record.tokenId = tokenId; in GetPermissionRecord()
104 record.accessCount = successCount; in GetPermissionRecord()
105 record.rejectCount = failCount; in GetPermissionRecord()
106 record.opCode = opCode; in GetPermissionRecord()
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dpermission_filter_test.cpp64 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 …]
Dnotification_slot_filter_test.cpp83 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/
Dhisysevent_manager_c_test.cpp71 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/service/src/
Dtelephony_state_registry_service.cpp106 TelephonyStateRegistryRecord record = stateRecords_[i]; in UpdateCellularDataConnectState() local
107 … if (record.IsExistStateListener(TelephonyObserverBroker::OBSERVER_MASK_DATA_CONNECTION_STATE) && in UpdateCellularDataConnectState()
108 (record.slotId_ == slotId) && record.telephonyObserver_ != nullptr) { in UpdateCellularDataConnectState()
109record.telephonyObserver_->OnCellularDataConnectStateUpdated(slotId, dataState, networkType); in UpdateCellularDataConnectState()
129 TelephonyStateRegistryRecord record = stateRecords_[i]; in UpdateCellularDataFlow() local
130 if (record.IsExistStateListener(TelephonyObserverBroker::OBSERVER_MASK_DATA_FLOW) && in UpdateCellularDataFlow()
131 (record.slotId_ == slotId) && record.telephonyObserver_ != nullptr) { in UpdateCellularDataFlow()
132 record.telephonyObserver_->OnCellularDataFlowUpdated(slotId, flowData); in UpdateCellularDataFlow()
154 TelephonyStateRegistryRecord record = stateRecords_[i]; in UpdateCallState() local
155 if (record.IsExistStateListener(TelephonyObserverBroker::OBSERVER_MASK_CALL_STATE) && in UpdateCallState()
[all …]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
Dhisysevent_record_c.h48 const HiSysEventRecord& record, char*** params, size_t& len);
50 const HiSysEventRecord& record, const char* name, int64_t& value);
52 const HiSysEventRecord& record, const char* name, uint64_t& value);
54 const HiSysEventRecord& record, const char* name, double& value);
56 const HiSysEventRecord& record, const char* name, char** value);
58 const HiSysEventRecord& record, const char* name, int64_t** value, size_t& len);
60 const HiSysEventRecord& record, const char* name, uint64_t** value, size_t& len);
62 const HiSysEventRecord& record, const char* name, double** value, size_t& len);
64 const HiSysEventRecord& record, const char* name, char*** value, size_t& len);
/base/notification/common_event_service/services/src/
Dcommon_event_sticky_manager.cpp89 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 …]
Dcommon_event_subscriber_manager.cpp60 auto record = std::make_shared<EventSubscriberRecord>(); in InsertSubscriber() local
61 if (record == nullptr) { in InsertSubscriber()
66 record->eventSubscribeInfo = eventSubscribeInfo; in InsertSubscriber()
67 record->commonEventListener = commonEventListener; in InsertSubscriber()
68 record->recordTime = recordTime; in InsertSubscriber()
69 record->eventRecordInfo = eventRecordInfo; in InsertSubscriber()
75 if (!InsertSubscriberRecordLocked(events, record)) { in InsertSubscriber()
79 return record; in InsertSubscriber()
127 …const std::string &title, const SubscriberRecordPtr &record, const std::string format, std::string… in DumpDetailed() argument
129 if (record == nullptr || record->eventSubscribeInfo == nullptr) { in DumpDetailed()
[all …]
Dcommon_event_control_manager.cpp102 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()
402 HistoryEventRecord record; in EnqueueHistoryEventRecord() local
403 record.want = eventRecordPtr->commonEventData->GetWant(); in EnqueueHistoryEventRecord()
404 record.code = eventRecordPtr->commonEventData->GetCode(); in EnqueueHistoryEventRecord()
405 record.data = eventRecordPtr->commonEventData->GetData(); in EnqueueHistoryEventRecord()
[all …]
/base/hiviewdfx/hiview/plugins/freeze_detector/
Ddb_helper.cpp54 auto record = set.Next(); in SelectEventFromDB() local
56 std::string domain = record->GetEventValue(EventStore::EventCol::DOMAIN); in SelectEventFromDB()
57 std::string stringId = record->GetEventValue(EventStore::EventCol::NAME); in SelectEventFromDB()
62 long pid = record->GetEventIntValue(FreezeCommon::EVENT_PID); in SelectEventFromDB()
63 pid = pid ? pid : record->GetPid(); in SelectEventFromDB()
64 long uid = record->GetEventIntValue(FreezeCommon::EVENT_UID); in SelectEventFromDB()
65 uid = uid ? uid : record->GetUid(); in SelectEventFromDB()
66 … long tid = std::strtoul(record->GetEventValue(EventStore::EventCol::TID).c_str(), nullptr, 0); in SelectEventFromDB()
69 .InitSeq(record->GetSeq()) in SelectEventFromDB()
72 .InitTimestamp(record->happenTime_) in SelectEventFromDB()
[all …]
/base/customization/enterprise_device_management/framework/extension/src/
Denterprise_admin_extension.cpp41 void EnterpriseAdminExtension::Init(const std::shared_ptr<AppExecFwk::AbilityLocalRecord>& record, in Init() argument
47 ExtensionBase<EnterpriseAdminExtensionContext>::Init(record, application, handler, token); in Init()
51 const std::shared_ptr<AppExecFwk::AbilityLocalRecord>& record, in CreateAndInitContext() argument
57 …ExtensionBase<EnterpriseAdminExtensionContext>::CreateAndInitContext(record, application, handler,… in CreateAndInitContext()
58 if (record == nullptr) { in CreateAndInitContext()
/base/sensors/miscdevice/services/miscdevice_service/src/
Dmiscdevice_dump.cpp139 auto record = dumpQueue_.front(); in DumpMiscdeviceRecord() local
140 dumpQueue_.push(record); in DumpMiscdeviceRecord()
142 VibrateInfo info = record.info; in DumpMiscdeviceRecord()
145 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord()
149 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord()
168 void MiscdeviceDump::UpdateRecordQueue(const VibrateRecord &record) in UpdateRecordQueue() argument
171 dumpQueue_.push(record); in UpdateRecordQueue()
179 VibrateRecord record; in SaveVibrateRecord() local
180 record.info = vibrateInfo; in SaveVibrateRecord()
181 DumpCurrentTime(record.startTime); in SaveVibrateRecord()
[all …]
/base/inputmethod/imf/frameworks/kits/extension/src/
Dinputmethod_extension.cpp42 void InputMethodExtension::Init(const std::shared_ptr<AbilityLocalRecord> &record, in Init() argument
47 ExtensionBase<InputMethodExtensionContext>::Init(record, application, handler, token); in Init()
51 …const std::shared_ptr<AbilityLocalRecord> &record, const std::shared_ptr<OHOSApplication> &applica… in CreateAndInitContext() argument
56 …ExtensionBase<InputMethodExtensionContext>::CreateAndInitContext(record, application, handler, tok… in CreateAndInitContext()
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Dwallpaper_extension.cpp44 void WallpaperExtension::Init(const std::shared_ptr<AbilityLocalRecord> &record, in Init() argument
50 ExtensionBase<WallpaperExtensionContext>::Init(record, application, handler, token); in Init()
55 const std::shared_ptr<AbilityLocalRecord> &record, in CreateAndInitContext() argument
62 …ExtensionBase<WallpaperExtensionContext>::CreateAndInitContext(record, application, handler, token… in CreateAndInitContext()
/base/security/access_token/interfaces/innerkits/nativetoken/src/
Dnativetoken_json_oper.c207 …int32_t UpdateStrArrayType(char* const strArr[], int32_t strNum, const char *strKey, cJSON *record) in UpdateStrArrayType() argument
228 if (cJSON_GetObjectItem(record, strKey) != NULL) { in UpdateStrArrayType()
229 if (!cJSON_ReplaceItemInObject(record, strKey, strArrJson)) { in UpdateStrArrayType()
235 if (!cJSON_AddItemToObject(record, strKey, strArrJson)) { in UpdateStrArrayType()
245 static uint32_t UpdateItemcontent(const NativeTokenList *tokenNode, cJSON *record) in UpdateItemcontent() argument
251 if (!cJSON_ReplaceItemInObject(record, APL_KEY_NAME, itemApl)) { in UpdateItemcontent()
257 … uint32_t ret = UpdateStrArrayType(tokenNode->dcaps, tokenNode->dcapsNum, DCAPS_KEY_NAME, record); in UpdateItemcontent()
263 ret = UpdateStrArrayType(tokenNode->perms, tokenNode->permsNum, PERMS_KEY_NAME, record); in UpdateItemcontent()
269 ret = UpdateStrArrayType(tokenNode->acls, tokenNode->aclsNum, ACLS_KEY_NAME, record); in UpdateItemcontent()
277 uint32_t UpdateGoalItemFromRecord(const NativeTokenList *tokenNode, cJSON *record) in UpdateGoalItemFromRecord() argument
[all …]
Dnativetoken.c173 cJSON *record = NULL; in ParseTokenInfo() local
183 record = cJSON_Parse(fileBuff); in ParseTokenInfo()
187 ret = GetTokenList(record); in ParseTokenInfo()
188 cJSON_Delete(record); in ParseTokenInfo()
364 cJSON *record = NULL; in SaveTokenIdToCfg() local
373 record = cJSON_CreateArray(); in SaveTokenIdToCfg()
375 record = cJSON_Parse(fileBuff); in SaveTokenIdToCfg()
380 if (record == NULL) { in SaveTokenIdToCfg()
387 cJSON_Delete(record); in SaveTokenIdToCfg()
390 cJSON_AddItemToArray(record, node); in SaveTokenIdToCfg()
[all …]
/base/msdp/device_status/services/native/src/
Ddevicestatus_dumper.cpp123 auto record = deviceStatusQueue_.front(); in DumpDevicestatusChanges() local
124 if (record == nullptr) { in DumpDevicestatusChanges()
128 deviceStatusQueue_.push(record); in DumpDevicestatusChanges()
131 record->startTime.c_str(), GetStatusType(record->data.type).c_str(), in DumpDevicestatusChanges()
132 GetDeviceState(record->data.value).c_str()); in DumpDevicestatusChanges()
285 auto record = std::make_shared<DeviceStatusRecord>(); in pushDeviceStatus() local
286 DumpCurrentTime(record->startTime); in pushDeviceStatus()
287 record->data = data; in pushDeviceStatus()
288 deviceStatusQueue_.push(record); in pushDeviceStatus()

1234