From 9799db2a285481b0480460d94042f374ee1a08ed Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Fri, 25 Nov 2022 19:13:42 +0900 Subject: [PATCH] universal7885: parts-aidl: Add new interface --- .../apps/aidl-support/parts/Android.bp | 5 +++ .../vendor.eureka.hardware.parts/2/.hash | 1 + .../eureka/hardware/parts/BatterySys.aidl | 41 +++++++++++++++++++ .../eureka/hardware/parts/DisplaySys.aidl | 37 +++++++++++++++++ .../eureka/hardware/parts/IBatteryStats.aidl | 37 +++++++++++++++++ .../eureka/hardware/parts/IBoolCallback.aidl | 36 ++++++++++++++++ .../hardware/parts/IDisplayConfigs.aidl | 37 +++++++++++++++++ .../hardware/parts/IFlashBrightness.aidl | 38 +++++++++++++++++ .../eureka/hardware/parts/ISmartCharge.aidl | 40 ++++++++++++++++++ .../eureka/hardware/parts/ISwapOnData.aidl | 40 ++++++++++++++++++ .../hardware/parts/IDisplayConfigs.aidl | 1 + .../hardware/parts/IDisplayConfigs.aidl | 1 + 12 files changed, 314 insertions(+) create mode 100644 universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/.hash create mode 100644 universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/BatterySys.aidl create mode 100644 universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/DisplaySys.aidl create mode 100644 universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IBatteryStats.aidl create mode 100644 universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IBoolCallback.aidl create mode 100644 universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IDisplayConfigs.aidl create mode 100644 universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IFlashBrightness.aidl create mode 100644 universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/ISmartCharge.aidl create mode 100644 universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/ISwapOnData.aidl diff --git a/universal7885-common/apps/aidl-support/parts/Android.bp b/universal7885-common/apps/aidl-support/parts/Android.bp index 4f1be52..a49e081 100644 --- a/universal7885-common/apps/aidl-support/parts/Android.bp +++ b/universal7885-common/apps/aidl-support/parts/Android.bp @@ -15,6 +15,11 @@ aidl_interface { version: "1", imports: [], }, + { + version: "2", + imports: [], + }, + ], } diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/.hash b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/.hash new file mode 100644 index 0000000..cba0f22 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/.hash @@ -0,0 +1 @@ +dad5105afc869ca8a3c4621e51c4e575b1425e0c diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/BatterySys.aidl b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/BatterySys.aidl new file mode 100644 index 0000000..ed1ad55 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/BatterySys.aidl @@ -0,0 +1,41 @@ +// Copyright (C) 2022 Eureka Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/////////////////////////////////////////////////////////////////////////////// +// 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.eureka.hardware.parts; +@Backing(type="int") @VintfStability +enum BatterySys { + CAPACITY_MAX = 0, + TEMP = 1, + CAPACITY_CURRENT = 2, + CURRENT = 3, + FASTCHARGE = 4, + CHARGE = 5, +} diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/DisplaySys.aidl b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/DisplaySys.aidl new file mode 100644 index 0000000..4a538cc --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/DisplaySys.aidl @@ -0,0 +1,37 @@ +// Copyright (C) 2022 Eureka Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/////////////////////////////////////////////////////////////////////////////// +// 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.eureka.hardware.parts; +@Backing(type="int") @VintfStability +enum DisplaySys { + DOUBLE_TAP = 0, + GLOVE_MODE = 1, +} diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IBatteryStats.aidl b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IBatteryStats.aidl new file mode 100644 index 0000000..c9a3e20 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IBatteryStats.aidl @@ -0,0 +1,37 @@ +// Copyright (C) 2022 Eureka Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/////////////////////////////////////////////////////////////////////////////// +// 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.eureka.hardware.parts; +@VintfStability +interface IBatteryStats { + int getBatteryStats(in vendor.eureka.hardware.parts.BatterySys stats); + oneway void setBatteryWritable(in vendor.eureka.hardware.parts.BatterySys stats, in boolean value); +} diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IBoolCallback.aidl b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IBoolCallback.aidl new file mode 100644 index 0000000..b0734b6 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IBoolCallback.aidl @@ -0,0 +1,36 @@ +// Copyright (C) 2022 Eureka Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/////////////////////////////////////////////////////////////////////////////// +// 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.eureka.hardware.parts; +@VintfStability +interface IBoolCallback { + void respondToBool(in boolean result); +} diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IDisplayConfigs.aidl b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IDisplayConfigs.aidl new file mode 100644 index 0000000..927944d --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IDisplayConfigs.aidl @@ -0,0 +1,37 @@ +// Copyright (C) 2022 Eureka Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/////////////////////////////////////////////////////////////////////////////// +// 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.eureka.hardware.parts; +@VintfStability +interface IDisplayConfigs { + oneway void writeDisplay(in boolean enable, in vendor.eureka.hardware.parts.DisplaySys type); + boolean readDisplay(in vendor.eureka.hardware.parts.DisplaySys type); +} diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IFlashBrightness.aidl b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IFlashBrightness.aidl new file mode 100644 index 0000000..125d695 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/IFlashBrightness.aidl @@ -0,0 +1,38 @@ +// Copyright (C) 2022 Eureka Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/////////////////////////////////////////////////////////////////////////////// +// 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.eureka.hardware.parts; +@VintfStability +interface IFlashBrightness { + int readFlashlightstats(in boolean s2mu106); + oneway void setFlashlightEnable(in boolean enable); + oneway void setFlashlightWritable(in int value); +} diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/ISmartCharge.aidl b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/ISmartCharge.aidl new file mode 100644 index 0000000..4c51f6e --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/ISmartCharge.aidl @@ -0,0 +1,40 @@ +// Copyright (C) 2022 Eureka Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/////////////////////////////////////////////////////////////////////////////// +// 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.eureka.hardware.parts; +@VintfStability +interface ISmartCharge { + int getLimitCnt(); + int getRestartCnt(); + oneway void setConfig(in int limit, in int restart); + oneway void start(); + oneway void stop(); +} diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/ISwapOnData.aidl b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/ISwapOnData.aidl new file mode 100644 index 0000000..8dc63ee --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/2/vendor/eureka/hardware/parts/ISwapOnData.aidl @@ -0,0 +1,40 @@ +// Copyright (C) 2022 Eureka Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/////////////////////////////////////////////////////////////////////////////// +// 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.eureka.hardware.parts; +@VintfStability +interface ISwapOnData { + boolean isMutexLocked(); + oneway void removeSwapFile(); + oneway void setSwapOff(); + oneway void setSwapOn(in vendor.eureka.hardware.parts.IBoolCallback cb); + oneway void makeSwapFile(in int size); +} diff --git a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/current/vendor/eureka/hardware/parts/IDisplayConfigs.aidl b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/current/vendor/eureka/hardware/parts/IDisplayConfigs.aidl index 5227b21..927944d 100644 --- a/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/current/vendor/eureka/hardware/parts/IDisplayConfigs.aidl +++ b/universal7885-common/apps/aidl-support/parts/aidl_api/vendor.eureka.hardware.parts/current/vendor/eureka/hardware/parts/IDisplayConfigs.aidl @@ -33,4 +33,5 @@ package vendor.eureka.hardware.parts; @VintfStability interface IDisplayConfigs { oneway void writeDisplay(in boolean enable, in vendor.eureka.hardware.parts.DisplaySys type); + boolean readDisplay(in vendor.eureka.hardware.parts.DisplaySys type); } diff --git a/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IDisplayConfigs.aidl b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IDisplayConfigs.aidl index d89b3ff..a934c2e 100644 --- a/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IDisplayConfigs.aidl +++ b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IDisplayConfigs.aidl @@ -19,4 +19,5 @@ import vendor.eureka.hardware.parts.DisplaySys; @VintfStability interface IDisplayConfigs { oneway void writeDisplay(in boolean enable, in DisplaySys type); + boolean readDisplay(in DisplaySys type); }