From 9315077c6792849672de90ca1ffff84e87f2d1cd Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 17 May 2025 11:31:48 +0100 Subject: [PATCH] interfaces: Add vendor.oplus.hardware.esim V1 Change-Id: I7cbbdc8910073261b3f07603b3dc012de3fdbfc0 --- interfaces/Android.bp | 24 ++++++++++++++ .../oplus/hardware/esim/IOplusEsim.aidl | 15 +++++++++ .../vendor.oplus.hardware.esim/1/.hash | 1 + .../oplus/hardware/esim/IOplusEsim.aidl | 31 +++++++++++++++++++ .../oplus/hardware/esim/IOplusEsim.aidl | 31 +++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 interfaces/aidl/vendor/oplus/hardware/esim/IOplusEsim.aidl create mode 100644 interfaces/aidl_api/vendor.oplus.hardware.esim/1/.hash create mode 100644 interfaces/aidl_api/vendor.oplus.hardware.esim/1/vendor/oplus/hardware/esim/IOplusEsim.aidl create mode 100644 interfaces/aidl_api/vendor.oplus.hardware.esim/current/vendor/oplus/hardware/esim/IOplusEsim.aidl diff --git a/interfaces/Android.bp b/interfaces/Android.bp index 613e11b..7271d1c 100644 --- a/interfaces/Android.bp +++ b/interfaces/Android.bp @@ -27,6 +27,30 @@ aidl_interface { ], } +aidl_interface { + name: "vendor.oplus.hardware.esim", + odm_available: true, + local_include_dir: "aidl", + srcs: ["aidl/vendor/oplus/hardware/esim/*.aidl"], + stability: "vintf", + owner: "oplus", + + backend: { + cpp: { + enabled: true, + }, + java: { + sdk_version: "module_current", + }, + }, + versions_with_info: [ + { + version: "1", + imports: [], + }, + ], +} + aidl_interface { name: "vendor.oplus.hardware.osense.client", vendor_available: true, diff --git a/interfaces/aidl/vendor/oplus/hardware/esim/IOplusEsim.aidl b/interfaces/aidl/vendor/oplus/hardware/esim/IOplusEsim.aidl new file mode 100644 index 0000000..7fc6df4 --- /dev/null +++ b/interfaces/aidl/vendor/oplus/hardware/esim/IOplusEsim.aidl @@ -0,0 +1,15 @@ +/* + * SPDX-FileCopyrightText: 2025 The LineageOS Project + * SPDX-License-Identifier: Apache-2.0 + */ + +package vendor.oplus.hardware.esim; + +@VintfStability +interface IOplusEsim { + int getEsimGpio(); + void initEsimGpio(); + int setEsimGpio(int operation); + int setHotswap(); + int setUimPower(int operation); +} diff --git a/interfaces/aidl_api/vendor.oplus.hardware.esim/1/.hash b/interfaces/aidl_api/vendor.oplus.hardware.esim/1/.hash new file mode 100644 index 0000000..9f8dd4b --- /dev/null +++ b/interfaces/aidl_api/vendor.oplus.hardware.esim/1/.hash @@ -0,0 +1 @@ +746351b7cfae299fbc8cbcd2740aae8f5c0d7071 diff --git a/interfaces/aidl_api/vendor.oplus.hardware.esim/1/vendor/oplus/hardware/esim/IOplusEsim.aidl b/interfaces/aidl_api/vendor.oplus.hardware.esim/1/vendor/oplus/hardware/esim/IOplusEsim.aidl new file mode 100644 index 0000000..ec344bb --- /dev/null +++ b/interfaces/aidl_api/vendor.oplus.hardware.esim/1/vendor/oplus/hardware/esim/IOplusEsim.aidl @@ -0,0 +1,31 @@ +/* + * SPDX-FileCopyrightText: 2025 The LineageOS Project + * SPDX-License-Identifier: Apache-2.0 + */ +/////////////////////////////////////////////////////////////////////////////// +// 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.oplus.hardware.esim; +@VintfStability +interface IOplusEsim { + int getEsimGpio(); + void initEsimGpio(); + int setEsimGpio(int operation); + int setHotswap(); + int setUimPower(int operation); +} diff --git a/interfaces/aidl_api/vendor.oplus.hardware.esim/current/vendor/oplus/hardware/esim/IOplusEsim.aidl b/interfaces/aidl_api/vendor.oplus.hardware.esim/current/vendor/oplus/hardware/esim/IOplusEsim.aidl new file mode 100644 index 0000000..ec344bb --- /dev/null +++ b/interfaces/aidl_api/vendor.oplus.hardware.esim/current/vendor/oplus/hardware/esim/IOplusEsim.aidl @@ -0,0 +1,31 @@ +/* + * SPDX-FileCopyrightText: 2025 The LineageOS Project + * SPDX-License-Identifier: Apache-2.0 + */ +/////////////////////////////////////////////////////////////////////////////// +// 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.oplus.hardware.esim; +@VintfStability +interface IOplusEsim { + int getEsimGpio(); + void initEsimGpio(); + int setEsimGpio(int operation); + int setHotswap(); + int setUimPower(int operation); +}