1 
2 /*
3  * Copyright (C) 2015 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 //Autogenerated from vehicle.h using libvehiclenetwork/tool/vehicle_code_gen.py.
19 //Do not modify manually.
20 
21 package com.android.car.vehiclenetwork;
22 
23 public class VehicleNetworkConsts {
24 
25 public static final int VEHICLE_PROPERTY_INVALID = 0x0;
26 public static final int VEHICLE_PROPERTY_INFO_VIN = 0x00000100;
27 public static final int VEHICLE_PROPERTY_INFO_MAKE = 0x00000101;
28 public static final int VEHICLE_PROPERTY_INFO_MODEL = 0x00000102;
29 public static final int VEHICLE_PROPERTY_INFO_MODEL_YEAR = 0x00000103;
30 public static final int VEHICLE_PROPERTY_INFO_FUEL_CAPACITY = 0x00000104;
31 public static final int VEHICLE_PROPERTY_PERF_ODOMETER = 0x00000204;
32 public static final int VEHICLE_PROPERTY_PERF_VEHICLE_SPEED = 0x00000207;
33 public static final int VEHICLE_PROPERTY_ENGINE_COOLANT_TEMP = 0x00000301;
34 public static final int VEHICLE_PROPERTY_ENGINE_OIL_TEMP = 0x00000304;
35 public static final int VEHICLE_PROPERTY_ENGINE_RPM = 0x00000305;
36 public static final int VEHICLE_PROPERTY_GEAR_SELECTION = 0x00000400;
37 public static final int VEHICLE_PROPERTY_CURRENT_GEAR = 0x00000401;
38 public static final int VEHICLE_PROPERTY_PARKING_BRAKE_ON = 0x00000402;
39 public static final int VEHICLE_PROPERTY_DRIVING_STATUS = 0x00000404;
40 public static final int VEHICLE_PROPERTY_FUEL_LEVEL_LOW = 0x00000405;
41 public static final int VEHICLE_PROPERTY_NIGHT_MODE = 0x00000407;
42 public static final int VEHICLE_PROPERTY_HVAC_FAN_SPEED = 0x00000500;
43 public static final int VEHICLE_PROPERTY_HVAC_FAN_DIRECTION = 0x00000501;
44 public static final int VEHICLE_PROPERTY_HVAC_TEMPERATURE_CURRENT = 0x00000502;
45 public static final int VEHICLE_PROPERTY_HVAC_TEMPERATURE_SET = 0x00000503;
46 public static final int VEHICLE_PROPERTY_HVAC_DEFROSTER = 0x00000504;
47 public static final int VEHICLE_PROPERTY_HVAC_AC_ON = 0x00000505;
48 public static final int VEHICLE_PROPERTY_HVAC_MAX_AC_ON = 0x00000506;
49 public static final int VEHICLE_PROPERTY_HVAC_MAX_DEFROST_ON = 0x00000507;
50 public static final int VEHICLE_PROPERTY_HVAC_RECIRC_ON = 0x00000508;
51 public static final int VEHICLE_PROPERTY_HVAC_DUAL_ON = 0x00000509;
52 public static final int VEHICLE_PROPERTY_ENV_OUTSIDE_TEMPERATURE = 0x00000703;
53 public static final int VEHICLE_PROPERTY_ENV_CABIN_TEMPERATURE = 0x00000704;
54 public static final int VEHICLE_PROPERTY_RADIO_PRESET = 0x0000801;
55 public static final int VEHICLE_PROPERTY_AUDIO_FOCUS = 0x00000900;
56 public static final int VEHICLE_PROPERTY_AUDIO_VOLUME = 0x00000901;
57 public static final int VEHICLE_PROPERTY_AUDIO_VOLUME_LIMIT = 0x00000902;
58 public static final int VEHICLE_PROPERTY_AUDIO_ROUTING_POLICY = 0x00000903;
59 public static final int VEHICLE_PROPERTY_AUDIO_HW_VARIANT = 0x00000904;
60 public static final int VEHICLE_PROPERTY_AP_POWER_STATE = 0x00000A00;
61 public static final int VEHICLE_PROPERTY_DISPLAY_BRIGHTNESS = 0x00000A01;
62 public static final int VEHICLE_PROPERTY_AP_POWER_BOOTUP_REASON = 0x00000A02;
63 public static final int VEHICLE_PROPERTY_HW_KEY_INPUT = 0x00000A10;
64 public static final int VEHICLE_PROPERTY_INSTRUMENT_CLUSTER_INFO = 0x00000A20;
65 public static final int VEHICLE_PROPERTY_CUSTOM_START = 0x70000000;
66 public static final int VEHICLE_PROPERTY_CUSTOM_END = 0x73ffffff;
67 public static final int VEHICLE_PROPERTY_INTERNAL_START = 0x74000000;
68 public static final int VEHICLE_PROPERTY_INTERNAL_END = 0x74ffffff;
69 public static final int VEHICLE_PROPERTY_INTERNAL_AUDIO_STREAM_STATE = 0x74000000;
getVehicleValueType(int property)70 public static int getVehicleValueType(int property) {
71 switch (property) {
72 case VEHICLE_PROPERTY_INFO_VIN: return VehicleValueType.VEHICLE_VALUE_TYPE_STRING;
73 case VEHICLE_PROPERTY_INFO_MAKE: return VehicleValueType.VEHICLE_VALUE_TYPE_STRING;
74 case VEHICLE_PROPERTY_INFO_MODEL: return VehicleValueType.VEHICLE_VALUE_TYPE_STRING;
75 case VEHICLE_PROPERTY_INFO_MODEL_YEAR: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32;
76 case VEHICLE_PROPERTY_INFO_FUEL_CAPACITY: return VehicleValueType.VEHICLE_VALUE_TYPE_FLOAT;
77 case VEHICLE_PROPERTY_PERF_ODOMETER: return VehicleValueType.VEHICLE_VALUE_TYPE_FLOAT;
78 case VEHICLE_PROPERTY_PERF_VEHICLE_SPEED: return VehicleValueType.VEHICLE_VALUE_TYPE_FLOAT;
79 case VEHICLE_PROPERTY_ENGINE_COOLANT_TEMP: return VehicleValueType.VEHICLE_VALUE_TYPE_FLOAT;
80 case VEHICLE_PROPERTY_ENGINE_OIL_TEMP: return VehicleValueType.VEHICLE_VALUE_TYPE_FLOAT;
81 case VEHICLE_PROPERTY_ENGINE_RPM: return VehicleValueType.VEHICLE_VALUE_TYPE_FLOAT;
82 case VEHICLE_PROPERTY_GEAR_SELECTION: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32;
83 case VEHICLE_PROPERTY_CURRENT_GEAR: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32;
84 case VEHICLE_PROPERTY_PARKING_BRAKE_ON: return VehicleValueType.VEHICLE_VALUE_TYPE_BOOLEAN;
85 case VEHICLE_PROPERTY_DRIVING_STATUS: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32;
86 case VEHICLE_PROPERTY_FUEL_LEVEL_LOW: return VehicleValueType.VEHICLE_VALUE_TYPE_BOOLEAN;
87 case VEHICLE_PROPERTY_NIGHT_MODE: return VehicleValueType.VEHICLE_VALUE_TYPE_BOOLEAN;
88 case VEHICLE_PROPERTY_HVAC_FAN_SPEED: return VehicleValueType.VEHICLE_VALUE_TYPE_ZONED_INT32;
89 case VEHICLE_PROPERTY_HVAC_FAN_DIRECTION: return VehicleValueType.VEHICLE_VALUE_TYPE_ZONED_INT32;
90 case VEHICLE_PROPERTY_HVAC_TEMPERATURE_CURRENT: return VehicleValueType.VEHICLE_VALUE_TYPE_ZONED_FLOAT;
91 case VEHICLE_PROPERTY_HVAC_TEMPERATURE_SET: return VehicleValueType.VEHICLE_VALUE_TYPE_ZONED_FLOAT;
92 case VEHICLE_PROPERTY_HVAC_DEFROSTER: return VehicleValueType.VEHICLE_VALUE_TYPE_ZONED_BOOLEAN;
93 case VEHICLE_PROPERTY_HVAC_AC_ON: return VehicleValueType.VEHICLE_VALUE_TYPE_ZONED_BOOLEAN;
94 case VEHICLE_PROPERTY_HVAC_MAX_AC_ON: return VehicleValueType.VEHICLE_VALUE_TYPE_BOOLEAN;
95 case VEHICLE_PROPERTY_HVAC_MAX_DEFROST_ON: return VehicleValueType.VEHICLE_VALUE_TYPE_BOOLEAN;
96 case VEHICLE_PROPERTY_HVAC_RECIRC_ON: return VehicleValueType.VEHICLE_VALUE_TYPE_BOOLEAN;
97 case VEHICLE_PROPERTY_HVAC_DUAL_ON: return VehicleValueType.VEHICLE_VALUE_TYPE_BOOLEAN;
98 case VEHICLE_PROPERTY_ENV_OUTSIDE_TEMPERATURE: return VehicleValueType.VEHICLE_VALUE_TYPE_FLOAT;
99 case VEHICLE_PROPERTY_ENV_CABIN_TEMPERATURE: return VehicleValueType.VEHICLE_VALUE_TYPE_FLOAT;
100 case VEHICLE_PROPERTY_RADIO_PRESET: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32_VEC4;
101 case VEHICLE_PROPERTY_AUDIO_FOCUS: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32_VEC4;
102 case VEHICLE_PROPERTY_AUDIO_VOLUME: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32_VEC3;
103 case VEHICLE_PROPERTY_AUDIO_VOLUME_LIMIT: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32_VEC2;
104 case VEHICLE_PROPERTY_AUDIO_ROUTING_POLICY: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32_VEC2;
105 case VEHICLE_PROPERTY_AUDIO_HW_VARIANT: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32;
106 case VEHICLE_PROPERTY_AP_POWER_STATE: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32_VEC2;
107 case VEHICLE_PROPERTY_DISPLAY_BRIGHTNESS: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32;
108 case VEHICLE_PROPERTY_AP_POWER_BOOTUP_REASON: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32;
109 case VEHICLE_PROPERTY_HW_KEY_INPUT: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32_VEC4;
110 case VEHICLE_PROPERTY_INSTRUMENT_CLUSTER_INFO: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32_VEC4;
111 case VEHICLE_PROPERTY_INTERNAL_AUDIO_STREAM_STATE: return VehicleValueType.VEHICLE_VALUE_TYPE_INT32_VEC2;
112 default: return VehicleValueType.VEHICLE_VALUE_TYPE_SHOUD_NOT_USE;
113 }
114 }
115 
getVehiclePropertyName(int property)116 public static String getVehiclePropertyName(int property) {
117 switch (property) {
118 case VEHICLE_PROPERTY_INFO_VIN: return "VEHICLE_PROPERTY_INFO_VIN";
119 case VEHICLE_PROPERTY_INFO_MAKE: return "VEHICLE_PROPERTY_INFO_MAKE";
120 case VEHICLE_PROPERTY_INFO_MODEL: return "VEHICLE_PROPERTY_INFO_MODEL";
121 case VEHICLE_PROPERTY_INFO_MODEL_YEAR: return "VEHICLE_PROPERTY_INFO_MODEL_YEAR";
122 case VEHICLE_PROPERTY_INFO_FUEL_CAPACITY: return "VEHICLE_PROPERTY_INFO_FUEL_CAPACITY";
123 case VEHICLE_PROPERTY_PERF_ODOMETER: return "VEHICLE_PROPERTY_PERF_ODOMETER";
124 case VEHICLE_PROPERTY_PERF_VEHICLE_SPEED: return "VEHICLE_PROPERTY_PERF_VEHICLE_SPEED";
125 case VEHICLE_PROPERTY_ENGINE_COOLANT_TEMP: return "VEHICLE_PROPERTY_ENGINE_COOLANT_TEMP";
126 case VEHICLE_PROPERTY_ENGINE_OIL_TEMP: return "VEHICLE_PROPERTY_ENGINE_OIL_TEMP";
127 case VEHICLE_PROPERTY_ENGINE_RPM: return "VEHICLE_PROPERTY_ENGINE_RPM";
128 case VEHICLE_PROPERTY_GEAR_SELECTION: return "VEHICLE_PROPERTY_GEAR_SELECTION";
129 case VEHICLE_PROPERTY_CURRENT_GEAR: return "VEHICLE_PROPERTY_CURRENT_GEAR";
130 case VEHICLE_PROPERTY_PARKING_BRAKE_ON: return "VEHICLE_PROPERTY_PARKING_BRAKE_ON";
131 case VEHICLE_PROPERTY_DRIVING_STATUS: return "VEHICLE_PROPERTY_DRIVING_STATUS";
132 case VEHICLE_PROPERTY_FUEL_LEVEL_LOW: return "VEHICLE_PROPERTY_FUEL_LEVEL_LOW";
133 case VEHICLE_PROPERTY_NIGHT_MODE: return "VEHICLE_PROPERTY_NIGHT_MODE";
134 case VEHICLE_PROPERTY_HVAC_FAN_SPEED: return "VEHICLE_PROPERTY_HVAC_FAN_SPEED";
135 case VEHICLE_PROPERTY_HVAC_FAN_DIRECTION: return "VEHICLE_PROPERTY_HVAC_FAN_DIRECTION";
136 case VEHICLE_PROPERTY_HVAC_TEMPERATURE_CURRENT: return "VEHICLE_PROPERTY_HVAC_TEMPERATURE_CURRENT";
137 case VEHICLE_PROPERTY_HVAC_TEMPERATURE_SET: return "VEHICLE_PROPERTY_HVAC_TEMPERATURE_SET";
138 case VEHICLE_PROPERTY_HVAC_DEFROSTER: return "VEHICLE_PROPERTY_HVAC_DEFROSTER";
139 case VEHICLE_PROPERTY_HVAC_AC_ON: return "VEHICLE_PROPERTY_HVAC_AC_ON";
140 case VEHICLE_PROPERTY_HVAC_MAX_AC_ON: return "VEHICLE_PROPERTY_HVAC_MAX_AC_ON";
141 case VEHICLE_PROPERTY_HVAC_MAX_DEFROST_ON: return "VEHICLE_PROPERTY_HVAC_MAX_DEFROST_ON";
142 case VEHICLE_PROPERTY_HVAC_RECIRC_ON: return "VEHICLE_PROPERTY_HVAC_RECIRC_ON";
143 case VEHICLE_PROPERTY_HVAC_DUAL_ON: return "VEHICLE_PROPERTY_HVAC_DUAL_ON";
144 case VEHICLE_PROPERTY_ENV_OUTSIDE_TEMPERATURE: return "VEHICLE_PROPERTY_ENV_OUTSIDE_TEMPERATURE";
145 case VEHICLE_PROPERTY_ENV_CABIN_TEMPERATURE: return "VEHICLE_PROPERTY_ENV_CABIN_TEMPERATURE";
146 case VEHICLE_PROPERTY_RADIO_PRESET: return "VEHICLE_PROPERTY_RADIO_PRESET";
147 case VEHICLE_PROPERTY_AUDIO_FOCUS: return "VEHICLE_PROPERTY_AUDIO_FOCUS";
148 case VEHICLE_PROPERTY_AUDIO_VOLUME: return "VEHICLE_PROPERTY_AUDIO_VOLUME";
149 case VEHICLE_PROPERTY_AUDIO_VOLUME_LIMIT: return "VEHICLE_PROPERTY_AUDIO_VOLUME_LIMIT";
150 case VEHICLE_PROPERTY_AUDIO_ROUTING_POLICY: return "VEHICLE_PROPERTY_AUDIO_ROUTING_POLICY";
151 case VEHICLE_PROPERTY_AUDIO_HW_VARIANT: return "VEHICLE_PROPERTY_AUDIO_HW_VARIANT";
152 case VEHICLE_PROPERTY_AP_POWER_STATE: return "VEHICLE_PROPERTY_AP_POWER_STATE";
153 case VEHICLE_PROPERTY_DISPLAY_BRIGHTNESS: return "VEHICLE_PROPERTY_DISPLAY_BRIGHTNESS";
154 case VEHICLE_PROPERTY_AP_POWER_BOOTUP_REASON: return "VEHICLE_PROPERTY_AP_POWER_BOOTUP_REASON";
155 case VEHICLE_PROPERTY_HW_KEY_INPUT: return "VEHICLE_PROPERTY_HW_KEY_INPUT";
156 case VEHICLE_PROPERTY_INSTRUMENT_CLUSTER_INFO: return "VEHICLE_PROPERTY_INSTRUMENT_CLUSTER_INFO";
157 case VEHICLE_PROPERTY_INTERNAL_AUDIO_STREAM_STATE: return "VEHICLE_PROPERTY_INTERNAL_AUDIO_STREAM_STATE";
158 default: return "UNKNOWN_PROPERTY";
159 }
160 }
161 
getVehicleChangeMode(int property)162 public static int[] getVehicleChangeMode(int property) {
163 switch (property) {
164 case VEHICLE_PROPERTY_INFO_VIN: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_STATIC };
165 case VEHICLE_PROPERTY_INFO_MAKE: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_STATIC };
166 case VEHICLE_PROPERTY_INFO_MODEL: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_STATIC };
167 case VEHICLE_PROPERTY_INFO_MODEL_YEAR: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_STATIC };
168 case VEHICLE_PROPERTY_INFO_FUEL_CAPACITY: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_STATIC };
169 case VEHICLE_PROPERTY_PERF_ODOMETER: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE , VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_CONTINUOUS };
170 case VEHICLE_PROPERTY_PERF_VEHICLE_SPEED: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE , VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_CONTINUOUS };
171 case VEHICLE_PROPERTY_ENGINE_COOLANT_TEMP: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE , VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_CONTINUOUS };
172 case VEHICLE_PROPERTY_ENGINE_OIL_TEMP: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE , VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_CONTINUOUS };
173 case VEHICLE_PROPERTY_ENGINE_RPM: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE , VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_CONTINUOUS };
174 case VEHICLE_PROPERTY_GEAR_SELECTION: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
175 case VEHICLE_PROPERTY_CURRENT_GEAR: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
176 case VEHICLE_PROPERTY_PARKING_BRAKE_ON: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
177 case VEHICLE_PROPERTY_DRIVING_STATUS: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
178 case VEHICLE_PROPERTY_FUEL_LEVEL_LOW: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
179 case VEHICLE_PROPERTY_NIGHT_MODE: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
180 case VEHICLE_PROPERTY_HVAC_FAN_SPEED: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
181 case VEHICLE_PROPERTY_HVAC_FAN_DIRECTION: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
182 case VEHICLE_PROPERTY_HVAC_TEMPERATURE_CURRENT: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE , VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_CONTINUOUS };
183 case VEHICLE_PROPERTY_HVAC_TEMPERATURE_SET: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE , VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_CONTINUOUS };
184 case VEHICLE_PROPERTY_HVAC_DEFROSTER: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
185 case VEHICLE_PROPERTY_HVAC_AC_ON: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
186 case VEHICLE_PROPERTY_HVAC_MAX_AC_ON: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
187 case VEHICLE_PROPERTY_HVAC_MAX_DEFROST_ON: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
188 case VEHICLE_PROPERTY_HVAC_RECIRC_ON: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
189 case VEHICLE_PROPERTY_HVAC_DUAL_ON: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
190 case VEHICLE_PROPERTY_ENV_OUTSIDE_TEMPERATURE: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE , VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_CONTINUOUS };
191 case VEHICLE_PROPERTY_ENV_CABIN_TEMPERATURE: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE , VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_CONTINUOUS };
192 case VEHICLE_PROPERTY_RADIO_PRESET: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
193 case VEHICLE_PROPERTY_AUDIO_FOCUS: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
194 case VEHICLE_PROPERTY_AUDIO_VOLUME: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
195 case VEHICLE_PROPERTY_AUDIO_VOLUME_LIMIT: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
196 case VEHICLE_PROPERTY_AUDIO_ROUTING_POLICY: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
197 case VEHICLE_PROPERTY_AUDIO_HW_VARIANT: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_STATIC };
198 case VEHICLE_PROPERTY_AP_POWER_STATE: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
199 case VEHICLE_PROPERTY_DISPLAY_BRIGHTNESS: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
200 case VEHICLE_PROPERTY_AP_POWER_BOOTUP_REASON: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_STATIC };
201 case VEHICLE_PROPERTY_HW_KEY_INPUT: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
202 case VEHICLE_PROPERTY_INSTRUMENT_CLUSTER_INFO: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
203 case VEHICLE_PROPERTY_INTERNAL_AUDIO_STREAM_STATE: return new int[] { VehiclePropChangeMode.VEHICLE_PROP_CHANGE_MODE_ON_CHANGE };
204 default: return null;
205 }
206 }
207 
getVehicleAccess(int property)208 public static int[] getVehicleAccess(int property) {
209 switch (property) {
210 case VEHICLE_PROPERTY_INFO_VIN: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
211 case VEHICLE_PROPERTY_INFO_MAKE: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
212 case VEHICLE_PROPERTY_INFO_MODEL: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
213 case VEHICLE_PROPERTY_INFO_MODEL_YEAR: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
214 case VEHICLE_PROPERTY_INFO_FUEL_CAPACITY: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
215 case VEHICLE_PROPERTY_PERF_ODOMETER: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
216 case VEHICLE_PROPERTY_PERF_VEHICLE_SPEED: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
217 case VEHICLE_PROPERTY_ENGINE_COOLANT_TEMP: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
218 case VEHICLE_PROPERTY_ENGINE_OIL_TEMP: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
219 case VEHICLE_PROPERTY_ENGINE_RPM: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
220 case VEHICLE_PROPERTY_GEAR_SELECTION: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
221 case VEHICLE_PROPERTY_CURRENT_GEAR: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
222 case VEHICLE_PROPERTY_PARKING_BRAKE_ON: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
223 case VEHICLE_PROPERTY_DRIVING_STATUS: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
224 case VEHICLE_PROPERTY_FUEL_LEVEL_LOW: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
225 case VEHICLE_PROPERTY_NIGHT_MODE: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
226 case VEHICLE_PROPERTY_HVAC_FAN_SPEED: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
227 case VEHICLE_PROPERTY_HVAC_FAN_DIRECTION: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
228 case VEHICLE_PROPERTY_HVAC_TEMPERATURE_CURRENT: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
229 case VEHICLE_PROPERTY_HVAC_TEMPERATURE_SET: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
230 case VEHICLE_PROPERTY_HVAC_DEFROSTER: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
231 case VEHICLE_PROPERTY_HVAC_AC_ON: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
232 case VEHICLE_PROPERTY_HVAC_MAX_AC_ON: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
233 case VEHICLE_PROPERTY_HVAC_MAX_DEFROST_ON: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
234 case VEHICLE_PROPERTY_HVAC_RECIRC_ON: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
235 case VEHICLE_PROPERTY_HVAC_DUAL_ON: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
236 case VEHICLE_PROPERTY_ENV_OUTSIDE_TEMPERATURE: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
237 case VEHICLE_PROPERTY_ENV_CABIN_TEMPERATURE: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
238 case VEHICLE_PROPERTY_RADIO_PRESET: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
239 case VEHICLE_PROPERTY_AUDIO_FOCUS: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
240 case VEHICLE_PROPERTY_AUDIO_VOLUME: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
241 case VEHICLE_PROPERTY_AUDIO_VOLUME_LIMIT: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
242 case VEHICLE_PROPERTY_AUDIO_ROUTING_POLICY: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_WRITE };
243 case VEHICLE_PROPERTY_AUDIO_HW_VARIANT: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
244 case VEHICLE_PROPERTY_AP_POWER_STATE: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
245 case VEHICLE_PROPERTY_DISPLAY_BRIGHTNESS: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ , VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
246 case VEHICLE_PROPERTY_AP_POWER_BOOTUP_REASON: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
247 case VEHICLE_PROPERTY_HW_KEY_INPUT: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ };
248 case VEHICLE_PROPERTY_INSTRUMENT_CLUSTER_INFO: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
249 case VEHICLE_PROPERTY_INTERNAL_AUDIO_STREAM_STATE: return new int[] { VehiclePropAccess.VEHICLE_PROP_ACCESS_READ_WRITE };
250 default: return null;
251 }
252 }
253 
254 public static class VehicleHvacFanDirection {
255 public static final int VEHICLE_HVAC_FAN_DIRECTION_FACE = 0x1;
256 public static final int VEHICLE_HVAC_FAN_DIRECTION_FLOOR = 0x2;
257 public static final int VEHICLE_HVAC_FAN_DIRECTION_FACE_AND_FLOOR = 0x3;
258 public static final int VEHICLE_HVAC_FAN_DIRECTION_DEFROST = 0x4;
259 public static final int VEHICLE_HVAC_FAN_DIRECTION_DEFROST_AND_FLOOR = 0x5;
enumToString(int v)260 public static String enumToString(int v) {
261 switch(v) {
262 case VEHICLE_HVAC_FAN_DIRECTION_FACE: return "VEHICLE_HVAC_FAN_DIRECTION_FACE";
263 case VEHICLE_HVAC_FAN_DIRECTION_FLOOR: return "VEHICLE_HVAC_FAN_DIRECTION_FLOOR";
264 case VEHICLE_HVAC_FAN_DIRECTION_FACE_AND_FLOOR: return "VEHICLE_HVAC_FAN_DIRECTION_FACE_AND_FLOOR";
265 case VEHICLE_HVAC_FAN_DIRECTION_DEFROST: return "VEHICLE_HVAC_FAN_DIRECTION_DEFROST";
266 case VEHICLE_HVAC_FAN_DIRECTION_DEFROST_AND_FLOOR: return "VEHICLE_HVAC_FAN_DIRECTION_DEFROST_AND_FLOOR";
267 default: return "UNKNOWN";
268 }
269 }
270 }
271 
272 public static class VehicleRadioConsts {
273 public static final int VEHICLE_RADIO_PRESET_MIN_VALUE = 1;
enumToString(int v)274 public static String enumToString(int v) {
275 switch(v) {
276 case VEHICLE_RADIO_PRESET_MIN_VALUE: return "VEHICLE_RADIO_PRESET_MIN_VALUE";
277 default: return "UNKNOWN";
278 }
279 }
280 }
281 
282 public static class VehicleAudioFocusRequest {
283 public static final int VEHICLE_AUDIO_FOCUS_REQUEST_GAIN = 0x1;
284 public static final int VEHICLE_AUDIO_FOCUS_REQUEST_GAIN_TRANSIENT = 0x2;
285 public static final int VEHICLE_AUDIO_FOCUS_REQUEST_GAIN_TRANSIENT_MAY_DUCK = 0x3;
286 public static final int VEHICLE_AUDIO_FOCUS_REQUEST_GAIN_TRANSIENT_NO_DUCK = 0x4;
287 public static final int VEHICLE_AUDIO_FOCUS_REQUEST_RELEASE = 0x5;
enumToString(int v)288 public static String enumToString(int v) {
289 switch(v) {
290 case VEHICLE_AUDIO_FOCUS_REQUEST_GAIN: return "VEHICLE_AUDIO_FOCUS_REQUEST_GAIN";
291 case VEHICLE_AUDIO_FOCUS_REQUEST_GAIN_TRANSIENT: return "VEHICLE_AUDIO_FOCUS_REQUEST_GAIN_TRANSIENT";
292 case VEHICLE_AUDIO_FOCUS_REQUEST_GAIN_TRANSIENT_MAY_DUCK: return "VEHICLE_AUDIO_FOCUS_REQUEST_GAIN_TRANSIENT_MAY_DUCK";
293 case VEHICLE_AUDIO_FOCUS_REQUEST_GAIN_TRANSIENT_NO_DUCK: return "VEHICLE_AUDIO_FOCUS_REQUEST_GAIN_TRANSIENT_NO_DUCK";
294 case VEHICLE_AUDIO_FOCUS_REQUEST_RELEASE: return "VEHICLE_AUDIO_FOCUS_REQUEST_RELEASE";
295 default: return "UNKNOWN";
296 }
297 }
298 }
299 
300 public static class VehicleAudioFocusState {
301 public static final int VEHICLE_AUDIO_FOCUS_STATE_GAIN = 0x1;
302 public static final int VEHICLE_AUDIO_FOCUS_STATE_GAIN_TRANSIENT = 0x2;
303 public static final int VEHICLE_AUDIO_FOCUS_STATE_LOSS_TRANSIENT_CAN_DUCK = 0x3;
304 public static final int VEHICLE_AUDIO_FOCUS_STATE_LOSS_TRANSIENT = 0x4;
305 public static final int VEHICLE_AUDIO_FOCUS_STATE_LOSS = 0x5;
306 public static final int VEHICLE_AUDIO_FOCUS_STATE_LOSS_TRANSIENT_EXLCUSIVE = 0x6;
enumToString(int v)307 public static String enumToString(int v) {
308 switch(v) {
309 case VEHICLE_AUDIO_FOCUS_STATE_GAIN: return "VEHICLE_AUDIO_FOCUS_STATE_GAIN";
310 case VEHICLE_AUDIO_FOCUS_STATE_GAIN_TRANSIENT: return "VEHICLE_AUDIO_FOCUS_STATE_GAIN_TRANSIENT";
311 case VEHICLE_AUDIO_FOCUS_STATE_LOSS_TRANSIENT_CAN_DUCK: return "VEHICLE_AUDIO_FOCUS_STATE_LOSS_TRANSIENT_CAN_DUCK";
312 case VEHICLE_AUDIO_FOCUS_STATE_LOSS_TRANSIENT: return "VEHICLE_AUDIO_FOCUS_STATE_LOSS_TRANSIENT";
313 case VEHICLE_AUDIO_FOCUS_STATE_LOSS: return "VEHICLE_AUDIO_FOCUS_STATE_LOSS";
314 case VEHICLE_AUDIO_FOCUS_STATE_LOSS_TRANSIENT_EXLCUSIVE: return "VEHICLE_AUDIO_FOCUS_STATE_LOSS_TRANSIENT_EXLCUSIVE";
315 default: return "UNKNOWN";
316 }
317 }
318 }
319 
320 public static class VehicleAudioStreamFlag {
321 public static final int VEHICLE_AUDIO_STREAM_STREAM0_FLAG = (0x1<<0);
322 public static final int VEHICLE_AUDIO_STREAM_STREAM1_FLAG = (0x1<<1);
323 public static final int VEHICLE_AUDIO_STREAM_STREAM2_FLAG = (0x1<<2);
enumToString(int v)324 public static String enumToString(int v) {
325 switch(v) {
326 case VEHICLE_AUDIO_STREAM_STREAM0_FLAG: return "VEHICLE_AUDIO_STREAM_STREAM0_FLAG";
327 case VEHICLE_AUDIO_STREAM_STREAM1_FLAG: return "VEHICLE_AUDIO_STREAM_STREAM1_FLAG";
328 case VEHICLE_AUDIO_STREAM_STREAM2_FLAG: return "VEHICLE_AUDIO_STREAM_STREAM2_FLAG";
329 default: return "UNKNOWN";
330 }
331 }
332 }
333 
334 public static class VehicleAudioStream {
335 public static final int VEHICLE_AUDIO_STREAM0 = 0;
336 public static final int VEHICLE_AUDIO_STREAM1 = 1;
enumToString(int v)337 public static String enumToString(int v) {
338 switch(v) {
339 case VEHICLE_AUDIO_STREAM0: return "VEHICLE_AUDIO_STREAM0";
340 case VEHICLE_AUDIO_STREAM1: return "VEHICLE_AUDIO_STREAM1";
341 default: return "UNKNOWN";
342 }
343 }
344 }
345 
346 public static class VehicleAudioExtFocusFlag {
347 public static final int VEHICLE_AUDIO_EXT_FOCUS_NONE_FLAG = 0x0;
348 public static final int VEHICLE_AUDIO_EXT_FOCUS_CAR_PERMANENT_FLAG = 0x1;
349 public static final int VEHICLE_AUDIO_EXT_FOCUS_CAR_TRANSIENT_FLAG = 0x2;
350 public static final int VEHICLE_AUDIO_EXT_FOCUS_CAR_PLAY_ONLY_FLAG = 0x4;
enumToString(int v)351 public static String enumToString(int v) {
352 switch(v) {
353 case VEHICLE_AUDIO_EXT_FOCUS_NONE_FLAG: return "VEHICLE_AUDIO_EXT_FOCUS_NONE_FLAG";
354 case VEHICLE_AUDIO_EXT_FOCUS_CAR_PERMANENT_FLAG: return "VEHICLE_AUDIO_EXT_FOCUS_CAR_PERMANENT_FLAG";
355 case VEHICLE_AUDIO_EXT_FOCUS_CAR_TRANSIENT_FLAG: return "VEHICLE_AUDIO_EXT_FOCUS_CAR_TRANSIENT_FLAG";
356 case VEHICLE_AUDIO_EXT_FOCUS_CAR_PLAY_ONLY_FLAG: return "VEHICLE_AUDIO_EXT_FOCUS_CAR_PLAY_ONLY_FLAG";
357 default: return "UNKNOWN";
358 }
359 }
360 }
361 
362 public static class VehicleAudioFocusIndex {
363 public static final int VEHICLE_AUDIO_FOCUS_INDEX_FOCUS = 0;
364 public static final int VEHICLE_AUDIO_FOCUS_INDEX_STREAMS = 1;
365 public static final int VEHICLE_AUDIO_FOCUS_INDEX_EXTERNAL_FOCUS_STATE = 2;
366 public static final int VEHICLE_AUDIO_FOCUS_INDEX_AUDIO_CONTEXTS = 3;
enumToString(int v)367 public static String enumToString(int v) {
368 switch(v) {
369 case VEHICLE_AUDIO_FOCUS_INDEX_FOCUS: return "VEHICLE_AUDIO_FOCUS_INDEX_FOCUS";
370 case VEHICLE_AUDIO_FOCUS_INDEX_STREAMS: return "VEHICLE_AUDIO_FOCUS_INDEX_STREAMS";
371 case VEHICLE_AUDIO_FOCUS_INDEX_EXTERNAL_FOCUS_STATE: return "VEHICLE_AUDIO_FOCUS_INDEX_EXTERNAL_FOCUS_STATE";
372 case VEHICLE_AUDIO_FOCUS_INDEX_AUDIO_CONTEXTS: return "VEHICLE_AUDIO_FOCUS_INDEX_AUDIO_CONTEXTS";
373 default: return "UNKNOWN";
374 }
375 }
376 }
377 
378 public static class VehicleAudioContextFlag {
379 public static final int VEHICLE_AUDIO_CONTEXT_MUSIC_FLAG = 0x1;
380 public static final int VEHICLE_AUDIO_CONTEXT_NAVIGATION_FLAG = 0x2;
381 public static final int VEHICLE_AUDIO_CONTEXT_VOICE_COMMAND_FLAG = 0x4;
382 public static final int VEHICLE_AUDIO_CONTEXT_CALL_FLAG = 0x8;
383 public static final int VEHICLE_AUDIO_CONTEXT_ALARM_FLAG = 0x10;
384 public static final int VEHICLE_AUDIO_CONTEXT_NOTIFICATION_FLAG = 0x20;
385 public static final int VEHICLE_AUDIO_CONTEXT_UNKNOWN_FLAG = 0x40;
386 public static final int VEHICLE_AUDIO_CONTEXT_SAFETY_ALERT_FLAG = 0x80;
387 public static final int VEHICLE_AUDIO_CONTEXT_CD_ROM_FLAG = 0x100;
388 public static final int VEHICLE_AUDIO_CONTEXT_AUX_AUDIO_FLAG = 0x200;
389 public static final int VEHICLE_AUDIO_CONTEXT_SYSTEM_SOUND_FLAG = 0x400;
390 public static final int VEHICLE_AUDIO_CONTEXT_RADIO_FLAG = 0x800;
enumToString(int v)391 public static String enumToString(int v) {
392 switch(v) {
393 case VEHICLE_AUDIO_CONTEXT_MUSIC_FLAG: return "VEHICLE_AUDIO_CONTEXT_MUSIC_FLAG";
394 case VEHICLE_AUDIO_CONTEXT_NAVIGATION_FLAG: return "VEHICLE_AUDIO_CONTEXT_NAVIGATION_FLAG";
395 case VEHICLE_AUDIO_CONTEXT_VOICE_COMMAND_FLAG: return "VEHICLE_AUDIO_CONTEXT_VOICE_COMMAND_FLAG";
396 case VEHICLE_AUDIO_CONTEXT_CALL_FLAG: return "VEHICLE_AUDIO_CONTEXT_CALL_FLAG";
397 case VEHICLE_AUDIO_CONTEXT_ALARM_FLAG: return "VEHICLE_AUDIO_CONTEXT_ALARM_FLAG";
398 case VEHICLE_AUDIO_CONTEXT_NOTIFICATION_FLAG: return "VEHICLE_AUDIO_CONTEXT_NOTIFICATION_FLAG";
399 case VEHICLE_AUDIO_CONTEXT_UNKNOWN_FLAG: return "VEHICLE_AUDIO_CONTEXT_UNKNOWN_FLAG";
400 case VEHICLE_AUDIO_CONTEXT_SAFETY_ALERT_FLAG: return "VEHICLE_AUDIO_CONTEXT_SAFETY_ALERT_FLAG";
401 case VEHICLE_AUDIO_CONTEXT_CD_ROM_FLAG: return "VEHICLE_AUDIO_CONTEXT_CD_ROM_FLAG";
402 case VEHICLE_AUDIO_CONTEXT_AUX_AUDIO_FLAG: return "VEHICLE_AUDIO_CONTEXT_AUX_AUDIO_FLAG";
403 case VEHICLE_AUDIO_CONTEXT_SYSTEM_SOUND_FLAG: return "VEHICLE_AUDIO_CONTEXT_SYSTEM_SOUND_FLAG";
404 case VEHICLE_AUDIO_CONTEXT_RADIO_FLAG: return "VEHICLE_AUDIO_CONTEXT_RADIO_FLAG";
405 default: return "UNKNOWN";
406 }
407 }
408 }
409 
410 public static class VehicleAudioVolumeState {
411 public static final int VEHICLE_AUDIO_VOLUME_STATE_OK = 0;
412 public static final int VEHICLE_AUDIO_VOLUME_STATE_LIMIT_REACHED = 1;
enumToString(int v)413 public static String enumToString(int v) {
414 switch(v) {
415 case VEHICLE_AUDIO_VOLUME_STATE_OK: return "VEHICLE_AUDIO_VOLUME_STATE_OK";
416 case VEHICLE_AUDIO_VOLUME_STATE_LIMIT_REACHED: return "VEHICLE_AUDIO_VOLUME_STATE_LIMIT_REACHED";
417 default: return "UNKNOWN";
418 }
419 }
420 }
421 
422 public static class VehicleAudioVolumeIndex {
423 public static final int VEHICLE_AUDIO_VOLUME_INDEX_STREAM = 0;
424 public static final int VEHICLE_AUDIO_VOLUME_INDEX_VOLUME = 1;
425 public static final int VEHICLE_AUDIO_VOLUME_INDEX_STATE = 2;
enumToString(int v)426 public static String enumToString(int v) {
427 switch(v) {
428 case VEHICLE_AUDIO_VOLUME_INDEX_STREAM: return "VEHICLE_AUDIO_VOLUME_INDEX_STREAM";
429 case VEHICLE_AUDIO_VOLUME_INDEX_VOLUME: return "VEHICLE_AUDIO_VOLUME_INDEX_VOLUME";
430 case VEHICLE_AUDIO_VOLUME_INDEX_STATE: return "VEHICLE_AUDIO_VOLUME_INDEX_STATE";
431 default: return "UNKNOWN";
432 }
433 }
434 }
435 
436 public static class VehicleAudioVolumeLimitIndex {
437 public static final int VEHICLE_AUDIO_VOLUME_LIMIT_INDEX_STREAM = 0;
438 public static final int VEHICLE_AUDIO_VOLUME_LIMIT_INDEX_MAX_VOLUME = 1;
enumToString(int v)439 public static String enumToString(int v) {
440 switch(v) {
441 case VEHICLE_AUDIO_VOLUME_LIMIT_INDEX_STREAM: return "VEHICLE_AUDIO_VOLUME_LIMIT_INDEX_STREAM";
442 case VEHICLE_AUDIO_VOLUME_LIMIT_INDEX_MAX_VOLUME: return "VEHICLE_AUDIO_VOLUME_LIMIT_INDEX_MAX_VOLUME";
443 default: return "UNKNOWN";
444 }
445 }
446 }
447 
448 public static class VehicleAudioRoutingPolicyIndex {
449 public static final int VEHICLE_AUDIO_ROUTING_POLICY_INDEX_STREAM = 0;
450 public static final int VEHICLE_AUDIO_ROUTING_POLICY_INDEX_CONTEXTS = 1;
enumToString(int v)451 public static String enumToString(int v) {
452 switch(v) {
453 case VEHICLE_AUDIO_ROUTING_POLICY_INDEX_STREAM: return "VEHICLE_AUDIO_ROUTING_POLICY_INDEX_STREAM";
454 case VEHICLE_AUDIO_ROUTING_POLICY_INDEX_CONTEXTS: return "VEHICLE_AUDIO_ROUTING_POLICY_INDEX_CONTEXTS";
455 default: return "UNKNOWN";
456 }
457 }
458 }
459 
460 public static class VehicleAudioHwVariantConfigFlag {
461 public static final int VEHICLE_AUDIO_HW_VARIANT_FLAG_PASS_RADIO_AUDIO_FOCUS_FLAG = 0x1;
enumToString(int v)462 public static String enumToString(int v) {
463 switch(v) {
464 case VEHICLE_AUDIO_HW_VARIANT_FLAG_PASS_RADIO_AUDIO_FOCUS_FLAG: return "VEHICLE_AUDIO_HW_VARIANT_FLAG_PASS_RADIO_AUDIO_FOCUS_FLAG";
465 default: return "UNKNOWN";
466 }
467 }
468 }
469 
470 public static class VehicleApPowerStateConfigFlag {
471 public static final int VEHICLE_AP_POWER_STATE_CONFIG_ENABLE_DEEP_SLEEP_FLAG = 0x1;
472 public static final int VEHICLE_AP_POWER_STATE_CONFIG_SUPPORT_TIMER_POWER_ON_FLAG = 0x2;
enumToString(int v)473 public static String enumToString(int v) {
474 switch(v) {
475 case VEHICLE_AP_POWER_STATE_CONFIG_ENABLE_DEEP_SLEEP_FLAG: return "VEHICLE_AP_POWER_STATE_CONFIG_ENABLE_DEEP_SLEEP_FLAG";
476 case VEHICLE_AP_POWER_STATE_CONFIG_SUPPORT_TIMER_POWER_ON_FLAG: return "VEHICLE_AP_POWER_STATE_CONFIG_SUPPORT_TIMER_POWER_ON_FLAG";
477 default: return "UNKNOWN";
478 }
479 }
480 }
481 
482 public static class VehicleApPowerState {
483 public static final int VEHICLE_AP_POWER_STATE_OFF = 0;
484 public static final int VEHICLE_AP_POWER_STATE_DEEP_SLEEP = 1;
485 public static final int VEHICLE_AP_POWER_STATE_ON_DISP_OFF = 2;
486 public static final int VEHICLE_AP_POWER_STATE_ON_FULL = 3;
487 public static final int VEHICLE_AP_POWER_STATE_SHUTDOWN_PREPARE = 4;
enumToString(int v)488 public static String enumToString(int v) {
489 switch(v) {
490 case VEHICLE_AP_POWER_STATE_OFF: return "VEHICLE_AP_POWER_STATE_OFF";
491 case VEHICLE_AP_POWER_STATE_DEEP_SLEEP: return "VEHICLE_AP_POWER_STATE_DEEP_SLEEP";
492 case VEHICLE_AP_POWER_STATE_ON_DISP_OFF: return "VEHICLE_AP_POWER_STATE_ON_DISP_OFF";
493 case VEHICLE_AP_POWER_STATE_ON_FULL: return "VEHICLE_AP_POWER_STATE_ON_FULL";
494 case VEHICLE_AP_POWER_STATE_SHUTDOWN_PREPARE: return "VEHICLE_AP_POWER_STATE_SHUTDOWN_PREPARE";
495 default: return "UNKNOWN";
496 }
497 }
498 }
499 
500 public static class VehicleApPowerStateShutdownParam {
501 public static final int VEHICLE_AP_POWER_SHUTDOWN_PARAM_SHUTDOWN_IMMEDIATELY = 1;
502 public static final int VEHICLE_AP_POWER_SHUTDOWN_PARAM_CAN_SLEEP = 2;
503 public static final int VEHICLE_AP_POWER_SHUTDOWN_PARAM_SHUTDOWN_ONLY = 3;
enumToString(int v)504 public static String enumToString(int v) {
505 switch(v) {
506 case VEHICLE_AP_POWER_SHUTDOWN_PARAM_SHUTDOWN_IMMEDIATELY: return "VEHICLE_AP_POWER_SHUTDOWN_PARAM_SHUTDOWN_IMMEDIATELY";
507 case VEHICLE_AP_POWER_SHUTDOWN_PARAM_CAN_SLEEP: return "VEHICLE_AP_POWER_SHUTDOWN_PARAM_CAN_SLEEP";
508 case VEHICLE_AP_POWER_SHUTDOWN_PARAM_SHUTDOWN_ONLY: return "VEHICLE_AP_POWER_SHUTDOWN_PARAM_SHUTDOWN_ONLY";
509 default: return "UNKNOWN";
510 }
511 }
512 }
513 
514 public static class VehicleApPowerSetState {
515 public static final int VEHICLE_AP_POWER_SET_BOOT_COMPLETE = 0x1;
516 public static final int VEHICLE_AP_POWER_SET_DEEP_SLEEP_ENTRY = 0x2;
517 public static final int VEHICLE_AP_POWER_SET_DEEP_SLEEP_EXIT = 0x3;
518 public static final int VEHICLE_AP_POWER_SET_SHUTDOWN_POSTPONE = 0x4;
519 public static final int VEHICLE_AP_POWER_SET_SHUTDOWN_START = 0x5;
520 public static final int VEHICLE_AP_POWER_SET_DISPLAY_OFF = 0x6;
521 public static final int VEHICLE_AP_POWER_SET_DISPLAY_ON = 0x7;
enumToString(int v)522 public static String enumToString(int v) {
523 switch(v) {
524 case VEHICLE_AP_POWER_SET_BOOT_COMPLETE: return "VEHICLE_AP_POWER_SET_BOOT_COMPLETE";
525 case VEHICLE_AP_POWER_SET_DEEP_SLEEP_ENTRY: return "VEHICLE_AP_POWER_SET_DEEP_SLEEP_ENTRY";
526 case VEHICLE_AP_POWER_SET_DEEP_SLEEP_EXIT: return "VEHICLE_AP_POWER_SET_DEEP_SLEEP_EXIT";
527 case VEHICLE_AP_POWER_SET_SHUTDOWN_POSTPONE: return "VEHICLE_AP_POWER_SET_SHUTDOWN_POSTPONE";
528 case VEHICLE_AP_POWER_SET_SHUTDOWN_START: return "VEHICLE_AP_POWER_SET_SHUTDOWN_START";
529 case VEHICLE_AP_POWER_SET_DISPLAY_OFF: return "VEHICLE_AP_POWER_SET_DISPLAY_OFF";
530 case VEHICLE_AP_POWER_SET_DISPLAY_ON: return "VEHICLE_AP_POWER_SET_DISPLAY_ON";
531 default: return "UNKNOWN";
532 }
533 }
534 }
535 
536 public static class VehicleApPowerStateIndex {
537 public static final int VEHICLE_AP_POWER_STATE_INDEX_STATE = 0;
538 public static final int VEHICLE_AP_POWER_STATE_INDEX_ADDITIONAL = 1;
enumToString(int v)539 public static String enumToString(int v) {
540 switch(v) {
541 case VEHICLE_AP_POWER_STATE_INDEX_STATE: return "VEHICLE_AP_POWER_STATE_INDEX_STATE";
542 case VEHICLE_AP_POWER_STATE_INDEX_ADDITIONAL: return "VEHICLE_AP_POWER_STATE_INDEX_ADDITIONAL";
543 default: return "UNKNOWN";
544 }
545 }
546 }
547 
548 public static class VehicleApPowerBootupReason {
549 public static final int VEHICLE_AP_POWER_BOOTUP_REASON_USER_POWER_ON = 0;
550 public static final int VEHICLE_AP_POWER_BOOTUP_REASON_USER_UNLOCK = 1;
551 public static final int VEHICLE_AP_POWER_BOOTUP_REASON_TIMER = 2;
enumToString(int v)552 public static String enumToString(int v) {
553 switch(v) {
554 case VEHICLE_AP_POWER_BOOTUP_REASON_USER_POWER_ON: return "VEHICLE_AP_POWER_BOOTUP_REASON_USER_POWER_ON";
555 case VEHICLE_AP_POWER_BOOTUP_REASON_USER_UNLOCK: return "VEHICLE_AP_POWER_BOOTUP_REASON_USER_UNLOCK";
556 case VEHICLE_AP_POWER_BOOTUP_REASON_TIMER: return "VEHICLE_AP_POWER_BOOTUP_REASON_TIMER";
557 default: return "UNKNOWN";
558 }
559 }
560 }
561 
562 public static class VehicleHwKeyInputAction {
563 public static final int VEHICLE_HW_KEY_INPUT_ACTION_DOWN = 0;
564 public static final int VEHICLE_HW_KEY_INPUT_ACTION_UP = 1;
enumToString(int v)565 public static String enumToString(int v) {
566 switch(v) {
567 case VEHICLE_HW_KEY_INPUT_ACTION_DOWN: return "VEHICLE_HW_KEY_INPUT_ACTION_DOWN";
568 case VEHICLE_HW_KEY_INPUT_ACTION_UP: return "VEHICLE_HW_KEY_INPUT_ACTION_UP";
569 default: return "UNKNOWN";
570 }
571 }
572 }
573 
574 public static class VehicleDisplay {
575 public static final int VEHICLE_DISPLAY_MAIN = 0;
576 public static final int VEHICLE_DISPLAY_INSTRUMENT_CLUSTER = 1;
enumToString(int v)577 public static String enumToString(int v) {
578 switch(v) {
579 case VEHICLE_DISPLAY_MAIN: return "VEHICLE_DISPLAY_MAIN";
580 case VEHICLE_DISPLAY_INSTRUMENT_CLUSTER: return "VEHICLE_DISPLAY_INSTRUMENT_CLUSTER";
581 default: return "UNKNOWN";
582 }
583 }
584 }
585 
586 public static class VehicleInstumentClusterType {
587 public static final int VEHICLE_INSTRUMENT_CLUSTER_TYPE_NONE = 0;
588 public static final int VEHICLE_INSTRUMENT_CLUSTER_TYPE_HAL_INTERFACE = 1;
589 public static final int VEHICLE_INSTRUMENT_CLUSTER_TYPE_EXTERNAL_DISPLAY = 2;
enumToString(int v)590 public static String enumToString(int v) {
591 switch(v) {
592 case VEHICLE_INSTRUMENT_CLUSTER_TYPE_NONE: return "VEHICLE_INSTRUMENT_CLUSTER_TYPE_NONE";
593 case VEHICLE_INSTRUMENT_CLUSTER_TYPE_HAL_INTERFACE: return "VEHICLE_INSTRUMENT_CLUSTER_TYPE_HAL_INTERFACE";
594 case VEHICLE_INSTRUMENT_CLUSTER_TYPE_EXTERNAL_DISPLAY: return "VEHICLE_INSTRUMENT_CLUSTER_TYPE_EXTERNAL_DISPLAY";
595 default: return "UNKNOWN";
596 }
597 }
598 }
599 
600 public static class VehicleValueType {
601 public static final int VEHICLE_VALUE_TYPE_SHOUD_NOT_USE = 0x00;
602 public static final int VEHICLE_VALUE_TYPE_STRING = 0x01;
603 public static final int VEHICLE_VALUE_TYPE_BYTES = 0x02;
604 public static final int VEHICLE_VALUE_TYPE_BOOLEAN = 0x03;
605 public static final int VEHICLE_VALUE_TYPE_ZONED_BOOLEAN = 0x04;
606 public static final int VEHICLE_VALUE_TYPE_INT64 = 0x05;
607 public static final int VEHICLE_VALUE_TYPE_FLOAT = 0x10;
608 public static final int VEHICLE_VALUE_TYPE_FLOAT_VEC2 = 0x11;
609 public static final int VEHICLE_VALUE_TYPE_FLOAT_VEC3 = 0x12;
610 public static final int VEHICLE_VALUE_TYPE_FLOAT_VEC4 = 0x13;
611 public static final int VEHICLE_VALUE_TYPE_INT32 = 0x20;
612 public static final int VEHICLE_VALUE_TYPE_INT32_VEC2 = 0x21;
613 public static final int VEHICLE_VALUE_TYPE_INT32_VEC3 = 0x22;
614 public static final int VEHICLE_VALUE_TYPE_INT32_VEC4 = 0x23;
615 public static final int VEHICLE_VALUE_TYPE_ZONED_FLOAT = 0x30;
616 public static final int VEHICLE_VALUE_TYPE_ZONED_FLOAT_VEC2 = 0x31;
617 public static final int VEHICLE_VALUE_TYPE_ZONED_FLOAT_VEC3 = 0x32;
618 public static final int VEHICLE_VALUE_TYPE_ZONED_FLOAT_VEC4 = 0x33;
619 public static final int VEHICLE_VALUE_TYPE_ZONED_INT32 = 0x40;
620 public static final int VEHICLE_VALUE_TYPE_ZONED_INT32_VEC2 = 0x41;
621 public static final int VEHICLE_VALUE_TYPE_ZONED_INT32_VEC3 = 0x42;
622 public static final int VEHICLE_VALUE_TYPE_ZONED_INT32_VEC4 = 0x43;
enumToString(int v)623 public static String enumToString(int v) {
624 switch(v) {
625 case VEHICLE_VALUE_TYPE_SHOUD_NOT_USE: return "VEHICLE_VALUE_TYPE_SHOUD_NOT_USE";
626 case VEHICLE_VALUE_TYPE_STRING: return "VEHICLE_VALUE_TYPE_STRING";
627 case VEHICLE_VALUE_TYPE_BYTES: return "VEHICLE_VALUE_TYPE_BYTES";
628 case VEHICLE_VALUE_TYPE_BOOLEAN: return "VEHICLE_VALUE_TYPE_BOOLEAN";
629 case VEHICLE_VALUE_TYPE_ZONED_BOOLEAN: return "VEHICLE_VALUE_TYPE_ZONED_BOOLEAN";
630 case VEHICLE_VALUE_TYPE_INT64: return "VEHICLE_VALUE_TYPE_INT64";
631 case VEHICLE_VALUE_TYPE_FLOAT: return "VEHICLE_VALUE_TYPE_FLOAT";
632 case VEHICLE_VALUE_TYPE_FLOAT_VEC2: return "VEHICLE_VALUE_TYPE_FLOAT_VEC2";
633 case VEHICLE_VALUE_TYPE_FLOAT_VEC3: return "VEHICLE_VALUE_TYPE_FLOAT_VEC3";
634 case VEHICLE_VALUE_TYPE_FLOAT_VEC4: return "VEHICLE_VALUE_TYPE_FLOAT_VEC4";
635 case VEHICLE_VALUE_TYPE_INT32: return "VEHICLE_VALUE_TYPE_INT32";
636 case VEHICLE_VALUE_TYPE_INT32_VEC2: return "VEHICLE_VALUE_TYPE_INT32_VEC2";
637 case VEHICLE_VALUE_TYPE_INT32_VEC3: return "VEHICLE_VALUE_TYPE_INT32_VEC3";
638 case VEHICLE_VALUE_TYPE_INT32_VEC4: return "VEHICLE_VALUE_TYPE_INT32_VEC4";
639 case VEHICLE_VALUE_TYPE_ZONED_FLOAT: return "VEHICLE_VALUE_TYPE_ZONED_FLOAT";
640 case VEHICLE_VALUE_TYPE_ZONED_FLOAT_VEC2: return "VEHICLE_VALUE_TYPE_ZONED_FLOAT_VEC2";
641 case VEHICLE_VALUE_TYPE_ZONED_FLOAT_VEC3: return "VEHICLE_VALUE_TYPE_ZONED_FLOAT_VEC3";
642 case VEHICLE_VALUE_TYPE_ZONED_FLOAT_VEC4: return "VEHICLE_VALUE_TYPE_ZONED_FLOAT_VEC4";
643 case VEHICLE_VALUE_TYPE_ZONED_INT32: return "VEHICLE_VALUE_TYPE_ZONED_INT32";
644 case VEHICLE_VALUE_TYPE_ZONED_INT32_VEC2: return "VEHICLE_VALUE_TYPE_ZONED_INT32_VEC2";
645 case VEHICLE_VALUE_TYPE_ZONED_INT32_VEC3: return "VEHICLE_VALUE_TYPE_ZONED_INT32_VEC3";
646 case VEHICLE_VALUE_TYPE_ZONED_INT32_VEC4: return "VEHICLE_VALUE_TYPE_ZONED_INT32_VEC4";
647 default: return "UNKNOWN";
648 }
649 }
650 }
651 
652 public static class VehicleUnitType {
653 public static final int VEHICLE_UNIT_TYPE_SHOULD_NOT_USE = 0x00000000;
654 public static final int VEHICLE_UNIT_TYPE_METER_PER_SEC = 0x00000001;
655 public static final int VEHICLE_UNIT_TYPE_RPM = 0x00000002;
656 public static final int VEHICLE_UNIT_TYPE_HZ = 0x00000003;
657 public static final int VEHICLE_UNIT_TYPE_PERCENTILE = 0x00000010;
658 public static final int VEHICLE_UNIT_TYPE_MILLIMETER = 0x00000020;
659 public static final int VEHICLE_UNIT_TYPE_METER = 0x00000021;
660 public static final int VEHICLE_UNIT_TYPE_KILOMETER = 0x00000023;
661 public static final int VEHICLE_UNIT_TYPE_CELCIUS = 0x00000030;
662 public static final int VEHICLE_UNIT_TYPE_MILLILITER = 0x00000040;
663 public static final int VEHICLE_UNIT_TYPE_NANO_SECS = 0x00000050;
664 public static final int VEHICLE_UNOT_TYPE_SECS = 0x00000053;
665 public static final int VEHICLE_UNIT_TYPE_YEAR = 0x00000059;
enumToString(int v)666 public static String enumToString(int v) {
667 switch(v) {
668 case VEHICLE_UNIT_TYPE_SHOULD_NOT_USE: return "VEHICLE_UNIT_TYPE_SHOULD_NOT_USE";
669 case VEHICLE_UNIT_TYPE_METER_PER_SEC: return "VEHICLE_UNIT_TYPE_METER_PER_SEC";
670 case VEHICLE_UNIT_TYPE_RPM: return "VEHICLE_UNIT_TYPE_RPM";
671 case VEHICLE_UNIT_TYPE_HZ: return "VEHICLE_UNIT_TYPE_HZ";
672 case VEHICLE_UNIT_TYPE_PERCENTILE: return "VEHICLE_UNIT_TYPE_PERCENTILE";
673 case VEHICLE_UNIT_TYPE_MILLIMETER: return "VEHICLE_UNIT_TYPE_MILLIMETER";
674 case VEHICLE_UNIT_TYPE_METER: return "VEHICLE_UNIT_TYPE_METER";
675 case VEHICLE_UNIT_TYPE_KILOMETER: return "VEHICLE_UNIT_TYPE_KILOMETER";
676 case VEHICLE_UNIT_TYPE_CELCIUS: return "VEHICLE_UNIT_TYPE_CELCIUS";
677 case VEHICLE_UNIT_TYPE_MILLILITER: return "VEHICLE_UNIT_TYPE_MILLILITER";
678 case VEHICLE_UNIT_TYPE_NANO_SECS: return "VEHICLE_UNIT_TYPE_NANO_SECS";
679 case VEHICLE_UNOT_TYPE_SECS: return "VEHICLE_UNOT_TYPE_SECS";
680 case VEHICLE_UNIT_TYPE_YEAR: return "VEHICLE_UNIT_TYPE_YEAR";
681 default: return "UNKNOWN";
682 }
683 }
684 }
685 
686 public static class VehiclePropChangeMode {
687 public static final int VEHICLE_PROP_CHANGE_MODE_STATIC = 0x00;
688 public static final int VEHICLE_PROP_CHANGE_MODE_ON_CHANGE = 0x01;
689 public static final int VEHICLE_PROP_CHANGE_MODE_CONTINUOUS = 0x02;
enumToString(int v)690 public static String enumToString(int v) {
691 switch(v) {
692 case VEHICLE_PROP_CHANGE_MODE_STATIC: return "VEHICLE_PROP_CHANGE_MODE_STATIC";
693 case VEHICLE_PROP_CHANGE_MODE_ON_CHANGE: return "VEHICLE_PROP_CHANGE_MODE_ON_CHANGE";
694 case VEHICLE_PROP_CHANGE_MODE_CONTINUOUS: return "VEHICLE_PROP_CHANGE_MODE_CONTINUOUS";
695 default: return "UNKNOWN";
696 }
697 }
698 }
699 
700 public static class VehiclePropAccess {
701 public static final int VEHICLE_PROP_ACCESS_READ = 0x01;
702 public static final int VEHICLE_PROP_ACCESS_WRITE = 0x02;
703 public static final int VEHICLE_PROP_ACCESS_READ_WRITE = 0x03;
enumToString(int v)704 public static String enumToString(int v) {
705 switch(v) {
706 case VEHICLE_PROP_ACCESS_READ: return "VEHICLE_PROP_ACCESS_READ";
707 case VEHICLE_PROP_ACCESS_WRITE: return "VEHICLE_PROP_ACCESS_WRITE";
708 case VEHICLE_PROP_ACCESS_READ_WRITE: return "VEHICLE_PROP_ACCESS_READ_WRITE";
709 default: return "UNKNOWN";
710 }
711 }
712 }
713 
714 public static class VehiclePermissionModel {
715 public static final int VEHICLE_PERMISSION_NO_RESTRICTION = 0;
716 public static final int VEHICLE_PERMISSION_OEM_ONLY = 0x1;
717 public static final int VEHICLE_PERMISSION_SYSTEM_APP_ONLY = 0x2;
718 public static final int VEHICLE_PERMISSION_OEM_OR_SYSTEM_APP = 0x3;
enumToString(int v)719 public static String enumToString(int v) {
720 switch(v) {
721 case VEHICLE_PERMISSION_NO_RESTRICTION: return "VEHICLE_PERMISSION_NO_RESTRICTION";
722 case VEHICLE_PERMISSION_OEM_ONLY: return "VEHICLE_PERMISSION_OEM_ONLY";
723 case VEHICLE_PERMISSION_SYSTEM_APP_ONLY: return "VEHICLE_PERMISSION_SYSTEM_APP_ONLY";
724 case VEHICLE_PERMISSION_OEM_OR_SYSTEM_APP: return "VEHICLE_PERMISSION_OEM_OR_SYSTEM_APP";
725 default: return "UNKNOWN";
726 }
727 }
728 }
729 
730 public static class VehicleDrivingStatus {
731 public static final int VEHICLE_DRIVING_STATUS_UNRESTRICTED = 0x00;
732 public static final int VEHICLE_DRIVING_STATUS_NO_VIDEO = 0x01;
733 public static final int VEHICLE_DRIVING_STATUS_NO_KEYBOARD_INPUT = 0x02;
734 public static final int VEHICLE_DRIVING_STATUS_NO_VOICE_INPUT = 0x04;
735 public static final int VEHICLE_DRIVING_STATUS_NO_CONFIG = 0x08;
736 public static final int VEHICLE_DRIVING_STATUS_LIMIT_MESSAGE_LEN = 0x10;
enumToString(int v)737 public static String enumToString(int v) {
738 switch(v) {
739 case VEHICLE_DRIVING_STATUS_UNRESTRICTED: return "VEHICLE_DRIVING_STATUS_UNRESTRICTED";
740 case VEHICLE_DRIVING_STATUS_NO_VIDEO: return "VEHICLE_DRIVING_STATUS_NO_VIDEO";
741 case VEHICLE_DRIVING_STATUS_NO_KEYBOARD_INPUT: return "VEHICLE_DRIVING_STATUS_NO_KEYBOARD_INPUT";
742 case VEHICLE_DRIVING_STATUS_NO_VOICE_INPUT: return "VEHICLE_DRIVING_STATUS_NO_VOICE_INPUT";
743 case VEHICLE_DRIVING_STATUS_NO_CONFIG: return "VEHICLE_DRIVING_STATUS_NO_CONFIG";
744 case VEHICLE_DRIVING_STATUS_LIMIT_MESSAGE_LEN: return "VEHICLE_DRIVING_STATUS_LIMIT_MESSAGE_LEN";
745 default: return "UNKNOWN";
746 }
747 }
748 }
749 
750 public static class VehicleGear {
751 public static final int VEHICLE_GEAR_NEUTRAL = 0x0001;
752 public static final int VEHICLE_GEAR_REVERSE = 0x0002;
753 public static final int VEHICLE_GEAR_PARK = 0x0004;
754 public static final int VEHICLE_GEAR_DRIVE = 0x0008;
755 public static final int VEHICLE_GEAR_LOW = 0x0010;
756 public static final int VEHICLE_GEAR_1 = 0x0010;
757 public static final int VEHICLE_GEAR_2 = 0x0020;
758 public static final int VEHICLE_GEAR_3 = 0x0040;
759 public static final int VEHICLE_GEAR_4 = 0x0080;
760 public static final int VEHICLE_GEAR_5 = 0x0100;
761 public static final int VEHICLE_GEAR_6 = 0x0200;
762 public static final int VEHICLE_GEAR_7 = 0x0400;
763 public static final int VEHICLE_GEAR_8 = 0x0800;
764 public static final int VEHICLE_GEAR_9 = 0x1000;
enumToString(int v)765 public static String enumToString(int v) {
766 switch(v) {
767 case VEHICLE_GEAR_NEUTRAL: return "VEHICLE_GEAR_NEUTRAL";
768 case VEHICLE_GEAR_REVERSE: return "VEHICLE_GEAR_REVERSE";
769 case VEHICLE_GEAR_PARK: return "VEHICLE_GEAR_PARK";
770 case VEHICLE_GEAR_DRIVE: return "VEHICLE_GEAR_DRIVE";
771 case VEHICLE_GEAR_LOW: return "VEHICLE_GEAR_LOW";
772 case VEHICLE_GEAR_2: return "VEHICLE_GEAR_2";
773 case VEHICLE_GEAR_3: return "VEHICLE_GEAR_3";
774 case VEHICLE_GEAR_4: return "VEHICLE_GEAR_4";
775 case VEHICLE_GEAR_5: return "VEHICLE_GEAR_5";
776 case VEHICLE_GEAR_6: return "VEHICLE_GEAR_6";
777 case VEHICLE_GEAR_7: return "VEHICLE_GEAR_7";
778 case VEHICLE_GEAR_8: return "VEHICLE_GEAR_8";
779 case VEHICLE_GEAR_9: return "VEHICLE_GEAR_9";
780 default: return "UNKNOWN";
781 }
782 }
783 }
784 
785 public static class VehicleZone {
786 public static final int VEHICLE_ZONE_ROW_1_LEFT = 0x00000001;
787 public static final int VEHICLE_ZONE_ROW_1_CENTER = 0x00000002;
788 public static final int VEHICLE_ZONE_ROW_1_RIGHT = 0x00000004;
789 public static final int VEHICLE_ZONE_ROW_1_ALL = 0x00000008;
790 public static final int VEHICLE_ZONE_ROW_2_LEFT = 0x00000010;
791 public static final int VEHICLE_ZONE_ROW_2_CENTER = 0x00000020;
792 public static final int VEHICLE_ZONE_ROW_2_RIGHT = 0x00000040;
793 public static final int VEHICLE_ZONE_ROW_2_ALL = 0x00000080;
794 public static final int VEHICLE_ZONE_ROW_3_LEFT = 0x00000100;
795 public static final int VEHICLE_ZONE_ROW_3_CENTER = 0x00000200;
796 public static final int VEHICLE_ZONE_ROW_3_RIGHT = 0x00000400;
797 public static final int VEHICLE_ZONE_ROW_3_ALL = 0x00000800;
798 public static final int VEHICLE_ZONE_ROW_4_LEFT = 0x00001000;
799 public static final int VEHICLE_ZONE_ROW_4_CENTER = 0x00002000;
800 public static final int VEHICLE_ZONE_ROW_4_RIGHT = 0x00004000;
801 public static final int VEHICLE_ZONE_ROW_4_ALL = 0x00008000;
802 public static final int VEHICLE_ZONE_ALL = 0x80000000;
enumToString(int v)803 public static String enumToString(int v) {
804 switch(v) {
805 case VEHICLE_ZONE_ROW_1_LEFT: return "VEHICLE_ZONE_ROW_1_LEFT";
806 case VEHICLE_ZONE_ROW_1_CENTER: return "VEHICLE_ZONE_ROW_1_CENTER";
807 case VEHICLE_ZONE_ROW_1_RIGHT: return "VEHICLE_ZONE_ROW_1_RIGHT";
808 case VEHICLE_ZONE_ROW_1_ALL: return "VEHICLE_ZONE_ROW_1_ALL";
809 case VEHICLE_ZONE_ROW_2_LEFT: return "VEHICLE_ZONE_ROW_2_LEFT";
810 case VEHICLE_ZONE_ROW_2_CENTER: return "VEHICLE_ZONE_ROW_2_CENTER";
811 case VEHICLE_ZONE_ROW_2_RIGHT: return "VEHICLE_ZONE_ROW_2_RIGHT";
812 case VEHICLE_ZONE_ROW_2_ALL: return "VEHICLE_ZONE_ROW_2_ALL";
813 case VEHICLE_ZONE_ROW_3_LEFT: return "VEHICLE_ZONE_ROW_3_LEFT";
814 case VEHICLE_ZONE_ROW_3_CENTER: return "VEHICLE_ZONE_ROW_3_CENTER";
815 case VEHICLE_ZONE_ROW_3_RIGHT: return "VEHICLE_ZONE_ROW_3_RIGHT";
816 case VEHICLE_ZONE_ROW_3_ALL: return "VEHICLE_ZONE_ROW_3_ALL";
817 case VEHICLE_ZONE_ROW_4_LEFT: return "VEHICLE_ZONE_ROW_4_LEFT";
818 case VEHICLE_ZONE_ROW_4_CENTER: return "VEHICLE_ZONE_ROW_4_CENTER";
819 case VEHICLE_ZONE_ROW_4_RIGHT: return "VEHICLE_ZONE_ROW_4_RIGHT";
820 case VEHICLE_ZONE_ROW_4_ALL: return "VEHICLE_ZONE_ROW_4_ALL";
821 case VEHICLE_ZONE_ALL: return "VEHICLE_ZONE_ALL";
822 default: return "UNKNOWN";
823 }
824 }
825 }
826 
827 public static class VehicleSeat {
828 public static final int VEHICLE_SEAT_DRIVER_LHD = 0x0001;
829 public static final int VEHICLE_SEAT_DRIVER_RHD = 0x0002;
830 public static final int VEHICLE_SEAT_ROW_1_PASSENGER_LEFT = 0x0010;
831 public static final int VEHICLE_SEAT_ROW_1_PASSENGER_CENTER = 0x0020;
832 public static final int VEHICLE_SEAT_ROW_1_PASSENGER_RIGHT = 0x0040;
833 public static final int VEHICLE_SEAT_ROW_2_PASSENGER_LEFT = 0x0100;
834 public static final int VEHICLE_SEAT_ROW_2_PASSENGER_CENTER = 0x0200;
835 public static final int VEHICLE_SEAT_ROW_2_PASSENGER_RIGHT = 0x0400;
836 public static final int VEHICLE_SEAT_ROW_3_PASSENGER_LEFT = 0x1000;
837 public static final int VEHICLE_SEAT_ROW_3_PASSENGER_CENTER = 0x2000;
838 public static final int VEHICLE_SEAT_ROW_3_PASSENGER_RIGHT = 0x4000;
enumToString(int v)839 public static String enumToString(int v) {
840 switch(v) {
841 case VEHICLE_SEAT_DRIVER_LHD: return "VEHICLE_SEAT_DRIVER_LHD";
842 case VEHICLE_SEAT_DRIVER_RHD: return "VEHICLE_SEAT_DRIVER_RHD";
843 case VEHICLE_SEAT_ROW_1_PASSENGER_LEFT: return "VEHICLE_SEAT_ROW_1_PASSENGER_LEFT";
844 case VEHICLE_SEAT_ROW_1_PASSENGER_CENTER: return "VEHICLE_SEAT_ROW_1_PASSENGER_CENTER";
845 case VEHICLE_SEAT_ROW_1_PASSENGER_RIGHT: return "VEHICLE_SEAT_ROW_1_PASSENGER_RIGHT";
846 case VEHICLE_SEAT_ROW_2_PASSENGER_LEFT: return "VEHICLE_SEAT_ROW_2_PASSENGER_LEFT";
847 case VEHICLE_SEAT_ROW_2_PASSENGER_CENTER: return "VEHICLE_SEAT_ROW_2_PASSENGER_CENTER";
848 case VEHICLE_SEAT_ROW_2_PASSENGER_RIGHT: return "VEHICLE_SEAT_ROW_2_PASSENGER_RIGHT";
849 case VEHICLE_SEAT_ROW_3_PASSENGER_LEFT: return "VEHICLE_SEAT_ROW_3_PASSENGER_LEFT";
850 case VEHICLE_SEAT_ROW_3_PASSENGER_CENTER: return "VEHICLE_SEAT_ROW_3_PASSENGER_CENTER";
851 case VEHICLE_SEAT_ROW_3_PASSENGER_RIGHT: return "VEHICLE_SEAT_ROW_3_PASSENGER_RIGHT";
852 default: return "UNKNOWN";
853 }
854 }
855 }
856 
857 public static class VehicleWindow {
858 public static final int VEHICLE_WINDOW_FRONT_WINDSHIELD = 0x0001;
859 public static final int VEHICLE_WINDOW_REAR_WINDSHIELD = 0x0002;
860 public static final int VEHICLE_WINDOW_ROOF_TOP = 0x0004;
861 public static final int VEHICLE_WINDOW_ROW_1_LEFT = 0x0010;
862 public static final int VEHICLE_WINDOW_ROW_1_RIGHT = 0x0020;
863 public static final int VEHICLE_WINDOW_ROW_2_LEFT = 0x0100;
864 public static final int VEHICLE_WINDOW_ROW_2_RIGHT = 0x0200;
865 public static final int VEHICLE_WINDOW_ROW_3_LEFT = 0x1000;
866 public static final int VEHICLE_WINDOW_ROW_3_RIGHT = 0x2000;
enumToString(int v)867 public static String enumToString(int v) {
868 switch(v) {
869 case VEHICLE_WINDOW_FRONT_WINDSHIELD: return "VEHICLE_WINDOW_FRONT_WINDSHIELD";
870 case VEHICLE_WINDOW_REAR_WINDSHIELD: return "VEHICLE_WINDOW_REAR_WINDSHIELD";
871 case VEHICLE_WINDOW_ROOF_TOP: return "VEHICLE_WINDOW_ROOF_TOP";
872 case VEHICLE_WINDOW_ROW_1_LEFT: return "VEHICLE_WINDOW_ROW_1_LEFT";
873 case VEHICLE_WINDOW_ROW_1_RIGHT: return "VEHICLE_WINDOW_ROW_1_RIGHT";
874 case VEHICLE_WINDOW_ROW_2_LEFT: return "VEHICLE_WINDOW_ROW_2_LEFT";
875 case VEHICLE_WINDOW_ROW_2_RIGHT: return "VEHICLE_WINDOW_ROW_2_RIGHT";
876 case VEHICLE_WINDOW_ROW_3_LEFT: return "VEHICLE_WINDOW_ROW_3_LEFT";
877 case VEHICLE_WINDOW_ROW_3_RIGHT: return "VEHICLE_WINDOW_ROW_3_RIGHT";
878 default: return "UNKNOWN";
879 }
880 }
881 }
882 
883 public static class VehicleDoor {
884 public static final int VEHICLE_DOOR_ROW_1_LEFT = 0x00000001;
885 public static final int VEHICLE_DOOR_ROW_1_RIGHT = 0x00000004;
886 public static final int VEHICLE_DOOR_ROW_2_LEFT = 0x00000010;
887 public static final int VEHICLE_DOOR_ROW_2_RIGHT = 0x00000040;
888 public static final int VEHICLE_DOOR_ROW_3_LEFT = 0x00000100;
889 public static final int VEHICLE_DOOR_ROW_3_RIGHT = 0x00000400;
890 public static final int VEHICLE_DOOR_HOOD = 0x10000000;
891 public static final int VEHICLE_DOOR_REAR = 0x20000000;
enumToString(int v)892 public static String enumToString(int v) {
893 switch(v) {
894 case VEHICLE_DOOR_ROW_1_LEFT: return "VEHICLE_DOOR_ROW_1_LEFT";
895 case VEHICLE_DOOR_ROW_1_RIGHT: return "VEHICLE_DOOR_ROW_1_RIGHT";
896 case VEHICLE_DOOR_ROW_2_LEFT: return "VEHICLE_DOOR_ROW_2_LEFT";
897 case VEHICLE_DOOR_ROW_2_RIGHT: return "VEHICLE_DOOR_ROW_2_RIGHT";
898 case VEHICLE_DOOR_ROW_3_LEFT: return "VEHICLE_DOOR_ROW_3_LEFT";
899 case VEHICLE_DOOR_ROW_3_RIGHT: return "VEHICLE_DOOR_ROW_3_RIGHT";
900 case VEHICLE_DOOR_HOOD: return "VEHICLE_DOOR_HOOD";
901 case VEHICLE_DOOR_REAR: return "VEHICLE_DOOR_REAR";
902 default: return "UNKNOWN";
903 }
904 }
905 }
906 
907 public static class VehicleMirror {
908 public static final int VEHICLE_MIRROR_DRIVER_LEFT = 0x00000001;
909 public static final int VEHICLE_MIRROR_DRIVER_RIGHT = 0x00000002;
910 public static final int VEHICLE_MIRROR_DRIVER_CENTER = 0x00000004;
enumToString(int v)911 public static String enumToString(int v) {
912 switch(v) {
913 case VEHICLE_MIRROR_DRIVER_LEFT: return "VEHICLE_MIRROR_DRIVER_LEFT";
914 case VEHICLE_MIRROR_DRIVER_RIGHT: return "VEHICLE_MIRROR_DRIVER_RIGHT";
915 case VEHICLE_MIRROR_DRIVER_CENTER: return "VEHICLE_MIRROR_DRIVER_CENTER";
916 default: return "UNKNOWN";
917 }
918 }
919 }
920 
921 public static class VehicleTurnSignal {
922 public static final int VEHICLE_SIGNAL_NONE = 0x00;
923 public static final int VEHICLE_SIGNAL_RIGHT = 0x01;
924 public static final int VEHICLE_SIGNAL_LEFT = 0x02;
925 public static final int VEHICLE_SIGNAL_EMERGENCY = 0x04;
enumToString(int v)926 public static String enumToString(int v) {
927 switch(v) {
928 case VEHICLE_SIGNAL_NONE: return "VEHICLE_SIGNAL_NONE";
929 case VEHICLE_SIGNAL_RIGHT: return "VEHICLE_SIGNAL_RIGHT";
930 case VEHICLE_SIGNAL_LEFT: return "VEHICLE_SIGNAL_LEFT";
931 case VEHICLE_SIGNAL_EMERGENCY: return "VEHICLE_SIGNAL_EMERGENCY";
932 default: return "UNKNOWN";
933 }
934 }
935 }
936 
937 public static class VehicleBoolean {
938 public static final int VEHICLE_FALSE = 0x00;
939 public static final int VEHICLE_TRUE = 0x01;
enumToString(int v)940 public static String enumToString(int v) {
941 switch(v) {
942 case VEHICLE_FALSE: return "VEHICLE_FALSE";
943 case VEHICLE_TRUE: return "VEHICLE_TRUE";
944 default: return "UNKNOWN";
945 }
946 }
947 }
948 
949 public static class VehiclePropertyOperation {
950 public static final int VEHICLE_OPERATION_GENERIC = 0;
951 public static final int VEHICLE_OPERATION_SET = 1;
952 public static final int VEHICLE_OPERATION_GET = 2;
953 public static final int VEHICLE_OPERATION_SUBSCRIBE = 3;
enumToString(int v)954 public static String enumToString(int v) {
955 switch(v) {
956 case VEHICLE_OPERATION_GENERIC: return "VEHICLE_OPERATION_GENERIC";
957 case VEHICLE_OPERATION_SET: return "VEHICLE_OPERATION_SET";
958 case VEHICLE_OPERATION_GET: return "VEHICLE_OPERATION_GET";
959 case VEHICLE_OPERATION_SUBSCRIBE: return "VEHICLE_OPERATION_SUBSCRIBE";
960 default: return "UNKNOWN";
961 }
962 }
963 }
964 
965 public static class VehicleAudioStreamState {
966 public static final int VEHICLE_AUDIO_STREAM_STATE_STOPPED = 0;
967 public static final int VEHICLE_AUDIO_STREAM_STATE_STARTED = 1;
enumToString(int v)968 public static String enumToString(int v) {
969 switch(v) {
970 case VEHICLE_AUDIO_STREAM_STATE_STOPPED: return "VEHICLE_AUDIO_STREAM_STATE_STOPPED";
971 case VEHICLE_AUDIO_STREAM_STATE_STARTED: return "VEHICLE_AUDIO_STREAM_STATE_STARTED";
972 default: return "UNKNOWN";
973 }
974 }
975 }
976 
977 public static class VehicleAudioStreamStateIndex {
978 public static final int VEHICLE_AUDIO_STREAM_STATE_INDEX_STATE = 0;
979 public static final int VEHICLE_AUDIO_STREAM_STATE_INDEX_STREAM = 1;
enumToString(int v)980 public static String enumToString(int v) {
981 switch(v) {
982 case VEHICLE_AUDIO_STREAM_STATE_INDEX_STATE: return "VEHICLE_AUDIO_STREAM_STATE_INDEX_STATE";
983 case VEHICLE_AUDIO_STREAM_STATE_INDEX_STREAM: return "VEHICLE_AUDIO_STREAM_STATE_INDEX_STREAM";
984 default: return "UNKNOWN";
985 }
986 }
987 }
988 
989 
990 }
991 
992