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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user