commit | ced7d76ee0cdd2f3a15be8c1cfd65e46df659c79 | [log] [tgz] |
---|---|---|
author | Sudheer Shanka <sudheersai@google.com> | Tue Nov 29 17:37:34 2022 -0800 |
committer | Sudheer Shanka <sudheersai@google.com> | Tue Nov 29 17:37:34 2022 -0800 |
tree | 3d77b9d450025a1fe5ca0b3ca7ff888c990fd610 | |
parent | 90cef8f47366e74bd3888835b21000e3f13e86ab [diff] |
Apply "most-recent" delivery policy to certain broadcasts. Applying the policy to DEVICE_IDLE_MODE_CHANGED and LIGHT_DEVICE_IDLE_MODE_CHANGED broadcasts so that when dispatching these broadcasts, we can discard any older broadcasts waiting to be delivered and deliver only the most recent to the receivers. Bug: 256597171 Bug: 256597397 Test: atest ./tests/tests/batterysaving/src/android/os/cts/deviceidle/DeviceIdleTest.java Change-Id: Icfade7cd207d525d29856bb050ca4377085dbbc1