Commit Graph

2816 Commits

Author SHA1 Message Date
Nate(Qiang) Jiang
9707dc2136 [NetworkSuggestion] change comments to fit the disconnect behavior
Bug: 137582811
Test: build
Change-Id: I0ee13a98c74e25cac9b94ee16703e291a2ff2610
2019-11-26 10:55:12 -08:00
Nate(Qiang) Jiang
10bc5db45a User binder as identifier for scanResultcallback
Bug: 143138047
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: I91d68b247490ac33656decc519c39c77bfe786a4
2019-11-25 12:06:15 -08:00
Roshan Pius
61069abccb Merge "NetworkScoreManager: Add @SystemApi for wifi mainline module" 2019-11-24 06:57:07 +00:00
Ahmed ElArabawy
c9f242dad3 Wifi: Make setScanningEnabled() a system API
This commit makes the the API WifiScanner.setScanningEnabled() a System
API to allow priviliged apps to use it.

Bug: 140541571
Test: atest com.android.wifi.server
Change-Id: Id7377415699f2d8a8aea396889716dca1e23ecd5
2019-11-22 21:56:48 +00:00
David Su
3a9a1fb8f9 Merge changes from topic "wifi-manager-constructors"
* changes:
  Removed references to Manager AIDL from constructors
  Migrate WifiCommand to WifiShellCommand
2019-11-22 18:00:23 +00:00
TreeHugger Robot
3d3ca84f1a Merge "Revert submission" 2019-11-22 01:42:21 +00:00
David Su
7053199213 Merge changes from topic "rssi-level-thresholds"
* changes:
  Add new WifiManager API to calculate signal levels
  Fix broken test caused by calculateSignalLevel() migration
  Migrate WifiStatusTracker calculateSignalLevel()
2019-11-22 00:07:50 +00:00
David Su
b1015cd783 Merge changes from topic "ap-band-conversion-notification"
* changes:
  Move AP Band Conversion notification to Settings
  Remove WifiManager.notifyUserOfApBandConversion()
2019-11-21 23:32:49 +00:00
David Su
409f371488 Removed references to Manager AIDL from constructors
Converted constructors of Wifi Managers to not reference
their AIDL interfaces since they are @hide and cannot be
referenced by the platform.

Bug: 140299412
Test: atest FrameworksWifiApiTests
Change-Id: If43ce6916ddee5357cdcc8cd27d5620a67d21165
2019-11-21 14:46:43 -08:00
TreeHugger Robot
5d1c9a388a Merge "Exposing WorkSource hidden APIs as system APIs" 2019-11-21 21:15:48 +00:00
Hai Shalom
5579604a1d Revert submission
Reason for revert: Incomplete fix that causes additional issues which were not anticipated earlier.

Change-Id: Iff36d5a10e6c8ee8978a5842af8f19efc10c0a91
2019-11-21 19:25:52 +00:00
David Su
3c9241075a Add new WifiManager API to calculate signal levels
New calculateSignalLevel() overload allows RSSI level
thresholds to be potentially overlaid.

Bug: 140781184
Test: compiles
Change-Id: Ic6c84885dbe17ca39600dc8d8eb5aeff641a0ad3
2019-11-21 10:11:14 -08:00
David Su
72a333a182 Remove WifiManager.notifyUserOfApBandConversion()
Removed this API since the notification should be
handled elsewhere, not in Wifi service.
Thus, moved to SettingsBackupAgent.

Bug: 144218444
Test: atest FrameworksWifiApiTests
Change-Id: Ifc0eafac2e61a5434daa20a29a5b22fba3fbc561
2019-11-20 18:25:22 -08:00
Suprabh Shukla
f7cffa7aaf Exposing WorkSource hidden APIs as system APIs
Users of these APIs are planning to move to apex.

Test: atest FrameworksCoreTests:android.os.WorkSourceTest
atest CtsOsTestCases:android.os.cts.WorkSourceTest

Bug: 143551137
Change-Id: I2e97a8b469254ea92e3ee21571ee8ae3cbb9abbe
2019-11-20 14:26:47 -08:00
David Su
d9e13e7990 Merge changes from topic "scanreuslt-wifiinfo-systemapi"
* changes:
  Expose ScanResult/WifiInfo @hide APIs as @SystemApi
  SettingsLib: convert raw fields to getters
  NetworkKey: migrate from ScanResult.wifiSsid to SSID
2019-11-20 18:57:28 +00:00
Roshan Pius
c278f80c28 NetworkScoreManager: Add @SystemApi for wifi mainline module
Add formal API's for API's that the wifi mainline module uses:
a) NetworkScoreManager.requestNetworkScores - Request new network scores.
b) NetworkScoreManager.registerNetworkScoreCallback - @SystemApi wrapper
over the existing registerNetworkScoreCache.
c) NetworkKey.createFromScanResult - Create NetworkKey from ScanResult.

Also,
a) Converted the existing WifiNetworkScoreCache callback implementation to
support both the new @SystemApi (used by wifi) and the old @hide API
(used by settings).
b) Stopped invoking dump on all the callbacks from NetworkScoreService.
The dump of each callback should be invoked at their client site (i.e
wifi service should dump state of the callback it registers with the
service).
c) Added a helper method |dumpWithLatestScanResults| to help dump the
state of the WifiNetworkScoreCache from wifi service.

Bug: 144487252
Test: a) Device boots up and connects to wifi network.
b) Manually verified that network scores are being requested & updated
with the new interface.

Change-Id: Id5a66189150e7a088127519373a832f63bdd12ac
2019-11-19 20:26:46 -08:00
David Su
e955accd13 Expose ScanResult/WifiInfo @hide APIs as @SystemApi
Expose @hide APIs in ScanResult/WifiInfo as @SystemApi.
These APIs are mostly used by Settings.

Bug: 144311098
Test: atest FrameworksWifiApiTests
Change-Id: Ifdfa78ed59f6a42a3646defa5a9f164d146ceada
2019-11-19 13:18:38 -08:00
TreeHugger Robot
a3f338f126 Merge "Document permission & broadcast semantics re wifi state" 2019-11-19 01:28:42 +00:00
David Su
58b753894b Merge changes from topic "wifimanager-systemapi"
* changes:
  WifiManager/Scanner: Expose @hide APIs as @SystemApi
  SystemUI: Clean up WifiManager APIs
  SettingsLib: Rename WifiManager.LINK_CONFIGURATION_CHANGED_ACTION
2019-11-18 21:03:41 +00:00
TreeHugger Robot
64f23dfd60 Merge "[WPA3] Fix WPA3-Personal transition mode" 2019-11-18 20:27:56 +00:00
David Su
f7ef955d90 WifiManager/Scanner: Expose @hide APIs as @SystemApi
Expose @hide APIs in WifiManager/WifiScanner as
@SystemApi so that they can be referenced by external
callers (mostly Settings).

Bug: 143970861
Test: atest FrameworksWifiApiTests
Change-Id: I956290e2a3aca3f4946da52d7e271082824dd06c
2019-11-18 10:44:56 -08:00
Hai Shalom
6720b42879 [WPA3] Fix WPA3-Personal transition mode
Fix WPA3-Personal in transition mode issues. Current
solution will create an upgraded WPA3 connection if
there is a WPA2 saved network and AP is in transition
mode.

Bug: 143843364
Test: Manual tests
Test: atest com.android.server.wifi
Change-Id: I53b278e846828198fb1953b075d86e16fac6d795
2019-11-15 17:22:12 -08:00
David Su
b73c737ffc Expose Wifi P2P @hide APIs as @SystemApi
These APIs are mostly used by Settings.

Bug: 143892817
Test: atest FrameworksWifiApiTests
Change-Id: I27061280b0c49677fa651c6f9799e48b78e4c109
2019-11-15 11:25:13 -08:00
James Mattis
31a8feb9c7 Merge "Swap param order in registerSoftApCallback" 2019-11-15 18:58:28 +00:00
Ahmed ElArabawy
c67d4f750e Wifi: Support check on device capability for 6GHZ
This commit implements support of checking whether device supports 6GHz band.

Bug: 139354972
Test: atest com.android.wifi.server
Change-Id: Id2c1ef085bb680b9d59ce1788147b154efc4b422
2019-11-15 10:14:33 -08:00
Etan Cohen
29dca17d8b Merge "[AWARE] Allow setPMK API" 2019-11-15 01:12:37 +00:00
TreeHugger Robot
772aaff3c4 Merge "wifi: remove @Deprecated APIs" 2019-11-15 00:06:15 +00:00
Christopher Tate
68d08c6c48 Document permission & broadcast semantics re wifi state
Bug: 26347905
Test: offline-sdk-docs
Change-Id: Iceca5daa229397d2e492b72eb2b825b0b42c8dd4
2019-11-14 14:10:53 -08:00
Etan Cohen
35f1fcdc8d [AWARE] Allow setPMK API
Allowing configuration of the PMK is required for any PK-based protocols
which operate OOB.

Bug: 143956273
Bug: 111446262
Test: test android.net.wifi.aware
Change-Id: Iccd9739901116399518f278e7d9c9992c1507f3f
2019-11-14 08:55:50 -08:00
James Mattis
cb157e8a33 Swap param order in registerSoftApCallback
Moving executor to be the first argument in registerSoftApCallback.

Bug: 144379300
Test: atest FrameworksWifiApiTests:android.net.wifi.WifiManagerTest
Manually on pixel 3

Change-Id: I7074278d16beac422ce7b29d4471b2794fa97825
2019-11-13 21:08:33 -08:00
lesl
0790456494 wifi: remove saePasswordId from getBytesForBackup
getBytesForBackup is used for Softap. Don't need saePasswordId

Bug: 0
Test: unit test, atest frameworks/base/wifi/tests/

Change-Id: Ia85fa65d6a1f939ebd57c20d4c432b6303107b81
2019-11-13 08:39:13 +00:00
Hugo Benichi
651135848d wifi: remove @Deprecated APIs
Bug: 122431221
Test: Compiled.
Change-Id: Iec44112618f3bd57e3e8047edff512f741779766
2019-11-13 16:28:45 +09:00
Nate(Qiang) Jiang
ee9a5ae15c [WifiAware] fix creator from parcel
creator should read all content from parcel before verify available

Bug: 144286370
Test: atest android.net.wifi
Change-Id: Ie0f4954f5ca6cdb0ae1f77bfd4420b75f302c0f3
2019-11-11 11:13:16 -08:00
Philip P. Moltmann
889043a661 Merge "Pipe through featureId from calling context to wifi location checking code" 2019-11-09 00:56:14 +00:00
Sunil Ravi
34fc421d5f Merge "wifi: MBO-OCE feature support (phase 1)" 2019-11-08 22:57:25 +00:00
Philip P. Moltmann
dcb850c580 Pipe through featureId from calling context to wifi location checking
code

Bug: 136595429
Test: atest FrameworksWifiTests FrameworksWifiApiTests
Change-Id: I7e1090e6e618dcd9e67b64c0f4c29934c8e1a69e
2019-11-08 14:54:57 -08:00
James Mattis
80c86d5c08 Marking SoftApCallback methods as SystemAPI
Making SoftApCallback methods available to @SystemAPI including
the API for registration of a SoftApCallback. This includes updating
registration to use an executor now vs a handler.

Bug: 143564153
Test: atest FrameworksWifiApiTests:android.net.wifi.WifiManagerTest
Also tested manually on a Hawk.

Change-Id: I22b5029a8dbd7a50ad6faf0bb3b15269af839956
2019-11-08 09:39:00 -08:00
Sunil Ravi
a4b01b2a8f wifi: MBO-OCE feature support (phase 1)
Define feature flags for MBO and OCE.

Bug: 139474288
Test: atest com.android.server.wifi
Test: Manual
Change-Id: If713da6500c1d511972b9a84bd0c37b36148d92c
2019-11-07 21:01:10 -08:00
TreeHugger Robot
77e3859ab9 Merge "[Suggestion API] add network callback API" 2019-11-08 00:09:16 +00:00
Roshan Pius
80f368738d Merge changes from topic "wifi_overlay"
* changes:
  WifiManager: Add @SystemApi for STA/AP MAC randomization
  wifi: Formalize wifi resource usages
2019-11-07 23:17:53 +00:00
Nate(Qiang) Jiang
d076cbcd8d [Suggestion API] add network callback API
Add new API that allow apps to get connection event.

Bug: 142062781
Test: atest android.net.wifi
Test: atest com.android.server.wifi

Change-Id: I387f620901621feb2b15dff7c696d5d3f9a068b9
2019-11-07 14:35:02 -08:00
TreeHugger Robot
c85d13af6b Merge "WifiScanner: check nullness of bundle extra" 2019-11-07 19:50:30 +00:00
Roshan Pius
b55ba05c10 WifiManager: Add @SystemApi for STA/AP MAC randomization
This ensures that we don't use wifi overlays in settings.

Bug: 143464763
Test: Verfied MAC randomization setting toggle via Wifi picker.
Change-Id: I24ec509be579ec9c1a3d5e18fdc8d5709d83886c
2019-11-07 11:08:04 -08:00
Ahmed ElArabawy
34d53974d4 Merge "Wifi: Add 802.11ax support to RTT" 2019-11-07 04:35:54 +00:00
David Su
d09d44ec4f WifiScanner: check nullness of bundle extra
In WifiScanner#getAvailableChannels(), check if the
extra is null and return an empty list if that is the
case to ensure that the API upholds its @NonNull
guarantee.

Bug: 143985829
Test: compiles
Change-Id: I5abc2e6362469f77db0fa386adbe06b445aa799c
2019-11-05 21:41:48 -08:00
Les Lee
3c7989bfdc Merge "wifi: Add SoftApInfo Callback support" 2019-11-06 05:18:26 +00:00
lesl
3fd4b647f7 wifi: Add SoftApInfo Callback support
Bug: 142752869

Test: unit test, atest frameworks/base/wifi/tests/
Test: Manual test - checked by log.
Change-Id: I9fe7a18654721f98026680711685c06add3da264
2019-11-05 13:39:13 +08:00
Ahmed ElArabawy
b0e56cb592 Wifi: Add 802.11ax support to RTT
This CL makes modidfication to support Wifi 802.11ax to RTT procedures.

Bug: 139354972
Test: atest com.android.wifi.server
Change-Id: I3d07509b27c4be83ea7c59ee4d1f0e404db5a04d
2019-11-03 00:07:14 -07:00
Ahmed ElArabawy
dbe3883155 Wifi: Add AP wifi technology to ScanResult
This CL adds to ScanResult structure information about the Wifi
technology.

Bug: 143382822
Test: atest com.android.wifi.server
Change-Id: Ibe1d30e2efc4693be22148443b26446b90d89179
2019-11-02 22:52:58 -07:00
Ahmed ElArabawy
1e13ad6574 Wifi: Change "Technology" to "Standard" in API
This commit is to change the naming from Wifi Technology to Wifi
Standard. This is to comply with the API council review.

Bug: 143551314
Test: atest com.android.wifi.server
Change-Id: I0584f9b791dd14119af199cb14d4caf4ffbf54ab
2019-11-02 22:20:19 -07:00