summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVachounet <vachounet@live.fr>2019-04-16 10:02:43 +0200
committermarcost2 <marcostolcachir@gmail.com>2021-02-27 14:14:47 -0300
commit7807de1acc5f425aba6c7e0afcec6d0c593518f8 (patch)
treebb996b3b072388965cb1dd7e07ecf61abfab7cb1
parentb0e2b001597a9354014dbf9da44a73a427d2f94e (diff)
Import Motorola Health HALq10.0
* This support Mod battery levels along with mod efficiency mode. Change-Id: I4b4e88683ad6ce89ffc75a0aed951c31ec96fab4
-rw-r--r--motorola_health/1.0/Android.bp15
-rw-r--r--motorola_health/1.0/IMotHealth.hal9
-rw-r--r--motorola_health/1.0/types.hal18
-rw-r--r--motorola_health/Android.bp5
4 files changed, 47 insertions, 0 deletions
diff --git a/motorola_health/1.0/Android.bp b/motorola_health/1.0/Android.bp
new file mode 100644
index 0000000..8d41aba
--- /dev/null
+++ b/motorola_health/1.0/Android.bp
@@ -0,0 +1,15 @@
+// This file is autogenerated by hidl-gen -Landroidbp.
+
+hidl_interface {
+ name: "motorola.hardware.health@1.0",
+ root: "motorola.hardware.health",
+ srcs: [
+ "types.hal",
+ "IMotHealth.hal",
+ ],
+ interfaces: [
+ "android.hidl.base@1.0",
+ ],
+ gen_java: true,
+ gen_java_constants: true,
+}
diff --git a/motorola_health/1.0/IMotHealth.hal b/motorola_health/1.0/IMotHealth.hal
new file mode 100644
index 0000000..12002ee
--- /dev/null
+++ b/motorola_health/1.0/IMotHealth.hal
@@ -0,0 +1,9 @@
+package motorola.hardware.health@1.0;
+
+import motorola.hardware.health@1.0::types;
+
+interface IMotHealth {
+ getModChargeFull() generates (int32_t value);
+ getBatteryChargeFull() generates (int32_t value);
+ getModBatteryProperties() generates (BatteryProperties props);
+};
diff --git a/motorola_health/1.0/types.hal b/motorola_health/1.0/types.hal
new file mode 100644
index 0000000..17d1ad7
--- /dev/null
+++ b/motorola_health/1.0/types.hal
@@ -0,0 +1,18 @@
+package motorola.hardware.health@1.0;
+
+struct BatteryProperties {
+ int32_t modLevel;
+ int32_t modStatus;
+ int32_t modFlag;
+ int32_t modType;
+ int32_t modPowerSource;
+ int32_t batteryLevel;
+};
+
+@export(name="", value_prefix="POWER_SUPPLY_MOD_TYPE_")
+enum PowerSupplyModType : int32_t {
+ POWER_SUPPLY_MOD_TYPE_UNKNOWN = 0,
+ POWER_SUPPLY_MOD_TYPE_REMOTE = 1,
+ POWER_SUPPLY_MOD_TYPE_SUPPLEMENTAL = 2,
+ POWER_SUPPLY_MOD_TYPE_EMERGENCY = 3,
+};
diff --git a/motorola_health/Android.bp b/motorola_health/Android.bp
new file mode 100644
index 0000000..b615486
--- /dev/null
+++ b/motorola_health/Android.bp
@@ -0,0 +1,5 @@
+// This file is autogenerated by hidl-gen -Landroidbp.
+
+hidl_package_root {
+ name: "motorola.hardware.health",
+}