Commit Graph

2738 Commits

Author SHA1 Message Date
Roshan Pius
833d611c86 Merge "WifiManager: Reword documenation for get/remove passpoint API" into qt-qpr1-dev am: 450c63e992
am: d5624efa48

Change-Id: I4d339c9ba94a705d2321681d7f92fd6d9aa69ccf
2019-10-10 10:27:11 -07: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
Hugo Benichi
6835125661 Merge "WiFi: Remove deprecated methods" 2019-10-03 14:12:35 +00:00
Patrik Fimml
090ea13604 LOHS: use Executor and AIDL interface internally
This enables us to use Executor in new external APIs (as recommended).
This also migrates the LOHS callbacks to an AIDL interface, which
results in cleaner and type-safe code, and allows us to use Executor
without an extra layer of indirection.

Test: atest android.net.wifi.WifiManagerTest LocalOnlyHotspotRequestInfoTest WifiServiceImplTest android.net.wifi.cts.WifiManagerTest
Bug: 132705022
Change-Id: I621062fd3865ca048c022c7ad3520ae4694fc0df
2019-10-02 15:49:40 +02:00
Chen Xu
c9d4ee112e 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
2019-09-30 14:36:11 -07:00
Oscar Shu
5e7736022e Merge "Remove getOrCreateRandomizedMacAddress API" 2019-09-27 17:14:30 +00:00
Hugo Benichi
bbe1a1993e WiFi: Remove deprecated methods
Bug: 122431221
Test: Compiled
Change-Id: I66df2979cee05bf283d227a6948f0ffa42767783
2019-09-27 13:05:31 +09:00
xshu
44e80de8be Remove getOrCreateRandomizedMacAddress API
Bug: 137799272
Test: unit tests
Change-Id: I078d28ed81a84e32aaece839a51590364a974481
2019-09-25 16:27:29 -07:00
Roshan Pius
f180b09492 WifiScanner: Add missing @hide constants
Bug: 140111024
Test: atest com.android.server.wifi
Change-Id: I55ebfbbd1c8fbc459cee7d5e831b70b73adebf5d
2019-09-24 06:38:11 -07:00
Roshan Pius
4807c9a3dd WifiScanner: Add support to add more results to ScanData
Bug: 140111024
Test: atest android.net.wifi
Change-Id: I71a7568eb508db61cabdaf6e11b51df01c9eb49b
2019-09-24 06:38:11 -07:00
Roshan Pius
718a048728 Merge changes from topics "clientmodeimpl_api_cleanup", "remove_wifi_set_country_code_api", "wifimanager_async_remove"
* changes:
  TestLooper: Some changes to test looper behavior
  WifiManager: Remove setCountryCode API
  WifiManager: Remove async channel usage
2019-09-24 13:32:11 +00:00
Roshan Pius
49cc6e3af7 WifiScanner: Enhance doc for setScanningEnabled API
The existing WifiScanner.setScanningEnabled() API is invoked by
ActiveModeWarden after any client iface state changes. Documenting this
behavior explicitly (i.e enable needs to be invoked multiple time if
there are multiple STA's brought up).

Bug: 140111024
Test: None
Change-Id: Ie377a9b57119cb7389df60294fc2111ec654fd38
2019-09-19 11:53:08 -07:00
Roshan Pius
c3b87926fb WifiManager: Remove setCountryCode API
Wifi stack will instead call existing public Telephony API/broadcast
to get the country code.

Bug: 140744935
Test: Manual tests
Test: atest android.net.wifi
Change-Id: I83be57123630c510e121f49ceadb30644e26c29c
2019-09-17 14:52:29 -07:00
Roshan Pius
641a6834ba WifiManager: Remove async channel usage
Changes:
a) Migrate existing async channel methods to tracked binder calls.
b) Migrate existing async channel responses to tracked binder callbacks.
c) Deprecate WifiManager.disable() (Use public WifiManager.disableNetwork()
instead). Don't see any external users of this API.
d) Removed unnecessary RssiPacketInfo class (only the total pkt count is
necessary in the public API, so remove this class and only pass the
total count in the callback).

Bug: 130039719
Test: atest android.net.wifi
Test: Manual tests
a) Able to connect to networks from settings.
b) Able to remove network from setttings.

Change-Id: Ie82a9fce2f9e32e48a2da77477893427863fb460
2019-09-17 14:52:29 -07:00
Nate Jiang
999d26c618 [NetworkSuggestion] allow apps in-place modify suggestion
Changing the comments.

Bug: 138447131
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: Ia02033a53ba67f3cf5106a8c4996c3d24a65672a
2019-09-11 01:15:22 +00:00
Jimmy Chen
aa62e30c8d Merge "ocsp: add OCSP field in WifiEnterpriseConfig" 2019-09-06 16:15:04 +00:00
Jimmy Chen
7938515152 ocsp: add OCSP field in WifiEnterpriseConfig
Bug: 136720092
Test: atest FrameworksWifiApiTests
Test: tested with OCSP supported profile
Change-Id: I0095a235792997fda54a2f68af48819caf3deef1
2019-09-06 10:39:35 +08:00
Roshan Pius
bc0f7cb100 WifiManager: Ignore void API calls with default values
When wifi service is not yet up, we throw a remote exception for API
calls which have void return. Change this to only throw a remote
exception when the input params have non-default values.

This takes care of cases where some other system modules resets wifi
params as a part of their initialization sequence (which will already be the
value when the wifi service comes up, so the calls are not useful)

Bug: 140076130
Bug: 139897982
Test: atest WifiManagerTest
Change-Id: If24d5ae52f1d39d2d99a860f3dc6c5f1860fd656
2019-09-04 10:43:03 -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
4d1699da48 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
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-29 17:15:44 -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
Jimmy Chen
281a34ac94 Merge "wifi: add SAE password identifier to WifiConfiguration" 2019-08-28 15:31:17 +00:00
Jimmy Chen
8d91c07028 wifi: add SAE password identifier to WifiConfiguration
Bug: 138305265
Test: atest FrameworksWifiApiTests
Test: atest FrameworksWifiTests
Test: connect to a WPA3 SAE access point with different
      password/identifer combinations.

Change-Id: I1f26a5dbf5654ca2a6734f94eec547f33c349e9e
2019-08-28 10:34:38 +08:00
Roshan Pius
9098d0a32a Merge "Fix LocalOnlyHotspotReservation double stop of local hotspot." am: c046f9f039 am: aa562f6dc3 am: 48f566d5a9 am: d0ba20f11b
am: 240c420e27

Change-Id: Ib2a29ee6b83638fce0ca737f636bb284de1d8185
2019-08-27 11:35:49 -07: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
TreeHugger Robot
cb5a64ff40 Merge "IFACE_IP_MODE_*: add IntDef and clean up JavaDocs" 2019-08-27 17:13:36 +00:00
Oscar Shu
cf65493f1e Merge changes from topics "macRandWhitelist", "paranoidSsidOptIn"
* changes:
  [Mac rand] recording when the randomized mac is last changed
  [MAC rand] add feature flag for aggressive mode per SSID
2019-08-26 17:11:49 +00:00
Jimmy Chen
9d4f41f27c Merge "wifi: common name support in PPS-MO profile" 2019-08-26 02:00:59 +00:00
xshu
29ffdcb6bb [Mac rand] recording when the randomized mac is last changed
Bug:137796328
Test: unit tests
Change-Id: Ifc03c0a117675c61328d21dc0f413540b47ada89
2019-08-23 14:05:59 -07:00
Jimmy Chen
3c9c642fdb wifi: common name support in PPS-MO profile
Bug: 120107510
Test: atest FrameworksWifiApiTests

Change-Id: I82d3e280ebf3169288409a9a1c2a845f88d8e345
2019-08-23 13:12:28 +08:00
Roshan Pius
dfb747ef8d WifiManager: Return dummy values when wifi service is not up
Many system/vendor modules assume that wifi service is up by the time
they run. This is no longer the case since wifi stack now starts a
little later in the bootup sequence (to support pluggable wifi stack
module for mainline). If any of these modules invoke a WifiManager
call,
a) Return an appropriate dummy value if the API returns a value
b) Raise a RemoteException if the API returns nothing (void).

Bug: 139492857
Bug: 137650946
Test: Verified that SUW & CNE receiver no longer crashes with the stack
traces in the linked bugs.
Also, verified that SUW still can connect to wifi networks & detect when
wifi auto-connects after SUW comes up.
Test: Verified wifi/softap toggle from Settings/Sysui.

Change-Id: Ia100a4612fc903ae470a0c89523d4fda27eb3fbc
2019-08-21 17:04:28 -07:00
Roy Want
ca7dc1a72a Merge "Increased precision of Lat/Lng decoder and enabled BSSID list to be explicit (client)" into qt-r1-dev am: 4e027572e3 am: ac9c2723c6
am: b7a647f676

Change-Id: Ia22a173359eb79a3f8f21612364b33724a827ae0
2019-08-19 15:00:20 -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
David Su
478c8aa0ac IFACE_IP_MODE_*: add IntDef and clean up JavaDocs
Add IntDef and clean up JavaDocs

Bug: 139157226
Test: compiles
Change-Id: I7858cfa59b0fac9cf48b925ba5b1767d883e6a55
2019-08-16 10:05:21 -07:00
Roshan Pius
2161b39d38 WifiManager: Retrieve IWifiManager service lazily
Wifi services will be initialized a little later in the bootup sequence
because it is now a separate APK. So, retrieve wifi services lazily
(on the first method call on the object).
This will alleviate the need to modify all the clients which instantiate
WifiManager very early in the bootup sequence (Sysui, some vendor apps,
etc).

Bug: 137374831
Test: Device boots up & connects to wifi networks.
Change-Id: I8e1f0eb3a5a8fdb79b088447fbb9f97413f64483
Merged-In: I8e1f0eb3a5a8fdb79b088447fbb9f97413f64483
2019-08-12 09:04:11 -07: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
TreeHugger Robot
422eb73fb7 Merge "[WifiManger] add API to get suggestion" 2019-07-31 20:23:27 +00:00
Nate Jiang
f6b731a861 [WifiManger] add API to get suggestion
Develop a new API for Apps to get the network suggestion suggestedby its
own.

Bug: 138447131
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: Ib8b9c23fe0c7b5e913475bb368fb3d7d4f443e2d
2019-07-30 16:23:22 -07:00
Steven Liu
9cd9cb9b37 Merge "Add the defination of Intent - WIFI_NETWORK_SETTINGS_RESET_ACTION" into qt-r1-dev am: 82aec2e913 am: b76e805a27
am: 67a791b95c

Change-Id: Idc07559d19789cd5435298d6fecdaf971502309f
2019-07-29 08:50:32 -07: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
845713905e Merge "[NetworkSuggestion] add network suggestion disconnect API" 2019-07-19 23:09:14 +00:00
Nate Jiang
3cc44fa7ba [NetworkSuggestion] add network suggestion disconnect API
Change the doc. remove suggestion may cause disconnect.

Test: None
Bug: 137582811
Change-Id: I89a9ba090a4b984f8411594e212a1fa013e77dc8
2019-07-19 09:42:30 -07:00
Jimmy Chen
3ea345ce56 Merge "p2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event" into qt-dev am: 4bdeefacba am: 85bff23cee
am: 02bc4fc06b

Change-Id: I8285d131f5bf4626d08a3128e540f4ab056d97d8
2019-07-18 11:48:11 -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
David Su
152978d0ce Wifi: remove dead code
Remove unused Parcelables from frameworks/base

Bug: 134712974
Test: compiles
Change-Id: I3e5bb51780750d22a0e49922c32fae21addc53cc
2019-07-09 16:56:07 -07:00