2 * Copyright (C) 2016 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package android.hardware.thermal@1.0;
22 * Retrieves temperatures in Celsius.
24 * @return status Status of the operation. If status code is FAILURE,
25 * the status.debugMessage must be populated with the human-readable
27 * @return temperatures If status code is SUCCESS, it's filled with the
28 * current temperatures. The order of temperatures of built-in
29 * devices (such as CPUs, GPUs and etc.) in the list must be kept
30 * the same regardless the number of calls to this method even if
31 * they go offline, if these devices exist on boot. The method
32 * always returns and never removes such temperatures.
39 generates (ThermalStatus status, vec<Temperature> temperatures);
42 * Retrieves CPU usage information of each core: active and total times
43 * in ms since first boot.
45 * @return status Status of the operation. If status code is FAILURE,
46 * the status.debugMessage must be populated with the human-readable
48 * @return cpuUsages If status code is SUCCESS, it's filled with the current
49 * CPU usages. The order and number of CPUs in the list must be kept
50 * the same regardless the number of calls to this method.
56 getCpuUsages() generates (ThermalStatus status, vec<CpuUsage> cpuUsages);
59 * Retrieves the cooling devices information.
61 * @return status Status of the operation. If status code is FAILURE,
62 * the status.debugMessage must be populated with the human-readable
64 * @return devices If status code is SUCCESS, it's filled with the current
65 * cooling device information. The order of built-in cooling
66 * devices in the list must be kept the same regardless the number
67 * of calls to this method even if they go offline, if these devices
68 * exist on boot. The method always returns and never removes from
69 * the list such cooling devices.
76 generates (ThermalStatus status, vec<CoolingDevice> devices);