# PowerComponent

Summary:[Constants](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#constants)\|[Inherited Methods](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#inhmethods)  

# PowerComponent

`
public


abstract
@interface
PowerComponent
`  
`


implements

Annotation


`

|-------------------------------------------|
| android.car.hardware.power.PowerComponent |

<br />

*** ** * ** ***

Copy from android.frameworks.automotive.powerpolicy-java-source/gen/android/frameworks/automotive /powerpolicy/PowerComponent.java. Must be updated when power components are added to`android.frameworks.automotive.powerpolicy.PowerComponent`.

## Summary

|                                                                                                        ### Constants                                                                                                        ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [AUDIO](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#AUDIO) This is used to turn on/off audio through power policy.                                                             |
| `int` | [BLUETOOTH](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#BLUETOOTH) This is used to turn on/off bluetooth through power policy.                                                 |
| `int` | [CELLULAR](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#CELLULAR) This is used to turn on/off cellular network through power policy.                                            |
| `int` | [CPU](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#CPU) This is used to turn on/off CPU through power policy.                                                                   |
| `int` | [DISPLAY](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#DISPLAY) This is used to turn on/off display through power policy.                                                       |
| `int` | [ETHERNET](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#ETHERNET) This is used to turn on/off ethernet through power policy.                                                    |
| `int` | [INPUT](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#INPUT) This is used to turn on/off all inputs from users through power policy.                                             |
| `int` | [LOCATION](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#LOCATION) This is used to turn on/off location through power policy.                                                    |
| `int` | [MEDIA](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#MEDIA) This is used to turn on/off media playing/recording through power policy.                                           |
| `int` | [MICROPHONE](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#MICROPHONE) This is used to turn on/off microphone through power policy.                                              |
| `int` | [MINIMUM_CUSTOM_COMPONENT_VALUE](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#MINIMUM_CUSTOM_COMPONENT_VALUE) This is minimal allowed value for custom defined power components |
| `int` | [NFC](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#NFC) This is used to turn on/off NFC through power policy.                                                                   |
| `int` | [PROJECTION](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#PROJECTION) This is used to turn on/off projection from other devices through power policy.                           |
| `int` | [TRUSTED_DEVICE_DETECTION](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#TRUSTED_DEVICE_DETECTION) This is used to turn on/off trusted device detection through power policy.    |
| `int` | [VISUAL_INTERACTION](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#VISUAL_INTERACTION) This is used to turn on/off visual interaction through power policy.                      |
| `int` | [VOICE_INTERACTION](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#VOICE_INTERACTION) This is used to turn on/off voice interaction through power policy.                         |
| `int` | [WIFI](https://developer.android.com/reference/android/car/hardware/power/PowerComponent#WIFI) This is used to turn on/off WiFi network through power policy.                                                        |

| ### Inherited methods |
|-----------------------|---|
| From interface` java.lang.annotation.Annotation ` |-----------------------------------------|-------------------------| | ` abstract Class<? extends Annotation>` | ` annotationType() `    | | ` abstract boolean`                     | ` equals(Object arg0) ` | | ` abstract int`                         | ` hashCode() `          | | ` abstract String`                      | ` toString() `          | ||

## Constants

### AUDIO

```
public static final int AUDIO
```

This is used to turn on/off audio through power policy.

<br />

Constant Value: 1 (0x00000001)  

### BLUETOOTH

```
public static final int BLUETOOTH
```

This is used to turn on/off bluetooth through power policy.

<br />

Constant Value: 4 (0x00000004)  

### CELLULAR

```
public static final int CELLULAR
```

This is used to turn on/off cellular network through power policy.

<br />

Constant Value: 6 (0x00000006)  

### CPU

```
public static final int CPU
```

This is used to turn on/off CPU through power policy. It will turn into off state when system goes into sleep state. It will be restored to on state when system gets out of sleep state.

<br />

Constant Value: 16 (0x00000010)  

### DISPLAY

```
public static final int DISPLAY
```

This is used to turn on/off display through power policy.

<br />

Constant Value: 3 (0x00000003)  

### ETHERNET

```
public static final int ETHERNET
```

This is used to turn on/off ethernet through power policy.

<br />

Constant Value: 7 (0x00000007)  

### INPUT

```
public static final int INPUT
```

This is used to turn on/off all inputs from users through power policy.

<br />

Constant Value: 10 (0x0000000a)  

### LOCATION

```
public static final int LOCATION
```

This is used to turn on/off location through power policy.

<br />

Constant Value: 14 (0x0000000e)  

### MEDIA

```
public static final int MEDIA
```

This is used to turn on/off media playing/recording through power policy.

<br />

Constant Value: 2 (0x00000002)  

### MICROPHONE

```
public static final int MICROPHONE
```

This is used to turn on/off microphone through power policy.

<br />

Constant Value: 15 (0x0000000f)  

### MINIMUM_CUSTOM_COMPONENT_VALUE

```
public static final int MINIMUM_CUSTOM_COMPONENT_VALUE
```

This is minimal allowed value for custom defined power components

<br />

Constant Value: 1000 (0x000003e8)  

### NFC

```
public static final int NFC
```

This is used to turn on/off NFC through power policy.

<br />

Constant Value: 9 (0x00000009)  

### PROJECTION

```
public static final int PROJECTION
```

This is used to turn on/off projection from other devices through power policy.

<br />

Constant Value: 8 (0x00000008)  

### TRUSTED_DEVICE_DETECTION

```
public static final int TRUSTED_DEVICE_DETECTION
```

This is used to turn on/off trusted device detection through power policy.

<br />

Constant Value: 13 (0x0000000d)  

### VISUAL_INTERACTION

```
public static final int VISUAL_INTERACTION
```

This is used to turn on/off visual interaction through power policy.

<br />

Constant Value: 12 (0x0000000c)  

### VOICE_INTERACTION

```
public static final int VOICE_INTERACTION
```

This is used to turn on/off voice interaction through power policy.

<br />

Constant Value: 11 (0x0000000b)  

### WIFI

```
public static final int WIFI
```

This is used to turn on/off WiFi network through power policy.

<br />

Constant Value: 5 (0x00000005)