From 89b26e7623f7385b507976c0e7ca173f47a97d32 Mon Sep 17 00:00:00 2001 From: John Reck Date: Fri, 1 Sep 2023 16:32:22 -0400 Subject: [PATCH] Add deprecation note Flag: DOCS_ONLY Test: doc-only && make Change-Id: I16638c3772269e4946a002a7e821735423df5084 --- .../android/hardware/graphics/common/HardwareBuffer.aidl | 5 ++++- .../android/hardware/graphics/common/HardwareBuffer.aidl | 8 +++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBuffer.aidl b/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBuffer.aidl index 1817769af2..0fe949304c 100644 --- a/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBuffer.aidl +++ b/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBuffer.aidl @@ -32,7 +32,10 @@ // later when a module using the interface is updated, e.g., Mainline modules. package android.hardware.graphics.common; -/* @hide */ +/** + * @hide + * @deprecated : Use instead android.hardware.HardwareBuffer in frameworks/base + */ @VintfStability parcelable HardwareBuffer { android.hardware.graphics.common.HardwareBufferDescription description; diff --git a/graphics/common/aidl/android/hardware/graphics/common/HardwareBuffer.aidl b/graphics/common/aidl/android/hardware/graphics/common/HardwareBuffer.aidl index 50306dcadd..ac95b1c941 100644 --- a/graphics/common/aidl/android/hardware/graphics/common/HardwareBuffer.aidl +++ b/graphics/common/aidl/android/hardware/graphics/common/HardwareBuffer.aidl @@ -20,11 +20,13 @@ import android.hardware.common.NativeHandle; import android.hardware.graphics.common.HardwareBufferDescription; /** - * Stable AIDL counterpart of AHardwareBuffer. + * [Deprecated] Stable AIDL counterpart of AHardwareBuffer. * - * @note This is different from the public HardwareBuffer. - * @sa +ndk libnativewindow#AHardwareBuffer + * @note This is different from the public HardwareBuffer. As the public + HardwareBuffer now supports being used in stable-aidl interfaces, + that is strongly preferred for new usages. * @hide + * @deprecated: Use instead android.hardware.HardwareBuffer in frameworks/base */ @VintfStability parcelable HardwareBuffer {