# AreaIdConfig

Summary:[Inherited Constants](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#inhconstants)\|[Fields](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#lfields)\|[Methods](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#inhmethods)  

# AreaIdConfig

`
public

final

class
AreaIdConfig
`  
`

extends Object


``


implements

Parcelable


`

|---|-------------------------------------------------|
| java.lang.Object                                   ||
| ↳ | android.car.hardware.property.AreaIdConfig\<T\> |

<br />

*** ** * ** ***

Represents area ID specific configuration information for a vehicle property.

## Summary

|                                                                                                                                                                 ### Inherited constants                                                                                                                                                                 |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface`android.os.Parcelable` |-------|----------------------------------------| | `int` | `CONTENTS_FILE_DESCRIPTOR` <br />      | | `int` | `PARCELABLE_ELIDE_DUPLICATES` <br />   | | `int` | `PARCELABLE_STABILITY_LOCAL` <br />    | | `int` | `PARCELABLE_STABILITY_VINTF` <br />    | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` <br /> | |

|                                                                                                                         ### Fields                                                                                                                         ||
|----------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|
| ` public static final Creator<`[AreaIdConfig](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig)`<Object>>` | [CREATOR](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#CREATOR) <br /> |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ||
|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`     | ` `[describeContents](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#describeContents())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` int`     | ` `[getAccess](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAccess())`() ` Return the access type of the car property at the current areaId.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` int`     | ` `[getAreaId](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())`() ` Returns the area ID for this configuration.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` T`       | ` `[getMaxValue](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getMaxValue())`() ` *This method is deprecated. use[CarPropertyManager.getMinMaxSupportedValue](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getMinMaxSupportedValue(int,%20int))instead. Returns the maximum supported value for the[getAreaId()](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())reported by vehicle hardware at boot time. This value does not change even though the hardware may report a different value after boot. This value may not represent the currently supported max value. Use[CarPropertyManager.getMinMaxSupportedValue](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getMinMaxSupportedValue(int,%20int))for more accurate information.*                |
| ` T`       | ` `[getMinValue](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getMinValue())`() ` *This method is deprecated. use[CarPropertyManager.getMinMaxSupportedValue](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getMinMaxSupportedValue(int,%20int))instead. Returns the minimum supported value for the[getAreaId()](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())reported by vehicle hardware at boot time. This value does not change even though the hardware may report a different value after boot. This value may not represent the currently supported min value. Use[CarPropertyManager.getMinMaxSupportedValue](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getMinMaxSupportedValue(int,%20int))for more accurate information.*                |
| ` List<T>` | ` `[getSupportedEnumValues](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getSupportedEnumValues())`() ` *This method is deprecated. use[CarPropertyManager.getSupportedValuesList](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getSupportedValuesList(int,%20int))instead. Returns the supported enum values for the[getAreaId()](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())reported by vehicle hardware at boot time. This list does not change even though the hardware may report a different list after boot. This list may not represent the currently supported enum values. Use[CarPropertyManager.getSupportedValuesList](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getSupportedValuesList(int,%20int))for more accurate information.* |
| ` boolean` | ` `[hasMaxSupportedValue](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#hasMaxSupportedValue())`() ` Whether \[propertyId, areaId\] has max supported value specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` boolean` | ` `[hasMinSupportedValue](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#hasMinSupportedValue())`() ` Whether \[propertyId, areaId\] has min supported value specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` boolean` | ` `[hasSupportedValuesList](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#hasSupportedValuesList())`() ` Whether \[propertyId, areaId\] has supported value list specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` boolean` | ` `[isVariableUpdateRateSupported](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#isVariableUpdateRateSupported())`() ` Returns whether variable update rate is supported.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` String`  | ` `[toString](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#toString())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` void`    | ` `[writeToParcel](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#writeToParcel(android.os.Parcel,%20int))`(Parcel dest, int flags) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

| ### 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
```

<br />

<br />

## Public methods

### describeContents

```
public int describeContents ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### 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:

- [CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_NONE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_NONE)
- [CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ)
- [CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_WRITE)
- [CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ_WRITE)

<br />

<br />

|                                                                                                                                                                                                                                                                                                                                                                          Returns                                                                                                                                                                                                                                                                                                                                                                          ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | the access type of the car property at the current areaId. Value is[CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_NONE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_NONE),[CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ),[CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_WRITE), or[CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ_WRITE](https://developer.android.com/reference/android/car/hardware/CarPropertyConfig#VEHICLE_PROPERTY_ACCESS_READ_WRITE) <br /> |

### getAreaId

```
public int getAreaId ()
```

Returns the area ID for this configuration.

<br />

|                    Returns                    ||
|-------|----------------------------------------|
| `int` | area ID for this configuration. <br /> |

### getMaxValue

```
public T getMaxValue ()
```

<br />

**This method is deprecated.**   
use[CarPropertyManager.getMinMaxSupportedValue](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getMinMaxSupportedValue(int,%20int))instead. Returns the maximum supported value for the[getAreaId()](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())reported by vehicle hardware at boot time. This value does not change even though the hardware may report a different value after boot. This value may not represent the currently supported max value. Use[CarPropertyManager.getMinMaxSupportedValue](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getMinMaxSupportedValue(int,%20int))for more accurate information.

<br />

<br />

|                                                                                                        Returns                                                                                                        ||
|-----|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `T` | maximum value supported for the[getAreaId()](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())at boot time. Will return`null`if no maximum value supported. <br /> |

### getMinValue

```
public T getMinValue ()
```

<br />

**This method is deprecated.**   
use[CarPropertyManager.getMinMaxSupportedValue](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getMinMaxSupportedValue(int,%20int))instead. Returns the minimum supported value for the[getAreaId()](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())reported by vehicle hardware at boot time. This value does not change even though the hardware may report a different value after boot. This value may not represent the currently supported min value. Use[CarPropertyManager.getMinMaxSupportedValue](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getMinMaxSupportedValue(int,%20int))for more accurate information.

<br />

<br />

|                                                                                                        Returns                                                                                                        ||
|-----|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `T` | minimum value supported for the[getAreaId()](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())at boot time. Will return`null`if no minimum value supported. <br /> |

### getSupportedEnumValues

```
public List<T> getSupportedEnumValues ()
```

<br />

**This method is deprecated.**   
use[CarPropertyManager.getSupportedValuesList](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getSupportedValuesList(int,%20int))instead. Returns the supported enum values for the[getAreaId()](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())reported by vehicle hardware at boot time. This list does not change even though the hardware may report a different list after boot. This list may not represent the currently supported enum values. Use[CarPropertyManager.getSupportedValuesList](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getSupportedValuesList(int,%20int))for more accurate information.

<br />

<br />

|                                                                                                                       Returns                                                                                                                       ||
|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `List<T>` | supported enum values for the[getAreaId()](https://developer.android.com/reference/android/car/hardware/property/AreaIdConfig#getAreaId())at boot time. If this list is empty, no enums are supported for this area at boot time. <br /> |

### hasMaxSupportedValue

```
public boolean hasMaxSupportedValue ()
```

Whether \[propertyId, areaId\] has max supported value specified.

If this returns`true`, it means the hardware specifies a min supported value for this property. In normal cases,[ERROR(CarPropertyManager.getMinMaxSupportedValue()/android.car.hardware.property.CarPropertyManager#getMinMaxSupportedValue() CarPropertyManager.getMinMaxSupportedValue())](https://developer.android.com/)will return a structure whose[MinMaxSupportedValue.getMaxValue()](https://developer.android.com/reference/android/car/hardware/property/MinMaxSupportedValue#getMaxValue())method returns a non-null result. In non-normal (error) cases,[MinMaxSupportedValue.getMaxValue()](https://developer.android.com/reference/android/car/hardware/property/MinMaxSupportedValue#getMaxValue())may still return`null`.

If this returns`false`,[MinMaxSupportedValue.getMaxValue()](https://developer.android.com/reference/android/car/hardware/property/MinMaxSupportedValue#getMaxValue())always returns`null`.

Unless otherwise specified in[ERROR(/VehiclePropertyIds)](https://developer.android.com/)documentation, this function returns`false`for any system properties whose type is not int32, int64 or float.

For certain properties, e.g.`EV_BRAKE_REGENERATION_LEVEL`, this always return`true`. Check`VehiclePropertyIds`documentation for detail.

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### hasMinSupportedValue

```
public boolean hasMinSupportedValue ()
```

Whether \[propertyId, areaId\] has min supported value specified.

If this returns`true`, it means the hardware specifies a min supported value for this property. In normal cases,[ERROR(CarPropertyManager.getMinMaxSupportedValue()/android.car.hardware.property.CarPropertyManager#getMinMaxSupportedValue() CarPropertyManager.getMinMaxSupportedValue())](https://developer.android.com/)will return a structure whose[MinMaxSupportedValue.getMinValue()](https://developer.android.com/reference/android/car/hardware/property/MinMaxSupportedValue#getMinValue())method returns a non-null result. In non-normal (error) cases,[MinMaxSupportedValue.getMinValue()](https://developer.android.com/reference/android/car/hardware/property/MinMaxSupportedValue#getMinValue())may still return`null`.

If this returns`false`,[MinMaxSupportedValue.getMinValue()](https://developer.android.com/reference/android/car/hardware/property/MinMaxSupportedValue#getMinValue())always returns`null`.

Unless otherwise specified in[ERROR(/VehiclePropertyIds)](https://developer.android.com/)documentation, this function returns`false`for any system properties whose type is not int32, int64 or float.

For certain properties, e.g.`EV_BRAKE_REGENERATION_LEVEL`, this always return`true`. Check`VehiclePropertyIds`documentation for detail.

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### hasSupportedValuesList

```
public boolean hasSupportedValuesList ()
```

Whether \[propertyId, areaId\] has supported value list specified.

If this returns`true`, it means the hardware specifies supported value list for this property. In normal cases,[ERROR(CarPropertyManager.getSupportedValuesList()/android.car.hardware.property.CarPropertyManager#getSupportedValuesList() CarPropertyManager.getSupportedValuesList())](https://developer.android.com/)will not return`null`. In non-normal (error) cases, it may return`null`.

If this returns`false`,[ERROR(CarPropertyManager.getSupportedValuesList()/android.car.hardware.property.CarPropertyManager#getSupportedValuesList() CarPropertyManager.getSupportedValuesList())](https://developer.android.com/)always returns`null`.

The supported value list is the superset for both the input value for writable property and the output value for readable property.

For certain properties, e.g.`GEAR_SELECTION`, this always returns`true`. Check`VehiclePropertyIds`documentation for detail.

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### 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](https://developer.android.com/reference/android/car/hardware/property/Subscription.Builder#setVariableUpdateRateEnabled(boolean))with`false`, or enabled otherwise.

<br />

|                           Returns                            ||
|-----------|---------------------------------------------------|
| `boolean` | whether variable update rate is supported. <br /> |

### toString

```
public String toString ()
```

<br />

<br />

|     Returns      ||
|----------|--------|
| `String` | <br /> |

### writeToParcel

```
public void writeToParcel (Parcel dest, 
                int flags)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `dest`  | `Parcel` <br /> |
| `flags` | `int` <br />    |