Commit Graph

2288 Commits

Author SHA1 Message Date
Etan Cohen
e23bb145b0 [AWARE] Minor fix to documentation for Aware + Discovery
Clarify that limits include "=". This is particuarly critical for
the lower range value of 0 since in very close quarters measurements
will result in negative values which will be translated to a 0 - i.e.
must have >=0 for ranging to trigger discovery.

Bug: 65108607
Test: N/A
Change-Id: I443c2fff7fe8dad6133d66a82f645a8304787f4c
2018-03-12 10:28:40 -07:00
TreeHugger Robot
21e331ed2d Merge "Update javadoc for WifiConfiguration.setHttpProxy" into pi-dev 2018-03-09 12:42:55 +00:00
Etan Cohen
eed77825b2 [RTT] COARSE -> FINE permission requirements
Bug: 74358581
Test: rtt unit tests
Test: acts/sl4a RangeApSupporting11McTest:test_rtt_80211mc_supporting_aps
Change-Id: Ie65efe227663f7b85344607c765eaa1a231a2533
2018-03-08 11:08:42 -08:00
Rubin Xu
df2ec09a9c Update javadoc for WifiConfiguration.setHttpProxy
Clarify that this method is only available to device owner and
profile owner.

Change-Id: I2f77a16442a0403cc7895bdc3b8375cb22cb68a9
Fixes: 70038439
Test: builds
2018-03-06 15:34:42 +00:00
Etan Cohen
caf222f814 Merge "[AWARE] Update documentation to reflect Aware+Ranging best effort" 2018-03-02 18:36:10 +00:00
TreeHugger Robot
f10198f1a5 Merge "[AWARE] Update PeerHandle doc to reflect good practice on usage" 2018-03-02 17:08:24 +00:00
Etan Cohen
e43df4defb [AWARE] Add target API check to the Responder to ANYONE config
Responder to ANYONE was deprecated for API >= P. But the manager
code did not check for target API - i.e. even older apps would have
been rejected. Added the target API check to the manager code.

Bug: 72175022
Test: unit test + integration tests
Change-Id: I52e0c877e0af0756816b5b13e42f432504461e20
2018-02-28 10:22:10 -08:00
Etan Cohen
ffb49e3a60 [RTT] Fix legacy RTT API
Legacy RTT APIs wrap around the new RTT API. The translation of
results from new to legacy APIs allocated the full number of
results - but only filled-in one of the results - the others
were left null.

Bug: 73884773
Test: RangeApSupporting11McTest:test_legacy_rtt_80211mc_supporting_aps
passes with multiple APs

Change-Id: Id5ec70de272868d92154bdca9eee1d398c3a1801
2018-02-26 09:33:25 -08:00
Etan Cohen
6538650e29 [AWARE] Update PeerHandle doc to reflect good practice on usage
Update PeerHandle doc to relfect that while can be compared and hashed,
good practice will use an app level identifier.

Bug: 68931709
Test: 'make update-api' and reviewed generated doc
Change-Id: If6725e8854976d482ca18429a9b5352cff0baf93
2018-02-22 12:36:46 -08:00
Etan Cohen
8c4c5bf275 [AWARE] Update documentation to reflect Aware+Ranging best effort
Documentation update to reflect the "best effort" nature of Aware
discovery + Ranging configuration: if ranging is not enabled or
(temporarily) not available then normal discovery is performed.

Bug: 33821639
Test: builds
Change-Id: Ieb33f840809928f6025774bb9cd31dc1dd878518
2018-02-20 09:51:49 -08:00
Etan Cohen
2094d9d306 Merge "[RTT] Replace Handler with Executor in public APIs" 2018-02-17 15:37:24 +00:00
Etan Cohen
554fa64cc9 Merge "[RTT] Ranging timestamp is in millis" 2018-02-17 05:27:30 +00:00
Etan Cohen
dd01fb1e04 Merge "[RTT] RangeResult RSSI now in units of dB" 2018-02-17 05:26:57 +00:00
Etan Cohen
15235cd5f7 Merge "[RTT] LCI/LCR to System API - unparsed" 2018-02-17 00:17:55 +00:00
Etan Cohen
52982a9e40 [RTT] Replace Handler with Executor in public APIs
Per new API guidelines.

Bug: 73088768
Test: unit tests & integration tests
Change-Id: I5aba667e746f4a031fcf53c168e89cbdcfc0c5ec
2018-02-16 10:13:26 -08:00
Etan Cohen
4577b9b17c [RTT] Ranging timestamp is in millis
API review mods: change ranging timestamp to milliseconds. Update
docs to clarify which time is being measured.

Bug: 73088768
Test: unit tests & integration tests
Change-Id: I8a81e92d1a3d264abd98a1695be6a5da6fa5f6a1
2018-02-16 10:13:26 -08:00
Etan Cohen
11fa8355d4 [RTT] RangeResult RSSI now in units of dB
Changed from units of -0.5dB to units of +1dB (original is what comes
from the firmware).

Per API council feedback.

Bug: 73088768
Test: unit tests & integration tests
Change-Id: I77ccbf76f947f29b24a701626e0a1517dd85729e
2018-02-16 10:13:26 -08:00
Etan Cohen
870301c9e2 [RTT] LCI/LCR to System API - unparsed
Move LCI/LCR to a System API - unparsed:
- Punting parsing for future release
- Not widely available in APs for testing
- Usability/deployment unclear

Bug: 71643239
Bug: 73088768
Test: unit tests & sanity integration tests
Change-Id: Idd3bded55e887abbad6c51b00b31e75c859ba579
2018-02-16 10:13:20 -08:00
Oscar Shu
e7a379cdd9 Merge "Deprecate supplicant related stuff in WifiManager" 2018-02-16 18:09:01 +00:00
Oscar Shu
4d012a6b77 Merge "Deprecate WpsInfo" 2018-02-16 18:08:29 +00:00
TreeHugger Robot
51812b98bb Merge "[RTT] Fix legacy API crash on invalid RTT results" 2018-02-15 22:31:42 +00:00
Etan Cohen
fe18b1c6de [RTT] Fix legacy API crash on invalid RTT results
Legacy RTT API permitted access of results (e.g. distance) even
when the measurement failed - the new API throws an exception.

Add checks to the translation code (from new to legacy) so that
exceptions aren't thrown - results are simply 0.

Bug: 73297815
Test: builds, integration test is being developed
Change-Id: I8286e36afe5597cc372e65b75f03a382ca0cd2b3
2018-02-15 07:25:32 -08:00
xshu
4e775ebf0d Deprecate supplicant related stuff in WifiManager
Bug: 71866976
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I66d17cae7bb8c1942409d6cb5b5895ad1990defa
2018-02-14 17:38:42 -08:00
xshu
7bccf2f997 Deprecate WpsInfo
Bug: 73023945
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ib108ba98d743dbcd3887446aae23fe848ffe75cd
2018-02-14 16:15:53 -08:00
Etan Cohen
d4a4b1edd4 [RTT] Unhide error status code for non-support of IEEE 802.11mc
Bug: 72975604
Bug: 73088768
Test: builds
Change-Id: I3e07ee73221b280c69ace42481cad38d3abcbbea
2018-02-13 09:20:24 -08:00
Etan Cohen
74e201246f [RTT] Add error code for Responder not support IEEE 802.11mc
Add an error code which will be used when the Responder does not
support IEEE 802.11mc - and by implication when such non-support
results in an error.

Note: @hide for now - will be unhidden in a subsequent CL.

Bug: 72975604
Test: unit tests, integration tests
Change-Id: I903abe6cfe19e771e4e4cdaadec48e82f009cbf3
2018-02-12 14:44:49 -08:00
TreeHugger Robot
e4cf2564c6 Merge "[RTT][AWARE] Update documentation for direct ranging to an Aware peer" 2018-02-09 05:41:26 +00:00
Etan Cohen
1f974c4638 [RTT][AWARE] Update documentation for direct ranging to an Aware peer
Update documentation with references to (now) public API specifying
the ranging configuration of Aware devices.

Bug: 73088768
Test: builds
Change-Id: Iedb69550cfb249050bb9e92f3e698f8f7db2ff85
2018-02-08 16:13:55 -08:00
Etan Cohen
af018ce387 Merge "[RTT] Deprecate legacy RTT API" 2018-02-08 19:03:27 +00:00
TreeHugger Robot
7db7bff014 Merge "Remove wifi/ScanResult.averageRssi method" 2018-02-08 08:43:37 +00:00
Etan Cohen
035d8af171 Merge changes from topic "am-8cd2288f-c3e9-422f-8fde-02d5b6100d12" into oc-dev am: d05a3078fc am: 0d2044af4b am: f1ff948671
am: 8fb67cb883

Change-Id: Ica58c7112b460e39f8b469201a054a420f04c35d
2018-02-08 01:44:30 +00:00
Etan Cohen
8fb67cb883 Merge changes from topic "am-8cd2288f-c3e9-422f-8fde-02d5b6100d12" into oc-dev am: d05a3078fc am: 0d2044af4b
am: f1ff948671

Change-Id: Ia9ca0839e05779d02560b07e1ab7103d9779c06e
2018-02-08 01:11:51 +00:00
Etan Cohen
f1ff948671 Merge changes from topic "am-8cd2288f-c3e9-422f-8fde-02d5b6100d12" into oc-dev am: d05a3078fc
am: 0d2044af4b

Change-Id: I7f622c50449e231d3bcf32dc3fee5ba2f14f8da1
2018-02-08 00:03:07 +00:00
Jong Wook Kim
83c5ff1b79 Merge "Default Randomized MAC Address to 0:0:0:0:0:0 in WifiConfig" 2018-02-07 23:45:37 +00:00
Etan Cohen
0d2044af4b Merge changes from topic "am-8cd2288f-c3e9-422f-8fde-02d5b6100d12" into oc-dev
am: d05a3078fc

Change-Id: I446c693cfd86954f789db4fbc6d11d6954c6d343
2018-02-07 23:43:32 +00:00
Etan Cohen
d0acccdf25 [RTT] Deprecate legacy RTT API
Bug: 65108579
Test: unit tests pass
Test: WifiRttManagerTest:test_regular_scan_then_rtt_ranging_stress
Change-Id: Ifa90acf8bb358657785b42222e68c537658c85e2
2018-02-07 12:36:09 -08:00
Etan Cohen
9accbba1b7 [RTT] Remove the legacy RTT service
Remove the legacy RTT service. RTT requests are already directed to
the new API by a previous CL.

Bug: 65108579
Test: unit tests
Test: WifiRttManagerTest:test_regular_scan_then_rtt_ranging_stress
Change-Id: I436e8bcd2f4e2ba6056870d887eea141fbebae85
2018-02-07 12:36:05 -08:00
Jong Wook Kim
4f10fb95de Default Randomized MAC Address to 0:0:0:0:0:0 in WifiConfig
Set the default value of Randomized MAC address as 0:0:0:0:0:0 instead
of null.

Making this change to simplify storing randomized address to XML for
permanent storage. Without this change, will need to manually check if
the value is null during MacAddress<->XML conversion.

Bug: 72753415
Test: Unittest.
Change-Id: I6edf486360e267acec9f8a343386444be2ea99fa
2018-02-07 19:31:19 +00:00
Michael Plass
ee84871fda Merge "WifiConfiguration validation improvement" 2018-02-04 23:19:50 +00:00
Michael Plass
7508e5cf2f WifiConfiguration validation improvement
Prevent WifiConfiguration.mIpConfiguration from ever being null

Bug: 62187840
Test: Unit tests
Change-Id: I6d7c53daad08aa242909c762956093eb135dd6c0
2018-02-02 14:38:24 -08:00
Android Build Merger (Role)
191b47590c [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766 am: d38155fc59 am: e016e9c975 am: 839c0ed22d am: 7ae0c44ca4
Change-Id: Iad48f3c561f94741331a22d4dab5b7a1041fdfd5
2018-02-02 18:16:45 +00:00
Android Build Merger (Role)
7ae0c44ca4 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766 am: d38155fc59 am: e016e9c975 am: 839c0ed22d
Change-Id: If80acece5df0e149bf832970cf4ee1ba60877e71
2018-02-02 18:16:40 +00:00
Android Build Merger (Role)
839c0ed22d [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766 am: d38155fc59 am: e016e9c975
Change-Id: I57936e6a45df8f40d3d1aa7a72d57ea40e9b5909
2018-02-02 18:16:35 +00:00
Android Build Merger (Role)
e016e9c975 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766 am: d38155fc59
Change-Id: I74d9fbe30fd93e43cfa9d5b3d7eae64418163924
2018-02-02 18:16:30 +00:00
Android Build Merger (Role)
d38155fc59 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8 am: ee65cf4766
Change-Id: I15d12616e80cfd1b4d03a76ef1030fa2003a83d2
2018-02-02 18:16:25 +00:00
Android Build Merger (Role)
ee65cf4766 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c am: 5f4d9350f4 am: 8d2d052b61 am: af9f48b7e8
Change-Id: I5a6d8519fc77c96d2df7afc58c1d45af57250e8b
2018-02-02 18:16:12 +00:00
Android Build Merger (Role)
5f4d9350f4 [automerger] [RTT] ParcelableRttResults parcel code fix am: e1e5a2409c
Change-Id: I46bbee504ea7a64d39b98a2a8336b3bcf593869a
2018-02-02 18:15:53 +00:00
Etan Cohen
e1e5a2409c [RTT] ParcelableRttResults parcel code fix
ParcelableRttResults was unparceled incorrectly.

Bug: 70398564
Test: exploit provided in bug no longer works
Change-Id: Ifd6de547e9861bbebc399b43d0cc2899a8160813
2018-02-02 10:11:47 -08:00
Etan Cohen
a61813e609 [RTT] Route legacy RTT API on top of new RTT API
Route legacy RttManager API on top of new WifiRttManager API - but
only support the legacy startRanging call. All others (including
Responder modes) are deprecated and throw an exception.

Note: the deprecation tags will be in a separate CL.

Bug: 65108579
Test: unit tests pass
Test: WifiRttManagerTest:test_regular_scan_then_rtt_ranging_stress
Change-Id: I63541fdcaac36f4bb40ed71660bbcfc507693ffc
2018-02-01 06:43:15 -08:00
Michael Plass
c3e6cba244 Remove wifi/ScanResult.averageRssi method
This logic belongs in the wifi service, not here.

Bug: 68401944
Test: Unit tests
Change-Id: I22f07254b0f52b4b88f809a624180bab1447e34b
2018-01-31 11:00:43 -08:00