Loading core/java/android/os/BatteryStats.java +9 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading Loading @@ -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; Loading core/proto/android/os/batterystats.proto +1 −0 Original line number Diff line number Diff line Loading @@ -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. Loading Loading
core/java/android/os/BatteryStats.java +9 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading Loading @@ -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; Loading
core/proto/android/os/batterystats.proto +1 −0 Original line number Diff line number Diff line Loading @@ -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. Loading