From 8aafd3a81ba4ffe04bc36990d18df9f2b8623743 Mon Sep 17 00:00:00 2001 From: Filip Gruszczynski Date: Sat, 26 Sep 2015 15:40:58 -0700 Subject: Refactoring: Delete AppWindowToken.willBeHidden field. The only time AppWindowToken.willBeHidden is used is for determining if the app should contribute to calculating orientation. In the same check AppWindowToken.hiddenRequested will be or-ed with willBeHiden, so it's enough that hiddenRequested to be set. The only place where willBeHidden is set, is right before WMS.setAppVisibility is called, which will set hiddenRequested. Because of this willBeHidden is unnecessary. Change-Id: Iea35f39f72e7f0dcd76205ef580f3a74cac72d08 --- .../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 95f676e08895..0f959ea0f921 100644 --- a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java +++ b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java @@ -174,16 +174,6 @@ public class WindowManagerPermissionTests extends TestCase { fail("Unexpected remote exception"); } - try { - mWm.setAppWillBeHidden(null); - fail("IWindowManager.setAppWillBeHidden did not throw SecurityException as" - + " expected"); - } catch (SecurityException e) { - // expected - } catch (RemoteException e) { - fail("Unexpected remote exception"); - } - try { mWm.setAppVisibility(null, false); fail("IWindowManager.setAppVisibility did not throw SecurityException as" -- cgit v1.2.3-59-g8ed1b