Update documentation to the setWifiEnabled call reflect what a return of
false would be for. Note: False will be returned if the caller
requested to enable/disable wifi while in softap mode or airplane mode
is active.
Bug: 64374508
Test: checked generated docs
Change-Id: I1b1de84afee3844d326e7780a935a30d7f64d220
This adds getters to get success tx/rx rate, returning in the
unit of 'packets per second'.
This also adjusts the constant OUTPUT_SCALE_FACTOR so it can
be more informative.
Bug: 62428282
Test: compile, unit tests
Change-Id: I989defd8fdc14dfc78692385fda86fb20b369b7b
This adds the missing documents for WifiScanner.ActionListener.
This also fixes the existing inaccurate documents.
Bug: 29524465
Test: compile
Change-Id: I40d40a6293cdb0af6b8cad45062722ee2a4b746d
Add 2 new config.xml values for setting TX power limits for SAR
requirements. The first boolean enables/disables the whole feature, the
second value sets the max power that OEM's can set if they want the tx power
to be limited.
Also, added the new HAL feature set enum value in WifiManager.
Bug: 62437848
Test: Compiles
Change-Id: Iab3ffad8df2fccd0ea2beac95fbf8458e268f21b
Close guard prints out a message when it is triggered. The message
should be the method which should have been called. The method has
been renamed from 'destroy' to 'close' - but the log message wasn't
updated.
Bug: 37514387
Test: N/A (string change)
Change-Id: I8ee0b9539692095c771829fffe9fa4bf60aaa504
To ignore the masked password sent by apps, add a new copy-constructor
equivalent method which will ignore the masked password.
Bug: 62893342
Test: Unit tests.
Test: Manual tests with the linked CL.
Test: Regression tests.
Change-Id: Ib208dcd94a888e07a9b3dc0442620233ea7791e5
A global storage of binders is replaced by attaching a binder
to its corresponding channel.
Bug: 62905652
Test: NonConcurrencyTest:test_*p2p* acts/sl4a tests passing
Test: p2p/aware behavior verified using Settings app
Change-Id: I08e8d8f5d56cfd81d078e74f3cf2ccc5d06f61e3
This rephrases the javadoc for WifiManager.EXTRA_RESULTS_UPDATE
and WifiManager.SCAN_RESULTS_AVAILABLE_ACTION, explaining the
meaning of WifiManager.EXTRA_RESULTS_UPDATED in a better way.
This also removes "supplicant" keyword in this javadoc because
we no longer use supplicant for scan.
Bug: 62273016
Test: compile
Change-Id: Ib8ce2d6e8aaf70819c9e2622fb5acfcc14a0d593
For an R2 Passpoint AP, there might be zero or more OSU providers
associated it. Add an API to retrieve the associated OSU providers.
Bug: 62235301
Test: manual test by exercising this API in WifiTracker and verify
the content of the OSU provider
Change-Id: I2e730f0b16d80e0b97b4ce7cbd086b606e71eb0c
Merged-In: I2e730f0b16d80e0b97b4ce7cbd086b606e71eb0c
We've seen some @SystemApi methods protected with non-system
permissions, so give Doclava the platform AndroidManifest.xml so it
can parse the actual permission protection levels to look for APIs
that are letting in non-system apps.
Also document more @SystemApi permissions.
This is purely a docs change; no logic changes are being made.
Test: make -j32 update-api
Bug: 62263906
Change-Id: Ie0f0a5fb0033817bcc95060f2183a52ae4ae7b06
Most @SystemApi methods should be protected with system (or higher)
permissions, so annotate common methods with @RequiresPermission to
make automatic verification easier.
Verification is really only relevant when calling into system
services (where permissions checking can happen on the other side of
a Binder call), so annotate managers with the new @SystemService
annotation, which is now automatically documented.
This is purely a docs change; no logic changes are being made.
Test: make -j32 update-api && make -j32 offline-sdk-docs
Bug: 62263906
Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
When applications start LOHS, they need a way to connect to the
network on the same device. The WifiConfiguration.networkId
will be set to the newly defined value to serve as a signal to
ConnectivityService that this request is for a local only
network connection.
Bug: 62076211
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: Iab5240a7b4f526f8bc72dd44cdba59e65faedcd1
These APIs are based on the design of the legacy OSU app. Since
the app will be redesigned, hide these APIs for now.
Bug: 38260972
Test: build
Change-Id: I56b9c27305624306773284a7cc1721606037462d
Connectivity service needs to get the interface name and intended ip
configuration mode for softap.
This CL adds the interface name and softap target mode variables to
use to insert the extra info into the wifi ap state change broadcast.
Note: additional CLs are needed to verify the iface name and mode. The
mode tracking is still in progress.
Bug: 62076211
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manually verified the name in the broadcast
Change-Id: I64e1d13a9e422945fe9c4c268c206da365d0a3eb
The method setWifiApEnabled should not be used. Introduction of the
start/stopTethering API left this call in an intermediate state, thus
introducing race conditions. Callers with proper permissions should be
calling ConnectivityManager.startTethering or
WifiManager.startLocalOnlyHotspot.
Note: integration tests are being updated to reflect this change.
Bug: 38436732
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I84b9514bf6bb67d733fd1a32492e0e0d485e2cd6