Add support for device state based auto-rotation preferences in Settings.

1 - Adds a method that returns a list of settable device states
2 - Adds testing support for resetting state

Test: Unit tests - DeviceStateRotationLockSettingsManagerTest
Bug: 195757480
Change-Id: I00b94c15c77789147f8982e4d32839b5685dc031
2 files changed