interfaces: Add vendor.oplus.hardware.urcc V1

Change-Id: I1b483913586c45717d86f3faa036d5afe3077858
This commit is contained in:
LuK1337
2025-09-13 16:36:50 +02:00
parent 3fc8912155
commit e0ed208f22
14 changed files with 387 additions and 0 deletions

View File

@@ -234,3 +234,33 @@ aidl_interface {
},
],
}
aidl_interface {
name: "vendor.oplus.hardware.urcc",
system_ext_specific: true,
vendor_available: true,
local_include_dir: "aidl",
srcs: ["aidl/vendor/oplus/hardware/urcc/*.aidl"],
stability: "vintf",
owner: "oplus",
backend: {
cpp: {
enabled: true,
},
ndk: {
gen_log: true,
},
java: {
sdk_version: "module_current",
},
},
versions_with_info: [
{
version: "1",
imports: [],
},
],
frozen: true,
}

View File

@@ -0,0 +1,28 @@
/*
* SPDX-FileCopyrightText: 2025 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.oplus.hardware.urcc;
import vendor.oplus.hardware.urcc.IUrccCallback;
import vendor.oplus.hardware.urcc.UrccRequestData;
import vendor.oplus.hardware.urcc.UrccRequestParcel;
@VintfStability
interface IUrcc {
void urccInit();
int urccResCtlRequest(in UrccRequestParcel mUrccRequestParcel);
int urccResCtlRelease(int mhandle);
UrccRequestData[] urccResStateRequest(in UrccRequestParcel mUrccRequestParcel);
int urccResListeningRegister(in UrccRequestParcel mUrccRequestParcel, IUrccCallback urccCallback);
int urccResListeningUnRegister(int mhandle);
String urccPropertyGet(String name);
int urccPropertySet(String name, String value);
int urccThermalListeningRegister(in int[] types, IUrccCallback urccCallback);
int urccThermalListeningUnRegister(int mhandle);
int uahNotifyExt(int src, int type, in int[] args);
int setRelatedSysInfo(int cmd, in byte[] info);
int urccRuleCtl(int ruleId, int status, in UrccRequestData[] ruleData);
void uahResCtlRequestBypass(in UrccRequestParcel mRequestParcel);
}

View File

@@ -0,0 +1,13 @@
/*
* SPDX-FileCopyrightText: 2025 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.oplus.hardware.urcc;
import vendor.oplus.hardware.urcc.UrccRequestData;
@VintfStability
interface IUrccCallback {
void onCallback(in UrccRequestData[] urccRequestDataArr);
}

View File

@@ -0,0 +1,15 @@
/*
* SPDX-FileCopyrightText: 2025 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.oplus.hardware.urcc;
@VintfStability
parcelable UrccRequestData {
String desc;
String res_Path;
String res_Value;
int res_Id;
int event_Id;
}

View File

@@ -0,0 +1,26 @@
/*
* SPDX-FileCopyrightText: 2025 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
package vendor.oplus.hardware.urcc;
import vendor.oplus.hardware.urcc.IUrccCallback;
import vendor.oplus.hardware.urcc.UrccRequestData;
@VintfStability
parcelable UrccRequestParcel {
String identity;
String[] mParams;
UrccRequestData[] mUrccRequestData;
byte[] otherData;
String pkgName;
IUrccCallback urccCallback;
int type;
boolean screenoff_support;
int prio;
int callingPID;
int callingUID;
long duration;
int handle;
}

View File

@@ -0,0 +1 @@
c8a4bdf08063778d17708dcd7dafbb2c43d57eb7

View File

@@ -0,0 +1,40 @@
/*
* 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 <name>-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.urcc;
@VintfStability
interface IUrcc {
void urccInit();
int urccResCtlRequest(in vendor.oplus.hardware.urcc.UrccRequestParcel mUrccRequestParcel);
int urccResCtlRelease(int mhandle);
vendor.oplus.hardware.urcc.UrccRequestData[] urccResStateRequest(in vendor.oplus.hardware.urcc.UrccRequestParcel mUrccRequestParcel);
int urccResListeningRegister(in vendor.oplus.hardware.urcc.UrccRequestParcel mUrccRequestParcel, vendor.oplus.hardware.urcc.IUrccCallback urccCallback);
int urccResListeningUnRegister(int mhandle);
String urccPropertyGet(String name);
int urccPropertySet(String name, String value);
int urccThermalListeningRegister(in int[] types, vendor.oplus.hardware.urcc.IUrccCallback urccCallback);
int urccThermalListeningUnRegister(int mhandle);
int uahNotifyExt(int src, int type, in int[] args);
int setRelatedSysInfo(int cmd, in byte[] info);
int urccRuleCtl(int ruleId, int status, in vendor.oplus.hardware.urcc.UrccRequestData[] ruleData);
void uahResCtlRequestBypass(in vendor.oplus.hardware.urcc.UrccRequestParcel mRequestParcel);
}

View File

@@ -0,0 +1,27 @@
/*
* 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 <name>-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.urcc;
@VintfStability
interface IUrccCallback {
void onCallback(in vendor.oplus.hardware.urcc.UrccRequestData[] urccRequestDataArr);
}

View File

@@ -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 <name>-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.urcc;
@VintfStability
parcelable UrccRequestData {
String desc;
String res_Path;
String res_Value;
int res_Id;
int event_Id;
}

View File

@@ -0,0 +1,39 @@
/*
* 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 <name>-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.urcc;
@VintfStability
parcelable UrccRequestParcel {
String identity;
String[] mParams;
vendor.oplus.hardware.urcc.UrccRequestData[] mUrccRequestData;
byte[] otherData;
String pkgName;
vendor.oplus.hardware.urcc.IUrccCallback urccCallback;
int type;
boolean screenoff_support;
int prio;
int callingPID;
int callingUID;
long duration;
int handle;
}

View File

@@ -0,0 +1,40 @@
/*
* 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 <name>-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.urcc;
@VintfStability
interface IUrcc {
void urccInit();
int urccResCtlRequest(in vendor.oplus.hardware.urcc.UrccRequestParcel mUrccRequestParcel);
int urccResCtlRelease(int mhandle);
vendor.oplus.hardware.urcc.UrccRequestData[] urccResStateRequest(in vendor.oplus.hardware.urcc.UrccRequestParcel mUrccRequestParcel);
int urccResListeningRegister(in vendor.oplus.hardware.urcc.UrccRequestParcel mUrccRequestParcel, vendor.oplus.hardware.urcc.IUrccCallback urccCallback);
int urccResListeningUnRegister(int mhandle);
String urccPropertyGet(String name);
int urccPropertySet(String name, String value);
int urccThermalListeningRegister(in int[] types, vendor.oplus.hardware.urcc.IUrccCallback urccCallback);
int urccThermalListeningUnRegister(int mhandle);
int uahNotifyExt(int src, int type, in int[] args);
int setRelatedSysInfo(int cmd, in byte[] info);
int urccRuleCtl(int ruleId, int status, in vendor.oplus.hardware.urcc.UrccRequestData[] ruleData);
void uahResCtlRequestBypass(in vendor.oplus.hardware.urcc.UrccRequestParcel mRequestParcel);
}

View File

@@ -0,0 +1,27 @@
/*
* 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 <name>-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.urcc;
@VintfStability
interface IUrccCallback {
void onCallback(in vendor.oplus.hardware.urcc.UrccRequestData[] urccRequestDataArr);
}

View File

@@ -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 <name>-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.urcc;
@VintfStability
parcelable UrccRequestData {
String desc;
String res_Path;
String res_Value;
int res_Id;
int event_Id;
}

View File

@@ -0,0 +1,39 @@
/*
* 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 <name>-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.urcc;
@VintfStability
parcelable UrccRequestParcel {
String identity;
String[] mParams;
vendor.oplus.hardware.urcc.UrccRequestData[] mUrccRequestData;
byte[] otherData;
String pkgName;
vendor.oplus.hardware.urcc.IUrccCallback urccCallback;
int type;
boolean screenoff_support;
int prio;
int callingPID;
int callingUID;
long duration;
int handle;
}