Encapsulate handling of IGNORED device-postures under one entity
Encapsulate handling of IGNORED device-postures under DeviceStateAutoRotateSetting class. DeviceStateAutoRotateSetting class has get and put methods to be able to access the settings. The get and put methods under the hood handles IGNORED states and resolves the IGNORED posture to the fallback ones. DeviceStateAutoRotateSetting to be used to exclusively represent device-state based auto-rotate setting instead of SparseIntArray. After this change, there wont be an instance where there is a partially resolved device-state based auto-rotate setting. Fixes: 427892786 Flag: com.android.window.flags.enable_device_state_auto_rotate_setting_refactor Test: atest DeviceStateAutoRotateSettingManagerImplTest DeviceStateAutoRotateSettingControllerTest Change-Id: I1a1d3cc774b5c91801e669bd8cab087d8061f46c
Loading
Please register or sign in to comment