From 2e7c04a82d85a3ddec7a7a024e00f65e1ee0b0c3 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Thu, 11 Apr 2019 08:33:46 +0800 Subject: Update SystemStatus with battery info in HealthHAL Change-Id: Ibc2157f1834eb65da48f9375e497628411a185c9 CRs-fixed: 2433570 --- core/SystemStatus.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'core/SystemStatus.cpp') diff --git a/core/SystemStatus.cpp b/core/SystemStatus.cpp index 18cb99c..9ca126f 100644 --- a/core/SystemStatus.cpp +++ b/core/SystemStatus.cpp @@ -1723,5 +1723,18 @@ bool SystemStatus::eventConnectionStatus(bool connected, int8_t type, return true; } +/****************************************************************************** +@brief API to update power connect state + +@param[In] power connect status + +@return true when successfully done +******************************************************************************/ +bool SystemStatus::updatePowerConnectState(bool charging) +{ + SystemStatusPowerConnectState s(charging); + mSysStatusObsvr.notify({&s}); + return true; +} } // namespace loc_core -- cgit v1.2.3