From 4bf606c57867a1c571e893f913708d67fbc15fcf Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Wed, 4 May 2022 18:36:26 +0800 Subject: 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 --- .../permission/tests/WindowManagerPermissionTests.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests/permission/src') 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 @@ -123,16 +123,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" -- cgit v1.2.3-59-g8ed1b