Migrate to packages/modules/Wifi. This CL will be presubmit tested
once migration is complete. This CL drops the code from
frameworks/base/wifi and migrated to packages/modules/Wifi.
Also adjusts visibility rules in frameworks/base/Android.bp
Bug: 137323948
Test: TH
Change-Id: Id02e28648e922a30d6a81cf92b39eff4ca3cc002
This is needed for connectivity to compare TransportInfo instances.
Bug: 162602799
Test: atest android.net.wifi
Change-Id: I215b769339f68b76a1b2fa15f66c4527d184b696
Merged-In: I215b769339f68b76a1b2fa15f66c4527d184b696
Also, deprecate WifiManager.getConnectionInfo() and add a note to
help apps to migrate. The deprecation is purely cosmetic, no plans to
remove any existing functionality from the WifiManager API.
Bug: 162602799
Test: Compiles
Change-Id: I12c473185dc5518f5684e83c2f49e07271738cb5
Merged-In: I12c473185dc5518f5684e83c2f49e07271738cb5
This is needed for connectivity to compare TransportInfo instances.
(cherry-picked from aosp/1508601)
Bug: 162602799
Test: atest android.net.wifi
Change-Id: I215b769339f68b76a1b2fa15f66c4527d184b696
Also, deprecate WifiManager.getConnectionInfo() and add a note to
help apps to migrate. The deprecation is purely cosmetic, no plans to
remove any existing functionality from the WifiManager API.
(cherry-picked from aosp/1508600)
Bug: 162602799
Test: Compiles
Change-Id: I12c473185dc5518f5684e83c2f49e07271738cb5
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
This is not part of the Wifi module, move it to the non-updatable
directory.
Bug: 176105484
Test: compiles
Merged-In: Ia95e300da9286d79ee57c285c3bfa88ecc98e326
Change-Id: I495b3edc6e7a6bbb7bae287e8bdd88243e72da70
This creates a clearer boundary between what is updatable
(part of the Wifi module) and what is not updatable (outside
the module).
Bug: 176105484
Test: compiles
Merged-In: Ia95e300da9286d79ee57c285c3bfa88ecc98e326
Change-Id: I1747f52f18210bb05bcc414461bf95aa461577a6
For backup/restore, it needs to know security type and create a security
params from the security type.
Bug: 162685856
Test: atest FrameworksWifiApiTes
Change-Id: I2a52a288157d7875074f8e20218d564c363b568f
This is not part of the Wifi module, move it to the non-updatable
directory.
Bug: 176105484
Test: compiles
Change-Id: I38b6eeb6d784cc6e2a87f0161b32be180ade3bdc
This creates a clearer boundary between what is updatable
(part of the Wifi module) and what is not updatable (outside
the module).
Bug: 176105484
Test: compiles
Change-Id: Ia95e300da9286d79ee57c285c3bfa88ecc98e326
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
Add @hide API to return whether the default coex algorithm is enabled or
not for ACTS testing.
Bug: 153651001
Test: build
Change-Id: I4c574c767a8cc2c325139f5f668dd7090efd68b4
1. The framework need to know the instance of the client connected to
know which instance is idled.
2. The framework need to know the instance of the soft AP info.
3. Add infoList callback support for dual APs mode.
AP+AP Part 5 includes:
1. Support forceClientDisconnect in dual AP mode.
2. Support dual SoftApInfo callback
a. New callback onInfoListChanged
b. Add instanceIdentifier in SoftApInfo but it is used only in
framework.
c. Add instanceIdentifier in WifiClient but it is used only in
framework.
Bug: 162686273
Test: FrameworksWifiApiTests
Change-Id: I207831ff15a3044316556d61a72542ff35c94e74
Trigger WiFi recovery. The WiFi chip will get disabled and then
re-enabled. The state at the exit may not match the entry state.
Bug: 175084231
Test: atest com.android.server.wifi
Test: atest android.net.wifi
Test: adb shell cmd wifi trigger-recovery
Change-Id: Ie46bc697dcc003758c5df7c7c9d594e365086c7d
1. Remove internal function
2. Add the version check in new APIs which miss it before
Bug: 173791707
Test: S module on R base image boots and connects to wifi and SAP
enable succeed.
Change-Id: Ic9ea9fecfa7d39f54a1875ad687fe21c1381124c