From 38ecabbabfeebee144dc5a321e19f57a42ceaccd Mon Sep 17 00:00:00 2001 From: Aaqib Ismail Date: Tue, 7 Feb 2023 14:16:29 -0800 Subject: [PATCH] Add HAL documentation for ErrorState values Bug: 267174892 Test: presubmit Change-Id: I724a9e633011cf664b7f9e0b62106074a2d9e7c6 --- .../automotive/vehicle/ErrorState.aidl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/ErrorState.aidl b/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/ErrorState.aidl index d6dd3fcf3b..ba44672976 100644 --- a/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/ErrorState.aidl +++ b/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/ErrorState.aidl @@ -31,9 +31,28 @@ enum ErrorState { * include additional states. */ OTHER_ERROR_STATE = -1, + /** + * Vehicle property is not available because the feature is disabled. + */ NOT_AVAILABLE_DISABLED = -2, + /** + * Vehicle property is not available because the vehicle speed is too low to use this feature. + */ NOT_AVAILABLE_SPEED_LOW = -3, + /** + * Vehicle property is not available because the vehicle speed is too high to use this feature. + */ NOT_AVAILABLE_SPEED_HIGH = -4, + /** + * Vehicle property is not available because sensor or camera visibility is insufficient to use + * this feature. For example, this can be caused by bird poop blocking the camera, poor weather + * conditions such as snow or fog, or by any object obstructing the required sensors. + */ NOT_AVAILABLE_POOR_VISIBILITY = -5, + /** + * Vehicle property is not available because there is a safety risk that makes this feature + * unavailable to use presently. For example, this can be caused by someone blocking the trunk + * door while it is closing, or by the system being in a faulty state. + */ NOT_AVAILABLE_SAFETY = -6, }