diff --git a/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/BatterySys.aidl b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/BatterySys.aidl new file mode 100644 index 0000000..0f68e54 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/BatterySys.aidl @@ -0,0 +1,25 @@ +// 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. + +package vendor.eureka.hardware.parts; + +@Backing(type="int") +enum BatterySys { + CAPACITY_MAX, + TEMP, + CAPACITY_CURRENT, + CURRENT, + FASTCHARGE, + CHARGE, +} diff --git a/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/DisplaySys.aidl b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/DisplaySys.aidl new file mode 100644 index 0000000..a2b151d --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/DisplaySys.aidl @@ -0,0 +1,21 @@ +// 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. + +package vendor.eureka.hardware.parts; + +@Backing(type="int") +enum DisplaySys { + DOUBLE_TAP, + GLOVE_MODE, +} diff --git a/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IBatteryStats.aidl b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IBatteryStats.aidl new file mode 100644 index 0000000..aa971a0 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IBatteryStats.aidl @@ -0,0 +1,24 @@ +// 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. + +package vendor.eureka.hardware.parts; + +import vendor.eureka.hardware.parts.BatterySys; +import vendor.eureka.hardware.parts.Status; + +interface IBatteryStats { + int getBatteryStats(in BatterySys stats); + + void setBatteryWritable(in BatterySys stats, in Status value); +} 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 new file mode 100644 index 0000000..8d9d0d3 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IDisplayConfigs.aidl @@ -0,0 +1,21 @@ +// 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. + +package vendor.eureka.hardware.parts; + +import vendor.eureka.hardware.parts.DisplaySys; + +interface IDisplayConfigs { + void writeDisplay(in boolean enable, in DisplaySys type); +} diff --git a/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IFlashBrightness.aidl b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IFlashBrightness.aidl new file mode 100644 index 0000000..f749427 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/IFlashBrightness.aidl @@ -0,0 +1,23 @@ +// 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. + +package vendor.eureka.hardware.parts; + +interface IFlashBrightness { + int readFlashlightstats(in boolean s2mu106); + + void setFlashlightEnable(in boolean enable); + + void setFlashlightWritable(in int value); +} diff --git a/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISmartCharge.aidl b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISmartCharge.aidl new file mode 100644 index 0000000..02a7536 --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISmartCharge.aidl @@ -0,0 +1,27 @@ +// 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. + +package vendor.eureka.hardware.parts; + +interface ISmartCharge { + int getLimitCnt(); + + int getRestartCnt(); + + void setConfig(in int limit, in int restart); + + void start(); + + void stop(); +} diff --git a/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISwapOnData.aidl b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISwapOnData.aidl new file mode 100644 index 0000000..a0635ce --- /dev/null +++ b/universal7885-common/apps/aidl-support/parts/vendor/eureka/hardware/parts/ISwapOnData.aidl @@ -0,0 +1,29 @@ +// 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. + +package vendor.eureka.hardware.parts; + +interface ISwapOnData { + boolean getSwapOnResult(); + + boolean isMutexLocked(); + + void removeSwapFile(); + + void setSwapOff(); + + void setSwapOn(); + + void setSwapSize(in int size); +}