Apply "most-recent" delivery policy to NETWORK_STATE_CHANGED_ACTION.
- The "set-defer-until-active" policy is applied so that the
broadcast targeted to apps in the Cached state is deferred until
they come out of that state.
- The "deliver-most-recent" policy is applied so that if there are
already pending broadcasts waiting to be delivered when a new
broadcast is sent, the old ones are discarded.
Bug: 255564382
Test: atest service/tests/wifitests/src/com/android/server/wifi/ClientModeImplTest.java
Test: atest
tests/tests/wifi/src/android/net/wifi/cts/WifiManagerTest.java
Change-Id: I77649c03d7f03fceb95eececdad21cd8993249a0
2 files changed