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);
特定の設定操作に関連付けられない、非同期プロパティ設定のエラーを返します。
|
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-03-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-03-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. |"]]