/base/security/security_guard/frameworks/common/obtaindata/test/unittest/src/ |
H A D | obtaindata_kit_test.cpp | 79 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 D | export_event_list_parser.cpp | 36 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 D | event_read_handler.h | 45 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 D | hisysevent_rules.h | 89 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 D | hisysevent_manager_c.h | 43 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 D | event_read_handler.cpp | 47 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 D | event_export_task.cpp | 117 if (!ParseExportEventList(readReq->eventList) || readReq->eventList.empty()) { in InitReadRequest()
|
/base/hiviewdfx/hisysevent/adapter/native/idl/src/ |
H A D | sys_event_query_rule.cpp | 34 if (!parcel.WriteStringVector(eventList)) { in Marshalling() 58 if (!parcel.ReadStringVector(&(ret->eventList))) { in Unmarshalling()
|
H A D | hisysevent_delegate.cpp | 212 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 D | data_publisher.cpp | 74 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 D | sys_event_query_rule.cpp | 34 if (!parcel.WriteStringVector(eventList)) { in Marshalling() 58 if (!parcel.ReadStringVector(&(ret->eventList))) { in Unmarshalling()
|
H A D | event_query_wrapper_builder.cpp | 388 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 D | running_status_log_util.cpp | 35 if (!rule.eventList.empty()) { in LogTooManyQueryRules() 37 for (auto& eventName : rule.eventList) { in LogTooManyQueryRules()
|
/base/security/security_guard/services/config_manager/src/ |
H A D | model_cfg_marshalling.cpp | 98 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 D | collector_cfg_marshalling.cpp | 40 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 D | dispatch_rule_parser_test.cpp | 108 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 D | sg_obtaindata_client.cpp | 31 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 D | sys_event_query_rule.h | 34 : 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 D | sys_event_query_rule.h | 31 : 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 D | hisysevent_manager_c.cpp | 51 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 D | hisysevent_rust_manager.cpp | 58 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 D | dispatch_rule_parser.cpp | 115 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 D | export_event_list_parser.h | 32 void GetExportEventList(ExportEventList& eventList) const;
|
/base/security/device_auth/services/session_manager/inc/session/ |
H A D | dev_session_def.h | 47 EventList eventList; member
|
/base/hiviewdfx/hiview/base/include/ |
H A D | defines.h | 89 std::unordered_set<std::string> eventList;
member
|