54028c118f
In bridged mode, it needs the way to know connected client and info in each instance. Add callback onConnectedClientsChangedWithApInfo to provide the link between clients and info 1. onConnectedClientsChanged(SoftApInfo, List<WifiClient>) 2. onInfoChanged(List<SoftApInfo>) PS: This CL# also refactoring the callback in service side. Move to Manager side to handle it. Service side: onConnectedClientsOrInfoChanged, integrate 4 callbacks to one callback and pass all of the current infos to Manager. PS: Convert one callback to 4 callback in Manager side will in another CL#. Now only handle onConnectedClientsChanged in single AP mode to avoid block AOSP Setting/SystemUI usage. Manager side: (public systemApi) 1. onInfoChanged(SoftApInfo) 2. onInfoChanged(List<SoftApInfo>) 3. onConnectedClientsChanged(SoftApInfo, List<WifiClient>) 4. onConnectedClientsChanged(List<WifiClient>) 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 Test: FrameworksWifiApiTests Change-Id: I861ad4ece908ec98fd500b249906ee73fff0a72a