summaryrefslogtreecommitdiff
path: root/cmds/am
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2016-01-27 09:12:31 -0800
committerWale Ogunwale <ogunwale@google.com>2016-01-29 07:44:33 -0800
commitb1faf60b896afe235175354ffd90290ff93a54b4 (patch)
treecc016283d3a1355784e79fa710a2c6ae8b64cfbd /cmds/am
parent8ab1a37b767113357e77787d5fe2ba423d16ae3a (diff)
Use resizeMode integer instead of resizeable boolean.
Changes activity manager and window manager to use resizeMode as defined by ActivityInfo#resizeMode instead of a boolean. Bug: 26774816 Change-Id: I8cef46d9fba6bfdd21df7da63ed5d5330ad03d4b
Diffstat (limited to 'cmds/am')
-rw-r--r--cmds/am/src/com/android/commands/am/Am.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java
index d45bc5dc8789..ba93b2a2cafe 100644
--- a/cmds/am/src/com/android/commands/am/Am.java
+++ b/cmds/am/src/com/android/commands/am/Am.java
@@ -166,7 +166,7 @@ public class Am extends BaseCommand {
" am stack info <STACK_ID>\n" +
" am task lock <TASK_ID>\n" +
" am task lock stop\n" +
- " am task resizeable <TASK_ID> [true|false]\n" +
+ " am task resizeable <TASK_ID> [0 (unresizeable) | 1 (crop_windows) | 2 (resizeable) | 3 (resizeable_and_pipable)]\n" +
" am task resize <TASK_ID> <LEFT,TOP,RIGHT,BOTTOM>\n" +
" am task drag-task-test <TASK_ID> <STEP_SIZE> [DELAY_MS] \n" +
" am task size-task-test <TASK_ID> <STEP_SIZE> [DELAY_MS] \n" +
@@ -323,7 +323,8 @@ public class Am extends BaseCommand {
"\n" +
"am task lock stop: end the current task lock.\n" +
"\n" +
- "am task resizeable: change if <TASK_ID> is resizeable (true) or not (false).\n" +
+ "am task resizeable: change resizeable mode of <TASK_ID>.\n" +
+ " 0 (unresizeable) | 1 (crop_windows) | 2 (resizeable) | 3 (resizeable_and_pipable)\n" +
"\n" +
"am task resize: makes sure <TASK_ID> is in a stack with the specified bounds.\n" +
" Forces the task to be resizeable and creates a stack if no existing stack\n" +
@@ -1985,10 +1986,10 @@ public class Am extends BaseCommand {
final String taskIdStr = nextArgRequired();
final int taskId = Integer.valueOf(taskIdStr);
final String resizeableStr = nextArgRequired();
- final boolean resizeable = Boolean.valueOf(resizeableStr);
+ final int resizeableMode = Integer.valueOf(resizeableStr);
try {
- mAm.setTaskResizeable(taskId, resizeable);
+ mAm.setTaskResizeable(taskId, resizeableMode);
} catch (RemoteException e) {
}
}