AreaIdConfig
public
final
class
AreaIdConfig
extends Object
implements
Parcelable
java.lang.Object
|
↳ |
android.car.hardware.property.AreaIdConfig<T>
|
Represents area ID specific configuration information for a vehicle property.
Summary
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
CREATOR
public static final Creator<AreaIdConfig<Object>> CREATOR
Public methods
describeContents
public int describeContents ()
getAccess
public int getAccess ()
Return the access type of the car property at the current areaId.
The access type could be one of the following:
getAreaId
public int getAreaId ()
Returns the area ID for this configuration.
Returns |
int |
area ID for this configuration. |
getMaxValue
public T getMaxValue ()
Returns the maximum value supported for the getAreaId()
.
Returns |
T |
maximum value supported for the getAreaId() . Will return null if no
maximum value supported. |
getMinValue
public T getMinValue ()
Returns the minimum value supported for the getAreaId()
.
Returns |
T |
minimum value supported for the getAreaId() . Will return null if no
minimum value supported. |
getSupportedEnumValues
public List<T> getSupportedEnumValues ()
Returns the supported enum values for the getAreaId()
. If list is empty, the
property does not support an enum.
isVariableUpdateRateSupported
public boolean isVariableUpdateRateSupported ()
Returns whether variable update rate is supported.
If this returns false
, variable update rate is always disabled for this area ID.
If this returns true
, variable update rate will be disabled if client calls
Subscription.Builder#setVariableUpdateRateEnabled
with false
, or enabled
otherwise.
Returns |
boolean |
whether variable update rate is supported. |
toString
public String toString ()
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."],[],[]]