summaryrefslogtreecommitdiff
path: root/tests/permission
diff options
context:
space:
mode:
authorGarfield Tan <xutan@google.com>2018-12-11 14:04:42 -0800
committerGarfield Tan <xutan@google.com>2018-12-20 13:39:00 -0800
commit90b042819fdf2d5e76486e031febe0a732970bbc (patch)
treebe68002e6fa77e9af7114ca0e2876503610533a0 /tests/permission
parent5acec68de4f998c38e0e8cb31e280171c6c4cfcf (diff)
Move orientation request into hierarchy.
This CL also removes a hidden method in IWindowManager that's only used inside of WM right now. Also wire up Task level logic. Bug: 113252523 Test: Manual test that app requested orientation still rotates the display and WmTests. Change-Id: I7c5046e9beaea79de4ec471eabc792e3593583a2
Diffstat (limited to 'tests/permission')
-rw-r--r--tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java17
1 files changed, 3 insertions, 14 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 369a002fa273..4c2a984f8198 100644
--- a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
+++ b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
@@ -16,16 +16,16 @@
package com.android.framework.permission.tests;
-import android.content.res.Configuration;
+import static android.view.Display.DEFAULT_DISPLAY;
+
import android.os.Binder;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.UserHandle;
import android.test.suitebuilder.annotation.SmallTest;
import android.view.IWindowManager;
-import junit.framework.TestCase;
-import static android.view.Display.DEFAULT_DISPLAY;
+import junit.framework.TestCase;
/**
* TODO: Remove this. This is only a placeholder, need to implement this.
@@ -73,17 +73,6 @@ public class WindowManagerPermissionTests extends TestCase {
}
try {
- mWm.updateOrientationFromAppTokens(new Configuration(),
- null /* freezeThisOneIfNeeded */, DEFAULT_DISPLAY);
- fail("IWindowManager.updateOrientationFromAppTokens did not throw SecurityException as"
- + " expected");
- } catch (SecurityException e) {
- // expected
- } catch (RemoteException e) {
- fail("Unexpected remote exception");
- }
-
- try {
mWm.prepareAppTransition(0, false);
fail("IWindowManager.prepareAppTransition did not throw SecurityException as"
+ " expected");