mirror of
https://github.com/oplus-giulia-dev/android_hardware_oplus
synced 2025-11-04 05:45:34 +08:00
interfaces: Add vendor.oplus.hardware.urcc V1
Change-Id: I1b483913586c45717d86f3faa036d5afe3077858
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
28
interfaces/aidl/vendor/oplus/hardware/urcc/IUrcc.aidl
vendored
Normal file
28
interfaces/aidl/vendor/oplus/hardware/urcc/IUrcc.aidl
vendored
Normal 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);
|
||||
}
|
||||
13
interfaces/aidl/vendor/oplus/hardware/urcc/IUrccCallback.aidl
vendored
Normal file
13
interfaces/aidl/vendor/oplus/hardware/urcc/IUrccCallback.aidl
vendored
Normal 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);
|
||||
}
|
||||
15
interfaces/aidl/vendor/oplus/hardware/urcc/UrccRequestData.aidl
vendored
Normal file
15
interfaces/aidl/vendor/oplus/hardware/urcc/UrccRequestData.aidl
vendored
Normal 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;
|
||||
}
|
||||
26
interfaces/aidl/vendor/oplus/hardware/urcc/UrccRequestParcel.aidl
vendored
Normal file
26
interfaces/aidl/vendor/oplus/hardware/urcc/UrccRequestParcel.aidl
vendored
Normal 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;
|
||||
}
|
||||
1
interfaces/aidl_api/vendor.oplus.hardware.urcc/1/.hash
Normal file
1
interfaces/aidl_api/vendor.oplus.hardware.urcc/1/.hash
Normal file
@@ -0,0 +1 @@
|
||||
c8a4bdf08063778d17708dcd7dafbb2c43d57eb7
|
||||
40
interfaces/aidl_api/vendor.oplus.hardware.urcc/1/vendor/oplus/hardware/urcc/IUrcc.aidl
vendored
Normal file
40
interfaces/aidl_api/vendor.oplus.hardware.urcc/1/vendor/oplus/hardware/urcc/IUrcc.aidl
vendored
Normal 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);
|
||||
}
|
||||
27
interfaces/aidl_api/vendor.oplus.hardware.urcc/1/vendor/oplus/hardware/urcc/IUrccCallback.aidl
vendored
Normal file
27
interfaces/aidl_api/vendor.oplus.hardware.urcc/1/vendor/oplus/hardware/urcc/IUrccCallback.aidl
vendored
Normal 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);
|
||||
}
|
||||
31
interfaces/aidl_api/vendor.oplus.hardware.urcc/1/vendor/oplus/hardware/urcc/UrccRequestData.aidl
vendored
Normal file
31
interfaces/aidl_api/vendor.oplus.hardware.urcc/1/vendor/oplus/hardware/urcc/UrccRequestData.aidl
vendored
Normal 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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
40
interfaces/aidl_api/vendor.oplus.hardware.urcc/current/vendor/oplus/hardware/urcc/IUrcc.aidl
vendored
Normal file
40
interfaces/aidl_api/vendor.oplus.hardware.urcc/current/vendor/oplus/hardware/urcc/IUrcc.aidl
vendored
Normal 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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user