summaryrefslogtreecommitdiff
path: root/tests/permission/src
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2016-12-08 18:58:50 -0800
committerWale Ogunwale <ogunwale@google.com>2016-12-12 15:09:03 -0800
commit72919d2c310db04fdb860e926ccb0bfe6e3aef08 (patch)
treeed6a621c4f23032516a822fc97816070113fa700 /tests/permission/src
parent00f9a1a4735f8ba6b40cee5294a034bd60b28df4 (diff)
Untangle creation of Task from addition of AppToken in WM.
Makes it easier to follow what is going on and also clean-up in preparation of stand way for AM to interact with containers in WM. Test: Existing tests pass and manual testing Change-Id: I91754b6d974dce2f696453cdaed175efb0f10c73
Diffstat (limited to 'tests/permission/src')
-rw-r--r--tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java5
1 files changed, 2 insertions, 3 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 7d6f32bd8f88..28a2cb399cd0 100644
--- a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
+++ b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
@@ -93,8 +93,7 @@ public class WindowManagerPermissionTests extends TestCase {
}
try {
- mWm.addAppToken(0, null, 0, 0, 0, false, false, 0, 0, false, false, null,
- Configuration.EMPTY, 0, false, false, 0, -1, false);
+ mWm.addAppToken(0, null, 0, 0, false, false, 0, false, false, false, 0, -1);
fail("IWindowManager.addAppToken did not throw SecurityException as"
+ " expected");
} catch (SecurityException e) {
@@ -104,7 +103,7 @@ public class WindowManagerPermissionTests extends TestCase {
}
try {
- mWm.setAppTask(null, 0, INVALID_STACK_ID, null, null, 0, false, false);
+ mWm.addAppToTask(null, 0);
fail("IWindowManager.setAppGroupId did not throw SecurityException as"
+ " expected");
} catch (SecurityException e) {