Package: android.hardware.thermal@1.0

IThermal

interface IThermal

Methods

getTemperatures

getTemperatures ()
generates (ThermalStatus status, vec<Temperature> temperatures)

Retrieves temperatures in Celsius.

Details
Generates
status
Status of the operation.If status code is FAILURE, the status.debugMessage must be populated with the human-readable error message.
temperatures
If status code is SUCCESS, it's filled with the current temperatures.The order of temperatures of built-in devices(such as CPUs, GPUs and etc .)in the list must be kept the same regardless the number of calls to this method even if they go offline, if these devices exist on boot.The method always returns and never removes such temperatures.
Annotations
callflow
next= { "*" }
entry
exit

getCpuUsages

getCpuUsages ()
generates (ThermalStatus status, vec<CpuUsage> cpuUsages)

Retrieves CPU usage information of each core:active and total times in ms since first boot.

Details
Generates
status
Status of the operation.If status code is FAILURE, the status.debugMessage must be populated with the human-readable error message.
cpuUsages
If status code is SUCCESS, it's filled with the current CPU usages.The order and number of CPUs in the list must be kept the same regardless the number of calls to this method.
Annotations
callflow
next= { "*" }
entry
exit

getCoolingDevices

getCoolingDevices ()
generates (ThermalStatus status, vec<CoolingDevice> devices)

Retrieves the cooling devices information.

Details
Generates
status
Status of the operation.If status code is FAILURE, the status.debugMessage must be populated with the human-readable error message.
devices
If status code is SUCCESS, it's filled with the current cooling device information.The order of built-in cooling devices in the list must be kept the same regardless the number of calls to this method even if they go offline, if these devices exist on boot.The method always returns and never removes from the list such cooling devices.
Annotations
callflow
next= { "*" }
entry
exit