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
This commit is contained in:
Bill Lin
2020-07-29 10:32:11 +08:00
parent bde58d21a3
commit a45d120a76

View File

@@ -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