summaryrefslogtreecommitdiff
path: root/wifi/java/android
AgeCommit message (Collapse)Author
2020-12-23Migrate frameworks/base/wifi & frameworks/base/packages/OsuLoginBaligh Uddin
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
2020-12-23Merge "WifiManager: Remove javadoc reference to multi STA concurrency API" ↵Roshan Pius
am: 5d3b26484c am: 90a64f7002 am: 5f217f2b9b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1535862 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic27ecb61d60865ca268c9f31886d86f3555350ea
2020-12-23WifiManager: Remove javadoc reference to multi STA concurrency APIRoshan Pius
The multi STA concurrency API is not present in AOSP. Bug: 162602799 Test: None Change-Id: Iaecedf42890777f6d4507bb81d359e67270ebebb
2020-12-23Merge changes from topic "wifi_transport_info_stage_1"Roshan Pius
* changes: WifiInfo: Add equals implementation Convert WifiInfo to TransportInfo
2020-12-23Merge changes from topic "wifi_transport_info_stage_1"Roshan Pius
* changes: WifiInfo: Add equals implementation Convert WifiInfo to TransportInfo
2020-12-23Merge changes from topic "bridged_AP_callback"Les Lee
* changes: wifi: Add callback onConnectedClientsOrInfoChanged handling wifi: Add new callback to support use case in bridged mode
2020-12-23WifiInfo: Add equals implementationRoshan Pius
This is needed for connectivity to compare TransportInfo instances. Bug: 162602799 Test: atest android.net.wifi Change-Id: I215b769339f68b76a1b2fa15f66c4527d184b696 Merged-In: I215b769339f68b76a1b2fa15f66c4527d184b696
2020-12-23Convert WifiInfo to TransportInfoRoshan Pius
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
2020-12-22WifiInfo: Add equals implementationRoshan Pius
This is needed for connectivity to compare TransportInfo instances. (cherry-picked from aosp/1508601) Bug: 162602799 Test: atest android.net.wifi Change-Id: I215b769339f68b76a1b2fa15f66c4527d184b696
2020-12-22Convert WifiInfo to TransportInfoRoshan Pius
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
2020-12-23Merge changes from topics "s-security-params-backup-restore", ↵Jimmy Chen
"s-seucrity-params-setup-migration" * changes: wifi: add setSecurityParams APIs for wifi service migration wifi: add getSecurityType and createSecurityParamsBySecurityType methods
2020-12-23wifi: Add callback onConnectedClientsOrInfoChanged handlinglesl
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
2020-12-22frameworks/base/wifi: Move migration_samples to non-updatable directoryDavid Su
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
2020-12-22Split updatable/non-updatable Wifi APIs into separate directoriesDavid Su
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
2020-12-22wifi: add setSecurityParams APIs for wifi service migrationJimmy Chen
Bug: 162685856 Test: atest FrameworksWifiApiTest Change-Id: I6b53227a9fb5e68cc2039cb29a8ab3e11bc70bc8
2020-12-22wifi: add getSecurityType and createSecurityParamsBySecurityType methodsJimmy Chen
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
2020-12-21frameworks/base/wifi: Move migration_samples to non-updatable directoryDavid Su
This is not part of the Wifi module, move it to the non-updatable directory. Bug: 176105484 Test: compiles Change-Id: I38b6eeb6d784cc6e2a87f0161b32be180ade3bdc
2020-12-21Split updatable/non-updatable Wifi APIs into separate directoriesDavid Su
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
2020-12-18wifi: Add new callback to support use case in bridged modelesl
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
2020-12-17Merge "[WifiCoex] Add @hide API for default coex algorithm enabled or not"Quang Luong
2020-12-16Merge "WifiNl80211Manager: improve logging"TreeHugger Robot
2020-12-16WifiNl80211Manager: improve loggingDavid Su
Log ifaceName & method names. Bug: 175614847 Test: atest FrameworksWifiApiTests Change-Id: Idd26fdcd02c9e3fd352a822775ed03b3039bcecc
2020-12-16Move module utils to the module package.Chalard Jean
Test: FrameworksWifiTest FrameworksNetTest Change-Id: If5d1e4a58fb2d6d9544e6d01995dabe445cf1f25 Merged-In: I067eeecd458c34b7f2fbfa439072682661ac750c
2020-12-15[WifiCoex] Add @hide API for default coex algorithm enabled or notQuang Luong
Add @hide API to return whether the default coex algorithm is enabled or not for ACTS testing. Bug: 153651001 Test: build Change-Id: I4c574c767a8cc2c325139f5f668dd7090efd68b4
2020-12-15Merge "[Suggestion] Add listener for user approval status change"Nate Jiang
2020-12-15Merge "Wifi: Disable network when detecting carrier eap error"TreeHugger Robot
2020-12-14Merge "framework-wifi: Migrate ParceledListSlice to the version from ↵David Su
module-utils"
2020-12-14Merge "wifi: create security type for Passpoint R1/R2 and R3"Jimmy Chen
2020-12-14Merge "Adding setter and getters for setRttBurstSize() in RangingRequest ↵Roy Want
(client)"
2020-12-13wifi: create security type for Passpoint R1/R2 and R3Jimmy Chen
Bug: 162685856 Test: atest FrameworksWifiApiTests Change-Id: I5cda53edd286787c97dfb09d047d582c97e8684b
2020-12-12Merge "softap: Add BAND_60GHZ to SoftApConfiguration"Jimmy Chen
2020-12-11Adding setter and getters for setRttBurstSize() in RangingRequest (client)Roy Want
Bug: 163355222 Test: adding methods to class. Existing unit tests and 3 additional tests pass. Change-Id: Ie003e63350faa257f8dbd68d6918961580745cce
2020-12-11Merge "Allow setup wizard to call carrier selection APIs"Oscar Shu
2020-12-11Merge "wifi: add security params class for known security types"Jimmy Chen
2020-12-10[Suggestion] Add listener for user approval status changeNate Jiang
Bug: 160648511 Test: atest android.net.wifi Change-Id: I2a1959a2504e274de83f9cd0e44300222bbe8aac
2020-12-10Merge "wifi: Add instance identifier in SoftApInfo/WifiClient and infoList ↵Les Lee
callback"
2020-12-10Merge "[WIFI] Trigger WiFi recovery mode"Etan Cohen
2020-12-10framework-wifi: Migrate ParceledListSlice to the version from module-utilsDavid Su
Bug: 175130412 Test: boots up and connects to wifi Change-Id: Ia0d26ad39e994a7a177db2ef4082ee04bff87e10
2020-12-10Wifi: Disable network when detecting carrier eap errorIsaac Chiou
Disable network temporarily when detecting carrier eap error Bug: 148940011 Test: atest FrameworksWifiTests Test: make sure network can be disabled when detecting carrier eap error Change-Id: Ide5f8b2a084ce3d72b6ba820393b9fb9b22aff0f
2020-12-10wifi: Add instance identifier in SoftApInfo/WifiClient and infoList callbacklesl
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
2020-12-10wifi: add security params class for known security typesJimmy Chen
Bug: 162685856 Test: atest FrameworksWifiApiTests Change-Id: I020d338b1829f19f6dde8b1969f64cc065f8d796
2020-12-10Merge "wifi: Remove internal function, add version checks when using new API"Les Lee
2020-12-09[WIFI] Trigger WiFi recovery modeEtan Cohen
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
2020-12-09Allow setup wizard to call carrier selection APIsxshu
Bug: 173054916 Test: compile Change-Id: I38f96e91a27e180a8a2b7b862fe4b67e3ca741f8
2020-12-09Merge "Associate RSSI with UCC"Oscar Shu
2020-12-04Merge "Pipe new flag into passpoint"Nate Jiang
2020-12-04Merge "wifi: Add API to indicate (STA) + Bridged AP supported (Part 4)"Les Lee
2020-12-04Pipe new flag into passpointNate Jiang
Pipe oemPaid, oemPrivite, and carrierMerged into passpoint profile Bug: 172867186 Test: atest android.net.wifi Change-Id: If253aca1d26fe5575fa9edbdd0d6fe75d9d4ca81
2020-12-04wifi: Remove internal function, add version checks when using new APIlesl
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
2020-12-04wifi: Add API to indicate (STA) + Bridged AP supported (Part 4)lesl
AP+AP Part 4 includes: 1. Support API to indicate Bridged AP supported or not 2. Interface idx mechanism. I.e. STA+STA support, AP+AP will take wlan2 & wlan3 Bug: 162686273 Test: atest FrameworksWifiApiTests Change-Id: Ic56700f58671ec3daaf05942eab06e0568465210