ParcelableRttResults was unparceled incorrectly.
Bug: 70398564
Test: exploit provided in bug no longer works
Change-Id: Ifd6de547e9861bbebc399b43d0cc2899a8160813
When emitting a method or field, verify that we're able to reference
all mentioned types. This ensures that we don't accidentally
reference undefined classes/interfaces.
Test: manual inspection of API files
Bug: 69791141
Change-Id: I84e0c87fe83daa118661f61dbdf17b58ea5282d4
Merged-In: I84e0c87fe83daa118661f61dbdf17b58ea5282d4
Add public equals()/hash() methods to PeerHandle. Allows the handle to
be used across multiple calls/sessions.
(partial cherry-pick of commit 3d33d7495f)
(cherry-pick of commit 0d49c0dda8)
Bug: 68931709
Test: builds, unit test, integration test
Change-Id: I87df50edb948a7afc90e496165013235ddca1e48
Merged-In: Idc59269d4275181ed6d9a793213c681dc4e98134
Merged-In: I6848acda9bfef306b8feaae6987ff18f7bc2e6ec
Bug: 67967771
Test: Ran make ds-docs.
We don't actually document how to do a Wi-Fi scan anywhere on DAC;
at the moment, this seems like the place where it makes the most sense
to provide that guidance.
The forcing function for doing this is that a new doc explicitly
recommends that devs do Wi-Fi scans in certain cases, but doesn't
have a place to link to that tells them how to do so. That doc
plans to send readers here.
Change-Id: Ic35fb77d323e825e5bd5b4eec2716730f0d531e1
Add a group Aware network specifier which can match any of the
requests it contains. It is intended to represent a single connection
which may match multiple network requests.
Bug: 64125969
Test: unit tests
Test: acts/sl4a + new DataPathTest:test_multiple_identical_networks
Change-Id: I5971dc21c0a6d95fbd287ba0df0c7fba4ba580da
Verified that nobody should be using these APIs, and they've been
deprecated long enough that we can remove them.
Bug: 62341924, 62263907, 62264550
Test: make -j32 update-api && make
Change-Id: I9a2333ca13e4984b71374aa7ffed081e5106c67e
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
BSSID/SSID can be used to deduce location, so require the same
location permissions for access to these WifiInfo fields
requested using WifiManager.getConnectionInfo() as for
WifiManager.getScanResults().
Bug: 36770596
Test: make offline-sdk-docs
Change-Id: I1dd6d1871f13d669a9504c23ba3b11d769c142f9
Pass a binder from the manager to the service to enable cleanup
on app death (using binder death listener).
Bug: 37443149
Test: verified using ResponderToolActivity test apk.
Change-Id: Ifb7797db812d4cb0b219e7cbd779bad323f2a4b4
This will indicate if the given AP is associated with a carrier network
or not, and also include the EAP type to use to connect to such AP if
it is associated with a carrier network.
Bug: 30988281
Test: manual
Change-Id: Ib5b6496026fb4cb9004353ea90870d5ee4e96136
1. Add public API to close a Channel and allow configuration to be
cleaned-up. Actual clean-up will only happen when the last p2p
client executes close or terminates (binder death is triggered
for the service).
2. Add Close Guard to verify that API is called - issue warning
otherwise. Note that to actually get the warning an app needs
to use the StrictMode policy:
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectLeakedClosableObjects().build());
Bug: 37443149
Test: (new) unit tests, CtsVerifier, Settings/WFD app
Change-Id: I9590101ef7f7ba0a90812634ac1b931d1482fe72
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
Added a new field that caches extra details about connection failures so
that they may be surfaced in the UI.
Bug: 62915994
Test: Manual...
Change-Id: I6e7860df4ea755e72fbdd4b6bf514338f2f1de80
For a long time we've had a nasty tangled dependency between Wi-Fi
and NPMS, since they both persisted different details for configured
networks. As part of preparing for new carrier data plan APIs, move
the tracking of meteredness over to WifiConfiguration.
This also cleans up how meteredness is communicated through
NetworkAgents to rely completely on NET_CAPABILITY_NOT_METERED by
removing the metered flag on NetworkInfo, which has caused confusion
and staleness.
Migrates any existing user-configured metered networks over to
WifiConfiguration once the device finishes booting.
Remove support for NetworkQuotaInfo, since this information can no
longer be made available to apps. Frustratingly, some apps are
using it, so keep the object around returning stub values, and shame
them in the logs.
Bug: 63391323
Test: builds, boots, Wi-Fi policy is upgraded
Exempt-From-Owner-Approval: Bug 63673347
Change-Id: I64f865ddeb65cfcd330f8d2a847368abdf960a07
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