summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2022-01-14 19:12:48 +0000
committerBruno Martins <bgcngm@gmail.com>2022-01-30 22:33:55 +0100
commit7a34d0b8a45837149f1670c9e1f05ea5e1066574 (patch)
tree39a87889808d32309b7e37a077e4195cf2abeade
parent4544a284a6687013d7f1ee70e3be048ae274f6e3 (diff)
power: Deprecate lineage power HAL
Change-Id: Id8f7bd48e61ecb347ac709b8eaf706ac87b298aa
-rw-r--r--power/aidl/Android.bp28
-rw-r--r--power/aidl/aidl_api/vendor.lineage.power/1/.hash1
-rw-r--r--power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/Boost.aidl23
-rw-r--r--power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/Feature.aidl22
-rw-r--r--power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/IPower.aidl23
-rw-r--r--power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/Boost.aidl23
-rw-r--r--power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/Feature.aidl22
-rw-r--r--power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/IPower.aidl23
-rw-r--r--power/aidl/vendor/lineage/power/Boost.aidl32
-rw-r--r--power/aidl/vendor/lineage/power/Feature.aidl23
-rw-r--r--power/aidl/vendor/lineage/power/IPower.aidl49
11 files changed, 0 insertions, 269 deletions
diff --git a/power/aidl/Android.bp b/power/aidl/Android.bp
deleted file mode 100644
index 5a1ccd4..0000000
--- a/power/aidl/Android.bp
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (C) 2021 The LineageOS Project
-//
-// 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.
-
-aidl_interface {
- name: "vendor.lineage.power",
- vendor_available: true,
- srcs: [
- "vendor/lineage/power/*.aidl",
- ],
- stability: "vintf",
- backend: {
- java: {
- platform_apis: true,
- },
- },
- versions: ["1"],
-}
diff --git a/power/aidl/aidl_api/vendor.lineage.power/1/.hash b/power/aidl/aidl_api/vendor.lineage.power/1/.hash
deleted file mode 100644
index da504ae..0000000
--- a/power/aidl/aidl_api/vendor.lineage.power/1/.hash
+++ /dev/null
@@ -1 +0,0 @@
-ace4a945480ce17f280ee29ea1201d1c999bf1e3
diff --git a/power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/Boost.aidl b/power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/Boost.aidl
deleted file mode 100644
index 0708042..0000000
--- a/power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/Boost.aidl
+++ /dev/null
@@ -1,23 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////
-// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
-///////////////////////////////////////////////////////////////////////////////
-
-// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
-// edit this file. It looks like you are doing that because you have modified
-// an AIDL interface in a backward-incompatible way, e.g., deleting a function
-// from an interface or a field from a parcelable and it broke the build. That
-// breakage is intended.
-//
-// You must not make a backward incompatible changes to the AIDL files 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.lineage.power;
-@Backing(type="int") @VintfStability
-enum Boost {
- CPU_BOOST = 0,
- SET_PROFILE = 1,
-}
diff --git a/power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/Feature.aidl b/power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/Feature.aidl
deleted file mode 100644
index a781a81..0000000
--- a/power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/Feature.aidl
+++ /dev/null
@@ -1,22 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////
-// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
-///////////////////////////////////////////////////////////////////////////////
-
-// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
-// edit this file. It looks like you are doing that because you have modified
-// an AIDL interface in a backward-incompatible way, e.g., deleting a function
-// from an interface or a field from a parcelable and it broke the build. That
-// breakage is intended.
-//
-// You must not make a backward incompatible changes to the AIDL files 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.lineage.power;
-@Backing(type="int") @VintfStability
-enum Feature {
- SUPPORTED_PROFILES = 0,
-}
diff --git a/power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/IPower.aidl b/power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/IPower.aidl
deleted file mode 100644
index 2da7dfc..0000000
--- a/power/aidl/aidl_api/vendor.lineage.power/1/vendor/lineage/power/IPower.aidl
+++ /dev/null
@@ -1,23 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////
-// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
-///////////////////////////////////////////////////////////////////////////////
-
-// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
-// edit this file. It looks like you are doing that because you have modified
-// an AIDL interface in a backward-incompatible way, e.g., deleting a function
-// from an interface or a field from a parcelable and it broke the build. That
-// breakage is intended.
-//
-// You must not make a backward incompatible changes to the AIDL files 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.lineage.power;
-@VintfStability
-interface IPower {
- int getFeature(in vendor.lineage.power.Feature feature);
- oneway void setBoost(in vendor.lineage.power.Boost type, in int durationMs);
-}
diff --git a/power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/Boost.aidl b/power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/Boost.aidl
deleted file mode 100644
index 0708042..0000000
--- a/power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/Boost.aidl
+++ /dev/null
@@ -1,23 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////
-// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
-///////////////////////////////////////////////////////////////////////////////
-
-// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
-// edit this file. It looks like you are doing that because you have modified
-// an AIDL interface in a backward-incompatible way, e.g., deleting a function
-// from an interface or a field from a parcelable and it broke the build. That
-// breakage is intended.
-//
-// You must not make a backward incompatible changes to the AIDL files 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.lineage.power;
-@Backing(type="int") @VintfStability
-enum Boost {
- CPU_BOOST = 0,
- SET_PROFILE = 1,
-}
diff --git a/power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/Feature.aidl b/power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/Feature.aidl
deleted file mode 100644
index a781a81..0000000
--- a/power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/Feature.aidl
+++ /dev/null
@@ -1,22 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////
-// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
-///////////////////////////////////////////////////////////////////////////////
-
-// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
-// edit this file. It looks like you are doing that because you have modified
-// an AIDL interface in a backward-incompatible way, e.g., deleting a function
-// from an interface or a field from a parcelable and it broke the build. That
-// breakage is intended.
-//
-// You must not make a backward incompatible changes to the AIDL files 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.lineage.power;
-@Backing(type="int") @VintfStability
-enum Feature {
- SUPPORTED_PROFILES = 0,
-}
diff --git a/power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/IPower.aidl b/power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/IPower.aidl
deleted file mode 100644
index 2da7dfc..0000000
--- a/power/aidl/aidl_api/vendor.lineage.power/current/vendor/lineage/power/IPower.aidl
+++ /dev/null
@@ -1,23 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////
-// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
-///////////////////////////////////////////////////////////////////////////////
-
-// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
-// edit this file. It looks like you are doing that because you have modified
-// an AIDL interface in a backward-incompatible way, e.g., deleting a function
-// from an interface or a field from a parcelable and it broke the build. That
-// breakage is intended.
-//
-// You must not make a backward incompatible changes to the AIDL files 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.lineage.power;
-@VintfStability
-interface IPower {
- int getFeature(in vendor.lineage.power.Feature feature);
- oneway void setBoost(in vendor.lineage.power.Boost type, in int durationMs);
-}
diff --git a/power/aidl/vendor/lineage/power/Boost.aidl b/power/aidl/vendor/lineage/power/Boost.aidl
deleted file mode 100644
index 0089747..0000000
--- a/power/aidl/vendor/lineage/power/Boost.aidl
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2021 The LineageOS Project
- *
- * 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.lineage.power;
-
-/**
- * Power hint identifiers passed to setBoost()
- */
-@VintfStability
-@Backing(type="int")
-enum Boost {
- /**
- * An operation is happening where it would be ideal for the CPU to
- * be boosted for a specific duration. The data parameter is an
- * integer value of the boost duration in microseconds.
- */
- CPU_BOOST,
- SET_PROFILE,
-}
diff --git a/power/aidl/vendor/lineage/power/Feature.aidl b/power/aidl/vendor/lineage/power/Feature.aidl
deleted file mode 100644
index a31cccf..0000000
--- a/power/aidl/vendor/lineage/power/Feature.aidl
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright (C) 2021 The LineageOS Project
- *
- * 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.lineage.power;
-
-@VintfStability
-@Backing(type="int")
-enum Feature {
- SUPPORTED_PROFILES,
-}
diff --git a/power/aidl/vendor/lineage/power/IPower.aidl b/power/aidl/vendor/lineage/power/IPower.aidl
deleted file mode 100644
index 7facc13..0000000
--- a/power/aidl/vendor/lineage/power/IPower.aidl
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (C) 2021 The LineageOS Project
- *
- * 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.lineage.power;
-
-import vendor.lineage.power.Boost;
-import vendor.lineage.power.Feature;
-
-@VintfStability
-interface IPower {
- // Adding return type to method instead of out param int value since there is only one return value.
- /**
- * getFeature() is called to get the current value of a particular
- * feature or capability from the hardware or PowerHAL
- *
- * @return the state of power states the device supports
- * @param feature Feature which needs to get
- */
- int getFeature(in Feature feature);
-
- /**
- * setBoost() indicates the device may need to boost some resources, as the
- * the load is likely to increase before the kernel governors can react.
- * Depending on the boost, it may be appropriate to raise the frequencies of
- * CPU, GPU, memory subsystem, or stop CPU from going into deep sleep state.
- * A particular platform may choose to ignore this hint.
- *
- * @param type Boost type which is to be set with a timeout.
- * @param durationMs The expected duration of the user's interaction, if
- * known, or 0 if the expected duration is unknown.
- * a negative value indicates canceling previous boost.
- * A given platform can choose to boost some time based on durationMs,
- * and may also pick an appropriate timeout for 0 case.
- */
- oneway void setBoost(in Boost type, in int durationMs);
-}