Creates DeviceState objects with display properties

DeviceStateManagerGlobal can create DeviceState objects
to support the updated DeviceState based DeviceStateManager
API's. The objects created provide support for the
foldable display configuration properties.

Also updates FoldStateListener to use the new DeviceState API

Bug: 293636629
Test: DeviceStateManagerTests

Revert of a revert originally due to b/325379002

52ce1c600221f4354fa1cb7fc27a092969c5bd82

Change-Id: Ie49f684eeae48b3347fced25b1257608e0e704ae
2 files changed