diff options
Diffstat (limited to 'vehicle')
-rw-r--r-- | vehicle/2.0/vts/Android.mk | 48 | ||||
-rw-r--r-- | vehicle/2.0/vts/Vehicle.vts | 116 | ||||
-rw-r--r-- | vehicle/2.0/vts/VehicleCallback.vts | 45 | ||||
-rw-r--r-- | vehicle/2.0/vts/types.vts | 1821 |
4 files changed, 2030 insertions, 0 deletions
diff --git a/vehicle/2.0/vts/Android.mk b/vehicle/2.0/vts/Android.mk new file mode 100644 index 0000000000..1972c2a0b6 --- /dev/null +++ b/vehicle/2.0/vts/Android.mk @@ -0,0 +1,48 @@ +# +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +LOCAL_PATH := $(call my-dir) + +# build VTS driver for Vehicle v2.0. +include $(CLEAR_VARS) + +LOCAL_MODULE := libvts_driver_hidl_vehicle@2.0 + +LOCAL_SRC_FILES := \ + Vehicle.vts \ + VehicleCallback.vts \ + types.vts \ + +LOCAL_SHARED_LIBRARIES += \ + android.hardware.vehicle@2.0 \ + libbase \ + libutils \ + libcutils \ + liblog \ + libhidlbase \ + libhidltransport \ + libhwbinder \ + libprotobuf-cpp-full \ + libvts_common \ + libvts_datatype \ + libvts_measurement \ + libvts_multidevice_proto \ + +LOCAL_PROTOC_OPTIMIZE_TYPE := full + +LOCAL_MULTILIB := both + +include $(BUILD_SHARED_LIBRARY) diff --git a/vehicle/2.0/vts/Vehicle.vts b/vehicle/2.0/vts/Vehicle.vts new file mode 100644 index 0000000000..7fecfa9ebc --- /dev/null +++ b/vehicle/2.0/vts/Vehicle.vts @@ -0,0 +1,116 @@ +component_class: HAL_HIDL +component_type_version: 2.0 +component_name: "IVehicle" + +package: "android.hardware.vehicle" + +import: "android.hardware.vehicle@2.0::IVehicleCallback" +import: "android.hardware.vehicle@2.0::types" + +interface: { + api: { + name: "getAllPropConfigs" + return_type_hidl: { + type: TYPE_VECTOR + vector_value: { + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropConfig" + } + } + } + + api: { + name: "getPropConfigs" + return_type_hidl: { + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::StatusCode" + } + return_type_hidl: { + type: TYPE_VECTOR + vector_value: { + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropConfig" + } + } + arg: { + type: TYPE_VECTOR + vector_value: { + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::VehicleProperty" + } + } + } + + api: { + name: "get" + return_type_hidl: { + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::StatusCode" + } + return_type_hidl: { + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropValue" + } + arg: { + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropValue" + } + } + + api: { + name: "set" + return_type_hidl: { + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::StatusCode" + } + arg: { + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropValue" + } + } + + api: { + name: "subscribe" + return_type_hidl: { + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::StatusCode" + } + arg: { + type: TYPE_HIDL_CALLBACK + predefined_type: "IVehicleCallback" + is_callback: true + } + arg: { + type: TYPE_VECTOR + vector_value: { + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::SubscribeOptions" + } + } + } + + api: { + name: "unsubscribe" + return_type_hidl: { + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::StatusCode" + } + arg: { + type: TYPE_HIDL_CALLBACK + predefined_type: "IVehicleCallback" + is_callback: true + } + arg: { + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::VehicleProperty" + } + } + + api: { + name: "debugDump" + return_type_hidl: { + type: TYPE_STRING + } + } + +} diff --git a/vehicle/2.0/vts/VehicleCallback.vts b/vehicle/2.0/vts/VehicleCallback.vts new file mode 100644 index 0000000000..b5ee152f0c --- /dev/null +++ b/vehicle/2.0/vts/VehicleCallback.vts @@ -0,0 +1,45 @@ +component_class: HAL_HIDL +component_type_version: 2.0 +component_name: "IVehicleCallback" + +package: "android.hardware.vehicle" + +import: "android.hardware.vehicle@2.0::types" + +interface: { + api: { + name: "onPropertyEvent" + arg: { + type: TYPE_VECTOR + vector_value: { + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropValue" + } + } + } + + api: { + name: "onPropertySet" + arg: { + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropValue" + } + } + + api: { + name: "onPropertySetError" + arg: { + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::StatusCode" + } + arg: { + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::VehicleProperty" + } + arg: { + type: TYPE_SCALAR + scalar_type: "int32_t" + } + } + +} diff --git a/vehicle/2.0/vts/types.vts b/vehicle/2.0/vts/types.vts new file mode 100644 index 0000000000..fc63add32d --- /dev/null +++ b/vehicle/2.0/vts/types.vts @@ -0,0 +1,1821 @@ +component_class: HAL_HIDL +component_type_version: 2.0 +component_name: "types" + +package: "android.hardware.vehicle" + + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehiclePropertyType" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "STRING" + scalar_value: { + int32_t: 1048576 + } + enumerator: "BOOLEAN" + scalar_value: { + int32_t: 2097152 + } + enumerator: "INT32" + scalar_value: { + int32_t: 4194304 + } + enumerator: "INT32_VEC" + scalar_value: { + int32_t: 4259840 + } + enumerator: "INT64" + scalar_value: { + int32_t: 5242880 + } + enumerator: "FLOAT" + scalar_value: { + int32_t: 6291456 + } + enumerator: "FLOAT_VEC" + scalar_value: { + int32_t: 6356992 + } + enumerator: "BYTES" + scalar_value: { + int32_t: 7340032 + } + enumerator: "MASK" + scalar_value: { + int32_t: 16711680 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleArea" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "GLOBAL" + scalar_value: { + int32_t: 16777216 + } + enumerator: "ZONE" + scalar_value: { + int32_t: 33554432 + } + enumerator: "WINDOW" + scalar_value: { + int32_t: 50331648 + } + enumerator: "MIRROR" + scalar_value: { + int32_t: 67108864 + } + enumerator: "SEAT" + scalar_value: { + int32_t: 83886080 + } + enumerator: "DOOR" + scalar_value: { + int32_t: 100663296 + } + enumerator: "MASK" + scalar_value: { + int32_t: 251658240 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehiclePropertyGroup" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "SYSTEM" + scalar_value: { + int32_t: 268435456 + } + enumerator: "VENDOR" + scalar_value: { + int32_t: 536870912 + } + enumerator: "MASK" + scalar_value: { + int32_t: -268435456 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleProperty" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "INVALID" + scalar_value: { + int32_t: 0 + } + enumerator: "INFO_VIN" + scalar_value: { + int32_t: 286261504 + } + enumerator: "INFO_MAKE" + scalar_value: { + int32_t: 286261505 + } + enumerator: "INFO_MODEL" + scalar_value: { + int32_t: 286261506 + } + enumerator: "INFO_MODEL_YEAR" + scalar_value: { + int32_t: 289407235 + } + enumerator: "INFO_FUEL_CAPACITY" + scalar_value: { + int32_t: 291504388 + } + enumerator: "PERF_ODOMETER" + scalar_value: { + int32_t: 291504644 + } + enumerator: "PERF_VEHICLE_SPEED" + scalar_value: { + int32_t: 291504647 + } + enumerator: "ENGINE_COOLANT_TEMP" + scalar_value: { + int32_t: 291504897 + } + enumerator: "ENGINE_OIL_TEMP" + scalar_value: { + int32_t: 291504900 + } + enumerator: "ENGINE_RPM" + scalar_value: { + int32_t: 291504901 + } + enumerator: "GEAR_SELECTION" + scalar_value: { + int32_t: 289408000 + } + enumerator: "CURRENT_GEAR" + scalar_value: { + int32_t: 289408001 + } + enumerator: "PARKING_BRAKE_ON" + scalar_value: { + int32_t: 287310850 + } + enumerator: "DRIVING_STATUS" + scalar_value: { + int32_t: 289408004 + } + enumerator: "FUEL_LEVEL_LOW" + scalar_value: { + int32_t: 287310853 + } + enumerator: "NIGHT_MODE" + scalar_value: { + int32_t: 287310855 + } + enumerator: "TURN_SIGNAL_STATE" + scalar_value: { + int32_t: 289408008 + } + enumerator: "HVAC_FAN_SPEED" + scalar_value: { + int32_t: 306185472 + } + enumerator: "HVAC_FAN_DIRECTION" + scalar_value: { + int32_t: 306185473 + } + enumerator: "HVAC_TEMPERATURE_CURRENT" + scalar_value: { + int32_t: 308282626 + } + enumerator: "HVAC_TEMPERATURE_SET" + scalar_value: { + int32_t: 308282627 + } + enumerator: "HVAC_DEFROSTER" + scalar_value: { + int32_t: 320865540 + } + enumerator: "HVAC_AC_ON" + scalar_value: { + int32_t: 304088325 + } + enumerator: "HVAC_MAX_AC_ON" + scalar_value: { + int32_t: 304088326 + } + enumerator: "HVAC_MAX_DEFROST_ON" + scalar_value: { + int32_t: 304088327 + } + enumerator: "HVAC_RECIRC_ON" + scalar_value: { + int32_t: 304088328 + } + enumerator: "HVAC_DUAL_ON" + scalar_value: { + int32_t: 304088329 + } + enumerator: "HVAC_AUTO_ON" + scalar_value: { + int32_t: 304088330 + } + enumerator: "HVAC_SEAT_TEMPERATURE" + scalar_value: { + int32_t: 356517131 + } + enumerator: "HVAC_SIDE_MIRROR_HEAT" + scalar_value: { + int32_t: 339739916 + } + enumerator: "HVAC_STEERING_WHEEL_TEMP" + scalar_value: { + int32_t: 289408269 + } + enumerator: "HVAC_TEMPERATURE_UNITS" + scalar_value: { + int32_t: 306185486 + } + enumerator: "HVAC_ACTUAL_FAN_SPEED_RPM" + scalar_value: { + int32_t: 306185487 + } + enumerator: "HVAC_FAN_DIRECTION_AVAILABLE" + scalar_value: { + int32_t: 306185489 + } + enumerator: "HVAC_POWER_ON" + scalar_value: { + int32_t: 304088336 + } + enumerator: "ENV_OUTSIDE_TEMPERATURE" + scalar_value: { + int32_t: 291505923 + } + enumerator: "ENV_CABIN_TEMPERATURE" + scalar_value: { + int32_t: 291505924 + } + enumerator: "RADIO_PRESET" + scalar_value: { + int32_t: 289474561 + } + enumerator: "AUDIO_FOCUS" + scalar_value: { + int32_t: 289474816 + } + enumerator: "AUDIO_VOLUME" + scalar_value: { + int32_t: 289474817 + } + enumerator: "AUDIO_VOLUME_LIMIT" + scalar_value: { + int32_t: 289474818 + } + enumerator: "AUDIO_ROUTING_POLICY" + scalar_value: { + int32_t: 289474819 + } + enumerator: "AUDIO_HW_VARIANT" + scalar_value: { + int32_t: 289409284 + } + enumerator: "AUDIO_EXT_ROUTING_HINT" + scalar_value: { + int32_t: 289474821 + } + enumerator: "AP_POWER_STATE" + scalar_value: { + int32_t: 2560 + } + enumerator: "DISPLAY_BRIGHTNESS" + scalar_value: { + int32_t: 289409537 + } + enumerator: "AP_POWER_BOOTUP_REASON" + scalar_value: { + int32_t: 289409538 + } + enumerator: "HW_KEY_INPUT" + scalar_value: { + int32_t: 289475088 + } + enumerator: "INSTRUMENT_CLUSTER_INFO" + scalar_value: { + int32_t: 289475104 + } + enumerator: "UNIX_TIME" + scalar_value: { + int32_t: 290458160 + } + enumerator: "CURRENT_TIME_IN_SECONDS" + scalar_value: { + int32_t: 289409585 + } + enumerator: "DOOR_POS" + scalar_value: { + int32_t: 373295872 + } + enumerator: "DOOR_MOVE" + scalar_value: { + int32_t: 373295873 + } + enumerator: "DOOR_LOCK" + scalar_value: { + int32_t: 371198722 + } + enumerator: "MIRROR_Z_POS" + scalar_value: { + int32_t: 339741504 + } + enumerator: "MIRROR_Z_MOVE" + scalar_value: { + int32_t: 339741505 + } + enumerator: "MIRROR_Y_POS" + scalar_value: { + int32_t: 339741506 + } + enumerator: "MIRROR_Y_MOVE" + scalar_value: { + int32_t: 339741507 + } + enumerator: "MIRROR_LOCK" + scalar_value: { + int32_t: 287312708 + } + enumerator: "MIRROR_FOLD" + scalar_value: { + int32_t: 287312709 + } + enumerator: "SEAT_MEMORY_SELECT" + scalar_value: { + int32_t: 356518784 + } + enumerator: "SEAT_MEMORY_SET" + scalar_value: { + int32_t: 356518785 + } + enumerator: "SEAT_BELT_BUCKLED" + scalar_value: { + int32_t: 354421634 + } + enumerator: "SEAT_BELT_HEIGHT_POS" + scalar_value: { + int32_t: 356518787 + } + enumerator: "SEAT_BELT_HEIGHT_MOVE" + scalar_value: { + int32_t: 356518788 + } + enumerator: "SEAT_FORE_AFT_POS" + scalar_value: { + int32_t: 356518789 + } + enumerator: "SEAT_FORE_AFT_MOVE" + scalar_value: { + int32_t: 356518790 + } + enumerator: "SEAT_BACKREST_ANGLE_1_POS" + scalar_value: { + int32_t: 356518791 + } + enumerator: "SEAT_BACKREST_ANGLE_1_MOVE" + scalar_value: { + int32_t: 356518792 + } + enumerator: "SEAT_BACKREST_ANGLE_2_POS" + scalar_value: { + int32_t: 356518793 + } + enumerator: "SEAT_BACKREST_ANGLE_2_MOVE" + scalar_value: { + int32_t: 356518794 + } + enumerator: "SEAT_HEIGHT_POS" + scalar_value: { + int32_t: 356518795 + } + enumerator: "SEAT_HEIGHT_MOVE" + scalar_value: { + int32_t: 356518796 + } + enumerator: "SEAT_DEPTH_POS" + scalar_value: { + int32_t: 356518797 + } + enumerator: "SEAT_DEPTH_MOVE" + scalar_value: { + int32_t: 356518798 + } + enumerator: "SEAT_TILT_POS" + scalar_value: { + int32_t: 356518799 + } + enumerator: "SEAT_TILT_MOVE" + scalar_value: { + int32_t: 356518800 + } + enumerator: "SEAT_LUMBAR_FORE_AFT_POS" + scalar_value: { + int32_t: 356518801 + } + enumerator: "SEAT_LUMBAR_FORE_AFT_MOVE" + scalar_value: { + int32_t: 356518802 + } + enumerator: "SEAT_LUMBAR_SIDE_SUPPORT_POS" + scalar_value: { + int32_t: 356518803 + } + enumerator: "SEAT_LUMBAR_SIDE_SUPPORT_MOVE" + scalar_value: { + int32_t: 356518804 + } + enumerator: "SEAT_HEADREST_HEIGHT_POS" + scalar_value: { + int32_t: 289409941 + } + enumerator: "SEAT_HEADREST_HEIGHT_MOVE" + scalar_value: { + int32_t: 356518806 + } + enumerator: "SEAT_HEADREST_ANGLE_POS" + scalar_value: { + int32_t: 356518807 + } + enumerator: "SEAT_HEADREST_ANGLE_MOVE" + scalar_value: { + int32_t: 356518808 + } + enumerator: "SEAT_HEADREST_FORE_AFT_POS" + scalar_value: { + int32_t: 356518809 + } + enumerator: "SEAT_HEADREST_FORE_AFT_MOVE" + scalar_value: { + int32_t: 356518810 + } + enumerator: "WINDOW_POS" + scalar_value: { + int32_t: 289409984 + } + enumerator: "WINDOW_MOVE" + scalar_value: { + int32_t: 289409985 + } + enumerator: "WINDOW_VENT_POS" + scalar_value: { + int32_t: 289409986 + } + enumerator: "WINDOW_VENT_MOVE" + scalar_value: { + int32_t: 289409987 + } + enumerator: "WINDOW_LOCK" + scalar_value: { + int32_t: 287312836 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleHvacFanDirection" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "FACE" + scalar_value: { + int32_t: 1 + } + enumerator: "FLOOR" + scalar_value: { + int32_t: 2 + } + enumerator: "FACE_AND_FLOOR" + scalar_value: { + int32_t: 3 + } + enumerator: "DEFROST" + scalar_value: { + int32_t: 4 + } + enumerator: "DEFROST_AND_FLOOR" + scalar_value: { + int32_t: 5 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleRadioConstants" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "VEHICLE_RADIO_PRESET_MIN_VALUE" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioFocusRequest" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "REQUEST_GAIN" + scalar_value: { + int32_t: 1 + } + enumerator: "REQUEST_GAIN_TRANSIENT" + scalar_value: { + int32_t: 2 + } + enumerator: "REQUEST_GAIN_TRANSIENT_MAY_DUCK" + scalar_value: { + int32_t: 3 + } + enumerator: "REQUEST_GAIN_TRANSIENT_NO_DUCK" + scalar_value: { + int32_t: 4 + } + enumerator: "REQUEST_RELEASE" + scalar_value: { + int32_t: 5 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioFocusState" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "STATE_GAIN" + scalar_value: { + int32_t: 1 + } + enumerator: "STATE_GAIN_TRANSIENT" + scalar_value: { + int32_t: 2 + } + enumerator: "STATE_LOSS_TRANSIENT_CAN_DUCK" + scalar_value: { + int32_t: 3 + } + enumerator: "STATE_LOSS_TRANSIENT" + scalar_value: { + int32_t: 4 + } + enumerator: "STATE_LOSS" + scalar_value: { + int32_t: 5 + } + enumerator: "STATE_LOSS_TRANSIENT_EXLCUSIVE" + scalar_value: { + int32_t: 6 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioStreamFlag" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "STREAM0_FLAG" + scalar_value: { + int32_t: 1 + } + enumerator: "STREAM1_FLAG" + scalar_value: { + int32_t: 2 + } + enumerator: "STREAM2_FLAG" + scalar_value: { + int32_t: 4 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioStream" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "STREAM0" + scalar_value: { + int32_t: 0 + } + enumerator: "STREAM1" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioExtFocusFlag" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "NONE_FLAG" + scalar_value: { + int32_t: 0 + } + enumerator: "PERMANENT_FLAG" + scalar_value: { + int32_t: 1 + } + enumerator: "TRANSIENT_FLAG" + scalar_value: { + int32_t: 2 + } + enumerator: "PLAY_ONLY_FLAG" + scalar_value: { + int32_t: 4 + } + enumerator: "MUTE_MEDIA_FLAG" + scalar_value: { + int32_t: 8 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioFocusIndex" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "FOCUS" + scalar_value: { + int32_t: 0 + } + enumerator: "STREAMS" + scalar_value: { + int32_t: 1 + } + enumerator: "EXTERNAL_FOCUS_STATE" + scalar_value: { + int32_t: 2 + } + enumerator: "AUDIO_CONTEXTS" + scalar_value: { + int32_t: 3 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioContextFlag" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "MUSIC_FLAG" + scalar_value: { + int32_t: 1 + } + enumerator: "NAVIGATION_FLAG" + scalar_value: { + int32_t: 2 + } + enumerator: "VOICE_COMMAND_FLAG" + scalar_value: { + int32_t: 4 + } + enumerator: "CALL_FLAG" + scalar_value: { + int32_t: 8 + } + enumerator: "ALARM_FLAG" + scalar_value: { + int32_t: 16 + } + enumerator: "NOTIFICATION_FLAG" + scalar_value: { + int32_t: 32 + } + enumerator: "UNKNOWN_FLAG" + scalar_value: { + int32_t: 64 + } + enumerator: "SAFETY_ALERT_FLAG" + scalar_value: { + int32_t: 128 + } + enumerator: "CD_ROM_FLAG" + scalar_value: { + int32_t: 256 + } + enumerator: "AUX_AUDIO_FLAG" + scalar_value: { + int32_t: 512 + } + enumerator: "SYSTEM_SOUND_FLAG" + scalar_value: { + int32_t: 1024 + } + enumerator: "RADIO_FLAG" + scalar_value: { + int32_t: 2048 + } + enumerator: "EXT_SOURCE_FLAG" + scalar_value: { + int32_t: 4096 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioVolumeCapabilityFlag" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "PERSISTENT_STORAGE" + scalar_value: { + int32_t: 1 + } + enumerator: "MASTER_VOLUME_ONLY" + scalar_value: { + int32_t: 2 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioVolumeState" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "STATE_OK" + scalar_value: { + int32_t: 0 + } + enumerator: "LIMIT_REACHED" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioVolumeIndex" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "INDEX_STREAM" + scalar_value: { + int32_t: 0 + } + enumerator: "INDEX_VOLUME" + scalar_value: { + int32_t: 1 + } + enumerator: "INDEX_STATE" + scalar_value: { + int32_t: 2 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioVolumeLimitIndex" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "STREAM" + scalar_value: { + int32_t: 0 + } + enumerator: "MAX_VOLUME" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioRoutingPolicyIndex" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "STREAM" + scalar_value: { + int32_t: 0 + } + enumerator: "CONTEXTS" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAudioHwVariantConfigFlag" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "INTERNAL_RADIO_FLAG" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleApPowerStateConfigFlag" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "ENABLE_DEEP_SLEEP_FLAG" + scalar_value: { + int32_t: 1 + } + enumerator: "CONFIG_SUPPORT_TIMER_POWER_ON_FLAG" + scalar_value: { + int32_t: 2 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleApPowerState" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "OFF" + scalar_value: { + int32_t: 0 + } + enumerator: "DEEP_SLEEP" + scalar_value: { + int32_t: 1 + } + enumerator: "ON_DISP_OFF" + scalar_value: { + int32_t: 2 + } + enumerator: "ON_FULL" + scalar_value: { + int32_t: 3 + } + enumerator: "SHUTDOWN_PREPARE" + scalar_value: { + int32_t: 4 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleApPowerStateShutdownParam" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "SHUTDOWN_IMMEDIATELY" + scalar_value: { + int32_t: 1 + } + enumerator: "CAN_SLEEP" + scalar_value: { + int32_t: 2 + } + enumerator: "SHUTDOWN_ONLY" + scalar_value: { + int32_t: 3 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleApPowerSetState" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "BOOT_COMPLETE" + scalar_value: { + int32_t: 1 + } + enumerator: "DEEP_SLEEP_ENTRY" + scalar_value: { + int32_t: 2 + } + enumerator: "DEEP_SLEEP_EXIT" + scalar_value: { + int32_t: 3 + } + enumerator: "SHUTDOWN_POSTPONE" + scalar_value: { + int32_t: 4 + } + enumerator: "SHUTDOWN_START" + scalar_value: { + int32_t: 5 + } + enumerator: "DISPLAY_OFF" + scalar_value: { + int32_t: 6 + } + enumerator: "DISPLAY_ON" + scalar_value: { + int32_t: 7 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleApPowerStateIndex" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "STATE" + scalar_value: { + int32_t: 0 + } + enumerator: "ADDITIONAL" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleApPowerBootupReason" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "USER_POWER_ON" + scalar_value: { + int32_t: 0 + } + enumerator: "USER_UNLOCK" + scalar_value: { + int32_t: 1 + } + enumerator: "TIMER" + scalar_value: { + int32_t: 2 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleHwKeyInputAction" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "ACTION_DOWN" + scalar_value: { + int32_t: 0 + } + enumerator: "ACTION_UP" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleDisplay" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "MAIN" + scalar_value: { + int32_t: 0 + } + enumerator: "INSTRUMENT_CLUSTER" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleInstrumentClusterType" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "NONE" + scalar_value: { + int32_t: 0 + } + enumerator: "HAL_INTERFACE" + scalar_value: { + int32_t: 1 + } + enumerator: "EXTERNAL_DISPLAY" + scalar_value: { + int32_t: 2 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleUnit" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "SHOULD_NOT_USE" + scalar_value: { + int32_t: 0 + } + enumerator: "METER_PER_SEC" + scalar_value: { + int32_t: 1 + } + enumerator: "RPM" + scalar_value: { + int32_t: 2 + } + enumerator: "HERTZ" + scalar_value: { + int32_t: 3 + } + enumerator: "PERCENTILE" + scalar_value: { + int32_t: 16 + } + enumerator: "MILLIMETER" + scalar_value: { + int32_t: 32 + } + enumerator: "METER" + scalar_value: { + int32_t: 33 + } + enumerator: "KILOMETER" + scalar_value: { + int32_t: 35 + } + enumerator: "CELSIUS" + scalar_value: { + int32_t: 48 + } + enumerator: "FAHRENHEIT" + scalar_value: { + int32_t: 49 + } + enumerator: "KELVIN" + scalar_value: { + int32_t: 50 + } + enumerator: "MILLILITER" + scalar_value: { + int32_t: 64 + } + enumerator: "NANO_SECS" + scalar_value: { + int32_t: 80 + } + enumerator: "SECS" + scalar_value: { + int32_t: 83 + } + enumerator: "YEAR" + scalar_value: { + int32_t: 89 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehiclePropertyChangeMode" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "STATIC" + scalar_value: { + int32_t: 0 + } + enumerator: "ON_CHANGE" + scalar_value: { + int32_t: 1 + } + enumerator: "CONTINUOUS" + scalar_value: { + int32_t: 2 + } + enumerator: "POLL" + scalar_value: { + int32_t: 3 + } + enumerator: "ON_SET" + scalar_value: { + int32_t: 4 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehiclePropertyAccess" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "READ" + scalar_value: { + int32_t: 1 + } + enumerator: "WRITE" + scalar_value: { + int32_t: 2 + } + enumerator: "READ_WRITE" + scalar_value: { + int32_t: 3 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehiclePermissionModel" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "NO_RESTRICTION" + scalar_value: { + int32_t: 0 + } + enumerator: "OEM_ONLY" + scalar_value: { + int32_t: 1 + } + enumerator: "SYSTEM_APP_ONLY" + scalar_value: { + int32_t: 2 + } + enumerator: "OEM_OR_SYSTEM_APP" + scalar_value: { + int32_t: 3 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleDrivingStatus" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "UNRESTRICTED" + scalar_value: { + int32_t: 0 + } + enumerator: "NO_VIDEO" + scalar_value: { + int32_t: 1 + } + enumerator: "NO_KEYBOARD_INPUT" + scalar_value: { + int32_t: 2 + } + enumerator: "NO_VOICE_INPUT" + scalar_value: { + int32_t: 4 + } + enumerator: "NO_CONFIG" + scalar_value: { + int32_t: 8 + } + enumerator: "LIMIT_MESSAGE_LEN" + scalar_value: { + int32_t: 16 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleGear" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "GEAR_NEUTRAL" + scalar_value: { + int32_t: 1 + } + enumerator: "GEAR_REVERSE" + scalar_value: { + int32_t: 2 + } + enumerator: "GEAR_PARK" + scalar_value: { + int32_t: 4 + } + enumerator: "GEAR_DRIVE" + scalar_value: { + int32_t: 8 + } + enumerator: "GEAR_LOW" + scalar_value: { + int32_t: 16 + } + enumerator: "GEAR_1" + scalar_value: { + int32_t: 16 + } + enumerator: "GEAR_2" + scalar_value: { + int32_t: 32 + } + enumerator: "GEAR_3" + scalar_value: { + int32_t: 64 + } + enumerator: "GEAR_4" + scalar_value: { + int32_t: 128 + } + enumerator: "GEAR_5" + scalar_value: { + int32_t: 256 + } + enumerator: "GEAR_6" + scalar_value: { + int32_t: 512 + } + enumerator: "GEAR_7" + scalar_value: { + int32_t: 1024 + } + enumerator: "GEAR_8" + scalar_value: { + int32_t: 2048 + } + enumerator: "GEAR_9" + scalar_value: { + int32_t: 4096 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAreaZone" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "ROW_1_LEFT" + scalar_value: { + int32_t: 1 + } + enumerator: "ROW_1_CENTER" + scalar_value: { + int32_t: 2 + } + enumerator: "ROW_1_RIGHT" + scalar_value: { + int32_t: 4 + } + enumerator: "ROW_1" + scalar_value: { + int32_t: 8 + } + enumerator: "ROW_2_LEFT" + scalar_value: { + int32_t: 16 + } + enumerator: "ROW_2_CENTER" + scalar_value: { + int32_t: 32 + } + enumerator: "ROW_2_RIGHT" + scalar_value: { + int32_t: 64 + } + enumerator: "ROW_2" + scalar_value: { + int32_t: 128 + } + enumerator: "ROW_3_LEFT" + scalar_value: { + int32_t: 256 + } + enumerator: "ROW_3_CENTER" + scalar_value: { + int32_t: 512 + } + enumerator: "ROW_3_RIGHT" + scalar_value: { + int32_t: 1024 + } + enumerator: "ROW_3" + scalar_value: { + int32_t: 2048 + } + enumerator: "ROW_4_LEFT" + scalar_value: { + int32_t: 4096 + } + enumerator: "ROW_4_CENTER" + scalar_value: { + int32_t: 8192 + } + enumerator: "ROW_4_RIGHT" + scalar_value: { + int32_t: 16384 + } + enumerator: "ROW_4" + scalar_value: { + int32_t: 32768 + } + enumerator: "WHOLE_CABIN" + scalar_value: { + int32_t: -2147483648 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAreaSeat" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "ROW_1_LEFT" + scalar_value: { + int32_t: 1 + } + enumerator: "ROW_1_CENTER" + scalar_value: { + int32_t: 2 + } + enumerator: "ROW_1_RIGHT" + scalar_value: { + int32_t: 4 + } + enumerator: "ROW_2_LEFT" + scalar_value: { + int32_t: 16 + } + enumerator: "ROW_2_CENTER" + scalar_value: { + int32_t: 32 + } + enumerator: "ROW_2_RIGHT" + scalar_value: { + int32_t: 64 + } + enumerator: "ROW_3_LEFT" + scalar_value: { + int32_t: 256 + } + enumerator: "ROW_3_CENTER" + scalar_value: { + int32_t: 512 + } + enumerator: "ROW_3_RIGHT" + scalar_value: { + int32_t: 1024 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAreaWindow" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "FRONT_WINDSHIELD" + scalar_value: { + int32_t: 1 + } + enumerator: "REAR_WINDSHIELD" + scalar_value: { + int32_t: 2 + } + enumerator: "ROOF_TOP" + scalar_value: { + int32_t: 4 + } + enumerator: "ROW_1_LEFT" + scalar_value: { + int32_t: 16 + } + enumerator: "ROW_1_RIGHT" + scalar_value: { + int32_t: 32 + } + enumerator: "ROW_2_LEFT" + scalar_value: { + int32_t: 256 + } + enumerator: "ROW_2_RIGHT" + scalar_value: { + int32_t: 512 + } + enumerator: "ROW_3_LEFT" + scalar_value: { + int32_t: 4096 + } + enumerator: "ROW_3_RIGHT" + scalar_value: { + int32_t: 8192 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAreaDoor" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "ROW_1_LEFT" + scalar_value: { + int32_t: 1 + } + enumerator: "ROW_1_RIGHT" + scalar_value: { + int32_t: 4 + } + enumerator: "ROW_2_LEFT" + scalar_value: { + int32_t: 16 + } + enumerator: "ROW_2_RIGHT" + scalar_value: { + int32_t: 64 + } + enumerator: "ROW_3_LEFT" + scalar_value: { + int32_t: 256 + } + enumerator: "ROW_3_RIGHT" + scalar_value: { + int32_t: 1024 + } + enumerator: "HOOD" + scalar_value: { + int32_t: 268435456 + } + enumerator: "REAR" + scalar_value: { + int32_t: 536870912 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAreaMirror" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "DRIVER_LEFT" + scalar_value: { + int32_t: 1 + } + enumerator: "DRIVER_RIGHT" + scalar_value: { + int32_t: 2 + } + enumerator: "DRIVER_CENTER" + scalar_value: { + int32_t: 4 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleTurnSignal" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "NONE" + scalar_value: { + int32_t: 0 + } + enumerator: "RIGHT" + scalar_value: { + int32_t: 1 + } + enumerator: "LEFT" + scalar_value: { + int32_t: 2 + } + enumerator: "EMERGENCY" + scalar_value: { + int32_t: 4 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehicleAreaConfig" + type: TYPE_STRUCT + struct_value: { + name: "areaId" + type: TYPE_SCALAR + scalar_type: "int32_t" + } + struct_value: { + name: "minInt32Value" + type: TYPE_SCALAR + scalar_type: "int32_t" + } + struct_value: { + name: "maxInt32Value" + type: TYPE_SCALAR + scalar_type: "int32_t" + } + struct_value: { + name: "minInt64Value" + type: TYPE_SCALAR + scalar_type: "int64_t" + } + struct_value: { + name: "maxInt64Value" + type: TYPE_SCALAR + scalar_type: "int64_t" + } + struct_value: { + name: "minFloatValue" + type: TYPE_SCALAR + scalar_type: "float_t" + } + struct_value: { + name: "maxFloatValue" + type: TYPE_SCALAR + scalar_type: "float_t" + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehiclePropConfig" + type: TYPE_STRUCT + struct_value: { + name: "prop" + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::VehicleProperty" + } + struct_value: { + name: "access" + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropertyAccess" + } + struct_value: { + name: "changeMode" + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropertyChangeMode" + } + struct_value: { + name: "permissionModel" + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePermissionModel" + } + struct_value: { + name: "supportedAreas" + type: TYPE_SCALAR + scalar_type: "int32_t" + } + struct_value: { + name: "areaConfigs" + type: TYPE_VECTOR + vector_value: { + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::VehicleAreaConfig" + } + } + struct_value: { + name: "configFlags" + type: TYPE_SCALAR + scalar_type: "int32_t" + } + struct_value: { + name: "configArray" + type: TYPE_VECTOR + vector_value: { + type: TYPE_SCALAR + scalar_type: "int32_t" + } + } + struct_value: { + name: "configString" + type: TYPE_STRING + } + struct_value: { + name: "minSampleRate" + type: TYPE_SCALAR + scalar_type: "float_t" + } + struct_value: { + name: "maxSampleRate" + type: TYPE_SCALAR + scalar_type: "float_t" + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehiclePropValue" + type: TYPE_STRUCT + sub_struct: { + name: "::android::hardware::vehicle::V2_0::VehiclePropValue::RawValue" + type: TYPE_STRUCT + struct_value: { + name: "int32Values" + type: TYPE_VECTOR + vector_value: { + type: TYPE_SCALAR + scalar_type: "int32_t" + } + } + struct_value: { + name: "floatValues" + type: TYPE_VECTOR + vector_value: { + type: TYPE_SCALAR + scalar_type: "float_t" + } + } + struct_value: { + name: "int64Values" + type: TYPE_VECTOR + vector_value: { + type: TYPE_SCALAR + scalar_type: "int64_t" + } + } + struct_value: { + name: "bytes" + type: TYPE_VECTOR + vector_value: { + type: TYPE_SCALAR + scalar_type: "uint8_t" + } + } + struct_value: { + name: "stringValue" + type: TYPE_STRING + } + } + struct_value: { + name: "prop" + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::VehicleProperty" + } + struct_value: { + name: "timestamp" + type: TYPE_SCALAR + scalar_type: "int64_t" + } + struct_value: { + name: "areaId" + type: TYPE_SCALAR + scalar_type: "int32_t" + } + struct_value: { + name: "value" + type: TYPE_STRUCT + predefined_type: "::android::hardware::vehicle::V2_0::VehiclePropValue::RawValue" + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::VehiclePropertyOperation" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "GENERIC" + scalar_value: { + int32_t: 0 + } + enumerator: "SET" + scalar_value: { + int32_t: 1 + } + enumerator: "GET" + scalar_value: { + int32_t: 2 + } + enumerator: "SUBSCRIBE" + scalar_value: { + int32_t: 3 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::SubscribeFlags" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "UNDEFINED" + scalar_value: { + int32_t: 0 + } + enumerator: "HAL_EVENT" + scalar_value: { + int32_t: 1 + } + enumerator: "SET_CALL" + scalar_value: { + int32_t: 2 + } + enumerator: "DEFAULT" + scalar_value: { + int32_t: 1 + } + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::SubscribeOptions" + type: TYPE_STRUCT + struct_value: { + name: "propId" + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::VehicleProperty" + } + struct_value: { + name: "vehicleAreas" + type: TYPE_SCALAR + scalar_type: "int32_t" + } + struct_value: { + name: "sampleRate" + type: TYPE_SCALAR + scalar_type: "float_t" + } + struct_value: { + name: "flags" + type: TYPE_ENUM + predefined_type: "::android::hardware::vehicle::V2_0::SubscribeFlags" + } +} + +attribute: { + name: "::android::hardware::vehicle::V2_0::StatusCode" + type: TYPE_ENUM + enum_value: { + scalar_type: "int32_t" + + enumerator: "OK" + scalar_value: { + int32_t: 0 + } + enumerator: "TRY_AGAIN" + scalar_value: { + int32_t: 1 + } + enumerator: "INVALID_ARG" + scalar_value: { + int32_t: 2 + } + enumerator: "NOT_AVAILABLE" + scalar_value: { + int32_t: 3 + } + enumerator: "ACCESS_DENIED" + scalar_value: { + int32_t: 4 + } + enumerator: "INTERNAL_ERROR" + scalar_value: { + int32_t: 5 + } + } +} + |