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.car.hardware.power; 18 19 /** 20 * Copy from android.frameworks.automotive.powerpolicy-java-source/gen/android/frameworks/automotive 21 * /powerpolicy/PowerComponent.java. 22 * Must be updated when power components are added to 23 * {@link android.frameworks.hardware.automotivie.powerpolicy.PowerComponent}. 24 */ 25 public @interface PowerComponent { 26 /** 27 * This is used to turn on/off audio through power policy. 28 */int AUDIO = 1; 29 /** 30 * This is used to turn on/off media playing/recording through power policy. 31 */int MEDIA = 2; 32 /** 33 * This is used to turn on/off display through power policy. 34 */int DISPLAY = 3; 35 /** 36 * This is used to turn on/off bluetooth through power policy. 37 */int BLUETOOTH = 4; 38 /** 39 * This is used to turn on/off WiFi network through power policy. 40 */int WIFI = 5; 41 /** 42 * This is used to turn on/off cellular network through power policy. 43 */int CELLULAR = 6; 44 /** 45 * This is used to turn on/off ethernet through power policy. 46 */int ETHERNET = 7; 47 /** 48 * This is used to turn on/off projection from other devices through power policy. 49 */int PROJECTION = 8; 50 /** 51 * This is used to turn on/off NFC through power policy. 52 */int NFC = 9; 53 /** 54 * This is used to turn on/off all inputs from users through power policy. 55 */int INPUT = 10; 56 /** 57 * This is used to turn on/off voice interaction through power policy. 58 */int VOICE_INTERACTION = 11; 59 /** 60 * This is used to turn on/off visual interaction through power policy. 61 */int VISUAL_INTERACTION = 12; 62 /** 63 * This is used to turn on/off trusted device detection through power policy. 64 */int TRUSTED_DEVICE_DETECTION = 13; 65 /** 66 * This is used to turn on/off location through power policy. 67 */int LOCATION = 14; 68 /** 69 * This is used to turn on/off microphone through power policy. 70 */int MICROPHONE = 15; 71 /** 72 * This is used to turn on/off CPU through power policy. 73 * It will turn into off state when system goes into sleep state. It will be restored to on 74 * state when system gets out of sleep state. 75 */int CPU = 16; 76 } 77