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 | * 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 | /** |
| 20 | * Device throttling severity |
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 | */ |
| 23 | @VintfStability |
| 24 | @Backing(type="int") |
| 25 | enum 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 | } |