wifi: Add callback onConnectedClientsOrInfoChanged handling
Now service will only send onConnectedClientsOrInfoChanged to Manager
side. Add callback handling to dispatch correct callback base on below
scenarios.
1. onInfoChanged(SoftApInfo) will send when a. registration (non bridged) b. non
bridged and info changed
2. onInfoChanged(List) will send when a. registration b. info changed
3. onConnectedClientsChanged(List<WifiClient>) will send a. registration b. clients changed
4. onConnectedClientsChanged(SoftApInfo, List<WifiClient>) will send
a. when registration and client connected b. client changed on specific
instance. It will also need to handle when info changed(dismisssed), it
means that an instance shutdown. It needs to send empty list if previous
instance has client connected.
AP+AP Part 6 includes:
Support dual SoftApInfo callback
a. New callback onInfoChanged(List<SoftApInfo>) &
onConnectedClientsChanged(SoftApInfo, List<WifiClient>)
b. Callback refactoring
c. Support shutdown idle instance in bridged mode
Bug: 162686273
Bug: 175351193
Test: FrameworksWifiApiTests
Test: Manual Test, check the log and check SystemUI to confirm clients
update correctly.
Change-Id: Id587125edbb1167f58bba6b50a708be12888490f
2 files changed