wifi: Update APIs usage
1. Remove getBands, allow the developer to iterate the
data themselves via getChannels (since the data is all there)
- it doesn't seem that it's useful on its own
2. @Deprecated the getBand/getChannel APIs that get the 0th value
- developers should be using the new APIs in order not to miss
the existence of multiple APs
3. Old onInfoChanged should be @Deprecated
4. Deprecate the old onConnectedClientsChanged
Bug: 179709753
Test: atest -c FrameworksWifiTests
Test: atest -c FrameworksWifiApiTests
Change-Id: I3ddf370371c89cc232d6f8abfd8597cc0d700d83
3 files changed