Commit Graph

2635 Commits

Author SHA1 Message Date
Mingguang Xu
e5f7947773 Merge "Wifi usability: Add expected range for Wi-Fi usability score" 2019-03-16 06:02:02 +00:00
Mingguang Xu
4fc47c2b80 Wifi usability: Add expected range for Wi-Fi usability score
In addition, fix a couple of typos in documentation.

Bug: 126391553
Bug: 126699865
Bug: 113262380
Bug: 128675382

Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I4c8d73f66f7d2d424bef3699dfc889e342621b02
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-03-15 15:52:08 -07:00
Roshan Pius
506a9b9517 WifiConfiguration: Add a new temp blacklist reason for disconnect
Also, added a constant to indicate the start of the permanent
blacklist reasons.

Bug: 126503889
Test: Compiles
Change-Id: I4ba1dc5377bffe34a9f236c0698c36cbf34969a9
2019-03-14 07:51:56 -07:00
Roshan Pius
35a659febd WifiManager: Fix javadocs
Bug: 128536865
Test: make docs
Change-Id: I263b66e989b2d2240e25cac31c00fc3b8a3f5a3d
2019-03-14 07:51:56 -07:00
Roshan Pius
198fa8adbf WifiNetworkSpecifier/Suggestion: Address API council comments
Modified builder methods to:
a) Add boolean input for all boolean setters.
b) Add a public value for unassigned priority and added IntRange
annotation.

Bug: 128317241
Bug: 128317186
Test: Compiles
Test: ./frameworks/base/wifi/tests/runtest.sh
Change-Id: Iaf9d26ed857fe9337d3e4006c9c894efbcfa32dd
2019-03-14 07:51:25 -07:00
Ahmed ElArabawy
8fb283da77 Wifi: Update to the WifiLock API documentation
This commit provides an update to the WifiLock types API documentation.
It adds the condition of the device to be connected to an access point
for lock to be active. This applies to both high perf and low latency
locks.

Bug: 127884567
Test: None
Change-Id: If65681939058a5d6508cf0a970517fa856cc04b3
2019-03-13 14:08:42 -07:00
TreeHugger Robot
8494e74f19 Merge "api-review: add @Nullable annotation in the argument of getMatchingOsuProviders" 2019-03-13 05:52:21 +00:00
Ecco Park
8b0c0723c5 api-review: add @Nullable annotation in the argument of getMatchingOsuProviders
Bug: 126702500
Test: UnitTest
Change-Id: I90314979ca1c9543c7646f1f6b9fcf5c65fd4577
Signed-off-by: Ecco Park <eccopark@google.com>
2019-03-12 13:53:20 -07:00
TreeHugger Robot
f53c33aa41 Merge "WifiManager: fix JavaDocs for SoftAP Start Failure" 2019-03-12 19:57:14 +00:00
Mingguang Xu
e05b0ec4da Merge "Wifi usability: Comments from API review council are addressed" 2019-03-12 18:21:08 +00:00
Quang Luong
1fc84caa29 Merge "Added Passpoint prefix to Passpoint related methods in WifiInfo" 2019-03-12 02:29:06 +00:00
David Su
1e13a6db46 WifiManager: fix JavaDocs for SoftAP Start Failure
JavaDocs are swapped for constants SAP_START_FAILURE_GENERAL and
SAP_START_FAILURE_NO_CHANNEL. Unswapping them.

Bug: 128333924
Test: compiles
Change-Id: I03163fcaa238bd218b8d6f78d8123dfb3e31a04f
2019-03-11 17:01:22 -07:00
Etan Cohen
07c6f4d4bd Merge "[AWARE] Move WifiAwareNetworkSpecifier Builder to its parent class" 2019-03-11 19:54:27 +00:00
Etan Cohen
0ccb0c81c7 [AWARE] Move WifiAwareNetworkSpecifier Builder to its parent class
Note: API only change - no functional changes

Move the Builder class and method which generates WifiAwareNetworkSpecifier
to the class it actually builds and have it return that type.

Per API council feedback to match standard builder patterns.

Bug: 126700127
Test: builds + make docs
Test: atest com.android.server.wifi.aware
Test: atest android.net.wifi.aware
Test: atest SingleDeviceTest (CTS)
Change-Id: If4d58e96b4a268df7afe58bc3d883b6c54ec889d
2019-03-10 18:15:31 -07:00
Etan Cohen
85a7b9fb47 [AWARE] Add annotations to ParcelablePeerHandle
Add annotations to ParcelablePeerHandle per API council feedback.

Bug: 126375748
Bug: 126701031
Test: atest android.net.wifi.aware
Change-Id: I60471659dd9dd267b10507d5fb5e7639b3c964c2
2019-03-10 16:38:19 -07:00
TreeHugger Robot
01458f27d9 Merge "p2p: change wildcard MAC address to 02:00:00:00:00:00" 2019-03-10 04:49:31 +00:00
Jimmy Chen
e009d0d5dc Merge "p2p: add annotation for WifiP2pManager public API" 2019-03-10 03:45:40 +00:00
Mingguang Xu
e77cabc488 Wifi usability: Comments from API review council are addressed
Addressed all comments from API review council:
1. Rename WifiUsabilityStatsListener to OnWifiUsabilityStatsListener.
2. Change the modifier of member variables in WifiUsabilityStatsEntry.java to private and use getters.
3. Document the unit of predicitonHoirzonSec and its expected range.
4. Add @ProbeStaus in probeStatusSinceLastUpdate.
5. Rename probeElapsedTimeMsSinceLastUpdate to
ProbeElapsedTimeSinceLastUpdateMs.
6. Marked @NonNull for Argument 3 in onWifiUsabilityStats.

Bug: 126391553
Bug: 126699865
Bug: 113262380

Test: frameworks/base/wifi/tests/runtests.sh

Change-Id: I20d9ad05dc0bb537b09006ca44a447401b3e1001
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-03-08 17:24:27 -08:00
Quang Luong
2a6cdc554e Added Passpoint prefix to Passpoint related methods in WifiInfo
Passpoint prefixes were added and changed getter methods to public API

Bug: 127544936
Test: atest AccessPointTest && atest WifiInfoTest
Change-Id: I445606e76352dfc445344109be735da4bbab12be
2019-03-08 17:16:38 -08:00
TreeHugger Robot
bf7934488f Merge "Add @Nullable/@NonNull to WifiManager APIs" 2019-03-08 15:19:28 +00:00
TreeHugger Robot
0e8f2456fe Merge "WifiNetworkSpecifier: Builder.build() returns WifiNetworkSpecifier" 2019-03-08 15:18:32 +00:00
David Su
6ef18c7d86 Add @Nullable/@NonNull to WifiManager APIs
Add @Nullable/@NonNull to WifiManager APIs

Bug: 126702500
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ied04a936ca50880376072801848fd3096b87d099
2019-03-07 11:46:01 -08:00
Jimmy Chen
37647805b6 p2p: add annotation for WifiP2pManager public API
Bug: 126702243
Test: Unit tests - atest FrameworksWifiTests
Test: Unit tests - atest FrameworksWifiApiTests
Change-Id: I3e0d80902a6d03d4fe4efe18695047b1c70ac13d
2019-03-07 17:41:09 +08:00
Jimmy Chen
28541ec70a Merge "p2p: add javadoc for the group owner band constants" 2019-03-07 08:42:38 +00:00
Jimmy Chen
7a5ecb109d Merge "p2p: add documentation for WifiP2pConfig.Builder API" 2019-03-07 06:08:07 +00:00
Hai Shalom
405ecb9909 [WifiConfiguration] Add @NonNull annotations to BitSets
Following API review, add @NonNull annotations to allowed* BitSets in
WifiConfiguration class.

Bug: 126702434
Test: atest WifiConfigurationTest
Change-Id: I05550f4d4677702de7ec5e3f0c8393a516c0a5e6
2019-03-07 03:00:51 +00:00
Jimmy Chen
367763b99c Merge changes I105589aa,I3674fd5b,I215962fa,I5ca97e26,Ib47a1a6d
* changes:
  p2p: add valid string documentation for network name and passphrase
  p2p: rename the annotation to match the API names.
  p2p: add annotation for WifiP2pConfig.Builder public API
  p2p: add annotation for WifiP2pConfig.Builder public API
  p2p: add annotation for WifiP2pConfig.Builder public API
2019-03-07 02:45:12 +00:00
TreeHugger Robot
a89f1caec9 Merge "[WPA3] Add missing SUITE_B_192 to getKeyIdForCredentials" 2019-03-07 02:18:38 +00:00
Jimmy Chen
f1ef098ed9 p2p: add javadoc for the group owner band constants
Bug: 126614268
Test: Unit tests - atest FrameworksWifiTests
Test: Unit tests - atest FrameworksWifiApiTests
Change-Id: Ibe129f2eaf9b9fe158cac2a32f3d9d397c5af22c
2019-03-07 10:13:14 +08:00
Jimmy Chen
fa81e58535 p2p: add documentation for WifiP2pConfig.Builder API
Bug: 126614407
Test: Unit tests - atest FrameworksWifiTests
Test: Unit tests - atest FrameworksWifiApiTests
Change-Id: I300948ad524f2527d0c564ce1e2365fd1688bbfd
2019-03-07 10:13:14 +08:00
Jimmy Chen
a969d029b3 p2p: add valid string documentation for network name and passphrase
Bug: 126614191
Test: Unit tests - atest FrameworksWifiApiTests
Change-Id: I105589aa3b6ee184be7fe82a8b657c76247f9ad6
2019-03-07 10:13:14 +08:00
Jimmy Chen
d1ebd798f2 p2p: rename the annotation to match the API names.
Bug: 126613584
Test: Unit tests - atest FrameworksWifiTests
Test: Unit tests - atest FrameworksWifiApiTests
Change-Id: I3674fd5b75d237c51e19a18b6572341c5e9841f7
2019-03-07 10:12:35 +08:00
TreeHugger Robot
5f7df448ab Merge "RTT LCI API *UPDATE* (Client Side)" 2019-03-07 00:25:40 +00:00
Roy Want
d34680d2d2 RTT LCI API *UPDATE* (Client Side)
Bug: 111439464
Test: All unit tests pass; end-to-end tests pass.
Change-Id: I026f0cdec93df8f54ad4f8f24df0258cceb87b6e
2019-03-06 13:18:16 -08:00
Hai Shalom
0a26418779 [WPA3] Add missing SUITE_B_192 to getKeyIdForCredentials
Add missing SUITE_B_192 to getKeyIdForCredentials.
Add new unit test.

Bug: 127651674
Test: atest WifiConfigurationTest
Change-Id: I0961f332e25e06bb253593407f338f5197f39099
2019-03-06 11:41:29 -08:00
Roshan Pius
c1602aa9ce WifiAwareManager: Mark NetworkSpecifierBuilder class final
Bug: 126700127
Test: Compiles
Change-Id: If514215732579b98718d935eb1a5e1ee6f467194
2019-03-06 17:03:22 +00:00
Roshan Pius
e3638d4ffc WifiNetworkSpecifier: Builder.build() returns WifiNetworkSpecifier
Based on API council feedback, return the WifiNetworkSpecifier object
from the builder.

Bug: 127464965
Test: Compiles
Change-Id: I072b761872f573103d42081ec0059cde6fafa51c
2019-03-06 08:08:19 -08:00
Jimmy Chen
be4f75f539 p2p: change wildcard MAC address to 02:00:00:00:00:00
00:00:00:00:00:00 is an universally administered address, using a
locally administered address for widcard MAC address.

Bug: 126613261
Test: Unit tests - atest FrameworksWifiTests
Test: Unit tests - atest FrameworksWifiApiTests
Test: CtsVerify - WiFi Direct

Change-Id: I132837338bb30b61d65985c2ce3a64c1cdde6877
2019-03-06 18:52:59 +08:00
Jimmy Chen
bfe3cecfe5 p2p: add annotation for WifiP2pConfig.Builder public API
Bug: 126614191
Bug: 126699215
Test: Unit tests - atest FrameworksWifiTests
Test: Unit tests - atest FrameworksWifiApiTests
Change-Id: I215962fab52e86b66b4bc1756a7e2cfe670d299b
2019-03-06 14:17:03 +08:00
Jimmy Chen
413b9b7c4c p2p: add annotation for WifiP2pConfig.Builder public API
Bug: 126614191
Bug: 126702130
Test: Unit tests - atest FrameworksWifiTests
Test: Unit tests - atest FrameworksWifiApiTests
Change-Id: I5ca97e26c0f8509a35c72b422c754771a9c50e1a
2019-03-06 14:16:58 +08:00
Jimmy Chen
ff1bb349ff p2p: add annotation for WifiP2pConfig.Builder public API
Bug: 126614191
Bug: 126700789
Test: Unit tests - atest FrameworksWifiTests
Test: Unit tests - atest FrameworksWifiApiTests
Change-Id: Ib47a1a6d7b72977d22c8402a6229de9a631d728e
2019-03-06 14:16:50 +08:00
TreeHugger Robot
6dcc8d303b Merge "WifiP2pManager: Add annotation Nullable for API: onDeviceInfoAvailable" 2019-03-06 06:11:12 +00:00
TreeHugger Robot
cf8333ea3d Merge "api-review: Add Executor and move callback to end of argument list" 2019-03-06 03:31:50 +00:00
lesl
a0e52a2ea1 WifiP2pManager: Add annotation Nullable for API: onDeviceInfoAvailable
Bug: 126700793
Build: make api-stubs-docs-update-current-api, full build
Test: UnitTest, atest android.net.wifi.p2p.WifiP2pManagerTest
Change-Id: I18698d7776e071cde0ed28dcd349cc08cc41b173
2019-03-05 14:29:06 +08:00
Ecco Park
576ba43212 api-review: Add Executor and move callback to end of argument list
Bug: 126702500
Test: verify it with R2 AP for OSU operation.
Test: unit test
Change-Id: I42639243b1f4aee52f091240ff508dfafb969b82
Signed-off-by: Ecco Park <eccopark@google.com>
2019-03-03 14:01:22 +00:00
Ecco Park
c1041d3fce api-review: add @Nullable for getFriendlyNames() and getServerUri()
Bug: 126701512
Test: unitTest
Change-Id: Ia09bcc4c34e0915b2add89f5851be6e732402ac0
Signed-off-by: Ecco Park <eccopark@google.com>
2019-03-03 13:36:24 +00:00
Ecco Park
a2c829c185 api-review: add @Nullable and @Nonull for return value of Passpoint APIs
Bug: 126702500
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Iec5985d7fdaaa6fa953230444a9aa490dfd73b7b
Signed-off-by: Ecco Park <eccopark@google.com>
2019-03-03 13:35:21 +00:00
TreeHugger Robot
aaac1dd62b Merge "[OWE] Rename isOweSupported to isEnhancedOpenSupported" 2019-03-01 18:29:48 +00:00
Roshan Pius
86ea249e4a WifiNetworkSpecifier/Suggestion Builder: Add @NonNull annotations
Based on feedback from API council.

Bug: 123313291
Bug: 126699563
Bug: 126701114
Test: Compiles
Change-Id: I119649add8ec71b041631357994aa20c253a5568
2019-03-01 07:08:26 -08:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00