diff options
author | ChengYou Ho <chengyouho@google.com> | 2019-07-04 14:49:24 +0800 |
---|---|---|
committer | ChengYou Ho <chengyouho@google.com> | 2019-07-04 15:00:46 +0800 |
commit | 709263c923bd80fb570469d59d967cff0fe14a94 (patch) | |
tree | 6492c5008df54987f61267ac3fa5bb3520d52ccb /core/SystemStatus.cpp | |
parent | dc76408df249bd930d3fcf260b986af5989f248f (diff) | |
parent | 2625e7083ff118e8da856eb1dd04d39d2a527e22 (diff) | |
download | gps-709263c923bd80fb570469d59d967cff0fe14a94.tar.gz |
Merge remote-tracking branch 'goog/qcom/release/LA.UM.8.1.R1.09.00.00.529.057' into qt-r1-dev
Bug: 136707337
Change-Id: I6a5b2d92c938379c676c835037ed9c71cfd59f13
Diffstat (limited to 'core/SystemStatus.cpp')
-rw-r--r-- | core/SystemStatus.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 |