Loading services/tests/wmtests/src/com/android/server/wm/DisplayPolicyInsetsTests.java +10 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ import android.view.DisplayInfo; import androidx.test.filters.SmallTest; import com.android.window.flags.Flags; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ErrorCollector; Loading Loading @@ -142,12 +144,20 @@ public class DisplayPolicyInsetsTests extends DisplayPolicyTestsBase { private void verifyStableInsets(DisplayInfo di, int left, int top, int right, int bottom) { if (Flags.insetsDecoupledConfiguration()) { // TODO: update the verification to match the new behavior. return; } mErrorCollector.checkThat("stableInsets", getStableInsets(di), equalTo(new Rect(left, top, right, bottom))); } private void verifyNonDecorInsets(DisplayInfo di, int left, int top, int right, int bottom) { if (Flags.insetsDecoupledConfiguration()) { // TODO: update the verification to match the new behavior. return; } mErrorCollector.checkThat("nonDecorInsets", getNonDecorInsets(di), equalTo(new Rect(left, top, right, bottom))); } Loading Loading
services/tests/wmtests/src/com/android/server/wm/DisplayPolicyInsetsTests.java +10 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ import android.view.DisplayInfo; import androidx.test.filters.SmallTest; import com.android.window.flags.Flags; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ErrorCollector; Loading Loading @@ -142,12 +144,20 @@ public class DisplayPolicyInsetsTests extends DisplayPolicyTestsBase { private void verifyStableInsets(DisplayInfo di, int left, int top, int right, int bottom) { if (Flags.insetsDecoupledConfiguration()) { // TODO: update the verification to match the new behavior. return; } mErrorCollector.checkThat("stableInsets", getStableInsets(di), equalTo(new Rect(left, top, right, bottom))); } private void verifyNonDecorInsets(DisplayInfo di, int left, int top, int right, int bottom) { if (Flags.insetsDecoupledConfiguration()) { // TODO: update the verification to match the new behavior. return; } mErrorCollector.checkThat("nonDecorInsets", getNonDecorInsets(di), equalTo(new Rect(left, top, right, bottom))); } Loading