Home
last modified time | relevance | path

Searched refs:records (Results 1 - 25 of 40) sorted by relevance

12

/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
H A Dhisysevent_query_callback_c.cpp43 auto records = new(std::nothrow) HiSysEventRecordC[size]; in OnQuery() local
44 if (records == nullptr) { in OnQuery()
48 HiSysEventRecordConvertor::InitRecord(records[i]); in OnQuery()
49 if (HiSysEventRecordConvertor::ConvertRecord(sysEvents->at(i), records[i]) != 0) { in OnQuery()
51 HiSysEventRecordConvertor::DeleteRecords(&records, i + 1); // +1 for release the current record in OnQuery()
55 onQuery_(records, size); in OnQuery()
56 HiSysEventRecordConvertor::DeleteRecords(&records, size); in OnQuery()
H A Dhisysevent_record_convertor.cpp76 void HiSysEventRecordConvertor::DeleteRecords(HiSysEventRecordC** records, size_t len) in DeleteRecords() argument
78 if (records == nullptr || *records == nullptr) { in DeleteRecords()
81 auto realRs = *records; in DeleteRecords()
/base/hiviewdfx/hiview/plugins/performance/timer/
H A DSceneTimerOhImpl.cpp67 if (!records.empty()) { in Loop()
81 if (records.find(key) != records.end()) { in FillRecordAndNotify()
84 records.emplace(key, expireTs); in FillRecordAndNotify()
91 if (records.find(key) != records.end()) { in ValidateDuplication()
99 if (records.find(key) == records.end()) { in ValidateExistence()
114 for (std::map<int, long long>::iterator it = records.begin(); it != records in CheckRecordsAndTrigger()
[all...]
H A DSceneTimerOhImpl.h40 std::map<int, long long> records; member in OHOS::HiviewDFX::SceneTimerOhImpl
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/
H A Dhisysevent_rust_querier.cpp53 auto records = new(std::nothrow) HiSysEventRecordC[size]; in OnQuery() local
54 if (records == nullptr) { in OnQuery()
58 HiSysEventRecordConvertor::InitRecord(records[i]); in OnQuery()
59 if (HiSysEventRecordConvertor::ConvertRecord(sysEvents->at(i), records[i]) != 0) { in OnQuery()
61 HiSysEventRecordConvertor::DeleteRecords(&records, i + 1); // +1 for release the current record in OnQuery()
65 querier_->onQueryWrapperCb(querier_->onQueryRustCb, records, size); in OnQuery()
66 HiSysEventRecordConvertor::DeleteRecords(&records, size); in OnQuery()
/base/notification/common_event_service/services/test/unittest/
H A Dcommon_event_control_manager_test.cpp274 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
275 commonEventControlManager->GetUnorderedEventRecords(event, userId, records); in HWTEST_F()
292 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
296 commonEventControlManager->GetUnorderedEventRecords(event, userId, records); in HWTEST_F()
313 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
317 commonEventControlManager->GetUnorderedEventRecords(event, userId, records); in HWTEST_F()
334 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
339 commonEventControlManager->GetUnorderedEventRecords(event, userId, records); in HWTEST_F()
356 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
362 commonEventControlManager->GetUnorderedEventRecords(event, userId, records); in HWTEST_F()
379 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
402 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
420 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
441 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
462 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
484 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
507 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
530 std::list<HistoryEventRecord> records; HWTEST_F() local
548 std::list<HistoryEventRecord> records; HWTEST_F() local
569 std::list<HistoryEventRecord> records; HWTEST_F() local
590 std::list<HistoryEventRecord> records; HWTEST_F() local
611 std::list<HistoryEventRecord> records; HWTEST_F() local
[all...]
H A Dcommon_event_subscriber_manager_test.cpp383 std::vector<SubscriberRecordPtr> records; in HWTEST_F() local
384 commonEventSubscriberManager->GetSubscriberRecordsByEvent(event, userId, records); in HWTEST_F()
401 std::vector<SubscriberRecordPtr> records; in HWTEST_F() local
407 commonEventSubscriberManager->GetSubscriberRecordsByEvent(event, userId, records); in HWTEST_F()
424 std::vector<SubscriberRecordPtr> records; in HWTEST_F() local
431 commonEventSubscriberManager->GetSubscriberRecordsByEvent(event, userId, records); in HWTEST_F()
448 std::vector<SubscriberRecordPtr> records; in HWTEST_F() local
449 commonEventSubscriberManager->GetSubscriberRecordsByEvent(event, userId, records); in HWTEST_F()
466 std::vector<SubscriberRecordPtr> records; in HWTEST_F() local
475 commonEventSubscriberManager->GetSubscriberRecordsByEvent(event, userId, records); in HWTEST_F()
492 std::vector<SubscriberRecordPtr> records; HWTEST_F() local
539 std::vector<SubscriberRecordPtr> records; HWTEST_F() local
631 std::vector<std::shared_ptr<CommonEventRecord>> records; HWTEST_F() local
653 std::vector<std::shared_ptr<CommonEventRecord>> records; HWTEST_F() local
675 std::vector<std::shared_ptr<CommonEventRecord>> records; HWTEST_F() local
697 std::vector<std::shared_ptr<CommonEventRecord>> records; HWTEST_F() local
[all...]
H A Dcommon_event_sticky_test.cpp281 // make a vector of records in HWTEST_F()
282 std::vector<std::shared_ptr<CommonEventRecord>> records; in HWTEST_F() local
287 int result = stickyManagerPtr->FindStickyEvents(nullptr, records); in HWTEST_F()
295 * @tc.desc: No event would be pushed into common event records.
307 // make a vector of records in HWTEST_F()
308 std::vector<std::shared_ptr<CommonEventRecord>> records; in HWTEST_F() local
313 int result = stickyManagerPtr->FindStickyEvents(subscribeInfoPtr, records); in HWTEST_F()
321 * @tc.desc: Found events would be pushed into common event records.
333 // make a vector of records in HWTEST_F()
334 std::vector<std::shared_ptr<CommonEventRecord>> records; in HWTEST_F() local
532 std::vector<std::shared_ptr<CommonEventRecord>> records; HWTEST_F() local
[all...]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
H A Dhisysevent_base_query_callback.h38 auto records = std::make_shared<std::vector<HiSysEventRecord>>(); in OnQuery() local
39 for_each(sysEvents.cbegin(), sysEvents.cend(), [&records](const std::string& content) { in OnQuery()
40 records->emplace_back(HiSysEventRecord(content)); in OnQuery()
42 callback->OnQuery(records); in OnQuery()
H A Dhisysevent_query_callback_c.h22 using OnQueryFunc = void (*)(HiSysEventRecord records[], size_t size);
H A Dhisysevent_record_convertor.h30 static void DeleteRecords(HiSysEventRecordC** records, size_t len);
H A Dhisysevent_manager_c.h53 void (*OnQuery)(HiSysEventRecordC records[], size_t size);
/base/hiviewdfx/hiview/framework/native/unified_collection/graphic_memory/
H A Dgraphic_memory.cpp49 std::vector<MemoryRecord> records; in MemoryTrackerGetGLByPid() local
50 if (memtrack->GetDevMem(pid, MEMORY_TRACKER_TYPE_GL, records) != HDF_SUCCESS) { in MemoryTrackerGetGLByPid()
53 auto it = std::find_if(records.begin(), records.end(), [](const auto &record) -> bool { in MemoryTrackerGetGLByPid()
56 if (it == records.end()) { in MemoryTrackerGetGLByPid()
/base/hiviewdfx/hiview/plugins/event_store/event_export/database/adapter/
H A Dexport_db_storage.cpp123 std::shared_ptr<NativeRdb::ResultSet> records = dbStore_->Query(predicates, columns); in QueryExportDetailRecord() local
124 if (records == nullptr) { in QueryExportDetailRecord()
125 HIVIEW_LOGE("records is null"); in QueryExportDetailRecord()
128 if (records->GoToFirstRow() != NativeRdb::E_OK) { in QueryExportDetailRecord()
130 records->Close(); in QueryExportDetailRecord()
134 if (records->GetRow(entity) != NativeRdb::E_OK) { in QueryExportDetailRecord()
136 records->Close(); in QueryExportDetailRecord()
144 records->Close(); in QueryExportDetailRecord()
/base/notification/common_event_service/services/src/
H A Dcommon_event_sticky_manager.cpp77 std::vector<CommonEventRecordPtr> records; in DumpState() local
81 GetStickyCommonEventRecords(event, userId, records); in DumpState()
83 if (records.size() == 0) { in DumpState()
89 for (auto record : records) { in DumpState()
94 no = "Sticky Events:\tTotal " + std::to_string(records.size()) + " information\nNO " + no + "\n"; in DumpState()
218 const std::string &event, const int32_t &userId, std::vector<CommonEventRecordPtr> &records) in GetStickyCommonEventRecords()
223 records.emplace_back(record.second); in GetStickyCommonEventRecords()
232 records.emplace_back(recordItem->second); in GetStickyCommonEventRecords()
217 GetStickyCommonEventRecords( const std::string &event, const int32_t &userId, std::vector<CommonEventRecordPtr> &records) GetStickyCommonEventRecords() argument
H A Dcommon_event_subscriber_manager.cpp126 auto records = std::vector<SubscriberRecordPtr>(); in GetSubscriberRecords() local
128 GetSubscriberRecordsByWantLocked(eventRecord, records); in GetSubscriberRecords()
130 return records; in GetSubscriberRecords()
236 std::vector<SubscriberRecordPtr> records; in DumpState() local
239 GetSubscriberRecordsByEvent(event, userId, records); in DumpState()
241 if (records.size() == 0) { in DumpState()
247 for (auto record : records) { in DumpState()
251 title = "Subscribers:\tTotal " + std::to_string(records.size()) + " subscribers\nNO " + title + "\n"; in DumpState()
406 std::vector<SubscriberRecordPtr> &records) in GetSubscriberRecordsByWantLocked()
459 records in GetSubscriberRecordsByWantLocked()
405 GetSubscriberRecordsByWantLocked(const CommonEventRecord &eventRecord, std::vector<SubscriberRecordPtr> &records) GetSubscriberRecordsByWantLocked() argument
464 GetSubscriberRecordsByEvent( const std::string &event, const int32_t &userId, std::vector<SubscriberRecordPtr> &records) GetSubscriberRecordsByEvent() argument
[all...]
H A Dcommon_event_control_manager.cpp915 const std::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records) in GetUnorderedEventRecords()
919 records = unorderedEventQueue_; in GetUnorderedEventRecords()
923 records.emplace_back(vec); in GetUnorderedEventRecords()
929 records.emplace_back(vec); in GetUnorderedEventRecords()
935 records.emplace_back(vec); in GetUnorderedEventRecords()
942 const std::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records) in GetOrderedEventRecords()
946 records = orderedEventQueue_; in GetOrderedEventRecords()
950 records.emplace_back(vec); in GetOrderedEventRecords()
956 records.emplace_back(vec); in GetOrderedEventRecords()
962 records in GetOrderedEventRecords()
914 GetUnorderedEventRecords( const std::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records) GetUnorderedEventRecords() argument
941 GetOrderedEventRecords( const std::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records) GetOrderedEventRecords() argument
968 GetHistoryEventRecords( const std::string &event, const int32_t &userId, std::list<HistoryEventRecord> &records) GetHistoryEventRecords() argument
1348 std::vector<std::shared_ptr<OrderedEventRecord>> records; DumpState() local
1387 std::list<HistoryEventRecord> records; DumpHistoryState() local
[all...]
/base/account/os_account/services/accountmgr/src/appaccount/
H A Dapp_account_subscribe_manager.cpp106 auto records = std::vector<AppAccountSubscribeRecordPtr>(); in GetSubscribeRecords() local
110 return records; in GetSubscribeRecords()
115 return records; in GetSubscribeRecords()
124 return records; in GetSubscribeRecords()
129 return records; in GetSubscribeRecords()
132 records.emplace_back(*it); in GetSubscribeRecords()
135 return records; in GetSubscribeRecords()
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/
H A Dcommon_event_control_manager_branch_test.cpp306 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
315 commonEventControlManager->GetUnorderedEventRecords(event, userId, records); in HWTEST_F()
330 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
340 commonEventControlManager->GetUnorderedEventRecords(event, userId, records); in HWTEST_F()
355 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
365 commonEventControlManager->GetUnorderedEventRecords(event, userId, records); in HWTEST_F()
380 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
388 commonEventControlManager->GetOrderedEventRecords(event, userId, records); in HWTEST_F()
403 std::vector<std::shared_ptr<OrderedEventRecord>> records; in HWTEST_F() local
411 commonEventControlManager->GetOrderedEventRecords(event, userId, records); in HWTEST_F()
426 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
451 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
476 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
501 std::vector<std::shared_ptr<OrderedEventRecord>> records; HWTEST_F() local
526 std::list<HistoryEventRecord> records; HWTEST_F() local
547 std::list<HistoryEventRecord> records; HWTEST_F() local
570 std::list<HistoryEventRecord> records; HWTEST_F() local
[all...]
/base/notification/common_event_service/services/include/
H A Dcommon_event_control_manager.h175 const std::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records);
178 const std::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records);
181 const std::string &event, const int32_t &userId, std::list<HistoryEventRecord> &records);
H A Dcommon_event_sticky_manager.h36 * @param commonEventRecords Indicates the records of sticky common event.
86 const std::string &event, const int32_t &userId, std::vector<CommonEventRecordPtr> &records);
/base/telephony/core_service/test/fuzztest/simauthentication_fuzzer/
H A Dsimauthentication_fuzzer.cpp150 std::vector<std::string> records; in ParseOpl5g() local
151 records.push_back(fileData); in ParseOpl5g()
152 simFile->ParseOpl5g(records); in ParseOpl5g()
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
H A Dfold_event_cacher.cpp274 std::vector<AppEventRecord> records; in CountLifeCycleDuration() local
275 dbHelper_->QueryAppEventRecords(startIndex, dayStartTime, bundleName, records); in CountLifeCycleDuration()
277 CalCulateDuration(dayStartTime, records, durations); in CountLifeCycleDuration()
281 void FoldEventCacher::CalCulateDuration(uint64_t dayStartTime, std::vector<AppEventRecord>& records, in CalCulateDuration() argument
284 if (records.empty()) { in CalCulateDuration()
287 auto it = records.begin(); in CalCulateDuration()
296 for (; it != records.end(); it++) { in CalCulateDuration()
/base/hiviewdfx/hisysevent/test/unittest/rust/src/
H A Dmain.rs135 let querier = Querier::new(|records: &[HiSysEventRecord]| { in test_hisysevent_query_001()
136 for item in records { in test_hisysevent_query_001()
/base/telephony/core_service/test/fuzztest/vcard_fuzzer/
H A Dvcard_fuzzer.cpp304 std::vector<std::string> records; in VCardUtilsTest() local
305 records.push_back(fileData); in VCardUtilsTest()
328 VCardUtils::IsPrintableAscii(records); in VCardUtilsTest()
329 VCardUtils::IsWrapPrintableAscii(records); in VCardUtilsTest()
330 VCardUtils::TrimListToString(records); in VCardUtilsTest()
331 VCardUtils::IsAllEmpty(records); in VCardUtilsTest()

Completed in 15 milliseconds

12