summaryrefslogtreecommitdiff
path: root/core/SystemStatus.cpp
diff options
context:
space:
mode:
authorChengYou Ho <chengyouho@google.com>2019-07-04 14:49:24 +0800
committerChengYou Ho <chengyouho@google.com>2019-07-04 15:00:46 +0800
commit709263c923bd80fb570469d59d967cff0fe14a94 (patch)
tree6492c5008df54987f61267ac3fa5bb3520d52ccb /core/SystemStatus.cpp
parentdc76408df249bd930d3fcf260b986af5989f248f (diff)
parent2625e7083ff118e8da856eb1dd04d39d2a527e22 (diff)
downloadgps-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.cpp13
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