Loading
Change default display when lid closed
When the lid closed device state is set, find a secondary display that can be the default display and create a layout where this display is enabled and the internal display is disabled. If the default display is removed, find another secondary display. If it can't be found, go back to the default layout. Bug: 400351704 Test: DeviceStateToLayoutMapTest, DisplayManagerServiceTest, DisplayTopologyCoordinatorTest, LogicalDisplayMapperTest Flag: com.android.server.display.feature.flags.change_default_display_lid_closed Change-Id: Ib9c39ecc0917257bc2717e9b5981d084fb5df481