mirror of
https://github.com/openharmony/powermgr_battery_manager.git
synced 2026-07-01 06:42:05 -04:00
fix: fix the name format of hisysevent
Signed-off-by: lyj_love_code <liangyujian2@huawei.com>
This commit is contained in:
+3
-3
@@ -13,18 +13,18 @@
|
||||
|
||||
domain: BATTERY
|
||||
|
||||
BATTERY_CHANGED:
|
||||
CHANGED:
|
||||
__BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: battery information}
|
||||
LEVEL: {type: INT32, desc: battery capacity}
|
||||
CHARGER: {type: INT32, desc: charger type}
|
||||
VOLTAGE: {type: INT32, desc: battery voltage}
|
||||
HEALTH: {type: INT32, desc: battery health status}
|
||||
TEMPERATURE: {type: INT32, desc: battery temperature}
|
||||
BATTERY_ADJUST:
|
||||
ADJUST:
|
||||
__BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: battery adjust}
|
||||
DELTASOCLOGGER: {type: INT32, desc: deltaSocLogger}
|
||||
DELTAGASGUAGELOGGER: {type: INT32, desc: deltaGasGuageLogger}
|
||||
SLEEPGASGUAGELOGGER: {type: INT32, desc: sleepGasGuageLogger}
|
||||
BATTERY_SLEEP_CURRENT:
|
||||
SLEEP_CURRENT:
|
||||
__BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: battery current at sleep}
|
||||
CURRENT: {type: INT32, desc: battery current}
|
||||
|
||||
@@ -98,7 +98,7 @@ bool BatteryNotify::PublishChargeTypeChangedEvent(const BatteryInfo& info)
|
||||
data.SetWant(want);
|
||||
CommonEventPublishInfo publishInfo;
|
||||
publishInfo.SetOrdered(false);
|
||||
|
||||
|
||||
data.SetCode(static_cast<int32_t>(chargeType));
|
||||
BATTERY_HILOGD(COMP_SVC, "publisher chargeType=%{public}d", chargeType);
|
||||
isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo);
|
||||
@@ -161,7 +161,7 @@ bool BatteryNotify::PublishChangedEvent(const BatteryInfo& info) const
|
||||
publishInfo.SetOrdered(false);
|
||||
bool isSuccess = true;
|
||||
|
||||
HiSysEventWrite(HiSysEvent::Domain::BATTERY, "BATTERY_CHANGED", HiSysEvent::EventType::STATISTIC,
|
||||
HiSysEventWrite(HiSysEvent::Domain::BATTERY, "CHANGED", HiSysEvent::EventType::STATISTIC,
|
||||
"LEVEL", info.GetCapacity(), "CHARGER", static_cast<int32_t>(info.GetPluggedType()),
|
||||
"VOLTAGE", info.GetVoltage(), "TEMPERATURE", info.GetTemperature(),
|
||||
"HEALTH", static_cast<int32_t>(info.GetHealthState()), "CURRENT", info.GetNowCurrent());
|
||||
|
||||
Reference in New Issue
Block a user