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

Commit 5345624e authored by Benjamin Schwartz's avatar Benjamin Schwartz
Browse files

powerstats: Refine PowerStats HAL 2.0 documentation

Bug: 169864180
Test: m
Change-Id: I988ff3508fdb09803a0ffdafc9d40cac3b72e075
parent 7ad3ec8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,5 +19,5 @@ package android.hardware.powerstats;
@VintfStability
parcelable ChannelInfo {
  int channelId;
  String channelName;
  @utf8InCpp String channelName;
}
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ package android.hardware.powerstats;
@VintfStability
interface IPowerStats {
  android.hardware.powerstats.PowerEntityInfo[] getPowerEntityInfo();
  android.hardware.powerstats.StateResidencyResult[] getPowerEntityStateResidency(in int[] powerEntityIds);
  android.hardware.powerstats.StateResidencyResult[] getStateResidency(in int[] powerEntityIds);
  android.hardware.powerstats.EnergyConsumerId[] getEnergyConsumerInfo();
  android.hardware.powerstats.EnergyConsumerResult[] getEnergyConsumed(in android.hardware.powerstats.EnergyConsumerId[] energyConsumerIds);
  android.hardware.powerstats.ChannelInfo[] getEnergyMeterInfo();
+1 −1
Original line number Diff line number Diff line
@@ -19,6 +19,6 @@ package android.hardware.powerstats;
@VintfStability
parcelable PowerEntityInfo {
  int powerEntityId;
  String powerEntityName;
  @utf8InCpp String powerEntityName;
  android.hardware.powerstats.StateInfo[] states;
}
+1 −1
Original line number Diff line number Diff line
@@ -19,5 +19,5 @@ package android.hardware.powerstats;
@VintfStability
parcelable StateInfo {
  int stateId;
  String stateName;
  @utf8InCpp String stateName;
}
+3 −5
Original line number Diff line number Diff line
@@ -19,14 +19,12 @@ package android.hardware.powerstats;
@VintfStability
parcelable ChannelInfo {
    /**
     * Unique ID
     * Unique ID of this ChannelInfo
     */
    int channelId;
    /**
     * Unique name of the ChannelInfo:
     *
     * Vendor/device specific. Opaque to framework
     * Unique name of the ChannelInfo. Vendor/device specific. Opaque to framework
     */
    String channelName;
    @utf8InCpp String channelName;
}
Loading