Skip forwardInset with adjustResize test for IME insets

IME Insets are handled on the client for ADJUST_RESIZE in the new insets world, test
should be skipped.
Bug: 111084606
Test: atest DisplayPolicyLayoutTests

Change-Id: Ifa0fd69f0e77143b8011c9ae37c2436764a6e162
This commit is contained in:
Tarandeep Singh
2020-01-06 16:48:46 -08:00
committed by Taran Singh
parent 29684009e9
commit 24f04668de

View File

@@ -594,6 +594,8 @@ public class DisplayPolicyLayoutTests extends DisplayPolicyTestsBase {
@Test
public void layoutWindowLw_withForwardInset_SoftInputAdjustResize() {
assumeTrue(ViewRootImpl.sNewInsetsMode == ViewRootImpl.NEW_INSETS_MODE_NONE);
mWindow.mAttrs.flags =
FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_INSET_DECOR | FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS;
mWindow.mAttrs.softInputMode = SOFT_INPUT_ADJUST_RESIZE;