From 7b9fa6ab011fcb087c0eea17b455ab08e7baab31 Mon Sep 17 00:00:00 2001 From: Greg Bellows Date: Tue, 11 Nov 2014 15:18:12 -0600 Subject: android-console: Add power capacity command 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 --- v2 -> v3 - Add missing "OK" messages --- android-commands.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'android-commands.h') diff --git a/android-commands.h b/android-commands.h index d11544d203..3e429456f8 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, }, }; -- cgit v1.2.3