Based on API council feedback, return the WifiNetworkSpecifier object
from the builder.
Bug: 127464965
Test: Compiles
Change-Id: I072b761872f573103d42081ec0059cde6fafa51c
If they were null, then the Parcelable would fail to work.
Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
Stick to the official WFA marketing name in this public API.
Bug: 125850601
Test: atest com.android.server.wifi
Test: Use Settings to scan and connect to OWE network
Change-Id: I4eb9fb99500d7d56489c00ef0ee2ac571ff162d1
Clarifies the meaning of high and low movement mobility
states, and that the setDeviceMobilityState() should be
called when transitioning between states.
Bug: 122614678
Test: compiles
Change-Id: Ife9920b81c985238931357ed978983a83d70ffef
For packages:
android.net
android.net.wifi
android.nfc
This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.
Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@
Bug: 110868826
Test: m
Change-Id: I7489aad1dceeb18ed7ca48a1ed8829a668b3fa04
This flag is intended to be used by the NLP/FLP package on the device to
hide their request from app-ops logging. NLP/FLP module will be
responsible to blame (note in app-ops) their external clients who
eventually get the location computed using these raw results.
Also, removed a redundant permission tag in the previously added
|ignoreLocationSettings| flag. This entire surface is useable by apps
holding LOCATION_HARDWARE permission. So, there is no need to explicitly
call this out for that field.
Bug: 119833663
Test: Compiles
Change-Id: Idba70fe4a15e611d4485d05b771d71f2d707d0b5
Setting of these security params is duplicated in multiple parts of the
wifi stack. So, centralize this.
a) Move the security type enum from ScanResultMatchInfo class internally
into WifiConfiguration. (Note: Values don't change, just the name & location
since this is being persisted in multiple places)
b) Add a helper method to set the various security params required for
each security type.
Also, removed setting defaults in WifiNetworkSpecifier &
WifiNetworkSuggestion. This will anyway be handled by WifiConfigManager
on network addition. There is no need to replicate this in the API
surface.
Bug: 124071722
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I382c497dfe331ee59f3560a8272b0e4ecf6ff8fc
Added from range for getters getRxLinkSpeedMbps/getTxLinkSpeedMbps.
Bug: 124302657
Test: Connect STA to AP and verify the link speeds in network details.
Change-Id: I0b541c592ef80e6907c528879450c5be7bdc3d9d
This permission is not required as SetupWizard does not have the UI to
manage Passpoint profile.
Bug: 124301934
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I3bca539249c31124205c69e3304d697f0c072087
Signed-off-by: Ecco Park <eccopark@google.com>
As part of new Passpoint UX, quick Setting and "Network &* internet"
screen of Settings needs to present Provider name when Passpoint AP is
connected instead of displaying SSID of the AP.
In addition, Wifi Picker needs to match current passpoint connection
info with Passpoint AccessPoint by FQDN.
So, the two fields are added in WifiInfo
Bug: 124462043
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: Tested with Passpoint AP and confirmed that the info is set
correctly.
Change-Id: I7215cba671e1c7eb07fbacb9d546d810cc26e826
Signed-off-by: Ecco Park <eccopark@google.com>
Wi-Fi RTT feature availability has been using PackageManager feature
flags since P. WifiManager legacy API for feature availability should
have been deprecated.
Bug: 122969274
Test: atest android.net.wifi
Change-Id: Ic7016df77aa295367ae93e94666665c9192a4024
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