Starting March 27, 2025, we recommend using android-latest-release instead of aosp-main to build and contribute to AOSP. For more information, see Changes to AOSP.
         
       
     
  
  
  
  
  
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
  
  vehicle_prop_config Struct Reference
 
  
   #include <
   
    vehicle.h
   
   >
  
 
 
 
 
 
 
  
   Definition at line
   
    1319
   
   of file
   
    vehicle.h
   
   .
  
  
 
 
 
 
  
  
   
    Specify minimum allowed value for the property. This is necessary for property which does not have specified enum.
   
   
  
 
 
 
  
  
   
    Specify maximum allowed value for the property. This is necessary for property which does not have specified enum.
   
   
  
 
 
 
  
  
   
    Array of min values for zoned properties. Zoned property can specify min / max value in two different ways:
   
   
    - 
     All zones having the same min / max value: *_min/max_value should be set and this array should be set to NULL.
    
 
    - 
     All zones having separate min / max value: *_min/max_values array should be populated and its length should be the same as number of active zones specified by *_zone_flags.
    
 
   
   
    Should be NULL if each zone does not have separate max values.
   
   
  
 
 
 
  
  
   
    Array of max values for zoned properties. See above for its usage. Should be NULL if each zone does not have separate max values. If not NULL, length of array should match that of min_values.
   
   
  
 
 
 
  
  
   
    Some of the properties may have associated zones (such as hvac), in these cases the config should contain an ORed value for the associated zone.
   
   
  
 
 
 
  
  
   
    Property specific configuration information. Usage of this will be defined per each property.
   
   
  
 
 
 
  
  
   
    Defines if the property is read or write. Value should be one of enum vehicle_prop_access.
   
   
    Definition at line
    
     1326
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
  
  
   
    Defines if the property is continuous or on-change. Value should be one of enum vehicle_prop_change_mode.
   
   
    Definition at line
    
     1332
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
 
 
 
  
  
   
    For generic configuration information
   
   
    Definition at line
    
     1367
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
  
  
   
    Some properties may require additional information passed over this string. Most properties do not need to set this and in that case, config_string.data should be NULL and config_string.len should be 0.
   
   
    Definition at line
    
     1381
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
  
   
    Place holder for putting HAL implementation specific data. Usage is wholly up to HAL implementation.
   
   
    Definition at line
    
     1442
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
 
 
 
  
   
    
     | 
      int32_t* int32_max_values
      | 
    
   
   
  
  
 
 
 
 
 
 
  
   
    
     | 
      int32_t* int32_min_values
      | 
    
   
   
  
  
 
 
 
 
 
 
  
   
    
     | 
      int64_t* int64_max_values
      | 
    
   
   
  
  
 
 
 
 
 
 
  
   
    
     | 
      int64_t* int64_min_values
      | 
    
   
   
  
  
 
 
 
  
  
   
    Max sample rate in Hz. Should be 0 for sensor type of VEHICLE_PROP_CHANGE_MODE_ON_CHANGE
   
   
    Definition at line
    
     1437
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
  
  
   
    Min sample rate in Hz. Should be 0 for sensor type of VEHICLE_PROP_CHANGE_MODE_ON_CHANGE
   
   
    Definition at line
    
     1433
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
  
  
   
    Define necessary permission model to access the data.
   
   
    Definition at line
    
     1343
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
 
 
 
  
  
   
    Type of data used for this property. This type is fixed per each property. Check vehicle_value_type for allowed value.
   
   
    Definition at line
    
     1338
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
  
   
    
     | 
      int32_t vehicle_radio_num_presets
      | 
    
   
   
  
   
    The number of presets that are stored by the radio module. Pass 0 if there are no presets available. The range of presets is defined to be from 1 (see VEHICLE_RADIO_PRESET_MIN_VALUE) to vehicle_radio_num_presets.
   
   
    Definition at line
    
     1372
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
  
   
    
     | 
      int32_t vehicle_seat_flags
      | 
    
   
   
  
   
    The value is derived by ORing one or more of enum vehicle_seat members.
   
   
    Definition at line
    
     1355
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
  
   
    
     | 
      int32_t vehicle_window_flags
      | 
    
   
   
  
   
    The value is derived by ORing one or more of enum vehicle_window members.
   
   
    Definition at line
    
     1357
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 
 
  
   
    
     | 
      int32_t vehicle_zone_flags
      | 
    
   
   
  
   
    The value is derived by ORing one or more of enum vehicle_zone members.
   
   
    Definition at line
    
     1353
    
    of file
    
     vehicle.h
    
    .
   
   
  
 
 The documentation for this struct was generated from the following file:
 
  - 
   hardware/libhardware/include/hardware/
   
    vehicle.h
   
  
 
 
 
 
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2019-10-02 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 UTC."],[],[]]