HIDL VHAL interface
Stay organized with collections
Save and categorize content based on your preferences.
The HIDL VHAL interface is defined at
IVehicle.hal
and provides these methods.
Method |
Description |
getAllPropConfigs() generates
(vec<VehiclePropConfig>propConfigs);
Lists the configuration of all properties supported by the VHAL. CarService uses supported
properties only.
|
ongetPropConfigs(vec props) generates
(StatusCode status,vec<VehiclePropConfig> propConfigs);
Returns the configuration of selected properties.
|
set(VehiclePropValue propValue) generates
(StatusCodestatus);
Writes a value to a property. The result of the write is defined per property.
|
subscribe(IVehicleCallback callback, vec options)
generates (StatusCode status);
Starts monitoring a property value change.
|
unsubscribe(IVehicleCallback callback, int32_t propId)
generates (StatusCode status);
Stops monitoring a property value change for a previous subscribed
property.
|
The HIDL VHAL uses these callback interfaces:
Callback |
Description |
oneway |
onPropertyEvent(vecpropValues);
Notifies vehicle property's value change. Apply only to subscribed properties.
|
oneway |
onPropertySetError(StatusCode errorCode,int32_t propId,int32_tareaId);
Returns async property set errors that can not be associated with a specific set operation.
|
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 2024-08-28 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-08-28 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 2024-08-28 UTC."]]