Consolidate the update of display orientation and configuration

Also prevent potential NPE by removing
WMS.updateOrientationFromAppTokensLocked which doesn't check
whether the display is valid.

Bug: 118685343
Test: atest ActivityManagerMultiDisplayTests

Change-Id: I142b37acb4f7e04dc9386f67ca24fc32fe2d81b9
5 files changed