Home
last modified time | relevance | path

Searched refs:eventList (Results 1 - 25 of 53) sorted by relevance

123

/base/security/security_guard/frameworks/common/obtaindata/test/unittest/src/
H A Dobtaindata_kit_test.cpp79 static std::string eventList = "{\"eventId\":[1011009000]}"; in HWTEST_F() local
80 int ret = RequestSecurityEventInfoAsync(&deviceIdentify, eventList.c_str(), RequestSecurityEventInfoCallBackFunc); in HWTEST_F()
93 static std::string eventList = "{\"eventId\":[-1]}"; in HWTEST_F() local
94 int ret = RequestSecurityEventInfoAsync(&deviceIdentify, eventList.c_str(), RequestSecurityEventInfoCallBackFunc); in HWTEST_F()
100 * @tc.desc: RequestSecurityEventInfoAsync with wrong eventList key
107 static std::string eventList = "{\"eventIds\":[1011009000]}"; in HWTEST_F() local
108 int ret = RequestSecurityEventInfoAsync(&deviceIdentify, eventList.c_str(), RequestSecurityEventInfoCallBackFunc); in HWTEST_F()
114 * @tc.desc: RequestSecurityEventInfoAsync with wrong eventList content
121 static std::string eventList = "{eventId:[1011009000]}"; in HWTEST_F() local
122 int ret = RequestSecurityEventInfoAsync(&deviceIdentify, eventList in HWTEST_F()
135 static std::string eventList = "{\\"eventIds\\":[]}"; HWTEST_F() local
149 static std::string eventList = "{\\"eventIds\\":[0]}"; HWTEST_F() local
162 static std::string eventList = "{\\"eventIds\\":[0]}"; HWTEST_F() local
[all...]
/base/hiviewdfx/hiview/plugins/event_store/event_export/config/
H A Dexport_event_list_parser.cpp36 ExportEventList& eventList) in AddDomainNames()
41 auto iter = eventList.find(domain); in AddDomainNames()
42 if (iter == eventList.end()) { in AddDomainNames()
43 eventList.emplace(domain, names); in AddDomainNames()
51 void ParseExportEventList(cJSON* eventItem, ExportEventList& eventList) in ParseExportEventList() argument
60 AddDomainNames(domain, allEventNames, eventList); in ParseExportEventList()
68 AddDomainNames(domain, allEventNames, eventList); in ParseExportEventList()
88 void ExportEventListParser::GetExportEventList(ExportEventList& eventList) const in GetExportEventList()
109 ParseExportEventList(eventItem, eventList); in GetExportEventList()
35 AddDomainNames(const std::string& domain, const std::vector<std::string>& names, ExportEventList& eventList) AddDomainNames() argument
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/include/
H A Devent_read_handler.h45 ExportEventList eventList; member
60 bool QuerySysEventInRange(const std::pair<int64_t, int64_t>& queryRange, const ExportEventList& eventList,
62 bool QuerySysEvent(const int64_t beginSeq, const int64_t endSeq, const ExportEventList& eventList,
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
H A Dhisysevent_rules.h89 QueryRule(const std::string& domain, const std::vector<std::string>& eventList, in QueryRule() argument
91 : domain(domain), eventList(eventList), ruleType(ruleType), eventType(eventType), condition(cond) {} in QueryRule()
100 return eventList; in GetEventList()
117 std::vector<std::string> eventList; member in OHOS::HiviewDFX::QueryRule
H A Dhisysevent_manager_c.h43 char eventList[MAX_NUMBER_OF_EVENT_LIST][MAX_LENGTH_OF_EVENT_NAME]; member
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/export/
H A Devent_read_handler.cpp47 if (!QuerySysEventInRange(queryRange, readReq->eventList, in HandleRequest()
62 const ExportEventList& eventList, QueryCallback queryCallback) in QuerySysEventInRange()
67 if (QuerySysEvent(queryRange.first, queryRange.second, eventList, queryCallback)) { in QuerySysEventInRange()
86 bool EventReadHandler::QuerySysEvent(const int64_t beginSeq, const int64_t endSeq, const ExportEventList& eventList, in QuerySysEvent() argument
96 auto iter = eventList.begin(); in QuerySysEvent()
97 while (queryCnt > 0 && iter != eventList.end()) { in QuerySysEvent()
61 QuerySysEventInRange(const std::pair<int64_t, int64_t>& queryRange, const ExportEventList& eventList, QueryCallback queryCallback) QuerySysEventInRange() argument
H A Devent_export_task.cpp117 if (!ParseExportEventList(readReq->eventList) || readReq->eventList.empty()) { in InitReadRequest()
/base/hiviewdfx/hisysevent/adapter/native/idl/src/
H A Dsys_event_query_rule.cpp34 if (!parcel.WriteStringVector(eventList)) { in Marshalling()
58 if (!parcel.ReadStringVector(&(ret->eventList))) { in Unmarshalling()
H A Dhisysevent_delegate.cpp212 auto eventList = rule.GetEventList(); in ConvertQueryRule()
213 for_each(eventList.cbegin(), eventList.cend(), [&](const std::string &event) { in ConvertQueryRule()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Ddata_publisher.cpp74 int32_t DataPublisher::AddSubscriber(int32_t uid, const std::vector<std::string> &eventList) in AddSubscriber() argument
88 for (auto &event : eventList) { in AddSubscriber()
91 auto newEvents = StringUtil::ConvertVectorToStr(eventList, ";"); in AddSubscriber()
113 std::vector<std::string> eventList; in RemoveSubscriber() local
114 StringUtil::SplitStr(events, ";", eventList); in RemoveSubscriber()
115 for (auto &event : eventList) { in RemoveSubscriber()
138 std::vector<std::string> eventList; in InitSubscriber() local
139 StringUtil::SplitStr(events, ";", eventList); in InitSubscriber()
140 for (auto &event : eventList) { in InitSubscriber()
H A Dsys_event_query_rule.cpp34 if (!parcel.WriteStringVector(eventList)) { in Marshalling()
58 if (!parcel.ReadStringVector(&(ret->eventList))) { in Unmarshalling()
H A Devent_query_wrapper_builder.cpp388 query_ = EventStore::SysEventDao::BuildQuery(queryRule.domain, queryRule.eventList, in BuildQuery()
419 query_ = EventStore::SysEventDao::BuildQuery(queryRule.domain, queryRule.eventList,
451 auto& eventList = rule.eventList; in Append()
453 eventList.clear(); in Append()
455 eventList.push_back(eventName); in Append()
464 std::vector<std::string> eventList; in Append() local
466 eventList.push_back(eventName); in Append()
468 queryRules.push_back(SysEventQueryRule(domain, eventList, RuleType::WHOLE_WORD, eventType, extraInfo)); in Append()
H A Drunning_status_log_util.cpp35 if (!rule.eventList.empty()) { in LogTooManyQueryRules()
37 for (auto& eventName : rule.eventList) { in LogTooManyQueryRules()
/base/security/security_guard/services/config_manager/src/
H A Dmodel_cfg_marshalling.cpp98 std::vector<std::string> eventList; in to_json() local
99 std::transform(modelCfg.eventList.begin(), modelCfg.eventList.end(), in to_json()
100 std::back_inserter(eventList), [] (int64_t eventId) { in to_json()
110 { MODEL_CFG_EVENT_LIST_KEY, eventList }, in to_json()
141 std::vector<std::string> eventList; in from_json() local
142 JsonCfg::Unmarshal(eventList, jsonObj, MODEL_CFG_EVENT_LIST_KEY); in from_json()
143 for (const std::string& eventId : eventList) { in from_json()
148 modelCfg.eventList.emplace_back(tmp); in from_json()
/base/security/security_guard/services/security_collector/src/
H A Dcollector_cfg_marshalling.cpp40 std::vector<std::string> eventList; in from_json() local
41 SecurityGuard::JsonCfg::Unmarshal(eventList, jsonObj, EVENT_ID); in from_json()
42 for (const std::string& eventId : eventList) { in from_json()
/base/hiviewdfx/hiview/base/test/unittest/common/
H A Ddispatch_rule_parser_test.cpp108 ASSERT_EQ(rules->eventList.size(), EVENT_SIZE); in HWTEST_F()
126 ASSERT_EQ(rules->eventList.size(), 0); in HWTEST_F()
156 ASSERT_EQ(rules->eventList.size(), 0); in HWTEST_F()
173 ASSERT_EQ(rules->eventList.size(), 0); in HWTEST_F()
/base/security/security_guard/frameworks/common/obtaindata/src/
H A Dsg_obtaindata_client.cpp31 static int32_t RequestSecurityEventInfo(std::string &devId, std::string &eventList, in RequestSecurityEventInfo() argument
52 int32_t ret = proxy->RequestRiskData(devId, eventList, obj); in RequestSecurityEventInfo()
75 std::string eventList(eventJson); in RequestSecurityEventInfoAsyncImpl()
92 return RequestSecurityEventInfo(identity, eventList, func); in RequestSecurityEventInfoAsyncImpl()
/base/hiviewdfx/hisysevent/adapter/native/idl/include/
H A Dsys_event_query_rule.h34 : domain(domain), eventList(events), ruleType(ruleType), eventType(eventType), condition(cond) {}; in SysEventQueryRule()
41 std::vector<std::string> eventList; member in OHOS::HiviewDFX::SysEventQueryRule
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
H A Dsys_event_query_rule.h31 : domain(domain), eventList(events), ruleType(ruleType), eventType(eventType), condition(cond) {}; in SysEventQueryRule()
38 std::vector<std::string> eventList; member in OHOS::HiviewDFX::SysEventQueryRule
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
H A Dhisysevent_manager_c.cpp51 std::vector<std::string> eventList; in HiSysEventQuery() local
53 eventList.emplace_back(rules[i].eventList[j]); in HiSysEventQuery()
56 queryRules.emplace_back(rules[i].domain, eventList, WHOLE_WORD, 0, cond); in HiSysEventQuery()
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/
H A Dhisysevent_rust_manager.cpp58 std::vector<std::string> eventList; in HiSysEventQuery() local
60 eventList.emplace_back(rules[i].eventList[j]); in HiSysEventQuery()
63 queryRules.emplace_back(rules[i].domain, eventList, WHOLE_WORD, 0, cond); in HiSysEventQuery()
/base/hiviewdfx/hiview/base/
H A Ddispatch_rule_parser.cpp115 dispatchRule_->eventList.insert(jsonEventArray[i].asString()); in ParseEvents()
167 if (eventList.find(eventName) != eventList.end()) { in FindEvent()
/base/hiviewdfx/hiview/plugins/event_store/event_export/config/include/
H A Dexport_event_list_parser.h32 void GetExportEventList(ExportEventList& eventList) const;
/base/security/device_auth/services/session_manager/inc/session/
H A Ddev_session_def.h47 EventList eventList; member
/base/hiviewdfx/hiview/base/include/
H A Ddefines.h89 std::unordered_set<std::string> eventList; member

Completed in 8 milliseconds

123