CarPowerPolicyFilter

public final class CarPowerPolicyFilter
extends Object implements Parcelable

java.lang.Object
   ↳ android.car.hardware.power.CarPowerPolicyFilter


Filter to receive power policy changes that a listener is interested in. For the record: When running codegen, auto-generated constructor of Builder which takes one argument should be removed manually, so that we can use the default constructor.

Summary

Nested classes

class CarPowerPolicyFilter.Builder

A builder for CarPowerPolicyFilter 

Inherited constants

Fields

public static final Creator<CarPowerPolicyFilter> CREATOR

Public methods

int describeContents()
int[] getComponents()

List of components of interest.

void writeToParcel(Parcel dest, int flags)

Inherited methods

Fields

CREATOR

Added in API level 31
public static final Creator<CarPowerPolicyFilter> CREATOR

Public methods

describeContents

Added in API level 31
public int describeContents ()

Returns
int

getComponents

Added in API level 31
public int[] getComponents ()

List of components of interest. Components are one of android.frameworks.automotive.powerpolicy.PowerComponent.

Returns
int[]

writeToParcel

Added in API level 31
public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int