diff options
author | Ruchi Kandoi | 2016-04-06 19:53:23 -0500 |
---|---|---|
committer | Ruchi Kandoi | 2016-04-06 19:53:23 -0500 |
commit | 42a689bd4178406c381d5f670dff6aed9c9c91e3 (patch) | |
tree | 4b0652316efa54dd5a68b593cf5848e37b83044a /services | |
parent | cf463a9b97dee1ad91f7325b519ed84de3a0b61d (diff) | |
download | frameworks-native-42a689bd4178406c381d5f670dff6aed9c9c91e3.tar.gz frameworks-native-42a689bd4178406c381d5f670dff6aed9c9c91e3.tar.xz frameworks-native-42a689bd4178406c381d5f670dff6aed9c9c91e3.zip |
batteryservice: Expose Charge Counters.
Bug: 27174034
Change-Id: Ib45a5258c3a8cbc706d207486310570511a03e6e
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Diffstat (limited to 'services')
-rw-r--r-- | services/batteryservice/BatteryProperties.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/batteryservice/BatteryProperties.cpp b/services/batteryservice/BatteryProperties.cpp index 07cc7971c..d89d4c98f 100644 --- a/services/batteryservice/BatteryProperties.cpp +++ b/services/batteryservice/BatteryProperties.cpp | |||
@@ -41,6 +41,7 @@ status_t BatteryProperties::readFromParcel(Parcel* p) { | |||
41 | batteryLevel = p->readInt32(); | 41 | batteryLevel = p->readInt32(); |
42 | batteryVoltage = p->readInt32(); | 42 | batteryVoltage = p->readInt32(); |
43 | batteryTemperature = p->readInt32(); | 43 | batteryTemperature = p->readInt32(); |
44 | batteryChargeCounter = p->readInt32(); | ||
44 | batteryTechnology = String8((p->readString16()).string()); | 45 | batteryTechnology = String8((p->readString16()).string()); |
45 | return OK; | 46 | return OK; |
46 | } | 47 | } |
@@ -57,6 +58,7 @@ status_t BatteryProperties::writeToParcel(Parcel* p) const { | |||
57 | p->writeInt32(batteryLevel); | 58 | p->writeInt32(batteryLevel); |
58 | p->writeInt32(batteryVoltage); | 59 | p->writeInt32(batteryVoltage); |
59 | p->writeInt32(batteryTemperature); | 60 | p->writeInt32(batteryTemperature); |
61 | p->writeInt32(batteryChargeCounter); | ||
60 | p->writeString16(String16(batteryTechnology)); | 62 | p->writeString16(String16(batteryTechnology)); |
61 | return OK; | 63 | return OK; |
62 | } | 64 | } |