diff options
author | Craig Mautner <cmautner@google.com> | 2013-04-16 15:55:52 -0700 |
---|---|---|
committer | Craig Mautner <cmautner@google.com> | 2013-04-16 18:55:07 -0700 |
commit | 4cd0c13f8f765118a24e31548c058b5029481bea (patch) | |
tree | 8892450b25dde3a958b33ce3eacb0ac468d80fbd /cmds/am | |
parent | 967212cb542e6eeb308678367b53381bff984c31 (diff) | |
download | frameworks_base-4cd0c13f8f765118a24e31548c058b5029481bea.zip frameworks_base-4cd0c13f8f765118a24e31548c058b5029481bea.tar.gz frameworks_base-4cd0c13f8f765118a24e31548c058b5029481bea.tar.bz2 |
Incremental repairs to side by side stacks.
- Add taskId parameter to createStack() so stacks are pre-populated
with a task.
- Keep track of stack access order in DisplayContent so getTasks
returns in MRU order.
- Set touchableRegion in InputMonitor so modal touching does not
extend beyond stack boundary.
- Fix stack merging so that deleting a stack results in a new
stack the size of the two children.
Change-Id: I62a6ba0a34f34dd7ec866b440bf04595379e19e8
Diffstat (limited to 'cmds/am')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index 5f5c337..95343f9 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -100,7 +100,7 @@ public class Am extends BaseCommand { " am to-intent-uri [INTENT]\n" + " am switch-user <USER_ID>\n" + " am stop-user <USER_ID>\n" + - " am stack create <RELATIVE_STACK_ID> <POSITION> <WEIGHT>\n" + + " am stack create <TASK_ID> <RELATIVE_STACK_ID> <POSITION> <WEIGHT>\n" + " am stack movetask <STACK_ID> <TASK_ID> [true|false]\n" + " am stack dump\n" + "\n" + @@ -186,6 +186,7 @@ public class Am extends BaseCommand { " code until a later explicit switch to it.\n" + "\n" + "am stack create: create a new stack relative to an existing one.\n" + + " <TASK_ID>: the task to populate the new stack with. Must exist.\n" + " <RELATIVE_STACK_ID>: existing stack's id.\n" + " <POSITION>: 0: to left of, 1: to right of, 2: above, 3: below\n" + " <WEIGHT>: float between 0.2 and 0.8 inclusive.\n" + @@ -1454,6 +1455,8 @@ public class Am extends BaseCommand { } private void runStackCreate() throws Exception { + String taskIdStr = nextArgRequired(); + int taskId = Integer.valueOf(taskIdStr); String relativeToStr = nextArgRequired(); int relativeTo = Integer.valueOf(relativeToStr); String positionStr = nextArgRequired(); @@ -1462,8 +1465,8 @@ public class Am extends BaseCommand { float weight = Float.valueOf(weightStr); try { - int stackId = mAm.createStack(relativeTo, position, weight); - System.out.println("createStack returned " + stackId + "\n\n"); + int stackId = mAm.createStack(taskId, relativeTo, position, weight); + System.out.println("createStack returned new stackId=" + stackId + "\n\n"); } catch (RemoteException e) { } } |