Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aeb9cea authored by Surbhi Kadam's avatar Surbhi Kadam Committed by Nishith Khanna
Browse files

Fix broken WmTests

- Adds missing import for PackageManager
- Reverts call to `newWindowBuilder`

Bug: 450088648
Test: atest WindowManagerServiceTests
Flag: EXEMPT TEST_ONLY
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:5714f42fb1a1ba2fc2c04d56bb979e07fe19b8b2
Merged-In: Ia7efae42741687c69804e5ff97e0f0a29a7b626c
Change-Id: Ia7efae42741687c69804e5ff97e0f0a29a7b626c
parent 2e1db134
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -507,7 +507,7 @@ public class WindowManagerServiceTests extends WindowTestsBase {
            int expectedChangedPrivateFlags, int expectedFlagsValue,
            int expectedPrivateFlagsValue, boolean internalSystemWindowGranted,
            boolean manageActivityTasksGranted) {
        final WindowState win = newWindowBuilder("appWin", TYPE_BASE_APPLICATION).build();
        final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, "appWin");
        win.mRelayoutCalled = !firstRelayout;
        mWm.mWindowMap.put(win.mClient.asBinder(), win);
        spyOn(mDisplayContent.mDwpcHelper);