Add DeviceState to device state callback
The device state callback currently accepts only the `wm.DeviceStateController.DeviceState` enum as a parameter. However, the `hardware.devicestates.DeviceState` object is used extensively globally. This change adds the `hardware.devicestates.DeviceState` object to the device state callback's parameter list. This allows listeners to receive the `hardware.devicestates.DeviceState` object directly, instead of relying solely on the `wm.DeviceStateController.DeviceState` enum, which is limited to WM. This is necessary because `DeviceStateAutoRotateSettingController` will require device state updates as `hardware.devicestates.DeviceState.identifier` to align with incoming IPC calls, as the `wm.DeviceStateController.DeviceState` enum is not available across processes. Fixes: 407772602 Test: atest DeviceStateControllerTests DisplayContentTests DisplayRotationTests DeviceStateAutoRotateSettingControllerTest Flag: EXEMPT refactor Change-Id: Ie033caaf1bb810200689fa08db5c334f8c00f200
Loading
Please register or sign in to comment