/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/ |
D | hisysevent_query_callback_c.cpp | 43 auto records = new(std::nothrow) HiSysEventRecordC[size]; in OnQuery() local 45 HiSysEventRecordConvertor::InitRecord(records[i]); in OnQuery() 46 if (HiSysEventRecordConvertor::ConvertRecord(sysEvents->at(i), records[i]) != 0) { in OnQuery() 48 … HiSysEventRecordConvertor::DeleteRecords(&records, i + 1); // +1 for release the current record in OnQuery() 52 onQuery_(records, size); in OnQuery() 53 HiSysEventRecordConvertor::DeleteRecords(&records, size); in OnQuery()
|
D | hisysevent_record_convertor.cpp | 76 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/notification/common_event_service/services/test/unittest/ |
D | common_event_control_manager_test.cpp | 274 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() [all …]
|
D | common_event_subscriber_manager_test.cpp | 383 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() [all …]
|
D | common_event_sticky_test.cpp | 282 std::vector<std::shared_ptr<CommonEventRecord>> records; variable 287 int result = stickyManagerPtr->FindStickyEvents(nullptr, records); 308 std::vector<std::shared_ptr<CommonEventRecord>> records; variable 313 int result = stickyManagerPtr->FindStickyEvents(subscribeInfoPtr, records); 334 std::vector<std::shared_ptr<CommonEventRecord>> records; variable 336 EXPECT_EQ((int)records.size(), 0); 361 int result = stickyManagerPtr->FindStickyEvents(subscribeInfoPtr, records); 365 EXPECT_EQ((int)records.size(), 1); 368 auto action = records.front()->commonEventData->GetWant().GetAction(); 532 std::vector<std::shared_ptr<CommonEventRecord>> records; variable [all …]
|
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/ |
D | hisysevent_rust_querier.cpp | 53 auto records = new(std::nothrow) HiSysEventRecordC[size]; in OnQuery() local 55 HiSysEventRecordConvertor::InitRecord(records[i]); in OnQuery() 56 if (HiSysEventRecordConvertor::ConvertRecord(sysEvents->at(i), records[i]) != 0) { in OnQuery() 58 … HiSysEventRecordConvertor::DeleteRecords(&records, i + 1); // +1 for release the current record in OnQuery() 62 querier_->onQueryWrapperCb(querier_->onQueryRustCb, records, size); in OnQuery() 63 HiSysEventRecordConvertor::DeleteRecords(&records, size); in OnQuery()
|
D | hisysevent_c_wrapper.cpp | 126 HiSysEventRecordC GetHiSysEventRecordByIndexWrapper(const HiSysEventRecordC records[], unsigned int… in GetHiSysEventRecordByIndexWrapper() argument 133 return records[index]; in GetHiSysEventRecordByIndexWrapper()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/ |
D | hisysevent_base_query_callback.h | 38 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()
|
D | hisysevent_query_callback_c.h | 22 using OnQueryFunc = void (*)(HiSysEventRecord records[], size_t size);
|
D | hisysevent_record_convertor.h | 30 static void DeleteRecords(HiSysEventRecordC** records, size_t len);
|
D | hisysevent_manager_c.h | 53 void (*OnQuery)(HiSysEventRecordC records[], size_t size);
|
/base/notification/common_event_service/services/src/ |
D | common_event_sticky_manager.cpp | 77 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() argument 223 records.emplace_back(record.second); in GetStickyCommonEventRecords() 232 records.emplace_back(recordItem->second); in GetStickyCommonEventRecords()
|
D | common_event_subscriber_manager.cpp | 106 auto records = std::vector<SubscriberRecordPtr>(); in GetSubscriberRecords() local 108 GetSubscriberRecordsByWantLocked(eventRecord, records); in GetSubscriberRecords() 110 return records; in GetSubscriberRecords() 216 std::vector<SubscriberRecordPtr> records; in DumpState() local 219 GetSubscriberRecordsByEvent(event, userId, records); in DumpState() 221 if (records.size() == 0) { in DumpState() 227 for (auto record : records) { in DumpState() 231 …title = "Subscribers:\tTotal " + std::to_string(records.size()) + " subscribers\nNO " + title + "\… in DumpState() 339 std::vector<SubscriberRecordPtr> &records) in GetSubscriberRecordsByWantLocked() argument 383 records.emplace_back(*it); in GetSubscriberRecordsByWantLocked() [all …]
|
D | common_event_control_manager.cpp | 863 …d::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records) in GetUnorderedEventRecords() argument 867 records = unorderedEventQueue_; in GetUnorderedEventRecords() 871 records.emplace_back(vec); in GetUnorderedEventRecords() 877 records.emplace_back(vec); in GetUnorderedEventRecords() 883 records.emplace_back(vec); in GetUnorderedEventRecords() 890 …d::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records) in GetOrderedEventRecords() argument 894 records = orderedEventQueue_; in GetOrderedEventRecords() 898 records.emplace_back(vec); in GetOrderedEventRecords() 904 records.emplace_back(vec); in GetOrderedEventRecords() 910 records.emplace_back(vec); in GetOrderedEventRecords() [all …]
|
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/ |
D | common_event_control_manager_branch_test.cpp | 306 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() [all …]
|
/base/location/services/location_locator/locator/source/ |
D | subability_common.cpp | 153 std::unique_ptr<WorkRecord> records = std::make_unique<WorkRecord>(); in HandleSelfRequest() local 156 records->Set(*lastRecord_); in HandleSelfRequest() 158 records->Add(uid, pid, name, interval_, uuid); in HandleSelfRequest() 160 records->Remove(uid, pid, name, uuid); in HandleSelfRequest() 162 LocationRequest(*records); in HandleSelfRequest() 163 records->Clear(); in HandleSelfRequest()
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_subscribe_manager.cpp | 106 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/telephony/core_service/test/fuzztest/simauthentication_fuzzer/ |
D | simauthentication_fuzzer.cpp | 155 std::vector<std::string> records; in ParseOpl5g() local 156 records.push_back(fileData); in ParseOpl5g() 157 simFile->ParseOpl5g(records); in ParseOpl5g()
|
/base/notification/common_event_service/services/include/ |
D | common_event_control_manager.h | 165 …::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records); 168 …::string &event, const int32_t &userId, std::vector<std::shared_ptr<OrderedEventRecord>> &records); 171 const std::string &event, const int32_t &userId, std::list<HistoryEventRecord> &records);
|
D | common_event_subscriber_manager.h | 193 std::vector<SubscriberRecordPtr> &records); 196 const std::string &event, const int32_t &userId, std::vector<SubscriberRecordPtr> &records);
|
D | common_event_sticky_manager.h | 85 … const std::string &event, const int32_t &userId, std::vector<CommonEventRecordPtr> &records);
|
/base/hiviewdfx/hisysevent/test/unittest/rust/src/ |
D | main.rs | 148 |records: &[HiSysEventRecord]| { in test_hisysevent_query_001() 149 for item in records { in test_hisysevent_query_001()
|
/base/telephony/core_service/services/sim/include/ |
D | sim_file.h | 150 void ParsePnn(const std::vector<std::string> &records); 151 void ParseOpl(const std::vector<std::string> &records); 152 void ParseOpl5g(const std::vector<std::string> &records);
|
/base/hiviewdfx/hisysevent/interfaces/rust/src/ |
D | sys_event_manager.rs | 245 unsafe extern "C" fn(callback: *mut c_void, records: *const HiSysEventRecord, size: c_uint); 310 records: *const HiSysEventRecord, in on_query_callback() 318 unsafe { GetHiSysEventRecordByIndexWrapper(records, size, i as c_uint) }; in on_query_callback() 589 records: *const HiSysEventRecord, in GetHiSysEventRecordByIndexWrapper()
|
/base/hiviewdfx/hisysevent/frameworks/native/test/unittest/common/ |
D | hisysevent_c_wrapper_test.cpp | 179 const HiSysEventRecordC records[RECORDS_CNT] = { variable 182 HiSysEventRecordC recordRet = GetHiSysEventRecordByIndexWrapper(records, RECORDS_CNT, 0); 185 recordRet = GetHiSysEventRecordByIndexWrapper(records, RECORDS_CNT, RECORDS_CNT);
|