1 /* 2 * Copyright (C) 2020 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.power; 18 19 @VintfStability 20 @Backing(type="int") 21 enum Boost { 22 /** 23 * This boost is set when user interacting with the device, for example, 24 * touchscreen events are incoming. CPU and GPU load may be expected soon, 25 * and it may be appropriate to raise speeds of CPU, memory bus etc. 26 * Note that this is different from INTERACTIVE mode, which only indicates 27 * that such interaction *may* occur, not that it is actively occurring. 28 */ 29 INTERACTION, 30 31 /** 32 * This boost indicates that the framework is likely to provide a new 33 * display frame soon. This implies that the device should ensure that the 34 * display processing path is powered up and ready to receive that update. 35 */ 36 DISPLAY_UPDATE_IMMINENT, 37 38 /** 39 * Below hints are currently not sent in Android framework but OEM might choose to 40 * implement for power/perf optimizations. 41 */ 42 43 /** 44 * This boost indicates that the device is interacting with ML accelerator. 45 */ 46 ML_ACC, 47 48 /** 49 * This boost indicates that the device is setting up audio stream. 50 */ 51 AUDIO_LAUNCH, 52 53 /** 54 * This boost indicates that camera is being launched. 55 */ 56 CAMERA_LAUNCH, 57 58 /** 59 * This boost indicates that camera shot is being taken. 60 */ 61 CAMERA_SHOT, 62 } 63