diff options
author | Filip Gruszczynski <gruszczy@google.com> | 2015-09-26 15:40:58 -0700 |
---|---|---|
committer | Filip Gruszczynski <gruszczy@google.com> | 2015-09-26 15:40:58 -0700 |
commit | 8aafd3a81ba4ffe04bc36990d18df9f2b8623743 (patch) | |
tree | 93f0e98fcfdbe94d2427eff805a4b689b39ba2ef /tests/permission/src | |
parent | 5e65d1a9918fd6dbc60f0a073ca21af61a565f96 (diff) |
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
Diffstat (limited to 'tests/permission/src')
-rw-r--r-- | tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java | 10 |
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 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 @@ -175,16 +175,6 @@ public class WindowManagerPermissionTests extends TestCase { } 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" + " expected"); |