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

Commit 3d8c680f authored by TeYuan Wang's avatar TeYuan Wang Committed by Kame(TeYuan) Wang
Browse files

thermal: support more temperature and cooling device type

Bug: 312540064
Test: build
Change-Id: I6e11a181a09640e3f597344dbcbb7571b7e49453
parent 5c9de122
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -577,7 +577,7 @@
    </hal>
    <hal format="aidl" optional="true">
        <name>android.hardware.thermal</name>
        <version>1</version>
        <version>2</version>
        <interface>
            <name>IThermal</name>
            <instance>default</instance>
+1 −1
Original line number Diff line number Diff line
@@ -45,6 +45,6 @@ aidl_interface {
            imports: [],
        },
    ],
    frozen: true,
    frozen: false,

}
+4 −0
Original line number Diff line number Diff line
@@ -46,4 +46,8 @@ enum CoolingType {
  POWER_AMPLIFIER,
  DISPLAY,
  SPEAKER,
  WIFI,
  CAMERA,
  FLASHLIGHT,
  USB_PORT,
}
+7 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ package android.hardware.thermal;
/* @hide */
@Backing(type="int") @VintfStability
enum TemperatureType {
  UNKNOWN = (-1),
  UNKNOWN = (-1) /* -1 */,
  CPU = 0,
  GPU = 1,
  BATTERY = 2,
@@ -50,4 +50,10 @@ enum TemperatureType {
  DISPLAY = 11,
  MODEM = 12,
  SOC = 13,
  WIFI = 14,
  CAMERA = 15,
  FLASHLIGHT = 16,
  SPEAKER = 17,
  AMBIENT = 18,
  POGO = 19,
}
+4 −0
Original line number Diff line number Diff line
@@ -34,4 +34,8 @@ enum CoolingType {
    POWER_AMPLIFIER,
    DISPLAY,
    SPEAKER,
    WIFI,
    CAMERA,
    FLASHLIGHT,
    USB_PORT,
}
Loading