summaryrefslogtreecommitdiffstats
path: root/services/batteryservice/BatteryProperties.cpp
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2015-07-10 13:08:28 -0700
committerAdrian Roos <roosa@google.com>2015-07-10 13:10:13 -0700
commit687aa22c9281e37b7a8bd674bd2de183aebcc22b (patch)
tree0f84c73a9495f653ddab215358ba790b00f3198d /services/batteryservice/BatteryProperties.cpp
parent3f8fbfdb9bde70454f617ab8f59874bdf132cb29 (diff)
downloadframeworks_native-687aa22c9281e37b7a8bd674bd2de183aebcc22b.zip
frameworks_native-687aa22c9281e37b7a8bd674bd2de183aebcc22b.tar.gz
frameworks_native-687aa22c9281e37b7a8bd674bd2de183aebcc22b.tar.bz2
Show charging speed on Keyguard
Bug: 8099739 Change-Id: I2e5c21dd7ec028ce47fb03ab71e74f7fccaa9e36
Diffstat (limited to 'services/batteryservice/BatteryProperties.cpp')
-rw-r--r--services/batteryservice/BatteryProperties.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/batteryservice/BatteryProperties.cpp b/services/batteryservice/BatteryProperties.cpp
index ab636a9..f13d6e8 100644
--- a/services/batteryservice/BatteryProperties.cpp
+++ b/services/batteryservice/BatteryProperties.cpp
@@ -33,6 +33,7 @@ status_t BatteryProperties::readFromParcel(Parcel* p) {
chargerAcOnline = p->readInt32() == 1 ? true : false;
chargerUsbOnline = p->readInt32() == 1 ? true : false;
chargerWirelessOnline = p->readInt32() == 1 ? true : false;
+ maxChargingCurrent = p->readInt32();
batteryStatus = p->readInt32();
batteryHealth = p->readInt32();
batteryPresent = p->readInt32() == 1 ? true : false;
@@ -47,6 +48,7 @@ status_t BatteryProperties::writeToParcel(Parcel* p) const {
p->writeInt32(chargerAcOnline ? 1 : 0);
p->writeInt32(chargerUsbOnline ? 1 : 0);
p->writeInt32(chargerWirelessOnline ? 1 : 0);
+ p->writeInt32(maxChargingCurrent);
p->writeInt32(batteryStatus);
p->writeInt32(batteryHealth);
p->writeInt32(batteryPresent ? 1 : 0);