diff options
author | Darryl L Johnson <darryljohnson@google.com> | 2021-03-08 08:38:57 -0800 |
---|---|---|
committer | Darryl L Johnson <darryljohnson@google.com> | 2021-03-08 18:02:57 -0800 |
commit | 090b0afb1b14e26055385681998988dbbbc54a0e (patch) | |
tree | 4dae05e88fc1ca448818efbbae7fd984ffe988b3 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 5efdaa632b3a718e01f70b8237f2182f63a2922a (diff) |
Don't report device state until hardware state is known.
The previous implementation of DeviceStateProviderImpl would report the
current device state as soon as a listener was registered leading to a
series of device state changes on boot as the state of the hardware
becomes known. This changes the implementation to await callbacks before
notifying the listener of a change in device state.
Fixes: 181671216
Test: atest DeviceStateProviderImplTest
Test: atest DeviceStateManagerServiceTest
Test: atest DeviceStateManagerGlobalTest
Change-Id: I3f133b6d7135b829b79c9f225ae52c71061faa3e
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions