Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42a689bd authored by Ruchi Kandoi's avatar Ruchi Kandoi
Browse files

batteryservice: Expose Charge Counters.



Bug: 27174034
Change-Id: Ib45a5258c3a8cbc706d207486310570511a03e6e
Signed-off-by: default avatarRuchi Kandoi <kandoiruchi@google.com>
parent cf463a9b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ struct BatteryProperties {
    int batteryCurrent;
    int batteryCycleCount;
    int batteryFullCharge;
    int batteryChargeCounter;
    String8 batteryTechnology;

    status_t writeToParcel(Parcel* parcel) const;
+2 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ status_t BatteryProperties::readFromParcel(Parcel* p) {
    batteryLevel = p->readInt32();
    batteryVoltage = p->readInt32();
    batteryTemperature = p->readInt32();
    batteryChargeCounter = p->readInt32();
    batteryTechnology = String8((p->readString16()).string());
    return OK;
}
@@ -57,6 +58,7 @@ status_t BatteryProperties::writeToParcel(Parcel* p) const {
    p->writeInt32(batteryLevel);
    p->writeInt32(batteryVoltage);
    p->writeInt32(batteryTemperature);
    p->writeInt32(batteryChargeCounter);
    p->writeString16(String16(batteryTechnology));
    return OK;
}