Add tests for refactored corruption handling logic

Add testcases to cover the new refactored corruption handling logic.
TLDR on the logic: When setting is corrupted the behaviour of original and refactored implementation differ:
- Original impl: rewrite the device_state_rotation_lock with default specified in config
- Refactored impl: rewrite the device_state_rotation_lock with default specified in config while also respecting current ACCELEROMETER_ROTATION setting value

Test: atest FoldableAutoRotationDefaults
Fixes: 422744403
Flag: TEST_ONLY
Change-Id: I6a69fa7bdb1b182131c02889f1096f990b943a52
1 file changed