Peiyong Lin | 5696075 | 2022-09-30 21:52:52 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 The Android Open Source Project |
| 3 | * |
| 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 |
| 7 | * |
| 8 | 1 * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 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. |
| 15 | */ |
| 16 | |
| 17 | package android.hardware.thermal; |
| 18 | |
| 19 | import android.hardware.thermal.CoolingType; |
| 20 | |
Xiang Wang | 057df14 | 2022-12-01 12:09:41 -0800 | [diff] [blame] | 21 | /* @hide */ |
Peiyong Lin | 5696075 | 2022-09-30 21:52:52 +0000 | [diff] [blame] | 22 | @VintfStability |
Xiang Wang | 2e10dc4 | 2023-02-09 15:54:27 -0800 | [diff] [blame] | 23 | @JavaDerive(toString=true) |
Peiyong Lin | 5696075 | 2022-09-30 21:52:52 +0000 | [diff] [blame] | 24 | parcelable CoolingDevice { |
| 25 | /** |
| 26 | * This cooling device type, CPU, GPU, BATTERY, and etc. |
| 27 | */ |
| 28 | CoolingType type; |
| 29 | /** |
| 30 | * Name of this cooling device. |
| 31 | * All cooling devices of the same "type" must have a different "name". |
| 32 | * The name is usually defined in kernel device tree, and this is for client |
| 33 | * logging purpose. |
| 34 | */ |
| 35 | String name; |
| 36 | /** |
| 37 | * Current throttle state of the cooling device. The value can any unsigned integer |
| 38 | * numbers between 0 and max_state defined in its driver, usually representing the |
| 39 | * associated device's power state. 0 means device is not in throttling, higher value |
| 40 | * means deeper throttling. |
| 41 | */ |
| 42 | long value; |
| 43 | } |