VehicleUnit

public final class VehicleUnit
extends Object

java.lang.Object
   ↳ android.car.VehicleUnit


Units used for int or float VehiclePropertyIds with no attached enum types.

Summary

Constants

int AMPERE_HOURS

int BAR

int CELSIUS

Units used by VehiclePropertyIds#HVAC_TEMPERATURE_VALUE_SUGGESTION and VehiclePropertyIds.HVAC_TEMPERATURE_DISPLAY_UNITS.

int FAHRENHEIT

int IMPERIAL_GALLON

int KELVIN

int KILOMETER

int KILOMETERS_PER_HOUR

int KILOPASCAL

Units used by VehiclePropertyIds#TIRE_PRESSURE_DISPLAY_UNITS.

int KILOWATT_HOUR

int LITER

int METER

int METER_PER_SEC

Units used by VehiclePropertyIds#VEHICLE_SPEED_DISPLAY_UNITS.

int MILE

int MILES_PER_HOUR

int MILLILITER

Units used by VehiclePropertyIds#FUEL_VOLUME_DISPLAY_UNITS.

int MILLIMETER

Units used by VehiclePropertyIds#DISTANCE_DISPLAY_UNITS.

int PSI

int US_GALLON

int WATT_HOUR

Units used by VehiclePropertyIds#EV_BATTERY_DISPLAY_UNITS.

Inherited methods

Constants

AMPERE_HOURS

Added in API level 33
public static final int AMPERE_HOURS

Constant Value: 100 (0x00000064)

BAR

Added in API level 33
public static final int BAR

Constant Value: 114 (0x00000072)

CELSIUS

Added in API level 33
public static final int CELSIUS

Units used by VehiclePropertyIds#HVAC_TEMPERATURE_VALUE_SUGGESTION and VehiclePropertyIds.HVAC_TEMPERATURE_DISPLAY_UNITS.

Constant Value: 48 (0x00000030)

FAHRENHEIT

Added in API level 33
public static final int FAHRENHEIT

Constant Value: 49 (0x00000031)

IMPERIAL_GALLON

Added in API level 33
public static final int IMPERIAL_GALLON

Constant Value: 67 (0x00000043)

KELVIN

Added in API level 33
public static final int KELVIN

Constant Value: 50 (0x00000032)

KILOMETER

Added in API level 33
public static final int KILOMETER

Constant Value: 35 (0x00000023)

KILOMETERS_PER_HOUR

Added in API level 33
public static final int KILOMETERS_PER_HOUR

Constant Value: 145 (0x00000091)

KILOPASCAL

Added in API level 33
public static final int KILOPASCAL

Units used by VehiclePropertyIds#TIRE_PRESSURE_DISPLAY_UNITS.

Constant Value: 112 (0x00000070)

KILOWATT_HOUR

Added in API level 33
public static final int KILOWATT_HOUR

Constant Value: 101 (0x00000065)

LITER

Added in API level 33
public static final int LITER

Constant Value: 65 (0x00000041)

METER

Added in API level 33
public static final int METER

Constant Value: 33 (0x00000021)

METER_PER_SEC

Added in API level 33
public static final int METER_PER_SEC

Units used by VehiclePropertyIds#VEHICLE_SPEED_DISPLAY_UNITS.

Constant Value: 1 (0x00000001)

MILE

Added in API level 33
public static final int MILE

Constant Value: 36 (0x00000024)

MILES_PER_HOUR

Added in API level 33
public static final int MILES_PER_HOUR

Constant Value: 144 (0x00000090)

MILLILITER

Added in API level 33
public static final int MILLILITER

Units used by VehiclePropertyIds#FUEL_VOLUME_DISPLAY_UNITS.

Constant Value: 64 (0x00000040)

MILLIMETER

Added in API level 33
public static final int MILLIMETER

Units used by VehiclePropertyIds#DISTANCE_DISPLAY_UNITS.

Constant Value: 32 (0x00000020)

PSI

Added in API level 33
public static final int PSI

Constant Value: 113 (0x00000071)

US_GALLON

Added in API level 33
public static final int US_GALLON

Constant Value: 66 (0x00000042)

WATT_HOUR

Added in API level 33
public static final int WATT_HOUR

Units used by VehiclePropertyIds#EV_BATTERY_DISPLAY_UNITS.

Constant Value: 96 (0x00000060)