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 |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR
|
int |
PARCELABLE_ELIDE_DUPLICATES
|
int |
PARCELABLE_STABILITY_LOCAL
|
int |
PARCELABLE_STABILITY_VINTF
|
int |
PARCELABLE_WRITE_RETURN_VALUE
|
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
default
int
|
getStability()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
Public methods
describeContents
public int describeContents ()
getComponents
public int[] getComponents ()
List of components of interest. Components are one of
android.frameworks.automotive.powerpolicy.PowerComponent
.
writeToParcel
public void writeToParcel (Parcel dest,
int flags)
Parameters |
dest |
Parcel |
flags |
int |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-17 UTC.
[null,null,["Last updated 2025-02-17 UTC."],[],[],null,["# CarPowerPolicyFilter\n\nSummary: [Nested Classes](#nestedclasses) \\| [Inherited Constants](#inhconstants) \\| [Fields](#lfields) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nCarPowerPolicyFilter\n====================\n\n\n`\npublic\n\nfinal\n\nclass\nCarPowerPolicyFilter\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\nimplements\n\nParcelable\n\n\n`\n\n|---|-------------------------------------------------|\n| java.lang.Object ||\n| ↳ | android.car.hardware.power.CarPowerPolicyFilter |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nFilter to receive power policy changes that a listener is interested in.\n\nFor the record: When running codegen, auto-generated constructor of [Builder](/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder) which takes\none argument should be removed manually, so that we can use the default constructor.\n\nSummary\n-------\n\n| ### Nested classes ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` class` | [CarPowerPolicyFilter.Builder](/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder) A builder for [CarPowerPolicyFilter](/reference/android/car/hardware/power/CarPowerPolicyFilter) |\n\n| ### Inherited constants |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| From interface `android.os.Parcelable` |-------|---------------------------------| | `int` | `CONTENTS_FILE_DESCRIPTOR` | | `int` | `PARCELABLE_ELIDE_DUPLICATES` | | `int` | `PARCELABLE_STABILITY_LOCAL` | | `int` | `PARCELABLE_STABILITY_VINTF` | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` | |\n\n| ### Fields ||\n|----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| ` public static final Creator\u003c`[CarPowerPolicyFilter](/reference/android/car/hardware/power/CarPowerPolicyFilter)`\u003e` | [CREATOR](/reference/android/car/hardware/power/CarPowerPolicyFilter#CREATOR) |\n\n| ### Public methods ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[describeContents](/reference/android/car/hardware/power/CarPowerPolicyFilter#describeContents())`() ` |\n| ` int[]` | ` `[getComponents](/reference/android/car/hardware/power/CarPowerPolicyFilter#getComponents())`() ` List of components of interest. |\n| ` void` | ` `[writeToParcel](/reference/android/car/hardware/power/CarPowerPolicyFilter#writeToParcel(android.os.Parcel,%20int))`(Parcel dest, int flags) ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n| From interface ` android.os.Parcelable ` |------------------|------------------------------------------| | ` abstract int` | ` describeContents() ` | | ` default int` | ` getStability() ` | | ` abstract void` | ` writeToParcel(Parcel arg0, int arg1) ` | ||\n\nFields\n------\n\n### CREATOR\n\n```\npublic static final Creator\u003cCarPowerPolicyFilter\u003e CREATOR\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### describeContents\n\n```\npublic int describeContents ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getComponents\n\n```\npublic int[] getComponents ()\n```\n\nList of components of interest. Components are one of\n`android.frameworks.automotive.powerpolicy.PowerComponent`.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------|\n| `int[]` | \u003cbr /\u003e |\n\n### writeToParcel\n\n```\npublic void writeToParcel (Parcel dest, \n int flags)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------|\n| `dest` | `Parcel` \u003cbr /\u003e |\n| `flags` | `int` \u003cbr /\u003e |"]]