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

Commit a45d120a authored by Bill Lin's avatar Bill Lin
Browse files

Migrate wm package in sysui to WM shell lib - CarSystemUITest(4-1/n)

Context:
Seperate display listener registration out of constructor to prevent
cirsular initialize problem. Use builder to make sure
DisplayImeController and DisplaySystemBarsController will be initialized
properly.

Refeine DisplaySystemBarsControllerTest to factory pattern

Fix: 161963879
Bug: 161655636
Test: make CarSystemUI
Test: atest DisplaySystemBarsControllerTest
Change-Id: I756c4925c576700e6c262a2ecc8f36164ad6361e
parent bde58d21
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -64,13 +64,13 @@ public class DisplaySystemBarsControllerTest extends SysuiTestCase {
    public void setUp() {
        MockitoAnnotations.initMocks(this);

        mController = new DisplaySystemBarsController(
        mController = new DisplaySystemBarsController.Builder(
                mContext,
                mIWindowManager,
                mDisplayController,
                mHandler,
                mTransactionPool
        );
        ).build();
    }

    @Test