From 5f029681dcd829739e6fd355131eaedb3fc8fb3e Mon Sep 17 00:00:00 2001 From: zblue Date: Tue, 23 Aug 2022 09:26:55 +0800 Subject: [PATCH] feat: add BACKLIGHT_DISCOUNT HiSysEvent Signed-off-by: zblue Change-Id: Ie8de1718d0938130df2fd543dda87ddaa9ba56bc --- service/native/src/display_power_mgr_service.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/native/src/display_power_mgr_service.cpp b/service/native/src/display_power_mgr_service.cpp index 2171c34..d4f6542 100644 --- a/service/native/src/display_power_mgr_service.cpp +++ b/service/native/src/display_power_mgr_service.cpp @@ -147,6 +147,8 @@ bool DisplayPowerMgrService::DiscountBrightness(double discount, uint32_t displa auto safeDiscount = GetSafeDiscount(discount, brightness); DISPLAY_HILOGI(FEAT_BRIGHTNESS, "DiscountBrightness displayId=%{public}u, discount-%{public}lf", displayId, safeDiscount); + HiviewDFX::HiSysEvent::Write("DISPLAY", "BACKLIGHT_DISCOUNT", + HiviewDFX::HiSysEvent::EventType::STATISTIC, "RATIO", safeDiscount); return iter->second->DiscountBrightness(safeDiscount); } -- Gitee