blob: 0c5c17d3a96705eb5f972720c94a1b63a1f7ecc1 [file] [log] [blame]
Peiyong Lin56960752022-09-30 21:52:52 +00001/*
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 *
81 * 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
17package android.hardware.thermal;
18
19import android.hardware.thermal.CoolingType;
20
Xiang Wang057df142022-12-01 12:09:41 -080021/* @hide */
Peiyong Lin56960752022-09-30 21:52:52 +000022@VintfStability
Xiang Wang2e10dc42023-02-09 15:54:27 -080023@JavaDerive(toString=true)
Peiyong Lin56960752022-09-30 21:52:52 +000024parcelable 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}