From 543009b95eeb45e207b0ba7430dd3646330b4df1 Mon Sep 17 00:00:00 2001 From: Terry Guan Date: Fri, 10 Feb 2023 10:43:47 -0800 Subject: [PATCH] Added additional comments for vendor error codes Added documentation for vendor code of 0 as well as changing the value of vendor codes to be from 0x0001 to 0xffff Bug: 268748245 Test: manual Change-Id: I355524acc0094bbf3ecd5183df77cbeea82d55b1 --- .../aidl/android/hardware/automotive/vehicle/StatusCode.aidl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/automotive/vehicle/aidl/android/hardware/automotive/vehicle/StatusCode.aidl b/automotive/vehicle/aidl/android/hardware/automotive/vehicle/StatusCode.aidl index 029b2aca5d..fd4b199bdb 100644 --- a/automotive/vehicle/aidl/android/hardware/automotive/vehicle/StatusCode.aidl +++ b/automotive/vehicle/aidl/android/hardware/automotive/vehicle/StatusCode.aidl @@ -18,8 +18,9 @@ package android.hardware.automotive.vehicle; /** * Error codes used in vehicle HAL interface. System defined error codes will have the range from - * 0x00000000 to 0x0000ffff and vendor error codes will have the range from 0x0000 << 16 to - * 0xffff << 16. The error code is formatted as [VENDOR_ERROR] << 16 | [SYSTEM_ERROR] + * 0x0000 to 0xffff and vendor error codes will have the range from 0x0001 to 0xffff. The error code + * is formatted as [VENDOR_ERROR] << 16 | [SYSTEM_ERROR]. A vendor error code of 0 indicates vendor + * code not set. */ @VintfStability @Backing(type="int")