Commit Graph

2568 Commits

Author SHA1 Message Date
Jimmy Chen
1ddbe82a99 p2p: revise API Javadoc
Revise API Javadoc according to API council's comments.

Bug: 123661241
Test: build - make docs
Change-Id: I258ecd1c78e95d0847d86965ec306dfd2bdafac1
2019-02-14 18:31:43 +08:00
Roshan Pius
cd3afe26d7 WifiInfo: Fix javadocs to reflect the new behavior
Bug: 124080065
Test: Compiles
Change-Id: Ia087d07eda30f94a79f5e1132fc3249aa0df5b32
2019-02-13 12:14:34 -08:00
Etan Cohen
ae78bea482 Merge "[WIFI] Update javadoc for getConfiguredNetworks" 2019-02-12 20:16:18 +00:00
TreeHugger Robot
ebfc162db3 Merge "Remove unnecessary SystemApi annotation from EasyConnectCallbackProxy" 2019-02-12 18:56:40 +00:00
Etan Cohen
a3be9e2506 Merge changes from topic "parcelable_peer_handle"
* changes:
  [AWARE] Create a Parcelable version of PeerHandle
  Revert "[AWARE] Make PeerHandle parcelable"
2019-02-12 00:13:47 +00:00
Etan Cohen
4bf6987cee [WIFI] Update javadoc for getConfiguredNetworks
Document more clearly PO/DO behavior (in addition to already documented
Carrier app).

Bug: 123390208
Test: build docs
Change-Id: Ic5228fd801c4243d8398313a2a7d84cf5b6e6d89
2019-02-11 14:23:49 -08:00
Etan Cohen
8c83a07c36 Merge "[AWARE] Enhance TLV utils to support new TLV structs in NAN" 2019-02-11 16:35:59 +00:00
Jiyong Park
019081edc6 Remove unnecessary SystemApi annotation from EasyConnectCallbackProxy
The class is a private inner class which is not accessible from anywhere
outside of WifiManager but is annotated with SystemApi. The annotation
is failing android.signature.cts.api.AnnotationTest#testAnnotation.

Bug: 124210145
Test: run cts -m CtsSystemApiAnnotationTestCases
Change-Id: I0c38e39f3e1cf5e161fafad4c243ebe2531830bb
2019-02-11 22:40:07 +09:00
Roshan Pius
2fb540e01f Merge changes I2d88af7e,Ic0730eca
* changes:
  WifiNetworkSuggestion/Specifier: Fix javadoc
  wifi.proto: Add wifi config store IO duration metrics
2019-02-09 00:26:12 +00:00
Roshan Pius
34929e323a WifiNetworkSuggestion/Specifier: Fix javadoc
Bug: 123313291
Test: Compiles
Change-Id: I2d88af7ed0ee3b92c17ab9af84aadad31523d6ab
2019-02-08 11:58:47 -08:00
Ahmed ElArabawy
0dfff0de84 Wifi: Update the API doc for LOW_LATENCY wifilocks
This commit is updating the javadoc for the LOW_LATENCY wifi locks.
This is based on the request of the API Council review.

Bug: 122984857
Test: None
Change-Id: I815eb5b9905b700433aed4ef4fbbce215ffbe391
2019-02-08 10:28:35 -08:00
Etan Cohen
bd0ebf80b4 [AWARE] Create a Parcelable version of PeerHandle
Extend PeerHandle to create a parcelable version. Cannot simply
add parceling to the original class since it is not version safe
(new apps running on old operating systems will crash).

Bug: 119594815
Bug: 122984982
Test: atest android.net.wifi.aware
Change-Id: If6edb9f43ad89d1438eb0969292fe55904677d2d
2019-02-08 08:29:43 -08:00
Etan Cohen
ea792225c4 Revert "[AWARE] Make PeerHandle parcelable"
This reverts commit a36b5c5815.

Can't change the behavior of PeerHandle in-place. Will create
a new class which extends it.

Bug: 122984982
Test: atest android.net.wifi
Change-Id: I14da17680fcbf20ece84631896d10cfaa53e33dc
2019-02-08 08:29:15 -08:00
Ahmed ElArabawy
dd4895f5b4 Merge "Statsd atom: Add WifiLock type" 2019-02-07 23:25:45 +00:00
Oscar Shu
1f0613f659 Merge "Update getRandomizedMacAddress API comments" 2019-02-07 23:15:54 +00:00
Etan Cohen
912eff0969 [AWARE] Enhance TLV utils to support new TLV structs in NAN
Enhance TLV utilities (and fix bug). New methods necessary as
part of construction of NANv3 compliant TLVs.

Bug: 117605977
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: I1b47e5f281cb3bd5e0c2a234c577e7571b13367d
2019-02-06 12:46:12 -08:00
xshu
6bcd531f86 Update getRandomizedMacAddress API comments
Bug: 122991465
Test: unit tests
Change-Id: If1a867921a2dfed24359512922d24c9c49fb494b
2019-02-06 10:36:59 -08:00
Ecco Park
5a01b5a7a7 Merge "WifiConfiguration: New disable network status for no subscription" 2019-02-04 23:00:47 +00:00
Daisuke Niwa
ff3fbdea61 WifiConfiguration: New disable network status for no subscription
Add a new network disable reason to disable EAP network if
AT_NOTIFICATION notification code (1031) is returned. It indicates
user has not subscribed to the requested service.

Bug: 122921493
Test: Manually verified that device will not try to connect to the
EAP network if EAP authentication failed with 1031 code before.
Signed-off-by: Daichi Ueura <daichi.ueura@sony.com>
Change-Id: I0c531064cb5098f1e036a7fd8975a94cb51855b9
2019-02-04 07:30:31 -08:00
Roy Want
b1772f92bd RTT LCI API (Client Side)
Bug: 111439464
Test: Tests were added for new classes. All unit tests pass.
Change-Id: I5a644a06c512b98e735fc1acb19e38a33bf4b2ad
2019-02-01 12:37:21 -08:00
Ecco Park
66a1ecb729 Merge "add eap_method and phase2_method string in enterpriseConfig for dump" 2019-01-30 15:50:05 +00:00
Les Lee
1b396fa0af Merge "Restrict wifi p2p broadcasts" 2019-01-30 03:42:55 +00:00
Mingguang Xu
7b8b30b4c2 Merge "Wifi usability: Add link probe results and rx link speed into usability stats" 2019-01-30 03:20:50 +00:00
Ecco Park
d987b7278e add eap_method and phase2_method string in enterpriseConfig for dump
Currently we don't print any information for eap_method and
phase2_method.
Without this information, it is difficult know that the configuration is
created correctly.

Bug: 123089627
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I933790a87bd38d4af7438c61f4e12f2e0488d3a1
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-29 18:22:31 -08:00
Roshan Pius
5af35cba45 Merge "WifiNetworkConfigBuilder: Split into 2 separate builders" 2019-01-29 18:25:21 +00:00
Roshan Pius
3409263cba WifiNetworkConfigBuilder: Split into 2 separate builders
Split the existing WifiNetworkConfigBuilder into 2 separate builders,
one for building WifiNetworkSuggestion and one for WifiNetworkSpecifier.

Other changes in the CL:
a) Marked the constructor of the abstract NetworkSpecifier class public
to allow WifiNetworkSpecifier.Builder() (& hence WifiNetworkSpecifier) to
be public. The alternative is to put the builder for WifiNetworkSpecifier
in some other file (like WifiManager)
b) Mark WifiNetworkSpecifier class public to make it's builder visible.
c) Modify the documentation (& usage example) for WifiNetworkSpecifier
builder to explicitly call out that this can only be used for a local
wifi connection (i.e no internet capability).

Bug: 123313291
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: make docs
Change-Id: I1a5fcff886124010222e112dbca92797a514b6d9
2019-01-29 10:23:46 -08:00
Ecco Park
b3f28003ee Merge "passpoint-r2: set CA certificate for remediation server" 2019-01-29 17:18:41 +00:00
lesl
e81b74b8ac Restrict wifi p2p broadcasts
1. Add new API requestDeviceInfo to support get device information
2. Add more documentation about permissions required and relate change

Bug: 77228252
Test: Unit tests - atest frameworks/base/wifi/tests/
Test: Manually test Wi-Fi Direct settings/WiFiDirectDemo
Change-Id: I388ef005e71c1c0b54d8365232519cf1db91d6e7
2019-01-29 16:21:42 +08:00
Mingguang Xu
bed0885e92 Wifi usability: Add link probe results and rx link speed into usability
stats

As title indicates.

Bug: 113262380

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

Change-Id: Idfa70d314f2938ea42a8b308c7d74e274af7c3cb
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-01-28 21:52:26 -08:00
Ecco Park
0fa92e6759 passpoint: remove @throws UnsupportedOperationException
Update the javadoc for Passpoint APIs to remove @throws
UnsupportedOperation Exception when the Passpoint is not enabled on the
device.

Bug: 121078741
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I087a595c04b926a76b6ea9d6f2a475e12033815b
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-28 18:43:59 +00:00
Ecco Park
c99e749440 passpoint-r2: set CA certificate for remediation server
It needs the APIs to set/get the CA certificate for remediation server.

Bug: 116346527
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R2 AP for connection and verified that the CA
certificate is saved into keyStore.
Test: tested with R1 credential
Change-Id: I8568935234a6197e83f1b997f145b7e98dc56497
Signed-off-by: Ecco Park <eccopark@google.com>
2019-01-25 17:05:05 -08:00
Roshan Pius
3a8cc45d71 WifiManager: Remove @SystemApi tag for settings APIs
Bug: 123314904
Test: make system-api-stubs-docs-update-current-api
Change-Id: Id9f088b3a9bbeeb74d5f5bcd3070743943b0c6e6
2019-01-25 11:55:18 -08:00
Roshan Pius
7abd8e47ba WifiInfo: App attribution for suggestion/request
Add a field to store package name for suggestion/specifier package name.
Storing these info in WifiInfo is the convention being followed
for ephemeral networks in WifiTracker.

Bug: 115504887
Bug: 113878056
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Iab6ab93a2a281011499adfff3163c35058600706
2019-01-25 11:19:54 -08:00
Etan Cohen
448a1d5c2a Merge "[WIFI][LOCATION] Convert API from Coarse -> Fine for >= Q" 2019-01-24 22:49:12 +00:00
TreeHugger Robot
658db85cd0 Merge "WifiConfiguration: App attribution for suggestion/request" 2019-01-24 18:31:42 +00:00
Mingguang Xu
68e948f3c2 Wifi usability: Add @SystemApi to receive Wifi usability score
Add system API to allow framework to receive Wifi usability score from system APK.
Also add a new permission to protect this API from being used by unauthorized applications. This permission is the same as the one added for sending Wifi usability stats.

Bug: 113262380.

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

Signed-off-by: Mingguang Xu <mingguangxu@google.com>

Change-Id: Ib695dbb4c6c1f4518a464877f1d0f60dde4904eb
2019-01-24 00:41:16 -08:00
Roshan Pius
f15a9720fa WifiConfiguration: App attribution for suggestion/request
Add new field to mark a WifiConfiguration as created from a network
specifier or suggestion. WifiConfiguration.creatorName for such networks
will contain the package name of the app that added the corresponding
specifier/suggestion.
This can be used by the settings app to display the app's name in the
wifi picker summary.

Bug: 115504887
Bug: 113878056
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ic0ae2292930628dc38c668777c7de4f19af4e925
2019-01-23 11:12:11 -08:00
Mingguang Xu
8683314997 Wifi usability: Add @SystemApi to send Wifi usability stats
Add system API to allow framework to send Wifi usability stats to
system APK.
Also add a new permission to protect this API from being
used by unauthorized applications.
In addition, add a few more entries in Wifi.proto.

Bug: 113262380
Test: Unit tests for Wifi: frameworks/base/wifi/tests/runtests.sh

Change-Id: I5432419d6da3db96ecc6ff8e1c3197121ca7afbc
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
2019-01-23 10:54:45 -08:00
Etan Cohen
12f70534e2 [WIFI][LOCATION] Convert API from Coarse -> Fine for >= Q
Convert all Wi-Fi permissions from Coarse -> Fine for:
- Wi-Fi Direct (p2p) always (since new permissions for Q)
- Else (Wi-Fi, Aware): target SDK >= Q

Bug: 122374563
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: Ia1d892d303ec9f002692f30d9e9fc043729b68d8
2019-01-23 09:06:20 -08:00
Jimmy Chen
69236f8e2b Merge "p2p: add p2p random MAC feature flag in framework" 2019-01-23 02:53:10 +00:00
Roshan Pius
c2aa6a91d3 Merge "WifiNetworkConfigBuilder: Pass package name" 2019-01-22 22:36:06 +00:00
Roshan Pius
6402e56c4a WifiManager: Mark disableEphemeralNetwork as @hide
This is only used by settings, so no need to make it @SystemApi.
Removing the @SystemApi tag which was unnecessarily added in ag/5529624.

Bug: 122278104
Test: make system-api-stubs-docs-update-current-api
Change-Id: I74a67abdc5e1ed2f2f049e560a3e6f8a1d0e8d76
2019-01-22 11:07:23 -08:00
TreeHugger Robot
9e10c87914 Merge "passpoint-r2: change the name for OSU_FAILURE_INVALID_SERVER_URL." 2019-01-22 18:07:23 +00:00
Etan Cohen
0d2740ca69 Merge "[WIFI] Open up the getRandomizedMacAddress API" 2019-01-19 17:39:41 +00:00
Hai Shalom
f1845027ca Merge changes from topic "isEasyConnectSupported"
* changes:
  [DPP] Rename isDppSupported to isEasyConnectSupported
  [DPP] Add more documentation about Easy-Connect (DPP)
2019-01-19 06:39:41 +00:00
TreeHugger Robot
4453778fb1 Merge changes from topic "DppExecutor"
* changes:
  [DPP] Use Executor instead of Handler in Easy Connect API
  [DPP] Add more documentation about stopEasyConnectSession API
2019-01-19 04:33:21 +00:00
Jimmy Chen
176af33735 Merge "wifi: extend feature flag from int to long" 2019-01-19 00:26:07 +00:00
TreeHugger Robot
2ba0d6ff68 Merge "[DPP] Add _GENERIC suffix to EASY_CONNECT_EVENT_FAILURE code" 2019-01-18 23:05:39 +00:00
Etan Cohen
41561126ef Merge "[WIFI] Clarify getConfiguredNetworks behavior for Carrier Apps" 2019-01-18 21:07:09 +00:00
Roshan Pius
6c3d416762 WifiNetworkConfigBuilder: Pass package name
Capture the package name (along with uid) of the app using the
builder for creating network specifiers & suggestions. We need
the exact package name to differentiate apps using shared UIDs.

Bug: 123078593
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: act.py -c wifi_manager.config -tb dut-name -tc WifiNetworkRequestTest
Test: act.py -c wifi_manager.config -tb dut-name -tc
WifiNetworkSuggestionTest
Test: New CtsVerifier tests for network request.

Change-Id: Ib55d34b60219808ad30bf44db2a806e1c69ae2c5
2019-01-18 11:52:20 -08:00