summaryrefslogtreecommitdiff
path: root/android-commands.h
diff options
context:
space:
mode:
authorGreg Bellows <greg.bellows@linaro.org>2014-11-11 15:06:41 -0600
committerGreg Bellows <greg.bellows@linaro.org>2014-11-19 15:27:27 -0600
commit6285c3d45ef24257ef9381e3d563e5f305c566a9 (patch)
treed66853af9295da0fc60ccc0a982e8fb0f9914862 /android-commands.h
parent06de614caf3a83b48919b0676f4ad0ef85d9d7f7 (diff)
android-console: Add power status command
Add the Android emulator console "power status" command and associated help messages. The "status" command allows the battery status of the device to be manipulated. Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
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 674e25991..53f89b107 100644
--- a/android-commands.h
+++ b/android-commands.h
@@ -40,6 +40,13 @@ static mon_cmd_t android_power_cmds[] = {
.help = "set AC charging state",
.mhandler.cmd = android_console_power_ac,
},
+ {
+ .name = "status",
+ .args_type = "arg:s?",
+ .params = "",
+ .help = "set battery status",
+ .mhandler.cmd = android_console_power_status,
+ },
{ NULL, NULL, },
};