summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Poynor2013-07-30 21:12:10 -0500
committerTodd Poynor2013-08-07 13:30:13 -0500
commitb98240cc6ca8fe60b93bfc0d2f6e49c66329f8ff (patch)
treead6ebef0412e08aedf82d6564db83df161a98147 /services/batteryservice
parent43c2718b3fb404d72d711eb37d5c5d10edc97605 (diff)
downloadframeworks-native-b98240cc6ca8fe60b93bfc0d2f6e49c66329f8ff.tar.gz
frameworks-native-b98240cc6ca8fe60b93bfc0d2f6e49c66329f8ff.tar.xz
frameworks-native-b98240cc6ca8fe60b93bfc0d2f6e49c66329f8ff.zip
batteryservice: add battery current now and charge counter data
Change-Id: I4b3ea25342d4a03a8e38bfee2ef3b1ce54f82582
Diffstat (limited to 'services/batteryservice')
-rw-r--r--services/batteryservice/BatteryProperties.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/batteryservice/BatteryProperties.cpp b/services/batteryservice/BatteryProperties.cpp
index ab636a9f8..e4a42edcd 100644
--- a/services/batteryservice/BatteryProperties.cpp
+++ b/services/batteryservice/BatteryProperties.cpp
@@ -38,6 +38,8 @@ status_t BatteryProperties::readFromParcel(Parcel* p) {
38 batteryPresent = p->readInt32() == 1 ? true : false; 38 batteryPresent = p->readInt32() == 1 ? true : false;
39 batteryLevel = p->readInt32(); 39 batteryLevel = p->readInt32();
40 batteryVoltage = p->readInt32(); 40 batteryVoltage = p->readInt32();
41 batteryCurrentNow = p->readInt32();
42 batteryChargeCounter = p->readInt32();
41 batteryTemperature = p->readInt32(); 43 batteryTemperature = p->readInt32();
42 batteryTechnology = String8((p->readString16()).string()); 44 batteryTechnology = String8((p->readString16()).string());
43 return OK; 45 return OK;
@@ -52,6 +54,8 @@ status_t BatteryProperties::writeToParcel(Parcel* p) const {
52 p->writeInt32(batteryPresent ? 1 : 0); 54 p->writeInt32(batteryPresent ? 1 : 0);
53 p->writeInt32(batteryLevel); 55 p->writeInt32(batteryLevel);
54 p->writeInt32(batteryVoltage); 56 p->writeInt32(batteryVoltage);
57 p->writeInt32(batteryCurrentNow);
58 p->writeInt32(batteryChargeCounter);
55 p->writeInt32(batteryTemperature); 59 p->writeInt32(batteryTemperature);
56 p->writeString16(String16(batteryTechnology)); 60 p->writeString16(String16(batteryTechnology));
57 return OK; 61 return OK;