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

Commit 0c41a17c authored by Kweku Adams's avatar Kweku Adams Committed by android-build-merger
Browse files

Merge "Updating BatteryStats to account for Ambient Display sipper." into pi-dev

am: 5d9498a6

Change-Id: Id2a3bb41586790366a945946bbb3326a4c7de142
parents e2fcabc9 5d9498a6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3814,6 +3814,9 @@ public abstract class BatteryStats implements Parcelable {
                final BatterySipper bs = sippers.get(i);
                String label;
                switch (bs.drainType) {
                    case AMBIENT_DISPLAY:
                        label = "ambi";
                        break;
                    case IDLE:
                        label="idle";
                        break;
@@ -4975,6 +4978,9 @@ public abstract class BatteryStats implements Parcelable {
                final BatterySipper bs = sippers.get(i);
                pw.print(prefix);
                switch (bs.drainType) {
                    case AMBIENT_DISPLAY:
                        pw.print("    Ambient display: ");
                        break;
                    case IDLE:
                        pw.print("    Idle: ");
                        break;
@@ -7777,6 +7783,9 @@ public abstract class BatteryStats implements Parcelable {
                int n = SystemProto.PowerUseItem.UNKNOWN_SIPPER;
                int uid = 0;
                switch (bs.drainType) {
                    case AMBIENT_DISPLAY:
                        n = SystemProto.PowerUseItem.AMBIENT_DISPLAY;
                        break;
                    case IDLE:
                        n = SystemProto.PowerUseItem.IDLE;
                        break;
+1 −0
Original line number Diff line number Diff line
@@ -345,6 +345,7 @@ message SystemProto {
      OVERCOUNTED = 10;
      CAMERA = 11;
      MEMORY = 12;
      AMBIENT_DISPLAY = 13;
    };
    optional Sipper name = 1;
    // UID, only valid for the USER sipper.