# VehicleUnit

Summary:[Constants](https://developer.android.com/reference/android/car/VehicleUnit#constants)\|[Inherited Methods](https://developer.android.com/reference/android/car/VehicleUnit#inhmethods)  

# VehicleUnit

`
public

final

class
VehicleUnit
`  
`

extends Object


``


`

|---|-------------------------|
| java.lang.Object           ||
| ↳ | android.car.VehicleUnit |

<br />

*** ** * ** ***

Units used for int or float[VehiclePropertyIds](https://developer.android.com/reference/android/car/VehiclePropertyIds)with no attached enum types.

## Summary

|                                                                                                                                                                                                             ### Constants                                                                                                                                                                                                             ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [AMPERE_HOURS](https://developer.android.com/reference/android/car/VehicleUnit#AMPERE_HOURS) <br />                                                                                                                                                                                                                                                                                                                            |
| `int` | [BAR](https://developer.android.com/reference/android/car/VehicleUnit#BAR) <br />                                                                                                                                                                                                                                                                                                                                              |
| `int` | [CELSIUS](https://developer.android.com/reference/android/car/VehicleUnit#CELSIUS) Units used by[VehiclePropertyIds.HVAC_TEMPERATURE_VALUE_SUGGESTION](https://developer.android.com/reference/android/car/VehiclePropertyIds#HVAC_TEMPERATURE_VALUE_SUGGESTION)and[VehiclePropertyIds.HVAC_TEMPERATURE_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#HVAC_TEMPERATURE_DISPLAY_UNITS). |
| `int` | [FAHRENHEIT](https://developer.android.com/reference/android/car/VehicleUnit#FAHRENHEIT) <br />                                                                                                                                                                                                                                                                                                                                |
| `int` | [IMPERIAL_GALLON](https://developer.android.com/reference/android/car/VehicleUnit#IMPERIAL_GALLON) <br />                                                                                                                                                                                                                                                                                                                      |
| `int` | [KELVIN](https://developer.android.com/reference/android/car/VehicleUnit#KELVIN) <br />                                                                                                                                                                                                                                                                                                                                        |
| `int` | [KILOMETER](https://developer.android.com/reference/android/car/VehicleUnit#KILOMETER) <br />                                                                                                                                                                                                                                                                                                                                  |
| `int` | [KILOMETERS_PER_HOUR](https://developer.android.com/reference/android/car/VehicleUnit#KILOMETERS_PER_HOUR) <br />                                                                                                                                                                                                                                                                                                              |
| `int` | [KILOPASCAL](https://developer.android.com/reference/android/car/VehicleUnit#KILOPASCAL) Units used by[VehiclePropertyIds.TIRE_PRESSURE_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#TIRE_PRESSURE_DISPLAY_UNITS).                                                                                                                                                                    |
| `int` | [KILOWATT_HOUR](https://developer.android.com/reference/android/car/VehicleUnit#KILOWATT_HOUR) <br />                                                                                                                                                                                                                                                                                                                          |
| `int` | [LITER](https://developer.android.com/reference/android/car/VehicleUnit#LITER) <br />                                                                                                                                                                                                                                                                                                                                          |
| `int` | [METER](https://developer.android.com/reference/android/car/VehicleUnit#METER) <br />                                                                                                                                                                                                                                                                                                                                          |
| `int` | [METER_PER_SEC](https://developer.android.com/reference/android/car/VehicleUnit#METER_PER_SEC) Units used by[VehiclePropertyIds.VEHICLE_SPEED_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#VEHICLE_SPEED_DISPLAY_UNITS).                                                                                                                                                              |
| `int` | [MILE](https://developer.android.com/reference/android/car/VehicleUnit#MILE) <br />                                                                                                                                                                                                                                                                                                                                            |
| `int` | [MILES_PER_HOUR](https://developer.android.com/reference/android/car/VehicleUnit#MILES_PER_HOUR) <br />                                                                                                                                                                                                                                                                                                                        |
| `int` | [MILLILITER](https://developer.android.com/reference/android/car/VehicleUnit#MILLILITER) Units used by[VehiclePropertyIds.FUEL_VOLUME_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#FUEL_VOLUME_DISPLAY_UNITS).                                                                                                                                                                        |
| `int` | [MILLIMETER](https://developer.android.com/reference/android/car/VehicleUnit#MILLIMETER) Units used by[VehiclePropertyIds.DISTANCE_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#DISTANCE_DISPLAY_UNITS).                                                                                                                                                                              |
| `int` | [PSI](https://developer.android.com/reference/android/car/VehicleUnit#PSI) <br />                                                                                                                                                                                                                                                                                                                                              |
| `int` | [US_GALLON](https://developer.android.com/reference/android/car/VehicleUnit#US_GALLON) <br />                                                                                                                                                                                                                                                                                                                                  |
| `int` | [WATT_HOUR](https://developer.android.com/reference/android/car/VehicleUnit#WATT_HOUR) Units used by[VehiclePropertyIds.EV_BATTERY_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#EV_BATTERY_DISPLAY_UNITS).                                                                                                                                                                            |

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

## Constants

### AMPERE_HOURS

```
public static final int AMPERE_HOURS
```

<br />

<br />

Constant Value: 100 (0x00000064)  

### BAR

```
public static final int BAR
```

<br />

<br />

Constant Value: 114 (0x00000072)  

### CELSIUS

```
public static final int CELSIUS
```

Units used by[VehiclePropertyIds.HVAC_TEMPERATURE_VALUE_SUGGESTION](https://developer.android.com/reference/android/car/VehiclePropertyIds#HVAC_TEMPERATURE_VALUE_SUGGESTION)and[VehiclePropertyIds.HVAC_TEMPERATURE_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#HVAC_TEMPERATURE_DISPLAY_UNITS).

<br />

Constant Value: 48 (0x00000030)  

### FAHRENHEIT

```
public static final int FAHRENHEIT
```

<br />

<br />

Constant Value: 49 (0x00000031)  

### IMPERIAL_GALLON

```
public static final int IMPERIAL_GALLON
```

<br />

<br />

Constant Value: 67 (0x00000043)  

### KELVIN

```
public static final int KELVIN
```

<br />

<br />

Constant Value: 50 (0x00000032)  

### KILOMETER

```
public static final int KILOMETER
```

<br />

<br />

Constant Value: 35 (0x00000023)  

### KILOMETERS_PER_HOUR

```
public static final int KILOMETERS_PER_HOUR
```

<br />

<br />

Constant Value: 145 (0x00000091)  

### KILOPASCAL

```
public static final int KILOPASCAL
```

Units used by[VehiclePropertyIds.TIRE_PRESSURE_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#TIRE_PRESSURE_DISPLAY_UNITS).

<br />

Constant Value: 112 (0x00000070)  

### KILOWATT_HOUR

```
public static final int KILOWATT_HOUR
```

<br />

<br />

Constant Value: 101 (0x00000065)  

### LITER

```
public static final int LITER
```

<br />

<br />

Constant Value: 65 (0x00000041)  

### METER

```
public static final int METER
```

<br />

<br />

Constant Value: 33 (0x00000021)  

### METER_PER_SEC

```
public static final int METER_PER_SEC
```

Units used by[VehiclePropertyIds.VEHICLE_SPEED_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#VEHICLE_SPEED_DISPLAY_UNITS).

<br />

Constant Value: 1 (0x00000001)  

### MILE

```
public static final int MILE
```

<br />

<br />

Constant Value: 36 (0x00000024)  

### MILES_PER_HOUR

```
public static final int MILES_PER_HOUR
```

<br />

<br />

Constant Value: 144 (0x00000090)  

### MILLILITER

```
public static final int MILLILITER
```

Units used by[VehiclePropertyIds.FUEL_VOLUME_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#FUEL_VOLUME_DISPLAY_UNITS).

<br />

Constant Value: 64 (0x00000040)  

### MILLIMETER

```
public static final int MILLIMETER
```

Units used by[VehiclePropertyIds.DISTANCE_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#DISTANCE_DISPLAY_UNITS).

<br />

Constant Value: 32 (0x00000020)  

### PSI

```
public static final int PSI
```

<br />

<br />

Constant Value: 113 (0x00000071)  

### US_GALLON

```
public static final int US_GALLON
```

<br />

<br />

Constant Value: 66 (0x00000042)  

### WATT_HOUR

```
public static final int WATT_HOUR
```

Units used by[VehiclePropertyIds.EV_BATTERY_DISPLAY_UNITS](https://developer.android.com/reference/android/car/VehiclePropertyIds#EV_BATTERY_DISPLAY_UNITS).

<br />

Constant Value: 96 (0x00000060)