PowerComponent

public abstract @interface PowerComponent
implements Annotation

android.car.hardware.power.PowerComponent


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

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

int BLUETOOTH

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

int CELLULAR

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

int CPU

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

int DISPLAY

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

int ETHERNET

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

int INPUT

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

int LOCATION

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

int MEDIA

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

int MICROPHONE

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

int MINIMUM_CUSTOM_COMPONENT_VALUE

This is minimal allowed value for custom defined power components

int NFC

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

int PROJECTION

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

int TRUSTED_DEVICE_DETECTION

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

int VISUAL_INTERACTION

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

int VOICE_INTERACTION

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

int WIFI

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

Inherited methods

Constants

AUDIO

Added in API level 31
public static final int AUDIO

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

Constant Value: 1 (0x00000001)

BLUETOOTH

Added in API level 31
public static final int BLUETOOTH

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

Constant Value: 4 (0x00000004)

CELLULAR

Added in API level 31
public static final int CELLULAR

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

Constant Value: 6 (0x00000006)

CPU

Added in API level 31
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.

Constant Value: 16 (0x00000010)

DISPLAY

Added in API level 31
public static final int DISPLAY

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

Constant Value: 3 (0x00000003)

ETHERNET

Added in API level 31
public static final int ETHERNET

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

Constant Value: 7 (0x00000007)

INPUT

Added in API level 31
public static final int INPUT

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

Constant Value: 10 (0x0000000a)

LOCATION

Added in API level 31
public static final int LOCATION

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

Constant Value: 14 (0x0000000e)

MEDIA

Added in API level 31
public static final int MEDIA

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

Constant Value: 2 (0x00000002)

MICROPHONE

Added in API level 31
public static final int MICROPHONE

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

Constant Value: 15 (0x0000000f)

MINIMUM_CUSTOM_COMPONENT_VALUE

Added in API level 34
public static final int MINIMUM_CUSTOM_COMPONENT_VALUE

This is minimal allowed value for custom defined power components

Constant Value: 1000 (0x000003e8)

NFC

Added in API level 31
public static final int NFC

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

Constant Value: 9 (0x00000009)

PROJECTION

Added in API level 31
public static final int PROJECTION

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

Constant Value: 8 (0x00000008)

TRUSTED_DEVICE_DETECTION

Added in API level 31
public static final int TRUSTED_DEVICE_DETECTION

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

Constant Value: 13 (0x0000000d)

VISUAL_INTERACTION

Added in API level 31
public static final int VISUAL_INTERACTION

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

Constant Value: 12 (0x0000000c)

VOICE_INTERACTION

Added in API level 31
public static final int VOICE_INTERACTION

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

Constant Value: 11 (0x0000000b)

WIFI

Added in API level 31
public static final int WIFI

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

Constant Value: 5 (0x00000005)