2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
HIDL VHAL 인터페이스
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
HIDL VHAL 인터페이스는 IVehicle.hal
에 정의되며 다음 메서드를 제공합니다.
메서드 |
설명 |
---|
getAllPropConfigs() 가 (vec<VehiclePropConfig>propConfigs); 를 생성합니다.
VHAL에서 지원하는 모든 속성의 구성을 나열합니다. CarService는 지원되는 속성만 사용합니다.
|
ongetPropConfigs(vec props) 가 (StatusCode status,vec<VehiclePropConfig> propConfigs); 를 생성합니다.
|
set(VehiclePropValue propValue) 가 (StatusCodestatus); 를 생성합니다.
값을 속성에 씁니다. 쓰기 결과는 속성별로 정의됩니다.
|
subscribe(IVehicleCallback callback, vec options) 가 (StatusCode status); 를 생성합니다.
|
unsubscribe(IVehicleCallback callback, int32_t propId) 가 (StatusCode status); 를 생성합니다.
이전에 구독된 속성의 속성 값 변경 모니터링을 중지합니다.
|
HIDL VHAL은 다음 콜백 인터페이스를 사용합니다.
콜백 |
설명 |
---|
oneway |
onPropertyEvent(vecpropValues);
차량 속성의 값 변경을 알립니다. 구독된 속성에만 적용됩니다.
|
oneway |
onPropertySetError(StatusCode errorCode,int32_t propId,int32_tareaId);
특정 설정 작업과 연결할 수 없는 비동기 속성 설정 오류를 반환합니다.
|
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# HIDL VHAL interface\n\nThe HIDL VHAL interface is defined at\n[`IVehicle.hal`](https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/android16-release/automotive/vehicle/2.0/IVehicle.hal)\nand provides these methods.\n\n| Method | Description |\n|--------|-------------|\n| `getAllPropConfigs()` **generates** `(vec\u003cVehiclePropConfig\u003epropConfigs);` Lists the configuration of all properties supported by the VHAL. CarService uses supported properties only. ||\n| `ongetPropConfigs(vec` props) **generates** `(StatusCode status,vec\u003cVehiclePropConfig\u003e propConfigs);` Returns the configuration of selected properties. ||\n| `set(VehiclePropValue propValue)` **generates** `(StatusCodestatus);` Writes a value to a property. The result of the write is defined per property. ||\n| `subscribe(IVehicleCallback callback, vec` options) **generates** `(StatusCode status);` Starts monitoring a property value change. ||\n| `unsubscribe(IVehicleCallback callback, int32_t propId)` **generates** `(StatusCode status);` Stops monitoring a property value change for a previous subscribed property. ||\n\nThe HIDL VHAL uses these callback interfaces:\n\n| Callback | Description |\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `oneway` | `onPropertyEvent(vec`propValues); Notifies vehicle property's value change. Apply only to subscribed properties. |\n| `oneway` | `onPropertySetError(StatusCode errorCode,int32_t propId,int32_tareaId);` Returns async property set errors that can not be associated with a specific set operation. |"]]