From 4e8be1f5536bbb0ae9ec2606c4a45758ef29f0ac Mon Sep 17 00:00:00 2001 From: Xu Yang Date: Wed, 9 Nov 2022 20:15:07 +0800 Subject: [PATCH 1/3] Display: Add display color AIDL Initial AIDL interface based on the HIDL interface vendor.display.color@1.7. Change-Id: Ibc657a752ee709521c8afdac461cdc8a07bb0e19 --- aidl/color/Android.bp | 25 +++++++ .../vendor.qti.hardware.display.color/1/.hash | 1 + .../hardware/display/color/IDisplayColor.aidl | 32 ++++++++ .../qti/hardware/display/color/Result.aidl | 31 ++++++++ .../hardware/display/color/SprModeInfo.aidl | 27 +++++++ .../hardware/display/color/IDisplayColor.aidl | 32 ++++++++ .../qti/hardware/display/color/Result.aidl | 31 ++++++++ .../hardware/display/color/SprModeInfo.aidl | 27 +++++++ .../hardware/display/color/IDisplayColor.aidl | 74 +++++++++++++++++++ .../qti/hardware/display/color/Result.aidl | 19 +++++ .../hardware/display/color/SprModeInfo.aidl | 14 ++++ 11 files changed, 313 insertions(+) create mode 100644 aidl/color/Android.bp create mode 100644 aidl/color/aidl_api/vendor.qti.hardware.display.color/1/.hash create mode 100644 aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/IDisplayColor.aidl create mode 100644 aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/Result.aidl create mode 100644 aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/SprModeInfo.aidl create mode 100644 aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/IDisplayColor.aidl create mode 100644 aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/Result.aidl create mode 100644 aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/SprModeInfo.aidl create mode 100644 aidl/color/vendor/qti/hardware/display/color/IDisplayColor.aidl create mode 100644 aidl/color/vendor/qti/hardware/display/color/Result.aidl create mode 100644 aidl/color/vendor/qti/hardware/display/color/SprModeInfo.aidl diff --git a/aidl/color/Android.bp b/aidl/color/Android.bp new file mode 100644 index 00000000..b958dd53 --- /dev/null +++ b/aidl/color/Android.bp @@ -0,0 +1,25 @@ +aidl_interface { + name: "vendor.qti.hardware.display.color", + vendor_available: true, + owner: "qti", + srcs: ["vendor/qti/hardware/display/color/*.aidl"], + stability: "vintf", + backend: { + cpp: { + enabled: false, + }, + java: { + enabled: true, + sdk_version: "module_current", + }, + ndk: { + enabled: true, + }, + }, + versions_with_info: [ + { + version: "1", + imports: [], + }, + ], +} diff --git a/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/.hash b/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/.hash new file mode 100644 index 00000000..1856c76b --- /dev/null +++ b/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/.hash @@ -0,0 +1 @@ +423c962c634a981b3722b48ad99e9fd851a4f8e8 diff --git a/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/IDisplayColor.aidl b/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/IDisplayColor.aidl new file mode 100644 index 00000000..008e089c --- /dev/null +++ b/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/IDisplayColor.aidl @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.color; +@VintfStability +interface IDisplayColor { + int init(in int flags); + vendor.qti.hardware.display.color.Result deInit(in int ctxHandle, in int flags); + void toggleSocketService(in boolean enable); + vendor.qti.hardware.display.color.Result getRenderIntentsMap(in int disp_id, out String[] render_intent_string, out int[] render_intent_enum); + vendor.qti.hardware.display.color.Result getSPRMode(in int ctxHandle, in int dispId, out vendor.qti.hardware.display.color.SprModeInfo info); + vendor.qti.hardware.display.color.Result setSPRMode(in int ctxHandle, in int dispId, in vendor.qti.hardware.display.color.SprModeInfo info); +} diff --git a/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/Result.aidl b/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/Result.aidl new file mode 100644 index 00000000..5f05fa7c --- /dev/null +++ b/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/Result.aidl @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.color; +@Backing(type="int") @VintfStability +enum Result { + OK = 0, + PERMISSION_DENIED = -1, + NO_MEMORY = -12, + BAD_VALUE = -22, + INVALID_OPERATION = -38, +} diff --git a/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/SprModeInfo.aidl b/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/SprModeInfo.aidl new file mode 100644 index 00000000..326f068b --- /dev/null +++ b/aidl/color/aidl_api/vendor.qti.hardware.display.color/1/vendor/qti/hardware/display/color/SprModeInfo.aidl @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.color; +@VintfStability +parcelable SprModeInfo { + int mode_id; +} diff --git a/aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/IDisplayColor.aidl b/aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/IDisplayColor.aidl new file mode 100644 index 00000000..008e089c --- /dev/null +++ b/aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/IDisplayColor.aidl @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.color; +@VintfStability +interface IDisplayColor { + int init(in int flags); + vendor.qti.hardware.display.color.Result deInit(in int ctxHandle, in int flags); + void toggleSocketService(in boolean enable); + vendor.qti.hardware.display.color.Result getRenderIntentsMap(in int disp_id, out String[] render_intent_string, out int[] render_intent_enum); + vendor.qti.hardware.display.color.Result getSPRMode(in int ctxHandle, in int dispId, out vendor.qti.hardware.display.color.SprModeInfo info); + vendor.qti.hardware.display.color.Result setSPRMode(in int ctxHandle, in int dispId, in vendor.qti.hardware.display.color.SprModeInfo info); +} diff --git a/aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/Result.aidl b/aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/Result.aidl new file mode 100644 index 00000000..5f05fa7c --- /dev/null +++ b/aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/Result.aidl @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.color; +@Backing(type="int") @VintfStability +enum Result { + OK = 0, + PERMISSION_DENIED = -1, + NO_MEMORY = -12, + BAD_VALUE = -22, + INVALID_OPERATION = -38, +} diff --git a/aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/SprModeInfo.aidl b/aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/SprModeInfo.aidl new file mode 100644 index 00000000..326f068b --- /dev/null +++ b/aidl/color/aidl_api/vendor.qti.hardware.display.color/current/vendor/qti/hardware/display/color/SprModeInfo.aidl @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.color; +@VintfStability +parcelable SprModeInfo { + int mode_id; +} diff --git a/aidl/color/vendor/qti/hardware/display/color/IDisplayColor.aidl b/aidl/color/vendor/qti/hardware/display/color/IDisplayColor.aidl new file mode 100644 index 00000000..47a51ebd --- /dev/null +++ b/aidl/color/vendor/qti/hardware/display/color/IDisplayColor.aidl @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +package vendor.qti.hardware.display.color; + +import vendor.qti.hardware.display.color.Result; +import vendor.qti.hardware.display.color.SprModeInfo; + +@VintfStability +interface IDisplayColor { + /** + * Initialize a color context. + * + * Each client is expected to call init interface and acquire a context + * handle before exercising any other interface. + * + * @param flags client identifier. + * @return context handle on success or negative value if anything wrong. + */ + int init(in int flags); + + /** + * De-initialize a color context. + * + * Client must free the context after use. + * + * @param ctxHandle context handle. + * @param flags reserved. + * @return OK on success or BAD_VALUE if any parameters are invalid. + */ + Result deInit(in int ctxHandle, in int flags); + + /** + * Initialize the qdcm socket service. + * + * Client needs to call this function to start/stop the socket service + */ + void toggleSocketService(in boolean enable); + + /** + * Get render intents map. + * + * Clients can get the render intents string and enums map for display specified by id. + * + * @param disp_id is display ID. + * @param out render_intent_string is string vector for all the render intents. + * @param out render_intent_enum is numbers for all the render intents. + * @return OK on success or BAD_VALUE if any parameters are invalid. + */ + Result getRenderIntentsMap(in int disp_id, + out String[] render_intent_string, out int[] render_intent_enum); + + /** + * Get spr mode configuration. + * + * @param ctxHandle context handle. + * @param dispId display id. + * @param out info spr mode configuration. + * @return OK on success or BAD_VALUE if any parameters are invalid. + */ + Result getSPRMode(in int ctxHandle, in int dispId, out SprModeInfo info); + + /** + * Set spr mode. + * + * @param ctxHandle context handle. + * @param dispId display id. + * @param cfg spr mode configuration. + * @return OK on success or error if any parameters are invalid. + */ + Result setSPRMode(in int ctxHandle, in int dispId, in SprModeInfo info); +} diff --git a/aidl/color/vendor/qti/hardware/display/color/Result.aidl b/aidl/color/vendor/qti/hardware/display/color/Result.aidl new file mode 100644 index 00000000..d8185c4a --- /dev/null +++ b/aidl/color/vendor/qti/hardware/display/color/Result.aidl @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +package vendor.qti.hardware.display.color; + +/* + * Type enumerating various result codes returned from IDispColor methods + */ +@VintfStability +@Backing(type="int") +enum Result { + OK, + PERMISSION_DENIED = -1, + NO_MEMORY = -12, + BAD_VALUE = -22, + INVALID_OPERATION = -38, +} diff --git a/aidl/color/vendor/qti/hardware/display/color/SprModeInfo.aidl b/aidl/color/vendor/qti/hardware/display/color/SprModeInfo.aidl new file mode 100644 index 00000000..a5d46638 --- /dev/null +++ b/aidl/color/vendor/qti/hardware/display/color/SprModeInfo.aidl @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +package vendor.qti.hardware.display.color; + +/* + * SPR mode information struct + */ +@VintfStability +parcelable SprModeInfo { + int mode_id; +} From 299e434f82a2f798209105df88256c80ebc0c98f Mon Sep 17 00:00:00 2001 From: Xu Yang Date: Thu, 10 Nov 2022 14:18:22 +0800 Subject: [PATCH 2/3] Display: Add display postproc AIDL Initial AIDL interface for display postproc. Change-Id: I266b3f2a1ed9c4aa30ac89efe515f0acbecc5506 --- aidl/postproc/Android.bp | 25 +++++++++++++++++ .../1/.hash | 1 + .../display/postproc/IDisplayPostproc.aidl | 27 +++++++++++++++++++ .../display/postproc/IDisplayPostproc.aidl | 27 +++++++++++++++++++ .../display/postproc/IDisplayPostproc.aidl | 16 +++++++++++ 5 files changed, 96 insertions(+) create mode 100644 aidl/postproc/Android.bp create mode 100644 aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/1/.hash create mode 100644 aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/1/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl create mode 100644 aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/current/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl create mode 100644 aidl/postproc/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl diff --git a/aidl/postproc/Android.bp b/aidl/postproc/Android.bp new file mode 100644 index 00000000..9fe59967 --- /dev/null +++ b/aidl/postproc/Android.bp @@ -0,0 +1,25 @@ +aidl_interface { + name: "vendor.qti.hardware.display.postproc", + vendor_available: true, + owner: "qti", + srcs: ["vendor/qti/hardware/display/postproc/*.aidl"], + stability: "vintf", + backend: { + cpp: { + enabled: false, + }, + java: { + enabled: true, + sdk_version: "module_current", + }, + ndk: { + enabled: true, + }, + }, + versions_with_info: [ + { + version: "1", + imports: [], + }, + ], +} diff --git a/aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/1/.hash b/aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/1/.hash new file mode 100644 index 00000000..f549ecab --- /dev/null +++ b/aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/1/.hash @@ -0,0 +1 @@ +717b637207e7b53e81228f9ebc0b2418cf873f2b diff --git a/aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/1/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl b/aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/1/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl new file mode 100644 index 00000000..235806ba --- /dev/null +++ b/aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/1/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.postproc; +@VintfStability +interface IDisplayPostproc { + String sendDPPSCommand(in String cmd); +} diff --git a/aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/current/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl b/aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/current/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl new file mode 100644 index 00000000..235806ba --- /dev/null +++ b/aidl/postproc/aidl_api/vendor.qti.hardware.display.postproc/current/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.postproc; +@VintfStability +interface IDisplayPostproc { + String sendDPPSCommand(in String cmd); +} diff --git a/aidl/postproc/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl b/aidl/postproc/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl new file mode 100644 index 00000000..c3268616 --- /dev/null +++ b/aidl/postproc/vendor/qti/hardware/display/postproc/IDisplayPostproc.aidl @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + +package vendor.qti.hardware.display.postproc; + +@VintfStability +interface IDisplayPostproc { + /** + * Send command to DPPS. + * @param cmd string command to control post processing features. + * @return response string response for the input dpps command. + */ + String sendDPPSCommand(in String cmd); +} From 3192805132a74396763d1aeff5ef7b8717cde528 Mon Sep 17 00:00:00 2001 From: Ramkumar Radhakrishnan Date: Tue, 10 Jan 2023 16:21:05 -0800 Subject: [PATCH 3/3] aidl: Add aidl callback api for TUI event done notification Change-Id: Ie46c219e42c8dbbed3b9db4014ff35787859a20f --- aidl/config/Android.bp | 37 +++++-- .../6/.hash | 1 + .../hardware/display/config/Attributes.aidl | 57 ++++++++++ .../display/config/CameraSmoothOp.aidl | 52 +++++++++ .../hardware/display/config/Concurrency.aidl | 56 ++++++++++ .../display/config/DisplayPortType.aidl | 58 ++++++++++ .../hardware/display/config/DisplayType.aidl | 55 ++++++++++ .../display/config/DynRefreshRateOp.aidl | 54 +++++++++ .../display/config/ExternalStatus.aidl | 55 ++++++++++ .../display/config/HDRCapsParams.aidl | 53 +++++++++ .../display/config/IDisplayConfig.aidl | 103 ++++++++++++++++++ .../config/IDisplayConfigCallback.aidl | 91 ++++++++++++++++ .../hardware/display/config/PowerMode.aidl | 54 +++++++++ .../hardware/display/config/QsyncMode.aidl | 54 +++++++++ .../qti/hardware/display/config/Rect.aidl | 54 +++++++++ .../hardware/display/config/TUIEventType.aidl | 54 +++++++++ .../config/IDisplayConfigCallback.aidl | 35 ++++++ .../config/IDisplayConfigCallback.aidl | 65 +++++++++-- 18 files changed, 973 insertions(+), 15 deletions(-) create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/.hash create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Attributes.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/CameraSmoothOp.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Concurrency.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DisplayPortType.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DisplayType.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DynRefreshRateOp.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/ExternalStatus.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/HDRCapsParams.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/IDisplayConfig.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/PowerMode.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/QsyncMode.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Rect.aidl create mode 100644 aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/TUIEventType.aidl diff --git a/aidl/config/Android.bp b/aidl/config/Android.bp index d3b1b220..4c07a77b 100644 --- a/aidl/config/Android.bp +++ b/aidl/config/Android.bp @@ -16,12 +16,35 @@ aidl_interface { enabled: false, }, }, - versions: [ - "1", - "2", - "3", - "4", - "5", - ], + owner: "qti", + versions_with_info: [ + { + version: "1", + imports: ["android.hardware.common-V2"], + }, + { + version: "2", + imports: ["android.hardware.common-V2"], + }, + { + version: "3", + imports: ["android.hardware.common-V2"], + }, + { + version: "4", + imports: ["android.hardware.common-V2"], + }, + { + version: "5", + imports: ["android.hardware.common-V2"], + }, + { + version: "6", + imports: ["android.hardware.common-V2"], + }, + + ], + frozen: true, + } diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/.hash b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/.hash new file mode 100644 index 00000000..2b19b6ee --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/.hash @@ -0,0 +1 @@ +0d16b90293649a13df88620d73a0c5c41b950d54 diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Attributes.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Attributes.aidl new file mode 100644 index 00000000..d21e8e88 --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Attributes.aidl @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@VintfStability +parcelable Attributes { + int vsyncPeriod; + int xRes; + int yRes; + float xDpi; + float yDpi; + vendor.qti.hardware.display.config.DisplayPortType panelType; + boolean isYuv; +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/CameraSmoothOp.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/CameraSmoothOp.aidl new file mode 100644 index 00000000..685f78cc --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/CameraSmoothOp.aidl @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@Backing(type="int") @VintfStability +enum CameraSmoothOp { + OFF = 0, + ON = 1, +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Concurrency.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Concurrency.aidl new file mode 100644 index 00000000..fe1b8742 --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Concurrency.aidl @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@Backing(type="int") @VintfStability +enum Concurrency { + NONE = 0, + WFD = 1, + DP = 2, + DUAL = 3, + CWB = 4, + CAMERA = 5, +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DisplayPortType.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DisplayPortType.aidl new file mode 100644 index 00000000..3fdba188 --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DisplayPortType.aidl @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@Backing(type="int") @VintfStability +enum DisplayPortType { + INVALID = 0, + DEFAULT = 1, + DSI = 2, + DTV = 3, + WRITEBACK = 4, + LVDS = 5, + EDP = 6, + DP = 7, +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DisplayType.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DisplayType.aidl new file mode 100644 index 00000000..f9f54a6e --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DisplayType.aidl @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@Backing(type="int") @VintfStability +enum DisplayType { + INVALID = 0, + PRIMARY = 1, + EXTERNAL = 2, + VIRTUAL = 3, + BUILTIN2 = 4, +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DynRefreshRateOp.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DynRefreshRateOp.aidl new file mode 100644 index 00000000..8b73c1b9 --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/DynRefreshRateOp.aidl @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@Backing(type="int") @VintfStability +enum DynRefreshRateOp { + INVALID = 0, + DISABLE_METADATA = 1, + ENABLE_METADATA = 2, + SET_BINDER = 3, +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/ExternalStatus.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/ExternalStatus.aidl new file mode 100644 index 00000000..b8f4ba5d --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/ExternalStatus.aidl @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@Backing(type="int") @VintfStability +enum ExternalStatus { + INVALID = 0, + OFFLINE = 1, + ONLINE = 2, + PAUSE = 3, + RESUME = 4, +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/HDRCapsParams.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/HDRCapsParams.aidl new file mode 100644 index 00000000..d0f95c0c --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/HDRCapsParams.aidl @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@VintfStability +parcelable HDRCapsParams { + int[] supportedHdrTypes; + float maxAvgLuminance; + float minLuminance; +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/IDisplayConfig.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/IDisplayConfig.aidl new file mode 100644 index 00000000..96b54c36 --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/IDisplayConfig.aidl @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@VintfStability +interface IDisplayConfig { + boolean isDisplayConnected(in vendor.qti.hardware.display.config.DisplayType dpy); + void setDisplayStatus(in vendor.qti.hardware.display.config.DisplayType dpy, in vendor.qti.hardware.display.config.ExternalStatus status); + void configureDynRefreshRate(in vendor.qti.hardware.display.config.DynRefreshRateOp op, in int refrestRate); + int getConfigCount(in vendor.qti.hardware.display.config.DisplayType dpy); + int getActiveConfig(in vendor.qti.hardware.display.config.DisplayType dpy); + void setActiveConfig(in vendor.qti.hardware.display.config.DisplayType dpy, in int config); + vendor.qti.hardware.display.config.Attributes getDisplayAttributes(in int configIndex, in vendor.qti.hardware.display.config.DisplayType dpy); + void setPanelBrightness(in int level); + int getPanelBrightness(); + void minHdcpEncryptionLevelChanged(in vendor.qti.hardware.display.config.DisplayType dpy, in int minEncLevel); + void refreshScreen(); + void controlPartialUpdate(in vendor.qti.hardware.display.config.DisplayType dpy, in boolean enable); + void toggleScreenUpdate(in boolean on); + void setIdleTimeout(in int value); + vendor.qti.hardware.display.config.HDRCapsParams getHDRCapabilities(in vendor.qti.hardware.display.config.DisplayType dpy); + void setCameraLaunchStatus(in int on); + boolean displayBWTransactionPending(); + void setDisplayAnimating(in long displayId, in boolean animating); + void controlIdlePowerCollapse(in boolean enable, in boolean synchronous); + boolean getWriteBackCapabilities(); + void setDisplayDppsAdROI(in int displayId, in int hStart, in int hEnd, in int vStart, in int vEnd, in int factorIn, in int factorOut); + void updateVSyncSourceOnPowerModeOff(); + void updateVSyncSourceOnPowerModeDoze(); + void setPowerMode(in int dispId, in vendor.qti.hardware.display.config.PowerMode powerMode); + boolean isPowerModeOverrideSupported(in int dispId); + boolean isHDRSupported(in int dispId); + boolean isWCGSupported(in int dispId); + void setLayerAsMask(in int dispId, in long layerId); + String getDebugProperty(in String propName); + vendor.qti.hardware.display.config.Attributes getActiveBuiltinDisplayAttributes(); + void setPanelLuminanceAttributes(in int dispId, in float minLum, in float maxLum); + boolean isBuiltInDisplay(in int dispId); + boolean isAsyncVDSCreationSupported(); + void createVirtualDisplay(in int width, in int height, in int format); + long[] getSupportedDSIBitClks(in int dispId); + long getDSIClk(in int dispId); + void setDSIClk(in int dispId, in long bitClk); + void setCWBOutputBuffer(in vendor.qti.hardware.display.config.IDisplayConfigCallback callback, in int dispId, in vendor.qti.hardware.display.config.Rect rect, in boolean postProcessed, in android.hardware.common.NativeHandle buffer); + void setQsyncMode(in int dispId, in vendor.qti.hardware.display.config.QsyncMode mode); + boolean isSmartPanelConfig(in int dispId, in int configId); + boolean isRotatorSupportedFormat(in int halFormat, in boolean ubwc); + void controlQsyncCallback(in boolean enable); + void sendTUIEvent(in vendor.qti.hardware.display.config.DisplayType dpy, in vendor.qti.hardware.display.config.TUIEventType eventType); + int getDisplayHwId(in int dispId); + int[] getSupportedDisplayRefreshRates(in vendor.qti.hardware.display.config.DisplayType dpy); + boolean isRCSupported(in int dispId); + void controlIdleStatusCallback(in boolean enable); + boolean isSupportedConfigSwitch(in int dispId, in int config); + vendor.qti.hardware.display.config.DisplayType getDisplayType(in long physicalDispId); + void setCameraSmoothInfo(in vendor.qti.hardware.display.config.CameraSmoothOp op, in int fps); + long registerCallback(in vendor.qti.hardware.display.config.IDisplayConfigCallback callback); + void unRegisterCallback(in long handle); + void notifyDisplayIdleState(in int[] dispId); +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl new file mode 100644 index 00000000..36be528a --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + *//* + * Changes from Qualcomm Innovation Center are provided under the following license: + * + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted (subject to the limitations in the + * disclaimer below) provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE + * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT + * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@VintfStability +interface IDisplayConfigCallback { + oneway void notifyCWBBufferDone(in int error, in android.hardware.common.NativeHandle buffer); + oneway void notifyQsyncChange(in boolean qsyncEnabled, in int refreshRate, in int qsyncRefreshRate); + oneway void notifyIdleStatus(in boolean isIdle); + oneway void notifyCameraSmoothInfo(in vendor.qti.hardware.display.config.CameraSmoothOp op, in int fps); + oneway void notifyResolutionChange(in int displayId, in vendor.qti.hardware.display.config.Attributes attr); + oneway void notifyFpsMitigation(in int displayId, in vendor.qti.hardware.display.config.Attributes attr, in vendor.qti.hardware.display.config.Concurrency concurrency); + oneway void notifyTUIEventDone(in int error, in vendor.qti.hardware.display.config.DisplayType disp_type, in vendor.qti.hardware.display.config.TUIEventType eventType); +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/PowerMode.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/PowerMode.aidl new file mode 100644 index 00000000..77534dcb --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/PowerMode.aidl @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@Backing(type="int") @VintfStability +enum PowerMode { + OFF = 0, + DOZE = 1, + ON = 2, + DOZE_SUSPEND = 3, +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/QsyncMode.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/QsyncMode.aidl new file mode 100644 index 00000000..5121fc80 --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/QsyncMode.aidl @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@Backing(type="int") @VintfStability +enum QsyncMode { + NONE = 0, + WAIT_FOR_FENCES_ONE_FRAME = 1, + WAIT_FOR_FENCES_EACH_FRAME = 2, + WAIT_FOR_COMMIT_EACH_FRAME = 3, +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Rect.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Rect.aidl new file mode 100644 index 00000000..61f83a97 --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/Rect.aidl @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@VintfStability +parcelable Rect { + int left; + int top; + int right; + int bottom; +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/TUIEventType.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/TUIEventType.aidl new file mode 100644 index 00000000..ae50648a --- /dev/null +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/6/vendor/qti/hardware/display/config/TUIEventType.aidl @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2021 The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.qti.hardware.display.config; +@Backing(type="int") @VintfStability +enum TUIEventType { + NONE = 0, + PREPARE_TUI_TRANSITION = 1, + START_TUI_TRANSITION = 2, + END_TUI_TRANSITION = 3, +} diff --git a/aidl/config/aidl_api/vendor.qti.hardware.display.config/current/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl b/aidl/config/aidl_api/vendor.qti.hardware.display.config/current/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl index d978f2fa..36be528a 100644 --- a/aidl/config/aidl_api/vendor.qti.hardware.display.config/current/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl +++ b/aidl/config/aidl_api/vendor.qti.hardware.display.config/current/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl @@ -25,6 +25,40 @@ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + *//* + * Changes from Qualcomm Innovation Center are provided under the following license: + * + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted (subject to the limitations in the + * disclaimer below) provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE + * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT + * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /////////////////////////////////////////////////////////////////////////////// // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // @@ -53,4 +87,5 @@ interface IDisplayConfigCallback { oneway void notifyCameraSmoothInfo(in vendor.qti.hardware.display.config.CameraSmoothOp op, in int fps); oneway void notifyResolutionChange(in int displayId, in vendor.qti.hardware.display.config.Attributes attr); oneway void notifyFpsMitigation(in int displayId, in vendor.qti.hardware.display.config.Attributes attr, in vendor.qti.hardware.display.config.Concurrency concurrency); + oneway void notifyTUIEventDone(in int error, in vendor.qti.hardware.display.config.DisplayType disp_type, in vendor.qti.hardware.display.config.TUIEventType eventType); } diff --git a/aidl/config/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl b/aidl/config/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl index 5dfb8cfa..3edce44f 100644 --- a/aidl/config/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl +++ b/aidl/config/vendor/qti/hardware/display/config/IDisplayConfigCallback.aidl @@ -27,12 +27,50 @@ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/* + * Changes from Qualcomm Innovation Center are provided under the following license: + * + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted (subject to the limitations in the + * disclaimer below) provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE + * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT + * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + package vendor.qti.hardware.display.config; import android.hardware.common.NativeHandle; import vendor.qti.hardware.display.config.CameraSmoothOp; import vendor.qti.hardware.display.config.Attributes; import vendor.qti.hardware.display.config.Concurrency; +import vendor.qti.hardware.display.config.DisplayType; +import vendor.qti.hardware.display.config.TUIEventType; @VintfStability interface IDisplayConfigCallback { @@ -76,12 +114,23 @@ interface IDisplayConfigCallback { * @param attr Attributes of the new display resolution */ oneway void notifyResolutionChange(in int displayId, in Attributes attr); - /* - * Send mitigated fps when new display concurrency added like primary + wfd - * @param displayId the display on which resolution switch is done - * @param attr Attributes of the new display resolution - * @param concurrency Concurrency for display - */ - oneway void notifyFpsMitigation(in int displayId, in Attributes attr, in Concurrency - concurrency); + + /* + * Send mitigated fps when new display concurrency added like primary + wfd + * @param displayId the display on which resolution switch is done + * @param attr Attributes of the new display resolution + * @param concurrency Concurrency for display + */ + oneway void notifyFpsMitigation(in int displayId, in Attributes attr, in Concurrency + concurrency); + + /* + * Send notification when TUI transition completes. + * + * @param error result of the TUI transition event + * @param displayId the display on which TUI transition is done + * @param eventType type of the TUI Transition + */ + oneway void notifyTUIEventDone(in int error, in DisplayType disp_type, + in TUIEventType eventType); }