Refactor ATMS and WMS methods
Moved updateDisplayOverrideConfiguration updateDisplayOverrideConfigurationLocked, and performDisplayOverrideConfigUpdate from ATMS to ActivityDisplay because all calls to these methods have a reference to either a DisplayContent or ActivityDisplay, so it is better that the methods are called directly rather than going through a service that uses displayId to get access to an object it already could have had access to. Similarly, sendNewConfiguration has been moved from WindowManagerService to DisplayContent. These changes are necessary for situations where methods in ATMS and WMS want to process ActivityDisplay and DisplayContent objects before they are added to either hierarchy. These situations will arise when sending new configurations happens synchronously as opposed to posting to a handler (as is the current situation with DisplayContent#sendNewConfiguration). Bug: 130807132 Test: go/wm-smoke Change-Id: Ie2bd6c32b2adc2c4c5d585e361defd6c98652f01
Loading
Please register or sign in to comment