diff --git a/compatibility_matrices/compatibility_matrix.9.xml b/compatibility_matrices/compatibility_matrix.9.xml index 023690d7d0..0b6f1127c1 100644 --- a/compatibility_matrices/compatibility_matrix.9.xml +++ b/compatibility_matrices/compatibility_matrix.9.xml @@ -577,7 +577,7 @@ android.hardware.thermal - 1 + 2 IThermal default diff --git a/thermal/aidl/Android.bp b/thermal/aidl/Android.bp index 9382b941b0..734aab7d0e 100644 --- a/thermal/aidl/Android.bp +++ b/thermal/aidl/Android.bp @@ -45,6 +45,6 @@ aidl_interface { imports: [], }, ], - frozen: true, + frozen: false, } diff --git a/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/CoolingType.aidl b/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/CoolingType.aidl index 1f87cf29ae..5e88aa056c 100644 --- a/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/CoolingType.aidl +++ b/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/CoolingType.aidl @@ -46,4 +46,8 @@ enum CoolingType { POWER_AMPLIFIER, DISPLAY, SPEAKER, + WIFI, + CAMERA, + FLASHLIGHT, + USB_PORT, } diff --git a/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/TemperatureType.aidl b/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/TemperatureType.aidl index e9710a7987..665a36e8b1 100644 --- a/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/TemperatureType.aidl +++ b/thermal/aidl/aidl_api/android.hardware.thermal/current/android/hardware/thermal/TemperatureType.aidl @@ -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, } diff --git a/thermal/aidl/android/hardware/thermal/CoolingType.aidl b/thermal/aidl/android/hardware/thermal/CoolingType.aidl index 08beb55d83..c00028debc 100644 --- a/thermal/aidl/android/hardware/thermal/CoolingType.aidl +++ b/thermal/aidl/android/hardware/thermal/CoolingType.aidl @@ -34,4 +34,8 @@ enum CoolingType { POWER_AMPLIFIER, DISPLAY, SPEAKER, + WIFI, + CAMERA, + FLASHLIGHT, + USB_PORT, } diff --git a/thermal/aidl/android/hardware/thermal/TemperatureType.aidl b/thermal/aidl/android/hardware/thermal/TemperatureType.aidl index 467d096439..ce2a9fcf7e 100644 --- a/thermal/aidl/android/hardware/thermal/TemperatureType.aidl +++ b/thermal/aidl/android/hardware/thermal/TemperatureType.aidl @@ -44,4 +44,10 @@ enum TemperatureType { DISPLAY = 11, MODEM = 12, SOC = 13, + WIFI = 14, + CAMERA = 15, + FLASHLIGHT = 16, + SPEAKER = 17, + AMBIENT = 18, + POGO = 19, } diff --git a/thermal/aidl/default/Android.bp b/thermal/aidl/default/Android.bp index 451e1e2c88..9fe62cebdb 100644 --- a/thermal/aidl/default/Android.bp +++ b/thermal/aidl/default/Android.bp @@ -27,7 +27,7 @@ cc_binary { vendor: true, stl: "c++_static", static_libs: [ - "android.hardware.thermal-V1-ndk", + "android.hardware.thermal-V2-ndk", "libbase", ], shared_libs: [ diff --git a/thermal/aidl/default/thermal-example.xml b/thermal/aidl/default/thermal-example.xml index bdee7446f0..08dc68ca04 100644 --- a/thermal/aidl/default/thermal-example.xml +++ b/thermal/aidl/default/thermal-example.xml @@ -1,7 +1,7 @@ android.hardware.thermal - 1 + 2 IThermal/default diff --git a/thermal/aidl/vts/Android.bp b/thermal/aidl/vts/Android.bp index b00eb33b1d..0812811738 100644 --- a/thermal/aidl/vts/Android.bp +++ b/thermal/aidl/vts/Android.bp @@ -32,7 +32,7 @@ cc_test { "libbinder_ndk", ], static_libs: [ - "android.hardware.thermal-V1-ndk", + "android.hardware.thermal-V2-ndk", ], test_suites: [ "vts",