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
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
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
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
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
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
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>
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
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
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>
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>
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
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
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
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>
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
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