Merge "wm: call displayReady for all built in displays when system is ready."
This commit is contained in:
@@ -639,6 +639,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
final InputManagerService mInputManager;
|
final InputManagerService mInputManager;
|
||||||
final DisplayManagerInternal mDisplayManagerInternal;
|
final DisplayManagerInternal mDisplayManagerInternal;
|
||||||
final DisplayManager mDisplayManager;
|
final DisplayManager mDisplayManager;
|
||||||
|
final Display[] mDisplays;
|
||||||
|
|
||||||
// Who is holding the screen on.
|
// Who is holding the screen on.
|
||||||
Session mHoldingScreenOn;
|
Session mHoldingScreenOn;
|
||||||
@@ -851,8 +852,8 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
|
|
||||||
mFxSession = new SurfaceSession();
|
mFxSession = new SurfaceSession();
|
||||||
mDisplayManager = (DisplayManager)context.getSystemService(Context.DISPLAY_SERVICE);
|
mDisplayManager = (DisplayManager)context.getSystemService(Context.DISPLAY_SERVICE);
|
||||||
Display[] displays = mDisplayManager.getDisplays();
|
mDisplays = mDisplayManager.getDisplays();
|
||||||
for (Display display : displays) {
|
for (Display display : mDisplays) {
|
||||||
createDisplayContentLocked(display);
|
createDisplayContentLocked(display);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7599,7 +7600,9 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void displayReady() {
|
public void displayReady() {
|
||||||
displayReady(Display.DEFAULT_DISPLAY);
|
for (Display display : mDisplays) {
|
||||||
|
displayReady(display.getDisplayId());
|
||||||
|
}
|
||||||
|
|
||||||
synchronized(mWindowMap) {
|
synchronized(mWindowMap) {
|
||||||
final DisplayContent displayContent = getDefaultDisplayContentLocked();
|
final DisplayContent displayContent = getDefaultDisplayContentLocked();
|
||||||
|
|||||||
Reference in New Issue
Block a user