1 /*
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /**
18  * DO NOT EDIT MANUALLY!!!
19  *
20  * Generated by tools/generate_annotation_enums.py.
21  */
22 
23 // clang-format off
24 
25 #pragma once
26 
27 #include <aidl/android/hardware/automotive/vehicle/VehicleProperty.h>
28 
29 #include <unordered_map>
30 
31 namespace aidl {
32 namespace android {
33 namespace hardware {
34 namespace automotive {
35 namespace vehicle {
36 
37 std::unordered_map<VehicleProperty, int32_t> VersionForVehicleProperty = {
38         {VehicleProperty::INFO_VIN, 2},
39         {VehicleProperty::INFO_MAKE, 2},
40         {VehicleProperty::INFO_MODEL, 2},
41         {VehicleProperty::INFO_MODEL_YEAR, 2},
42         {VehicleProperty::INFO_FUEL_CAPACITY, 2},
43         {VehicleProperty::INFO_FUEL_TYPE, 2},
44         {VehicleProperty::INFO_EV_BATTERY_CAPACITY, 2},
45         {VehicleProperty::INFO_EV_CONNECTOR_TYPE, 2},
46         {VehicleProperty::INFO_FUEL_DOOR_LOCATION, 2},
47         {VehicleProperty::INFO_EV_PORT_LOCATION, 2},
48         {VehicleProperty::INFO_DRIVER_SEAT, 2},
49         {VehicleProperty::INFO_EXTERIOR_DIMENSIONS, 2},
50         {VehicleProperty::INFO_MULTI_EV_PORT_LOCATIONS, 2},
51         {VehicleProperty::PERF_ODOMETER, 2},
52         {VehicleProperty::PERF_VEHICLE_SPEED, 2},
53         {VehicleProperty::PERF_VEHICLE_SPEED_DISPLAY, 2},
54         {VehicleProperty::PERF_STEERING_ANGLE, 2},
55         {VehicleProperty::PERF_REAR_STEERING_ANGLE, 2},
56         {VehicleProperty::ENGINE_COOLANT_TEMP, 2},
57         {VehicleProperty::ENGINE_OIL_LEVEL, 2},
58         {VehicleProperty::ENGINE_OIL_TEMP, 2},
59         {VehicleProperty::ENGINE_RPM, 2},
60         {VehicleProperty::WHEEL_TICK, 2},
61         {VehicleProperty::FUEL_LEVEL, 2},
62         {VehicleProperty::FUEL_DOOR_OPEN, 2},
63         {VehicleProperty::EV_BATTERY_LEVEL, 2},
64         {VehicleProperty::EV_CURRENT_BATTERY_CAPACITY, 2},
65         {VehicleProperty::EV_CHARGE_PORT_OPEN, 2},
66         {VehicleProperty::EV_CHARGE_PORT_CONNECTED, 2},
67         {VehicleProperty::EV_BATTERY_INSTANTANEOUS_CHARGE_RATE, 2},
68         {VehicleProperty::RANGE_REMAINING, 2},
69         {VehicleProperty::EV_BATTERY_AVERAGE_TEMPERATURE, 3},
70         {VehicleProperty::TIRE_PRESSURE, 2},
71         {VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE, 2},
72         {VehicleProperty::ENGINE_IDLE_AUTO_STOP_ENABLED, 2},
73         {VehicleProperty::IMPACT_DETECTED, 3},
74         {VehicleProperty::GEAR_SELECTION, 2},
75         {VehicleProperty::CURRENT_GEAR, 2},
76         {VehicleProperty::PARKING_BRAKE_ON, 2},
77         {VehicleProperty::PARKING_BRAKE_AUTO_APPLY, 2},
78         {VehicleProperty::EV_BRAKE_REGENERATION_LEVEL, 2},
79         {VehicleProperty::FUEL_LEVEL_LOW, 2},
80         {VehicleProperty::NIGHT_MODE, 2},
81         {VehicleProperty::TURN_SIGNAL_STATE, 2},
82         {VehicleProperty::IGNITION_STATE, 2},
83         {VehicleProperty::ABS_ACTIVE, 2},
84         {VehicleProperty::TRACTION_CONTROL_ACTIVE, 2},
85         {VehicleProperty::EV_STOPPING_MODE, 2},
86         {VehicleProperty::ELECTRONIC_STABILITY_CONTROL_ENABLED, 3},
87         {VehicleProperty::ELECTRONIC_STABILITY_CONTROL_STATE, 3},
88         {VehicleProperty::HVAC_FAN_SPEED, 2},
89         {VehicleProperty::HVAC_FAN_DIRECTION, 2},
90         {VehicleProperty::HVAC_TEMPERATURE_CURRENT, 2},
91         {VehicleProperty::HVAC_TEMPERATURE_SET, 2},
92         {VehicleProperty::HVAC_DEFROSTER, 2},
93         {VehicleProperty::HVAC_AC_ON, 2},
94         {VehicleProperty::HVAC_MAX_AC_ON, 2},
95         {VehicleProperty::HVAC_MAX_DEFROST_ON, 2},
96         {VehicleProperty::HVAC_RECIRC_ON, 2},
97         {VehicleProperty::HVAC_DUAL_ON, 2},
98         {VehicleProperty::HVAC_AUTO_ON, 2},
99         {VehicleProperty::HVAC_SEAT_TEMPERATURE, 2},
100         {VehicleProperty::HVAC_SIDE_MIRROR_HEAT, 2},
101         {VehicleProperty::HVAC_STEERING_WHEEL_HEAT, 2},
102         {VehicleProperty::HVAC_TEMPERATURE_DISPLAY_UNITS, 2},
103         {VehicleProperty::HVAC_ACTUAL_FAN_SPEED_RPM, 2},
104         {VehicleProperty::HVAC_POWER_ON, 2},
105         {VehicleProperty::HVAC_FAN_DIRECTION_AVAILABLE, 2},
106         {VehicleProperty::HVAC_AUTO_RECIRC_ON, 2},
107         {VehicleProperty::HVAC_SEAT_VENTILATION, 2},
108         {VehicleProperty::HVAC_ELECTRIC_DEFROSTER_ON, 2},
109         {VehicleProperty::HVAC_TEMPERATURE_VALUE_SUGGESTION, 2},
110         {VehicleProperty::DISTANCE_DISPLAY_UNITS, 2},
111         {VehicleProperty::FUEL_VOLUME_DISPLAY_UNITS, 2},
112         {VehicleProperty::TIRE_PRESSURE_DISPLAY_UNITS, 2},
113         {VehicleProperty::EV_BATTERY_DISPLAY_UNITS, 2},
114         {VehicleProperty::FUEL_CONSUMPTION_UNITS_DISTANCE_OVER_VOLUME, 2},
115         {VehicleProperty::VEHICLE_SPEED_DISPLAY_UNITS, 2},
116         {VehicleProperty::EXTERNAL_CAR_TIME, 2},
117         {VehicleProperty::ANDROID_EPOCH_TIME, 2},
118         {VehicleProperty::STORAGE_ENCRYPTION_BINDING_SEED, 2},
119         {VehicleProperty::ENV_OUTSIDE_TEMPERATURE, 2},
120         {VehicleProperty::AP_POWER_STATE_REQ, 2},
121         {VehicleProperty::AP_POWER_STATE_REPORT, 2},
122         {VehicleProperty::AP_POWER_BOOTUP_REASON, 2},
123         {VehicleProperty::DISPLAY_BRIGHTNESS, 2},
124         {VehicleProperty::PER_DISPLAY_BRIGHTNESS, 2},
125         {VehicleProperty::VALET_MODE_ENABLED, 3},
126         {VehicleProperty::HEAD_UP_DISPLAY_ENABLED, 3},
127         {VehicleProperty::HW_KEY_INPUT, 2},
128         {VehicleProperty::HW_KEY_INPUT_V2, 2},
129         {VehicleProperty::HW_MOTION_INPUT, 2},
130         {VehicleProperty::HW_ROTARY_INPUT, 2},
131         {VehicleProperty::HW_CUSTOM_INPUT, 2},
132         {VehicleProperty::DOOR_POS, 2},
133         {VehicleProperty::DOOR_MOVE, 2},
134         {VehicleProperty::DOOR_LOCK, 2},
135         {VehicleProperty::DOOR_CHILD_LOCK_ENABLED, 2},
136         {VehicleProperty::MIRROR_Z_POS, 2},
137         {VehicleProperty::MIRROR_Z_MOVE, 2},
138         {VehicleProperty::MIRROR_Y_POS, 2},
139         {VehicleProperty::MIRROR_Y_MOVE, 2},
140         {VehicleProperty::MIRROR_LOCK, 2},
141         {VehicleProperty::MIRROR_FOLD, 2},
142         {VehicleProperty::MIRROR_AUTO_FOLD_ENABLED, 2},
143         {VehicleProperty::MIRROR_AUTO_TILT_ENABLED, 2},
144         {VehicleProperty::SEAT_MEMORY_SELECT, 2},
145         {VehicleProperty::SEAT_MEMORY_SET, 2},
146         {VehicleProperty::SEAT_BELT_BUCKLED, 2},
147         {VehicleProperty::SEAT_BELT_HEIGHT_POS, 2},
148         {VehicleProperty::SEAT_BELT_HEIGHT_MOVE, 2},
149         {VehicleProperty::SEAT_FORE_AFT_POS, 2},
150         {VehicleProperty::SEAT_FORE_AFT_MOVE, 2},
151         {VehicleProperty::SEAT_BACKREST_ANGLE_1_POS, 2},
152         {VehicleProperty::SEAT_BACKREST_ANGLE_1_MOVE, 2},
153         {VehicleProperty::SEAT_BACKREST_ANGLE_2_POS, 2},
154         {VehicleProperty::SEAT_BACKREST_ANGLE_2_MOVE, 2},
155         {VehicleProperty::SEAT_HEIGHT_POS, 2},
156         {VehicleProperty::SEAT_HEIGHT_MOVE, 2},
157         {VehicleProperty::SEAT_DEPTH_POS, 2},
158         {VehicleProperty::SEAT_DEPTH_MOVE, 2},
159         {VehicleProperty::SEAT_TILT_POS, 2},
160         {VehicleProperty::SEAT_TILT_MOVE, 2},
161         {VehicleProperty::SEAT_LUMBAR_FORE_AFT_POS, 2},
162         {VehicleProperty::SEAT_LUMBAR_FORE_AFT_MOVE, 2},
163         {VehicleProperty::SEAT_LUMBAR_SIDE_SUPPORT_POS, 2},
164         {VehicleProperty::SEAT_LUMBAR_SIDE_SUPPORT_MOVE, 2},
165         {VehicleProperty::SEAT_HEADREST_HEIGHT_POS, 2},
166         {VehicleProperty::SEAT_HEADREST_HEIGHT_POS_V2, 2},
167         {VehicleProperty::SEAT_HEADREST_HEIGHT_MOVE, 2},
168         {VehicleProperty::SEAT_HEADREST_ANGLE_POS, 2},
169         {VehicleProperty::SEAT_HEADREST_ANGLE_MOVE, 2},
170         {VehicleProperty::SEAT_HEADREST_FORE_AFT_POS, 2},
171         {VehicleProperty::SEAT_HEADREST_FORE_AFT_MOVE, 2},
172         {VehicleProperty::SEAT_FOOTWELL_LIGHTS_STATE, 2},
173         {VehicleProperty::SEAT_FOOTWELL_LIGHTS_SWITCH, 2},
174         {VehicleProperty::SEAT_EASY_ACCESS_ENABLED, 2},
175         {VehicleProperty::SEAT_AIRBAG_ENABLED, 2},
176         {VehicleProperty::SEAT_AIRBAGS_DEPLOYED, 3},
177         {VehicleProperty::SEAT_CUSHION_SIDE_SUPPORT_POS, 2},
178         {VehicleProperty::SEAT_CUSHION_SIDE_SUPPORT_MOVE, 2},
179         {VehicleProperty::SEAT_LUMBAR_VERTICAL_POS, 2},
180         {VehicleProperty::SEAT_LUMBAR_VERTICAL_MOVE, 2},
181         {VehicleProperty::SEAT_WALK_IN_POS, 2},
182         {VehicleProperty::SEAT_BELT_PRETENSIONER_DEPLOYED, 3},
183         {VehicleProperty::SEAT_OCCUPANCY, 2},
184         {VehicleProperty::WINDOW_POS, 2},
185         {VehicleProperty::WINDOW_MOVE, 2},
186         {VehicleProperty::WINDOW_LOCK, 2},
187         {VehicleProperty::WINDSHIELD_WIPERS_PERIOD, 2},
188         {VehicleProperty::WINDSHIELD_WIPERS_STATE, 2},
189         {VehicleProperty::WINDSHIELD_WIPERS_SWITCH, 2},
190         {VehicleProperty::STEERING_WHEEL_DEPTH_POS, 2},
191         {VehicleProperty::STEERING_WHEEL_DEPTH_MOVE, 2},
192         {VehicleProperty::STEERING_WHEEL_HEIGHT_POS, 2},
193         {VehicleProperty::STEERING_WHEEL_HEIGHT_MOVE, 2},
194         {VehicleProperty::STEERING_WHEEL_THEFT_LOCK_ENABLED, 2},
195         {VehicleProperty::STEERING_WHEEL_LOCKED, 2},
196         {VehicleProperty::STEERING_WHEEL_EASY_ACCESS_ENABLED, 2},
197         {VehicleProperty::GLOVE_BOX_DOOR_POS, 2},
198         {VehicleProperty::GLOVE_BOX_LOCKED, 2},
199         {VehicleProperty::VEHICLE_MAP_SERVICE, 2},
200         {VehicleProperty::LOCATION_CHARACTERIZATION, 2},
201         {VehicleProperty::ULTRASONICS_SENSOR_POSITION, 3},
202         {VehicleProperty::ULTRASONICS_SENSOR_ORIENTATION, 3},
203         {VehicleProperty::ULTRASONICS_SENSOR_FIELD_OF_VIEW, 3},
204         {VehicleProperty::ULTRASONICS_SENSOR_DETECTION_RANGE, 3},
205         {VehicleProperty::ULTRASONICS_SENSOR_SUPPORTED_RANGES, 3},
206         {VehicleProperty::ULTRASONICS_SENSOR_MEASURED_DISTANCE, 3},
207         {VehicleProperty::OBD2_LIVE_FRAME, 2},
208         {VehicleProperty::OBD2_FREEZE_FRAME, 2},
209         {VehicleProperty::OBD2_FREEZE_FRAME_INFO, 2},
210         {VehicleProperty::OBD2_FREEZE_FRAME_CLEAR, 2},
211         {VehicleProperty::HEADLIGHTS_STATE, 2},
212         {VehicleProperty::HIGH_BEAM_LIGHTS_STATE, 2},
213         {VehicleProperty::FOG_LIGHTS_STATE, 2},
214         {VehicleProperty::HAZARD_LIGHTS_STATE, 2},
215         {VehicleProperty::HEADLIGHTS_SWITCH, 2},
216         {VehicleProperty::HIGH_BEAM_LIGHTS_SWITCH, 2},
217         {VehicleProperty::FOG_LIGHTS_SWITCH, 2},
218         {VehicleProperty::HAZARD_LIGHTS_SWITCH, 2},
219         {VehicleProperty::CABIN_LIGHTS_STATE, 2},
220         {VehicleProperty::CABIN_LIGHTS_SWITCH, 2},
221         {VehicleProperty::READING_LIGHTS_STATE, 2},
222         {VehicleProperty::READING_LIGHTS_SWITCH, 2},
223         {VehicleProperty::STEERING_WHEEL_LIGHTS_STATE, 2},
224         {VehicleProperty::STEERING_WHEEL_LIGHTS_SWITCH, 2},
225         {VehicleProperty::SUPPORT_CUSTOMIZE_VENDOR_PERMISSION, 2},
226         {VehicleProperty::DISABLED_OPTIONAL_FEATURES, 2},
227         {VehicleProperty::INITIAL_USER_INFO, 2},
228         {VehicleProperty::SWITCH_USER, 2},
229         {VehicleProperty::CREATE_USER, 2},
230         {VehicleProperty::REMOVE_USER, 2},
231         {VehicleProperty::USER_IDENTIFICATION_ASSOCIATION, 2},
232         {VehicleProperty::EVS_SERVICE_REQUEST, 2},
233         {VehicleProperty::POWER_POLICY_REQ, 2},
234         {VehicleProperty::POWER_POLICY_GROUP_REQ, 2},
235         {VehicleProperty::CURRENT_POWER_POLICY, 2},
236         {VehicleProperty::WATCHDOG_ALIVE, 2},
237         {VehicleProperty::WATCHDOG_TERMINATED_PROCESS, 2},
238         {VehicleProperty::VHAL_HEARTBEAT, 2},
239         {VehicleProperty::CLUSTER_SWITCH_UI, 2},
240         {VehicleProperty::CLUSTER_DISPLAY_STATE, 2},
241         {VehicleProperty::CLUSTER_REPORT_STATE, 2},
242         {VehicleProperty::CLUSTER_REQUEST_DISPLAY, 2},
243         {VehicleProperty::CLUSTER_NAVIGATION_STATE, 2},
244         {VehicleProperty::ELECTRONIC_TOLL_COLLECTION_CARD_TYPE, 2},
245         {VehicleProperty::ELECTRONIC_TOLL_COLLECTION_CARD_STATUS, 2},
246         {VehicleProperty::FRONT_FOG_LIGHTS_STATE, 2},
247         {VehicleProperty::FRONT_FOG_LIGHTS_SWITCH, 2},
248         {VehicleProperty::REAR_FOG_LIGHTS_STATE, 2},
249         {VehicleProperty::REAR_FOG_LIGHTS_SWITCH, 2},
250         {VehicleProperty::EV_CHARGE_CURRENT_DRAW_LIMIT, 2},
251         {VehicleProperty::EV_CHARGE_PERCENT_LIMIT, 2},
252         {VehicleProperty::EV_CHARGE_STATE, 2},
253         {VehicleProperty::EV_CHARGE_SWITCH, 2},
254         {VehicleProperty::EV_CHARGE_TIME_REMAINING, 2},
255         {VehicleProperty::EV_REGENERATIVE_BRAKING_STATE, 2},
256         {VehicleProperty::TRAILER_PRESENT, 2},
257         {VehicleProperty::VEHICLE_CURB_WEIGHT, 2},
258         {VehicleProperty::GENERAL_SAFETY_REGULATION_COMPLIANCE_REQUIREMENT, 2},
259         {VehicleProperty::SUPPORTED_PROPERTY_IDS, 2},
260         {VehicleProperty::SHUTDOWN_REQUEST, 2},
261         {VehicleProperty::VEHICLE_IN_USE, 2},
262         {VehicleProperty::CLUSTER_HEARTBEAT, 3},
263         {VehicleProperty::VEHICLE_DRIVING_AUTOMATION_CURRENT_LEVEL, 3},
264         {VehicleProperty::CAMERA_SERVICE_CURRENT_STATE, 3},
265         {VehicleProperty::PER_DISPLAY_MAX_BRIGHTNESS, 3},
266         {VehicleProperty::AUTOMATIC_EMERGENCY_BRAKING_ENABLED, 2},
267         {VehicleProperty::AUTOMATIC_EMERGENCY_BRAKING_STATE, 2},
268         {VehicleProperty::FORWARD_COLLISION_WARNING_ENABLED, 2},
269         {VehicleProperty::FORWARD_COLLISION_WARNING_STATE, 2},
270         {VehicleProperty::BLIND_SPOT_WARNING_ENABLED, 2},
271         {VehicleProperty::BLIND_SPOT_WARNING_STATE, 2},
272         {VehicleProperty::LANE_DEPARTURE_WARNING_ENABLED, 2},
273         {VehicleProperty::LANE_DEPARTURE_WARNING_STATE, 2},
274         {VehicleProperty::LANE_KEEP_ASSIST_ENABLED, 2},
275         {VehicleProperty::LANE_KEEP_ASSIST_STATE, 2},
276         {VehicleProperty::LANE_CENTERING_ASSIST_ENABLED, 2},
277         {VehicleProperty::LANE_CENTERING_ASSIST_COMMAND, 2},
278         {VehicleProperty::LANE_CENTERING_ASSIST_STATE, 2},
279         {VehicleProperty::EMERGENCY_LANE_KEEP_ASSIST_ENABLED, 2},
280         {VehicleProperty::EMERGENCY_LANE_KEEP_ASSIST_STATE, 2},
281         {VehicleProperty::CRUISE_CONTROL_ENABLED, 2},
282         {VehicleProperty::CRUISE_CONTROL_TYPE, 2},
283         {VehicleProperty::CRUISE_CONTROL_STATE, 2},
284         {VehicleProperty::CRUISE_CONTROL_COMMAND, 2},
285         {VehicleProperty::CRUISE_CONTROL_TARGET_SPEED, 2},
286         {VehicleProperty::ADAPTIVE_CRUISE_CONTROL_TARGET_TIME_GAP, 2},
287         {VehicleProperty::ADAPTIVE_CRUISE_CONTROL_LEAD_VEHICLE_MEASURED_DISTANCE, 2},
288         {VehicleProperty::HANDS_ON_DETECTION_ENABLED, 2},
289         {VehicleProperty::HANDS_ON_DETECTION_DRIVER_STATE, 2},
290         {VehicleProperty::HANDS_ON_DETECTION_WARNING, 2},
291         {VehicleProperty::DRIVER_DROWSINESS_ATTENTION_SYSTEM_ENABLED, 3},
292         {VehicleProperty::DRIVER_DROWSINESS_ATTENTION_STATE, 3},
293         {VehicleProperty::DRIVER_DROWSINESS_ATTENTION_WARNING_ENABLED, 3},
294         {VehicleProperty::DRIVER_DROWSINESS_ATTENTION_WARNING, 3},
295         {VehicleProperty::DRIVER_DISTRACTION_SYSTEM_ENABLED, 3},
296         {VehicleProperty::DRIVER_DISTRACTION_STATE, 3},
297         {VehicleProperty::DRIVER_DISTRACTION_WARNING_ENABLED, 3},
298         {VehicleProperty::DRIVER_DISTRACTION_WARNING, 3},
299         {VehicleProperty::LOW_SPEED_COLLISION_WARNING_ENABLED, 3},
300         {VehicleProperty::LOW_SPEED_COLLISION_WARNING_STATE, 3},
301         {VehicleProperty::CROSS_TRAFFIC_MONITORING_ENABLED, 3},
302         {VehicleProperty::CROSS_TRAFFIC_MONITORING_WARNING_STATE, 3},
303         {VehicleProperty::LOW_SPEED_AUTOMATIC_EMERGENCY_BRAKING_ENABLED, 3},
304         {VehicleProperty::LOW_SPEED_AUTOMATIC_EMERGENCY_BRAKING_STATE, 3},
305 };
306 
307 }  // namespace vehicle
308 }  // namespace automotive
309 }  // namespace hardware
310 }  // namespace android
311 }  // aidl
312