Add callbacks for change in supported device states and non-override
state. This: 1. Renames DeviceStateListener to DeviceStateCallback as there is more than one method in the callback. 2. Adds a callback to DeviceStateCallback to notify clients about a change in supported device states. 3. Adds a callback to DeviceStateCallback to notify clients about a change in non-override state (the state of the device without considering override requests). 4. Restructures the IDeviceStateManager callback interface to return a DeviceStateInfo object on successful registration of the callback instead of triggering callbacks after registation. This simplifies the callback code paths. Bug: 159401801 Bug: 154038218 Fixes: 179291575 Test: atest DeviceStateManagerServiceTest Test: atest DeviceStateManagerGlobalTest Test: atest DeviceStateInfoTest Change-Id: I42841de3e19ec0161a8c7b18c5baac0f2c2548bf
Loading
Please register or sign in to comment