diff options
author | Kai Wang <kwangsudo@google.com> | 2019-03-20 18:19:54 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-03-20 18:19:54 +0000 |
commit | ba464daf313988aba6e50383abd799c1fe103b51 (patch) | |
tree | 100edfbc6fa8c5b82e3d96d2132cdfd3318f2eda /automotive/vehicle | |
parent | caee9505e5719548d115ecdcfb968267e89854b5 (diff) | |
parent | 8675df05d7a0e0e286a33bebd49d11ff4db5f32b (diff) | |
download | android_hardware_interfaces-ba464daf313988aba6e50383abd799c1fe103b51.tar.gz android_hardware_interfaces-ba464daf313988aba6e50383abd799c1fe103b51.tar.bz2 android_hardware_interfaces-ba464daf313988aba6e50383abd799c1fe103b51.zip |
Merge "Add VHAL params for fuel economy and units"
Diffstat (limited to 'automotive/vehicle')
-rw-r--r-- | automotive/vehicle/2.0/types.hal | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/automotive/vehicle/2.0/types.hal b/automotive/vehicle/2.0/types.hal index 435e19c57..b04d0962c 100644 --- a/automotive/vehicle/2.0/types.hal +++ b/automotive/vehicle/2.0/types.hal @@ -1139,7 +1139,6 @@ enum VehicleProperty : int32_t { * Indicates which units the car is using to display fuel volume to the user. Eg. Liter or * Gallon. * - * Distance units are defined in VehicleUnit. * VehiclePropConfig.configArray is used to indicate the supported fuel volume display units. * Volume units are defined in VehicleUnit. * For example: configArray[0] = 0x41 // LITER @@ -1160,7 +1159,6 @@ enum VehicleProperty : int32_t { * Indicates which units the car is using to display tire pressure to the user. Eg. PSI, Bar or * Kilopascal. * - * Distance units are defined in VehicleUnit. * VehiclePropConfig.configArray is used to indicate the supported pressure display units. * Pressure units are defined in VehicleUnit. * For example: configArray[0] = 0x70 // KILOPASCAL @@ -1182,7 +1180,6 @@ enum VehicleProperty : int32_t { * Indicates which units the car is using to display EV battery information to the user. Eg. * watt-hours(Wh), kilowatt-hours(kWh) or ampere-hours(Ah). * - * Distance units are defined in VehicleUnit. * VehiclePropConfig.configArray is used to indicate the supported electrical energy units. * Electrical energy units are defined in VehicleUnit. * For example: configArray[0] = 0x60 // watt-hours @@ -1199,6 +1196,22 @@ enum VehicleProperty : int32_t { | VehicleArea:GLOBAL), /** + * Fuel consumption units for display + * + * Indicates type of units the car is using to display fuel consumption information to user + * True indicates units are distance over volume such as MPG. + * False indicates units are volume over distance such as L/100KM. + * + * @change_mode VehiclePropertyChangeMode:ON_CHANGE + * @access VehiclePropertyAccess:READ_WRITE + */ + FUEL_CONSUMPTION_UNITS_DISTANCE_OVER_VOLUME = ( + 0x0604 + | VehiclePropertyGroup:SYSTEM + | VehiclePropertyType:BOOLEAN + | VehicleArea:GLOBAL), + + /** * Outside temperature * * @change_mode VehiclePropertyChangeMode:CONTINUOUS @@ -2588,7 +2601,11 @@ enum VehicleUnit : int32_t { KELVIN = 0x32, MILLILITER = 0x40, LITER = 0x41, + + /** deprecated. Use US_GALLON instead. */ GALLON = 0x42, + US_GALLON = 0x42, + IMPERIAL_GALLON= 0x43, NANO_SECS = 0x50, SECS = 0x53, YEAR = 0x59, |