• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 import android.car.annotation.AddedInOrBefore;
20 
21 /**
22  * Copy from android.frameworks.automotive.powerpolicy-java-source/gen/android/frameworks/automotive
23  * /powerpolicy/PowerComponent.java. Must be updated when power components are added to
24  * {@link android.frameworks.hardware.automotivie.powerpolicy.PowerComponent}.
25  */
26 public @interface PowerComponent {
27     /**
28      * This is used to turn on/off audio through power policy.
29      */
30     @AddedInOrBefore(majorVersion = 33)
31     int AUDIO = 1;
32     /**
33      * This is used to turn on/off media playing/recording through power policy.
34      */
35     @AddedInOrBefore(majorVersion = 33)
36     int MEDIA = 2;
37     /**
38      * This is used to turn on/off display through power policy.
39      */
40     @AddedInOrBefore(majorVersion = 33)
41     int DISPLAY = 3;
42     /**
43      * This is used to turn on/off bluetooth through power policy.
44      */
45     @AddedInOrBefore(majorVersion = 33)
46     int BLUETOOTH = 4;
47     /**
48      * This is used to turn on/off WiFi network through power policy.
49      */
50     @AddedInOrBefore(majorVersion = 33)
51     int WIFI = 5;
52     /**
53      * This is used to turn on/off cellular network through power policy.
54      */
55     @AddedInOrBefore(majorVersion = 33)
56     int CELLULAR = 6;
57     /**
58      * This is used to turn on/off ethernet through power policy.
59      */
60     @AddedInOrBefore(majorVersion = 33)
61     int ETHERNET = 7;
62     /**
63      * This is used to turn on/off projection from other devices through power policy.
64      */
65     @AddedInOrBefore(majorVersion = 33)
66     int PROJECTION = 8;
67     /**
68      * This is used to turn on/off NFC through power policy.
69      */
70     @AddedInOrBefore(majorVersion = 33)
71     int NFC = 9;
72     /**
73      * This is used to turn on/off all inputs from users through power policy.
74      */
75     @AddedInOrBefore(majorVersion = 33)
76     int INPUT = 10;
77     /**
78      * This is used to turn on/off voice interaction through power policy.
79      */
80     @AddedInOrBefore(majorVersion = 33)
81     int VOICE_INTERACTION = 11;
82     /**
83      * This is used to turn on/off visual interaction through power policy.
84      */
85     @AddedInOrBefore(majorVersion = 33)
86     int VISUAL_INTERACTION = 12;
87     /**
88      * This is used to turn on/off trusted device detection through power policy.
89      */
90     @AddedInOrBefore(majorVersion = 33)
91     int TRUSTED_DEVICE_DETECTION = 13;
92     /**
93      * This is used to turn on/off location through power policy.
94      */
95     @AddedInOrBefore(majorVersion = 33)
96     int LOCATION = 14;
97     /**
98      * This is used to turn on/off microphone through power policy.
99      */
100     @AddedInOrBefore(majorVersion = 33)
101     int MICROPHONE = 15;
102     /**
103      * This is used to turn on/off CPU through power policy. It will turn into off state when system
104      * goes into sleep state. It will be restored to on state when system gets out of sleep state.
105      */
106     @AddedInOrBefore(majorVersion = 33)
107     int CPU = 16;
108 }
109