blob: c66e6c2a2b3ab73370e612eab4bdd7220aa613d1 [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 *
8 * 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
19/**
20 * Device throttling severity
Xiang Wang057df142022-12-01 12:09:41 -080021 * @hide
Peiyong Lin56960752022-09-30 21:52:52 +000022 */
23@VintfStability
24@Backing(type="int")
25enum ThrottlingSeverity {
26 /**
27 * Not under throttling.
28 */
29 NONE = 0,
30 /**
31 * Light throttling where UX is not impacted.
32 */
33 LIGHT,
34 /**
35 * Moderate throttling where UX is not largely impacted.
36 */
37 MODERATE,
38 /**
39 * Severe throttling where UX is largely impacted.
40 * Similar to 1.0 throttlingThreshold.
41 */
42 SEVERE,
43 /**
44 * Platform has done everything to reduce power.
45 */
46 CRITICAL,
47 /**
48 * Key components in platform are shutting down due to thermal condition.
49 * Device functionalities will be limited.
50 */
51 EMERGENCY,
52 /**
53 * Need shutdown immediately.
54 */
55 SHUTDOWN,
56}