summaryrefslogtreecommitdiff
path: root/android-commands.h
diff options
context:
space:
mode:
authorGreg Bellows <greg.bellows@linaro.org>2014-11-11 15:18:12 -0600
committerGreg Bellows <greg.bellows@linaro.org>2014-11-19 15:27:27 -0600
commitc6c9a6ff7a9ffb4ee17d49c34262eb639392a550 (patch)
tree20ace29432eb5237bb31a7c83d5901b95ba636ae /android-commands.h
parent8c118ec6039db806d6f7dc38c879a482dd988ac8 (diff)
android-console: Add power capacity commandcons.mon.battery
Add the Android emulator console "power capacity" command along associated help messages. The "capacity" command allows the battery capacity of the device to be manipulated. Signed-off-by: Greg Bellows <greg.bellows@linaro.org> --- v1 -> v2 - Fix android_console_power_capacity indentation
Diffstat (limited to 'android-commands.h')
-rw-r--r--android-commands.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/android-commands.h b/android-commands.h
index bb3f783e4..62b181b9a 100644
--- a/android-commands.h
+++ b/android-commands.h
@@ -61,6 +61,13 @@ static mon_cmd_t android_power_cmds[] = {
.help = "set battery health state",
.mhandler.cmd = android_console_power_health,
},
+ {
+ .name = "capacity",
+ .args_type = "arg:s?",
+ .params = "",
+ .help = "set battery capacity state",
+ .mhandler.cmd = android_console_power_capacity,
+ },
{ NULL, NULL, },
};