Commit Graph

2729 Commits

Author SHA1 Message Date
Roshan Pius
4e616cf498 Merge "WifiManager: Add missing field to getConfiguredNetworks() doc" am: 846c0fe038
am: c30beb79e7

Change-Id: I318718984f1c3d90b5f39d1adc2986fcba9265b2
2019-12-04 10:03:04 -08:00
David Castro
5d8d3f6e7d Merge "Doc: Adds a link to the WifiRTT codelab" into qt-dev am: 20bf2110c3 am: 324d5cfb57
am: d8cdece755

Change-Id: I6fb32e2292aa44e7698a17187e3cc52459addcce
2019-12-02 14:49:27 -08:00
David Castro
d8cdece755 Merge "Doc: Adds a link to the WifiRTT codelab" into qt-dev am: 20bf2110c3
am: 324d5cfb57

Change-Id: If0f81f8023b487180d7a8e8b45efd7edff899d65
2019-12-02 14:43:23 -08:00
Automerger Merge Worker
324d5cfb57 Merge "Doc: Adds a link to the WifiRTT codelab" into qt-dev am: 20bf2110c3
Change-Id: Ibe2e2a2bee6acef662dd1235c6c887dae4571645
2019-12-02 22:30:26 +00:00
David Castro
2d61e036f3 Doc: Adds a link to the WifiRTT codelab
BUG:113332240
Change-Id: I404de18dd3c8880332b5a103079723fb1927d60d
Exempt-From-Owner-Approval: Docs-only change
2019-12-02 22:18:19 +00:00
Roshan Pius
94006409ae WifiManager: Add missing field to getConfiguredNetworks() doc
Bug: 122815212
Test: None
Change-Id: I907aa8219a3812b7c2dadbe9ce99ccf4c83c535b
2019-11-26 17:39:34 +00:00
Roshan Pius
126fb85c29 Merge "NetworkScoreManager: Add @SystemApi for wifi mainline module" am: 5b57190f08
am: 0564779e76

Change-Id: I04580ad32eefb2ce4c8df8f1037b8457238c30eb
2019-11-25 06:05:07 -08:00
Roshan Pius
9518866c53 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
Merged-In: Id5a66189150e7a088127519373a832f63bdd12ac
(cherry-picked from c278f80c28)
2019-11-24 07:04:30 +00:00
Hai Shalom
f8a5719cfc Merge "Revert submission" into qt-qpr1-dev
am: 65c9665125

Change-Id: Id444c3a9c767de5144ee2ded8f4c1cabca304670
2019-11-21 19:57:39 -08:00
Hai Shalom
65c9665125 Merge "Revert submission" into qt-qpr1-dev 2019-11-22 03:46:01 +00:00
Hai Shalom
a4284cb292 Revert submission
Reason for revert: Incomplete fix that causes additional issues which were not anticipated earlier.

Change-Id: I383273509797ed95a7f9ece780ec52abb1341292
Merged-In: Iff36d5a10e6c8ee8978a5842af8f19efc10c0a91
2019-11-21 23:08:43 +00:00
David Su
02076c7a01 Merge "NetworkKey: migrate from ScanResult.wifiSsid to SSID" am: 1124e240c0
am: c4df6668bb

Change-Id: I6e50821d3fdd5e6ff5fc4cd238ccd186dd1ff94c
2019-11-21 11:58:10 -08:00
David Su
1124e240c0 Merge "NetworkKey: migrate from ScanResult.wifiSsid to SSID" 2019-11-21 18:44:46 +00:00
David Su
e51ae1566b NetworkKey: migrate from ScanResult.wifiSsid to SSID
wifiSsid is an @hide field, migrate to getter method.

Bug: 144311098
Test: atest NetworkKeyTest
Change-Id: Ic689e12b8de4af52fae26c25bc90c8eb093ad3fe
Merged-In: Ic689e12b8de4af52fae26c25bc90c8eb093ad3fe
2019-11-20 10:41:59 -08:00
James Mattis
ed6fe63662 Merge "Swap param order in registerSoftApCallback" am: 1dcfd69218
am: fa968e9691

Change-Id: I0efdc1f3fd35fe059747b6ba2c6b0dc1731b3388
2019-11-20 10:40:05 -08:00
James Mattis
4a3e2c1e93 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
Merged-In: I7074278d16beac422ce7b29d4471b2794fa97825
2019-11-18 13:48:29 -08:00
Hai Shalom
19d6971364 Merge "[WPA3] Fix WPA3-Personal transition mode" into qt-qpr1-dev
am: 78ee3320ff

Change-Id: I52bdc08f8d6efd0f4ab6f618b2edae3f40ddc271
2019-11-18 13:46:51 -08:00
Hai Shalom
78ee3320ff Merge "[WPA3] Fix WPA3-Personal transition mode" into qt-qpr1-dev 2019-11-18 21:29:39 +00:00
Hai Shalom
8000abd65b [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: Idadbd1d155ddd617e61063e64e186abec478f5ff
Merged-In: I53b278e846828198fb1953b075d86e16fac6d795
2019-11-16 01:43:30 +00:00
James Mattis
49960bdd5f Merge "Marking SoftApCallback methods as SystemAPI" am: 8295ffc5af
am: 179ed7d640

Change-Id: I0498bdefc05aad2b56c68f586e480d06b9fe80c1
2019-11-15 15:43:44 -08:00
James Mattis
190e1cacde 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 Pixel 3.

Change-Id: I22b5029a8dbd7a50ad6faf0bb3b15269af839956
Merged-In: I22b5029a8dbd7a50ad6faf0bb3b15269af839956
2019-11-14 10:48:33 -08:00
James Mattis
955c650a74 Merge "Support for hotspot client visibility." am: 81200971e1
am: 6f1bf857a6

Change-Id: Ie0b8b3f4ab168f132f4f6cc01df525c69c8cde41
2019-11-13 08:58:28 -08:00
Nate(Qiang) Jiang
d76f407953 Merge "[WifiAware] fix creator from parcel" into qt-qpr1-dev
am: e3ff000ca5

Change-Id: I3666a418a1987116736aa7c86113de7dc15bd8f7
2019-11-12 15:11:59 -08:00
Nate(Qiang) Jiang
6d0eef4d2c [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
Merged-In: Ie0f4954f5ca6cdb0ae1f77bfd4420b75f302c0f3
2019-11-12 11:36:33 -08:00
James Mattis
201a319860 Support for hotspot client visibility.
Adding support for visibility into clients that connect to an active hotspot.

Bug: 137309578
Test: atest FrameworksNetTests:com.android.server.connectivity.TetheringTest
atest FrameworksWifiApiTests:android.net.wifi.WifiManagerTest
atest FrameworksWifiApiTests:android.net.wifi.WifiClientTest
Tested manually on Pixel 3.

Change-Id: I1caeb10bc50202873e760a76b346bccd941e2574
Merged-In: I1caeb10bc50202873e760a76b346bccd941e2574
2019-11-11 22:10:35 -08:00
TreeHugger Robot
c73945bd84 Merge "Fix LocalOnlyHotspotReservation double stop of local hotspot." into qt-qpr1-dev 2019-11-08 06:11:19 +00:00
Yury Kotlyarov
166f256958 Fix LocalOnlyHotspotReservation double stop of local hotspot.
If user executed startLocalOnlyHotspot(), then reservation.close()
garbage collector still keeps reservation object until drain.
If user executed startLocalOnlyHotspot second time during
application life cycle, garbage collector can delete previously
allocated reservation object. In this case finalize() of old
reservation object will be executed, then close(), then
stopLocalOnlyHotspot(). As result, new started LocalOnlyHostpot
can be immediatly stopped by old reservation object delete.
Steps to reproduce: execute startLocalOnlyHostpot() and
reservation.close() multiple times during application life cycle,
check if hotspot up couple of seconds after start.
This fix prevents stopping of local hotspot if reservation
was previously closed.
Test: manual

Bug: 139074896
Bug: 143653311

Change-Id: I86c10b577dbab8cad2d5f7e19805511a93bcb668
Merged-In: I86c10b577dbab8cad2d5f7e19805511a93bcb668
(cherry-picked from ee7b0a6ab2)
2019-11-07 05:44:36 +00:00
Chen Xu
3157fcdfd8 Merge "new telephony annotation class" am: 386027afdd
am: 54aba99636

Change-Id: I558883c7fb94b9685da5f5c570d2d331a19ba6d5
2019-11-05 01:15:59 -08:00
David Su
0b903dbc0f Merge changes from topic "tethering-systemapi" am: 8e34d95a22
am: 613e7abaa2

Change-Id: Ica224970dc296b82fb68e3e2b25dcb4e525d6b75
2019-11-04 16:36:29 -08:00
Chen Xu
386027afdd Merge "new telephony annotation class" 2019-11-04 23:29:39 +00:00
Chen Xu
7631ff7c48 new telephony annotation class
This is a preparatory work for mainline. since Intdef is hidden, so we
have to move some annotations (applied in SDK/system API) to a separate
annotation class and having other module statically link to it.

TODO: include telephony annotation in framework-non-updatable-sources

Bug: 140908357
Test: Build
Change-Id: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit c9d4ee112e)
Merged-in: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit 4712711d3d91621083bf92f5a1647b92c20a8b81)
2019-11-04 21:26:50 +00:00
David Su
1cef853e2d Clarify JavaDoc for SoftAP APIs
Add more documentation to WifiManager's
EXTRA_WIFI_AP_INTERFACE_NAME, EXTRA_WIFI_AP_MODE,
and startSoftAp().

Bug: 143138160
Test: compiles
Change-Id: I15a22ca8d0718e02e606ba6e19d20b1727aa93d2
Merged-In: I15a22ca8d0718e02e606ba6e19d20b1727aa93d2
2019-11-01 20:26:09 -07:00
David Su
562f07e9ed Promote @hide APIs to @SystemApi for tethering
Bug: 142372871
Test: compiles
Change-Id: I91f143cdc23c6dce8921931a591298ee0c1a1c00
Merged-In: I91f143cdc23c6dce8921931a591298ee0c1a1c00
2019-11-01 20:25:57 -07:00
Sunil Ravi
cd084d5ce8 Merge "wifi: Change WIFI_FEATURE_XXX type from int to long" into qt-qpr1-dev
am: 0710a7e6de

Change-Id: I62aabcf014bc069353619dc98ed65cea7eb4fe09
2019-10-30 10:37:16 -07:00
Sunil Ravi
ce5cf6225f wifi: Change WIFI_FEATURE_XXX type from int to long
This change is to avoid issues in assigning signed integer
feature (WIFI_FEATURE_DPP) to long featureSet. The
assignement was resulting in large, signed integer.

Bug: 143363031
Test: atest com.android.wifi.server
Test: Wifi ON/OFF, Connect and data transfer
Test: Added logs and verified feature set saved in iface.
Change-Id: Ic3828e675e49a8c1628368a7e6cf7f01e420bd96
(cherry picked from commit 26ac48bcd7)
2019-10-29 17:48:55 +00:00
Roshan Pius
d5624efa48 Merge "WifiManager: Reword documenation for get/remove passpoint API" into qt-qpr1-dev
am: 450c63e992

Change-Id: I6338d209186dc74eef168cecfb31d79aebfdfb6a
2019-10-10 10:15:48 -07:00
Roshan Pius
6dcadfa41a WifiManager: Reword documenation for get/remove passpoint API
Bug: 141639265
Test: Compiles
Change-Id: If44ec91ca2d8a4a409677cd7f0f936972db719f6
2019-10-09 11:26:11 -07:00
Xin Li
d57e959e71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: I65906d82b14125c0893d5cde0cfebb73bf9e38ab
Merged-In: I1f2564837c33cd4c6c3db6aac3cbaf8c09707da9
2019-09-10 11:16:29 -07:00
Aurimas Liutikas
de0ebb082e Merge "Add missing nullability annotations." into stage-aosp-master am: 85c0a5a2be
am: ed5beec21b

Change-Id: I202951d51820be47b9195734601830553215bdd7
2019-08-30 08:43:01 -07:00
Aurimas Liutikas
ed5beec21b Merge "Add missing nullability annotations." into stage-aosp-master
am: 85c0a5a2be

Change-Id: Ic9ea2b9840fbb678bbb6ab77038415581feba918
2019-08-30 08:35:52 -07:00
Aurimas Liutikas
00be951a08 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:14:44 +00:00
Roshan Pius
d0ba20f11b Merge "Fix LocalOnlyHotspotReservation double stop of local hotspot." am: c046f9f039 am: aa562f6dc3
am: 48f566d5a9

Change-Id: I433b62544603f3298a6f7314e982c56a78bb0171
2019-08-27 10:56:35 -07:00
Roshan Pius
48f566d5a9 Merge "Fix LocalOnlyHotspotReservation double stop of local hotspot." am: c046f9f039
am: aa562f6dc3

Change-Id: I2aca4f234b70a1ec49f459ef2ae58ec52126cb78
2019-08-27 10:31:48 -07:00
Roshan Pius
aa562f6dc3 Merge "Fix LocalOnlyHotspotReservation double stop of local hotspot."
am: c046f9f039

Change-Id: I362b05f32fc26a7233bd4dd26b3e941c8d2e9a46
2019-08-27 10:19:55 -07:00
Roy Want
2d2b916cd3 Increased precision of Lat/Lng decoder and enabled BSSID list to be explicit (client)
Bug: 139448024
Bug: 139448573
Test: All tests pass (with increased precision), end-to-end tests pass.
Change-Id: I1e1dd3b26df707279e6cc2d59951f28d7878efe8
2019-08-16 21:11:21 +00:00
Yury Kotlyarov
ee7b0a6ab2 Fix LocalOnlyHotspotReservation double stop of local hotspot.
If user executed startLocalOnlyHotspot(), then reservation.close()
garbage collector still keeps reservation object until drain.
If user executed startLocalOnlyHotspot second time during
application life cycle, garbage collector can delete previously
allocated reservation object. In this case finalize() of old
reservation object will be executed, then close(), then
stopLocalOnlyHotspot(). As result, new started LocalOnlyHostpot
can be immediatly stopped by old reservation object delete.
Steps to reproduce: execute startLocalOnlyHostpot() and
reservation.close() multiple times during application life cycle,
check if hotspot up couple of seconds after start.
This fix prevents stopping of local hotspot if reservation
was previously closed.
Test: manual

Bug: 139074896
Change-Id: I86c10b577dbab8cad2d5f7e19805511a93bcb668
2019-08-07 16:05:54 -05:00
Steven Liu
47af13c805 Add the defination of Intent - WIFI_NETWORK_SETTINGS_RESET_ACTION
Bug: 135489675
Test: Do 'reset settings', registered app got the Intent.
Change-Id: I39adae63269595edda79aaf3da82a3dfe613d59a
2019-07-24 09:52:47 -07:00
TreeHugger Robot
4bdeefacba Merge "p2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event" into qt-dev 2019-07-18 18:11:23 +00:00
Jimmy Chen
036b140b39 p2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event
This value may be a null, receiver should check before using variable.

Bug: 137618950
Test: make docs
Change-Id: If466dac092fc345482d0456f08a915d1e7ba0010
2019-07-18 14:27:21 +00:00
Nate Jiang
16601cdd99 [AWARE] recommend use Builder create instance in doc
Changes doc for using Builder to create WifiAwareNetworkSpecifier
instead of deprecated Api.

Test: It's a doc change.
Bug: 136034317
Change-Id: I6f41ceae6d696fc5df336ad831c2c89ab3746c50
2019-06-25 17:57:37 -07:00