diff options
author | Wale Ogunwale <ogunwale@google.com> | 2015-12-02 19:46:29 -0800 |
---|---|---|
committer | Wale Ogunwale <ogunwale@google.com> | 2015-12-03 10:20:16 -0800 |
commit | 2998eef694f6e3bb348df98a6127890e71427381 (patch) | |
tree | 61a050d25d9a52699ec54801d2c6c7493fcfbdab /tests/permission | |
parent | 10ad84a17d7248488c1653bacc9f20d3a7193999 (diff) |
Set proper stack in WM when activity is moved to stack in AM
When an activity is moved to a stack using the
ActivityStack#moveActivityToStack API a new task is created to
hold the activity in the stack. However, when the new task is
created in the window manager side it uses the stack id of the
previous stack the activity was in. We now pass the stack to use
from activity manager to window manager.
Bug: 25987309
Bug: 25961636
Change-Id: Iecc71f6d9b3e70a8d88e134b42f7532ba5327bad
Diffstat (limited to 'tests/permission')
-rw-r--r-- | tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java index a390b0cab321..3c2659f6ab59 100644 --- a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java +++ b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java @@ -22,11 +22,10 @@ import android.os.RemoteException; import android.os.ServiceManager; import android.test.suitebuilder.annotation.SmallTest; import android.view.IWindowManager; -import android.view.KeyEvent; -import android.view.MotionEvent; - import junit.framework.TestCase; +import static android.app.ActivityManager.StackId.INVALID_STACK_ID; + /** * TODO: Remove this. This is only a placeholder, need to implement this. */ @@ -104,7 +103,7 @@ public class WindowManagerPermissionTests extends TestCase { } try { - mWm.setAppTask(null, 0, null, null); + mWm.setAppTask(null, 0, INVALID_STACK_ID, null, null); fail("IWindowManager.setAppGroupId did not throw SecurityException as" + " expected"); } catch (SecurityException e) { |