Commit Graph

2191 Commits

Author SHA1 Message Date
Roshan Pius
19916d8b8e Merge "WifiConfiguration: Add support for auto-selecting AP band" 2018-01-19 21:33:47 +00:00
Roshan Pius
0fbb97de1f WifiConfiguration: Add support for auto-selecting AP band
Add new constant indicating the band/channel for SoftAp operation will
be determined during softap initialization.

The term 'ANY' for this option to be consistent with terminology used
in hostapd.

Bug: 68763822
Test: Compiles
Change-Id: I9676caf5188601ca16c9229aaa8be2d0e43404a6
2018-01-18 23:24:29 -08:00
Mehdi Alizadeh
55f3aae053 Adds unregisterSoftApCallback API
Bug: 68712383
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I9d6a52eed722b0b0a159b73d517a9dc4d3f8107c
2018-01-18 11:15:23 -08:00
Mehdi Alizadeh
0037dde2fd Adds API to register callback for soft AP event
Bug: 68712383
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I270366494500251858fe2ddf6209c7b4bfb5f546
2018-01-18 11:15:23 -08:00
xshu
9d704cb209 Delete WifiManager API - getConnectionStatistics
Bug: 70901977
Test: compie, run ./frameworks/base/wifi/tests/runtests.sh

Change-Id: If425576642e1a2a055ea5459d1f4440bdde48f9f
2018-01-10 17:38:34 -08:00
Michael Plass
4422221bd0 Merge "Deprecate WifiManager EXTRA_BSSID, EXTRA_WIFI_INFO" 2018-01-10 16:23:49 +00:00
TreeHugger Robot
032626a7ed Merge "WifiManager: startScan throttling" 2018-01-10 00:21:18 +00:00
Roshan Pius
478ee74428 WifiManager: startScan throttling
Changes in the CL:
a) Mark startScan() as deprecated so that we can take away this API in
future releases.
b) Modify the documentation regarding scan throttling to indicate that
both foreground & background apps are subject to throttling.

Bug: 68987915
Test: Compiles
Change-Id: I938237b186c39c6b4cfec9dcdbd9b9d196bae0cc
2018-01-09 13:13:09 -08:00
Oscar Shu
c3ddef9d47 Merge "API cleanup - delete @removed methods" 2018-01-09 21:12:57 +00:00
Etan Cohen
e73f12ff8c Merge changes I620d8e72,I532ca35c
* changes:
  [RTT2] System API for a Responder Configuration
  [RTT2] Baseline public Wi-Fi RTT API
2018-01-09 19:16:51 +00:00
Etan Cohen
2892ba6611 [RTT2] System API for a Responder Configuration
The Responder Configuration is an abstracted specification of the peer
RTT Responder (to which we initiate an RTT operation).

The Responder is abstracted from a ScanResult (for an AP) or a Wi-Fi
Aware PeerHandle or MAC address. Utility methods are provided.

The Responder configuration is the underlying representation used by
the RTT manager and service to communicate infomration on RTT targets.
This API thus does not provide any additional permission or backdoor
hooks to the RTT functionality. It exposes a lower level utility
representation of the data. We may choose to make this more widely
available in the future if necessary.

Bug: 65108607
Test: builds
Change-Id: I620d8e725ad61792b7604ff1355adb1b0ef38ad1
2018-01-08 13:00:09 -08:00
Etan Cohen
a0688e0321 [RTT2] Baseline public Wi-Fi RTT API
Basic Wi-Fi RTT API for ranging to APs + Wi-Fi Aware peers.

Note: no functional tests, just unhiding/comment fixes.

Bug: 65108607
Test: builds, unit tests, integration tests.
Change-Id: I532ca35c866a7862859a0e64d9f7eccd95baa83d
2018-01-08 13:00:05 -08:00
xshu
48bd260b4e API cleanup - delete @removed methods
Bug: 68652341
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: If24720905171844f81359f9913c6b647bdeed85b
2018-01-08 20:44:39 +00:00
TreeHugger Robot
5fd1c97e34 Merge "ScanResult: Add radio chain information" 2018-01-08 19:06:11 +00:00
Roshan Pius
4f17615066 ScanResult: Add radio chain information
On devices with multiple radio chains, each scan result could be
received using different combination of the available radio chains
(DBS, MCC). Add a new parameter in the scan result to convey this meta
information about the scan result.

Bug: 68335251
Test: Unit tests
Change-Id: I1fc97745b9e74b768b67b0c80e52ce4a13e69527
2018-01-08 09:17:54 -08:00
Etan Cohen
acb394d13a Merge "[AWARE] Uhide the RTT in context of Aware discovery API" 2018-01-05 16:00:15 +00:00
Narayan Kamath
c21066b0e7 Merge "BatteryStats: Add WorkChain support for WiFi events." 2018-01-05 09:02:18 +00:00
Etan Cohen
b7abd810ba [AWARE][RTT] Check for null callback registration
Check on the manager side for null callback registration and throw
and exception.

Should be done in addition to service side checks since, in well
behaved apps (which don't bypass the manager), the callback registered
with the service is a proxy wrapper for the user-provided callback.

Bug: 71575804
Test: unit test & integration tests
Change-Id: Ice6585fccb13d842d9518b1f60bff911fb66c48f
2018-01-04 07:34:50 -08:00
Narayan Kamath
728c8a0874 BatteryStats: Add WorkChain support for WiFi events.
The changes are straightforward, the only change outside of BatteryStats
is to use the new WorkSource.isEmpty API to account for WorkChains in a
given WorkSource.

Bug: 62390666
Test: BatteryStatsBackgroundStatsTest, BatteryStatsNoteTest, WifiLockManagerTest
Change-Id: I1dff43b6f2a09877e3af4442bfe8a8fd80b1ba74
2018-01-04 14:18:22 +00:00
TreeHugger Robot
c36fbd4f0f Merge "[Wifi][Passpoint] OSU Server status and failure callbacks" 2018-01-03 02:57:27 +00:00
Etan Cohen
d91b59a1b0 Merge "[RTT2] RTT Responder config mods to meet API requirements" 2018-01-03 01:09:55 +00:00
TreeHugger Robot
ff49fa53af Merge "WifiScanner: Add scan request type to ScanSettings" 2018-01-02 23:43:52 +00:00
Sohani Rao
5b551d56b3 [Wifi][Passpoint] OSU Server status and failure callbacks
Additional status and failure codes for OSU Server connection phase.

Bug: 69009082
Test: Integration test
Change-Id: Ibcb5e62ce40eb13943ae390d4736b5a11eb7f7d4
2018-01-02 14:18:55 -08:00
Oscar Shu
93d7a07597 Merge "WifiManager API documentation update" 2017-12-21 22:05:44 +00:00
xshu
3b10e91991 WifiManager API documentation update
Bug: 67052587
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I02af76cf30f0c7ba4b4d3e9c73c3b8d81598a5a5
2017-12-20 16:38:46 -08:00
Michael Plass
702bae490b Deprecate WifiManager EXTRA_BSSID, EXTRA_WIFI_INFO
These extras are no longer sent on the android.net.wifi.STATE_CHANGE broadcast.

Bug: 69974497
Test: Wifi unit tests
Test: Wifi sanity

Change-Id: I5bd6329d3ba822e018965335c7c21dbde5924b9c
2017-12-20 16:36:44 -08:00
Roshan Pius
00bbf34e3e WifiScanner: Add scan request type to ScanSettings
This new 'type' parameter in ScanSettings is used to convey the goal of
the scan to the underlying wifi chip. This parameter is intentionally
abstract to let the wifi chip vendors decide what type of scan to
perform on devices which support multiple scan modes (DBS, MCC, etc).

Bug: 68335251
Test: Unit tests
Change-Id: Iabddad980128848938b6e2223ad199345812615b
2017-12-20 13:19:41 -08:00
Etan Cohen
6713d08239 [RTT2] RTT Responder config mods to meet API requirements
Convert class and members to final - per API guidelines. Add a generic
constructor for all arguments (which will never be unhidden) to support
an intermediate service-side stage of the Responder config.

Bug: 65108607
Test: unit tests, integration tests
Change-Id: Icbcbd8259856c8290bbc005f5905578da90febbc
2017-12-19 15:17:48 -08:00
Etan Cohen
997dbef4eb [AWARE] Check dynamic location permission
Add check for dynamic location permission.

Bug: 70499417
Test: unit tests, integration tests, CtsVerifier
Change-Id: I293f21082c5a3d77362fb3d1db727130d7e41ec5
2017-12-18 16:58:36 -08:00
TreeHugger Robot
289d960dde Merge "[AWARE] Check for RTT feature presence for Aware discovery with ranging" 2017-12-14 16:48:12 +00:00
Etan Cohen
84b0a3f54c [AWARE] Check for RTT feature presence for Aware discovery with ranging
When configuring Aware discovery with ranging validate that the RTT
feature is present on the device.

Bug: 63906015
Test: unit tests, integration tests
Change-Id: Ie12feaf84f17c075f0e60bdacfc14af3703124c3
2017-12-08 13:37:16 -08:00
Etan Cohen
46efb48100 [RTT2] Update RTT service name
Change to a sensible name which doesn't conflict with legacy RTT
service.

Bug: 65108607
Test: unit test, integration test
Change-Id: I54855635061c09e8d4bd2e97bac049f2893de123
2017-12-07 13:53:44 -08:00
Etan Cohen
6570644d02 [AWARE] Uhide the RTT in context of Aware discovery API
New APIs to allow Aware discovery sessions to specify a ranging (RTT)
constraint.

Bug: 65108607
Test: unit test, integration tests
Change-Id: Ibbb123fc66676e0bd36b0803c8bac21136a801c0
2017-12-07 10:03:47 -08:00
Etan Cohen
48856ee393 [RTT2] Convert APIs to use MacAddress
MacAddress class is being added as a public API. Convert ad-hoc
byte[] represetations to new class.

Bug: 65108607
Test: unit tests and integration tests
Change-Id: I4bf3b7c47f37d4ef4dd5af0dcdeb7d57f2f94368
2017-12-07 06:49:20 -08:00
Oscar Shu
bb91f5fe94 Merge "Remove unwanted hidden APIs" 2017-12-05 18:09:42 +00:00
TreeHugger Robot
bf27f7dac3 Merge "[RTT2] Fix build failure with new MacAddress" 2017-12-04 20:51:27 +00:00
TreeHugger Robot
9bf9f13e81 Merge "Move WifiLinkLayerStats out of frameworks/base" 2017-12-04 18:28:21 +00:00
Etan Cohen
fe43d359ef [RTT2] Fix build failure with new MacAddress
Responder was using the new MacAddress before its finalization.
Fix reference to a (now removed) constructor.

Bug: 65014962
Test: unit tests & integration tests
Change-Id: I4d0fd32454c1362129e03deada2d6e6a253e2590
2017-12-04 10:22:58 -08:00
TreeHugger Robot
f511a7e481 Merge "[RTT2] Direct Aware Responder configuration" 2017-12-01 02:02:58 +00:00
Etan Cohen
2109f705f3 [RTT2] Direct Aware Responder configuration
Direct Aware Responder configuration set to the basic rates (discovery
channel 6, 20MHz bandwidth). It is expected that these will be ignored
and that (with a Ranging enabled Responder Publisher) enabled on the peer
a high accuracy RTT will be negotiated.

Bug: 67678464
Test: unit test & integration test (non-functional at this point)
Change-Id: I240cfef91a968cd1eb75a71b5ead96ae4eccb32d
2017-11-30 23:57:30 +00:00
Etan Cohen
0d49c0dda8 [AWARE] Make PeerHandle comparable/hashable
Add public equals()/hash() methods to PeerHandle. Allows the handle to
be used across multiple calls/sessions.

Bug: 68931709
Test: builds, unit test, integration test
Change-Id: Idc59269d4275181ed6d9a793213c681dc4e98134
2017-11-30 23:56:37 +00:00
Etan Cohen
dd08b04037 [RTT2] Add a generic Responder mode configuration
Add a generic Responder mode which is the common configuration for
any peer (which any peer configuration can be translated to).

Bug: 65014962
Test: unit tests and integration tests
Change-Id: If2f6abc217508792d319d7d5e54aa3f7385b0ec5
2017-11-30 20:21:04 +00:00
Sohani Rao
49de715bf3 Merge changes from topics "ProvisioningCallback", "PASSPOINT_APIs"
* changes:
  Introduce Status and Failure code for Provisioning
  Provide APIs for HS2.0 provisioning
2017-11-28 20:14:11 +00:00
xshu
8d4e20f260 Remove unwanted hidden APIs
Bug: 69424325
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: If5e0c695655bd75f5aea16a339696fcebd9c5601
2017-11-28 11:45:30 -08:00
Jeff Sharkey
c204c223a7 Deeper sanity checking of emitted types.
When emitting a method or field, verify that we're able to reference
all mentioned types.  This ensures that we don't accidentally
reference undefined classes/interfaces.

Test: manual inspection of API files
Bug: 69791141
Change-Id: I84e0c87fe83daa118661f61dbdf17b58ea5282d4
2017-11-27 17:07:40 -07:00
Sohani Rao
06751720ac Introduce Status and Failure code for Provisioning
Passpoint Provisioning status and failure codes to be used by callback
API to provide information to the caller about the provisioning flow

Bug: 67914151
Test: Unit test
Change-Id: If1bf28ac8e2e0b7d8141d1b9cb12e3a6e46cb126
2017-11-27 15:42:24 -08:00
Sohani Rao
2b1c42f9bb Provide APIs for HS2.0 provisioning
Created a new hidden API to be called for starting subscription
provisioning with a certain provider. Create a callback interface and a
callback object to be used by the caller to get provisioning status
updates.

Bug: 67645546
Test: Unit tests
Change-Id: I9592222cfe79c5859c455c5a658956120558059f
2017-11-27 15:11:44 -08:00
Peter Visontay
86b92f3ef9 Merge "Revert "Log the CHANGE_WIFI_STATE App Op in WifiManager (client changes)."" 2017-11-21 17:10:18 +00:00
Peter Visontay
ca835c14cf Revert "Log the CHANGE_WIFI_STATE App Op in WifiManager (client changes)."
This reverts commit dfe291b72b.

Change-Id: I82e25fb7e46a679d82d89fd5f56e4f334b593f69
Bug: 69498268
2017-11-21 12:02:16 +00:00
Michael Plass
6c6302632f Move WifiLinkLayerStats out of frameworks/base
Since the packet rate fields of WifiInfo now have sane units (pps),
remove the getters.

Bug: 68204362
Test: Unit tests
Change-Id: Ib699cef91a8e10aaca05994ba1617ac5556d110f
2017-11-20 11:41:06 -08:00