diff options
| -rw-r--r-- | motorola_health/1.0/Android.bp | 15 | ||||
| -rw-r--r-- | motorola_health/1.0/IMotHealth.hal | 9 | ||||
| -rw-r--r-- | motorola_health/1.0/types.hal | 18 | ||||
| -rw-r--r-- | motorola_health/Android.bp | 5 |
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", +} |
