Home
last modified time | relevance | path

Searched refs:eventName (Results 1 – 25 of 102) sorted by relevance

12345

/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_listener.cpp42 std::string eventName = sysEvent->GetEventName(); in OnEvent() local
45 if (!StatsHiSysEvent::CheckHiSysEvent(eventName)) { in OnEvent()
53 ProcessHiSysEvent(eventName, root); in OnEvent()
59 void BatteryStatsListener::ProcessHiSysEvent(const std::string& eventName, const Json::Value& root) in ProcessHiSysEvent() argument
65 if (eventName == "POWER_RUNNINGLOCK") { in ProcessHiSysEvent()
67 …} else if (eventName == "SCREEN_STATE" || eventName == "BRIGHTNESS_NIT" || eventName == "BACKLIGH… in ProcessHiSysEvent()
68 || eventName == "AMBIENT_LIGHT") { in ProcessHiSysEvent()
69 ProcessDispalyEvent(data, root, eventName); in ProcessHiSysEvent()
70 } else if (eventName == "BATTERY_CHANGED") { in ProcessHiSysEvent()
72 } else if (eventName == "POWER_TEMPERATURE" || eventName == "THERMAL_LEVEL_CHANGED" || in ProcessHiSysEvent()
[all …]
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_hisysevent_test.cpp72 eventInfo.eventName = TEST_EVENT_NAME; in HWTEST_F()
92 eventInfo.eventName = TEST_EVENT_NAME; in HWTEST_F()
110 eventInfo.eventName = TEST_EVENT_NAME; in HWTEST_F()
132 eventInfo.eventName = TEST_EVENT_NAME; in HWTEST_F()
154 eventInfo.eventName = std::accumulate(events.begin(), events.end(), eventInfo.eventName, in HWTEST_F()
155 [events](std::string eventName, const std::string &str) { in HWTEST_F() argument
156 return (str == events.front()) ? (eventName + str) : (eventName + "," + str); in HWTEST_F()
161 eventInfo.eventName = std::accumulate(anotherEvent.begin(), anotherEvent.end(), std::string(""), in HWTEST_F()
162 [anotherEvent](std::string eventName, const std::string &str) { in HWTEST_F() argument
163 return (str == anotherEvent.front()) ? (eventName + str) : (eventName + "," + str); in HWTEST_F()
[all …]
/base/notification/common_event_service/test/systemtest/common/acts/actsCESSubscribeInfoTest/
DactsCESSubscribeInfoTest.cpp81 std::string eventName = "setPriorityTest1"; variable
84 matchingSkills.AddEvent(eventName);
94 matchingSkills.RemoveEvent(eventName);
110 std::string eventName = "priorityTest2"; variable
113 matchingSkills.AddEvent(eventName);
123 matchingSkills.RemoveEvent(eventName);
139 std::string eventName = "priorityTest3"; variable
142 matchingSkills.AddEvent(eventName);
152 matchingSkills.RemoveEvent(eventName);
168 std::string eventName = "priorityTest4"; variable
[all …]
/base/notification/common_event_service/test/systemtest/common/acts/actsCESCESpublishInfoTest/
DactsCESCESpublishInfoTest.cpp84 std::string eventName = "StickyFalseTest001"; variable
88 matchingSkills.AddEvent(eventName);
99 matchingSkills.RemoveEvent(eventName);
117 std::string eventName = "StickyFalseTest001"; variable
121 matchingSkills.AddEvent(eventName);
132 matchingSkills.RemoveEvent(eventName);
149 std::string eventName = "StickyFalseTest003"; variable
153 matchingSkills.AddEvent(eventName);
164 matchingSkills.RemoveEvent(eventName);
181 std::string eventName = "StickyTrueTest004"; variable
[all …]
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/
Dcommon_event_services_system_test.cpp147 bool PublishCommonEventTest(const std::string &eventName);
187 std::string eventName = "TESTEVENT_SUBSCRIBER"; variable
189 matchingSkills.AddEvent(eventName);
204 std::string eventName = "1"; variable
206 matchingSkills.AddEvent(eventName);
221 std::string eventName = ""; variable
223 matchingSkills.AddEvent(eventName);
238 std::string eventName = "............."; variable
240 matchingSkills.AddEvent(eventName);
255 std::string eventName = "HELLO\0\0\0WORLD"; variable
[all …]
/base/hiviewdfx/hisysevent/adapter/native/idl/include/
Dsys_event_rule.h31 SysEventRule(const std::string& domain, const std::string& eventName,
33 … : domain(domain), eventName(eventName), tag(tag), ruleType(ruleType), eventType(eventType) {} in domain()
34 SysEventRule(const std::string& domain, const std::string& eventName,
36 : SysEventRule(domain, eventName, "", ruleType, eventType) {}
45 std::string eventName; variable
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
Dsys_event_rule.h27 SysEventRule(const std::string& domain, const std::string& eventName,
29 … : domain(domain), eventName(eventName), tag(tag), ruleType(ruleType), eventType(eventType) {} in domain()
30 SysEventRule(const std::string& domain, const std::string& eventName,
32 : SysEventRule(domain, eventName, "", ruleType, eventType) {}
41 std::string eventName; variable
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/
DactsCESManagertest.cpp139 std::string eventName = "TESTEVENT_SUBSCRIBER"; variable
142 matchingSkills.AddEvent(eventName);
152 matchingSkills.RemoveEvent(eventName);
169 std::string eventName = "1"; variable
172 matchingSkills.AddEvent(eventName);
182 matchingSkills.RemoveEvent(eventName);
199 std::string eventName = ""; variable
202 matchingSkills.AddEvent(eventName);
212 matchingSkills.RemoveEvent(eventName);
229 std::string eventName = "............."; variable
[all …]
/base/powermgr/battery_statistics/services/native/include/
Dbattery_stats_listener.h34 void ProcessHiSysEvent(const std::string& eventName, const Json::Value& root);
35 …cessPhoneEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
37 …ssDispalyEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
42 …essCameraEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
44 …essSensorEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
46 …uetoothBrEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
47 …etoothBleEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
48 …BluetoothEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
49 …ocessWifiEvent(StatsUtils::StatsData& data, const Json::Value& root, const std::string& eventName);
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/
Dcommon_event_services_module_test.cpp114 std::string eventName = "SUBSCRIBEEVENT_MODULETEST"; variable
116 matchingSkills.AddEvent(eventName);
134 std::string eventName = "1"; variable
136 matchingSkills.AddEvent(eventName);
154 std::string eventName = ""; variable
156 matchingSkills.AddEvent(eventName);
211 std::string eventName = "SUBSCRIBEEVENT_MODULETEST_"; variable
213 matchingSkills.AddEvent(eventName);
232 std::string eventName = "SUBSCRIBEEVENT_MODULETEST_PRIORITY"; variable
234 matchingSkills.AddEvent(eventName);
[all …]
/base/notification/common_event_service/test/benchmarktest/common_event_service_test/
Dcommon_event_manager_service_test.cpp70 std::string eventName = "SUBSCRIBEEVENT_BENCHMARK"; in BENCHMARK_F() local
72 matchingSkills.AddEvent(eventName); in BENCHMARK_F()
94 std::string eventName = "1"; in BENCHMARK_F() local
96 matchingSkills.AddEvent(eventName); in BENCHMARK_F()
118 std::string eventName = ""; in BENCHMARK_F() local
120 matchingSkills.AddEvent(eventName); in BENCHMARK_F()
142 std::string eventName = "SUBSCRIBEEVENT_BENCHMARK"; in BENCHMARK_F() local
144 matchingSkills.AddEvent(eventName); in BENCHMARK_F()
166 std::string eventName = "SUBSCRIBEEVENT_BENCHMARK"; in BENCHMARK_F() local
170 matchingSkills.AddEvent(eventName); in BENCHMARK_F()
[all …]
/base/notification/common_event_service/services/src/
Devent_report.cpp32 void EventReport::SendHiSysEvent(const std::string &eventName, const EventInfo &eventInfo) in SendHiSysEvent() argument
37 auto iter = cesSysEventFuncMap_.find(eventName); in SendHiSysEvent()
80 EVENT_PARAM_EVENT_NAME, eventInfo.eventName); in InnerSendOrderedEventProcTimeoutEvent()
91 EVENT_PARAM_EVENT_NAME, eventInfo.eventName); in InnerSendStaticEventProcErrorEvent()
100 EVENT_PARAM_EVENT_NAME, eventInfo.eventName, in InnerSendSubscriberExceedMaximumEvent()
113 EVENT_PARAM_EVENT_NAME, eventInfo.eventName); in InnerSendPublishErrorEvent()
125 EVENT_PARAM_EVENT_NAME, eventInfo.eventName); in InnerSendSubscribeEvent()
137 EVENT_PARAM_EVENT_NAME, eventInfo.eventName); in InnerSendUnSubscribeEvent()
149 EVENT_PARAM_EVENT_NAME, eventInfo.eventName); in InnerSendPublishEvent()
153 void EventReport::InnerEventWrite(const std::string &eventName, in InnerEventWrite() argument
[all …]
/base/powermgr/thermal_manager/services/native/src/thermal_observer/
Dthermal_common_event_receiver.cpp37 bool ThermalCommonEventReceiver::Start(std::string eventName, EventHandle callback) in Start() argument
39 THERMAL_HILOGD(COMP_SVC, "eventName=%{public}s", eventName.c_str()); in Start()
40 InitEventHandles(eventName, callback); in Start()
44 void ThermalCommonEventReceiver::InitEventHandles(std::string eventName, EventHandle callback) in InitEventHandles() argument
46 THERMAL_HILOGD(COMP_SVC, "Add Event: %{public}s", eventName.c_str()); in InitEventHandles()
47 eventHandles_.insert(std::make_pair(eventName, callback)); in InitEventHandles()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
Dhisysevent_rules.h40 ListenerRule(const std::string& domain, const std::string& eventName,
42 eventName(eventName), tag(tag), ruleType(ruleType), eventType(eventType) {} in domain()
43 ListenerRule(const std::string& domain, const std::string& eventName,
44 RuleType ruleType = RuleType::WHOLE_WORD) : ListenerRule(domain, eventName, "", ruleType) {}
55 return eventName; in GetEventName()
72 std::string eventName; variable
/base/hiviewdfx/hisysevent/test/moduletest/common/
Dhisysevent_native_test.cpp198 std::string eventName = "NORMAL001"; variable
288 int result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT,
317 std::string eventName = "DOMAIN_SPECIAL_CHAR"; variable
319 int result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT);
336 std::string eventName = "DOMAIN_EMPTY"; variable
338 int result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT);
355 std::string eventName = "DOMAIN_TOO_LONG_16"; variable
362 result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT);
367 eventName = "DOMAIN_TOO_LONG_17";
368 result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT);
[all …]
/base/notification/common_event_service/test/systemtest/common/acts/actsCESMatchingSkillsTest/
DactsCESMatchingSkillsTest.cpp68 std::string eventName = "entityTest"; variable
73 matchingSkills.AddEvent(eventName);
78 EXPECT_TRUE(matchingSkills.HasEvent(eventName));
94 matchingSkills.RemoveEvent(eventName);
111 std::string eventName = "EventEntityTest"; variable
116 matchingSkills.AddEvent(eventName);
121 EXPECT_TRUE(matchingSkills.HasEvent(eventName));
137 matchingSkills.RemoveEvent(eventName);
154 std::string eventName = "EventEntityTest2"; variable
159 matchingSkills.AddEvent(eventName);
[all …]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dwrite_controller.cpp36 …oller::CheckLimitWritingEvent(const ControlParam& param, const char* domain, const char* eventName, in CheckLimitWritingEvent() argument
41 std::string key = ConcatenateInfoAsKey(eventName, func, line); in CheckLimitWritingEvent()
65 stat.count - param.threshold, domain, eventName, func); in CheckLimitWritingEvent()
69 std::string WriteController::ConcatenateInfoAsKey(const char* eventName, const char* func, int64_t … in ConcatenateInfoAsKey() argument
72 ss << eventName << STR_CONCAT << std::string(func) << STR_CONCAT << line; in ConcatenateInfoAsKey()
/base/hiviewdfx/hiview/plugins/eventservice/service/
Dsys_event_stat.cpp48 void SysEventStat::AddValidEvent(const std::string &domain, const std::string &eventName) in AddValidEvent() argument
53 events[eventName] = 1; in AddValidEvent()
59 auto eIt = events.find(eventName); in AddValidEvent()
61 events[eventName] = 1; in AddValidEvent()
65 events[eventName] = events[eventName] + 1; in AddValidEvent()
68 void SysEventStat::AddInValidEvent(const std::string &domain, const std::string &eventName) in AddInValidEvent() argument
75 d2ies_[domain].append(eventName + ";"); in AddInValidEvent()
81 std::size_t pos = it->second.find(eventName + ";"); in AddInValidEvent()
83 d2ies_[domain].append(eventName + ";"); in AddInValidEvent()
87 void SysEventStat::AccumulateEvent(const std::string &domain, const std::string &eventName, bool is… in AccumulateEvent() argument
[all …]
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Dsys_event_service_ohos.cpp74 const string& eventName, const string& tag, uint32_t eventType) in IsMatchedRule() argument
78 && MatchContent(rule.ruleType, rule.eventName, eventName) in IsMatchedRule()
85 bool MatchRules(const SysEventRuleGroupOhos& rules, const string& domain, const string& eventName, in MatchRules() argument
88 return any_of(rules.begin(), rules.end(), [domain, eventName, tag, eventType] (auto& rule) { in MatchRules()
89 if (IsMatchedRule(rule, domain, eventName, tag, eventType)) { in MatchRules()
94 rule.eventName.empty() ? "empty" : rule.eventName.c_str(), in MatchRules()
156 …ring SysEventServiceOhos::GetTagByDomainAndName(const string& eventDomain, const string& eventName) in GetTagByDomainAndName() argument
161 return getTagFunc_(eventDomain, eventName); in GetTagByDomainAndName()
164 …2_t SysEventServiceOhos::GetTypeByDomainAndName(const string& eventDomain, const string& eventName) in GetTypeByDomainAndName() argument
169 return getTypeFunc_(eventDomain, eventName); in GetTypeByDomainAndName()
[all …]
Dsys_event_callback_stub.cpp41 std::u16string eventName; in OnRemoteRequest() local
42 ret = data.ReadString16(eventName); in OnRemoteRequest()
59 Handle(domain, eventName, eventType, eventDetail); in OnRemoteRequest()
/base/telephony/core_service/utils/common/include/
Dtelephony_hisysevent.h109 static void HiWriteBehaviorEvent(const std::string &eventName, Types... args) in HiWriteBehaviorEvent() argument
111 OHOS::HiviewDFX::HiSysEvent::Write(DOMAIN_NAME, eventName, EventType::BEHAVIOR, args...); in HiWriteBehaviorEvent()
115 static void HiWriteFaultEvent(const std::string &eventName, Types... args) in HiWriteFaultEvent() argument
117 OHOS::HiviewDFX::HiSysEvent::Write(DOMAIN_NAME, eventName, EventType::FAULT, args...); in HiWriteFaultEvent()
/base/powermgr/battery_statistics/utils/native/src/
Dstats_hisysevent.cpp23 bool StatsHiSysEvent::CheckHiSysEvent(const std::string& eventName) in CheckHiSysEvent() argument
26 if (eventName.compare(HISYSEVENT_LIST[i]) == COMPARE_SUCCESS) { in CheckHiSysEvent()
/base/notification/common_event_service/test/benchmarktest/common_event_publish_test/
Dcommon_event_publish_test.cpp66 std::string eventName = "SUBSCRIBER_EVENT_BENCHMARK"; in BENCHMARK_F() local
68 matchingSkills.AddEvent(eventName); in BENCHMARK_F()
84 std::string eventName = "UNSUBSCRIBER_EVENT_BENCHMARK"; in BENCHMARK_F() local
86 matchingSkills.AddEvent(eventName); in BENCHMARK_F()
/base/hiviewdfx/hiview/plugins/hicollie_collector/test/unittest/common/
Dhicollie_collector_test.cpp38 const std::string& eventName, in makeEvent() argument
44 str += "this is test " + eventName + " at " + std::to_string(time) + "\n"; in makeEvent()
50 sysEvent->SetEventValue("name_", eventName); in makeEvent()
59 sysEvent->SetEventValue("MSG", "test " + eventName + " event"); in makeEvent()
72 bool GetFreezeDectorTestFile(const std::string& eventName, in GetFreezeDectorTestFile() argument
95 if (content.find(eventName) == std::string::npos) { in GetFreezeDectorTestFile()
96 printf("Not %s.\n", eventName.c_str()); in GetFreezeDectorTestFile()
/base/hiviewdfx/hisysevent/adapter/native/idl/src/
Dsys_event_callback_stub.cpp45 std::u16string eventName; in OnRemoteRequest() local
46 ret = data.ReadString16(eventName); in OnRemoteRequest()
63 Handle(domain, eventName, eventType, eventDetail); in OnRemoteRequest()

12345