summaryrefslogtreecommitdiff
path: root/tests/permission/src
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-05-04 18:36:26 +0800
committer Riddle Hsu <riddlehsu@google.com> 2022-05-04 22:53:17 +0800
commit4bf606c57867a1c571e893f913708d67fbc15fcf (patch)
tree9fb6e00672934697a802cb323c908aa88dae0821 /tests/permission/src
parent923e43dc704a2f62c9d016ae40a61cbe2ae1dbca (diff)
Move some IWindowManager methods to internal interface
The methods are only used in system server. It is unnecessary to declare in aidl. This also eliminates the confusion of missing permission check for updateRotation(). Bug: 230863943 Test: atest WindowManagerPermissionTests Change-Id: I703830650bab3a792982cada99aa1512430658a4
Diffstat (limited to 'tests/permission/src')
-rw-r--r--tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java10
1 files changed, 0 insertions, 10 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 1fe13fe97fbe..06cbeb5368a5 100644
--- a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
+++ b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
@@ -124,16 +124,6 @@ public class WindowManagerPermissionTests extends TestCase {
@SmallTest
public void testSET_ORIENTATION() {
try {
- mWm.updateRotation(true, false);
- fail("IWindowManager.updateRotation did not throw SecurityException as"
- + " expected");
- } catch (SecurityException e) {
- // expected
- } catch (RemoteException e) {
- fail("Unexpected remote exception");
- }
-
- try {
mWm.freezeRotation(-1);
fail("IWindowManager.freezeRotation did not throw SecurityException as"
+ " expected");