This project is mirrored from https://github.com/LineageOS/android_frameworks_base.git. Updated .
  1. 08 Feb, 2018 2 commits
    • Etan Cohen's avatar
      [RTT] ParcelableRttResults parcel code fix · 5a3d2708
      Etan Cohen authored
      ParcelableRttResults was unparceled incorrectly.
      
      Bug: 70398564
      Test: exploit provided in bug no longer works
      Change-Id: Ifd6de547e9861bbebc399b43d0cc2899a8160813
      (cherry picked from commit e1e5a240)
      5a3d2708
    • Etan Cohen's avatar
      [AWARE] Make PeerHandle comparable/hashable · 70854ebd
      Etan Cohen authored
      Add public equals()/hash() methods to PeerHandle. Allows the handle to
      be used across multiple calls/sessions.
      
      (partial cherry-pick of commit 3d33d749)
      (cherry-pick of commit 0d49c0dd)
      
      Bug: 68931709
      Test: builds, unit test, integration test
      Change-Id: I87df50edb948a7afc90e496165013235ddca1e48
      Merged-In: Idc59269d4275181ed6d9a793213c681dc4e98134
      Merged-In: I6848acda9bfef306b8feaae6987ff18f7bc2e6ec
      (cherry picked from commit 4454bda0)
      70854ebd
  2. 09 Jan, 2018 1 commit
    • Etan Cohen's avatar
      [AWARE] Make PeerHandle comparable/hashable · 37cf851f
      Etan Cohen authored
      Add public equals()/hash() methods to PeerHandle. Allows the handle to
      be used across multiple calls/sessions.
      
      (partial cherry-pick of commit 3d33d749)
      (cherry-pick of commit 0d49c0dd)
      
      Bug: 68931709
      Test: builds, unit test, integration test
      Change-Id: I87df50edb948a7afc90e496165013235ddca1e48
      Merged-In: Idc59269d4275181ed6d9a793213c681dc4e98134
      Merged-In: I6848acda9bfef306b8feaae6987ff18f7bc2e6ec
      (cherry picked from commit 4454bda0)
      37cf851f
  3. 04 Oct, 2017 1 commit
  4. 21 Aug, 2017 1 commit
    • Stephen Chen's avatar
      Use a LruCache in WifiNetworkScoreCache. · 607c4acc
      Stephen Chen authored
      Bug: 19948759
      Test: runtest --path
      frameworks/base/wifi/tests/src/android/net/wifi/WifiNetworkScoreCacheTest.java
      
      Change-Id: I60bab6c2540df9819180d81d4e8e885066d92f51
      607c4acc
  5. 17 Aug, 2017 2 commits
  6. 11 Aug, 2017 1 commit
    • Jeff Sharkey's avatar
      Remove a bunch of deprecated @SystemApi. · 8478911f
      Jeff Sharkey authored
      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
      8478911f
  7. 04 Aug, 2017 1 commit
    • Rebecca Silberstein's avatar
      WifiManager: update docs on setWifiEnabled · 1cd6db44
      Rebecca Silberstein authored
      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
      1cd6db44
  8. 02 Aug, 2017 1 commit
  9. 27 Jul, 2017 1 commit
    • Michael Plass's avatar
      Document WifiManager.getConnectionInfo permission · e42dd31b
      Michael Plass authored
      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
      e42dd31b
  10. 26 Jul, 2017 2 commits
    • Etan Cohen's avatar
      [RTT] Add a binder to the AIDL to enable cleanup · 002a2442
      Etan Cohen authored
      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
      002a2442
    • Peter Qiu's avatar
      wifi: ScanResult: add carrier network indicator · d3ad1540
      Peter Qiu authored
      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
      d3ad1540
  11. 20 Jul, 2017 1 commit
    • Etan Cohen's avatar
      [P2P] Public API to clean-up resources of P2P · a1dff771
      Etan Cohen authored
      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
      a1dff771
  12. 19 Jul, 2017 1 commit
    • Ningyuan Wang's avatar
      WifiInfo: Add getters for success tx/rx rate · d69d86e3
      Ningyuan Wang authored
      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
      d69d86e3
  13. 18 Jul, 2017 2 commits
  14. 17 Jul, 2017 1 commit
    • Rebecca Silberstein's avatar
      WifiManager: deprecate and remove setWifiApEnabled · e6edaa9e
      Rebecca Silberstein authored
      Officially deprecate and remove the setWifiApEnabled call.
      
      Bug: 38436773
      Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      Test: frameworks/base/wifi/tests/runtests.sh
      Test: cts-tradefed run cts-dev --mo CtsNetTestCases -t android.net.wifi.cts.WifiManagerTest
      Change-Id: Ifefe0b186d074b49ab1cc94e1c166117f3d7bdf7
      e6edaa9e
  15. 14 Jul, 2017 1 commit
    • Jeff Sharkey's avatar
      Move "metered" persistence to WifiConfiguration. · 43d2a170
      Jeff Sharkey authored
      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
      43d2a170
  16. 11 Jul, 2017 1 commit
    • Ningyuan Wang's avatar
      Document WifiScanner callback behaviors · d871e180
      Ningyuan Wang authored
      This adds the missing documents for WifiScanner.ActionListener.
      This also fixes the existing inaccurate documents.
      
      Bug: 29524465
      Test: compile
      
      Change-Id: I40d40a6293cdb0af6b8cad45062722ee2a4b746d
      d871e180
  17. 07 Jul, 2017 1 commit
    • Roshan Pius's avatar
      wifi: Params for SAR limits · aa85acc8
      Roshan Pius authored
      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
      aa85acc8
  18. 06 Jul, 2017 1 commit
    • Etan Cohen's avatar
      [AWARE] Fix close guard method name · c0fabefb
      Etan Cohen authored
      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
      c0fabefb
  19. 22 Jun, 2017 2 commits
    • Roshan Pius's avatar
      WifiEnterpriseConfig: New copy method to ignore masked password · 1e11d006
      Roshan Pius authored
      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
      1e11d006
    • Etan Cohen's avatar
      [P2P] Eliminate separate storage of binders - a memory leak · 9304be6f
      Etan Cohen authored
      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
      9304be6f
  20. 20 Jun, 2017 1 commit
  21. 13 Jun, 2017 2 commits
    • Ningyuan Wang's avatar
      Fix confusing javadoc for WifiManager.EXTRA_RESULTS_UPDATED · 47e9400f
      Ningyuan Wang authored
      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
      47e9400f
    • Peter Qiu's avatar
      wifi: add API for retrieving Hotspot 2.0 OSU providers · e78c25e9
      Peter Qiu authored
      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
      e78c25e9
  22. 12 Jun, 2017 1 commit
  23. 07 Jun, 2017 1 commit
  24. 06 Jun, 2017 2 commits
    • Peter Qiu's avatar
      wifi: add API for retrieving Hotspot 2.0 OSU providers · 7e6ae3f4
      Peter Qiu authored
      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
      7e6ae3f4
    • Etan Cohen's avatar
      [P2P] Add binder to service calls · af302234
      Etan Cohen authored
      Bug: 33040182
      Test: unit tests, run-time behavior
      Change-Id: Ic383efc858bb4454d99c98ab24365c63ad3e7f54
      af302234
  25. 05 Jun, 2017 2 commits
    • Jeff Sharkey's avatar
      Give Doclava our manifest; more permission docs. · bfc4fcde
      Jeff Sharkey authored
      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
      bfc4fcde
    • Jeff Sharkey's avatar
      Annotate @SystemApi with required permissions. · d86b8fea
      Jeff Sharkey authored
      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
      d86b8fea
  26. 01 Jun, 2017 3 commits
    • Peter Qiu's avatar
      wifi: hotspot2: implement Parcelable class for OSU provider · 55840d01
      Peter Qiu authored
      Bug: 62235196
      Test: frameworks/base/wifi/tests/runtests.sh
      Change-Id: I3327981569fccbe20aba780f4c3f0f5bcb432f31
      55840d01
    • Rebecca Silberstein's avatar
      WifiManager: add unspecified ip mode · 1da00362
      Rebecca Silberstein authored
      Add an unspecified IP mode that allows WifiServiceImpl to clear state
      in the interface-based IP mode tracking.
      
      Bug: 31466854
      Test: frameworks/base/wifi/tests/runtests.sh
      Merged-In: I0d1db7ecb9cf7edd74d95f73d88b23571b87a27f
      Merged-In: Iaa1474bd24d63e957ae82745b66c7571a5f18433
      Change-Id: I15485cdab95ed4308cf5c2877fba40eac82bf162
      (cherry picked from commit bf475436)
      1da00362
    • Rebecca Silberstein's avatar
      WifiConfiguration: add local only networkId · 544eff2d
      Rebecca Silberstein authored
      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
      544eff2d
  27. 31 May, 2017 1 commit
    • Peter Qiu's avatar
      hotspot2: add/update javadoc for Passpoint APIs · e5850517
      Peter Qiu authored
      Add javadoc for getter/setter methods configuration classes.
      Document exceptions with @throws tag.
      
      Bug: 37907515
      Test: build
      Change-Id: Ied1842912f6710530bf77db4df5ef5d30a44b2a7
      e5850517
  28. 30 May, 2017 1 commit
    • Peter Qiu's avatar
      hotspot2: hide Release 2 APIs · ff323d3c
      Peter Qiu authored
      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
      ff323d3c
  29. 26 May, 2017 1 commit
    • Rebecca Silberstein's avatar
      WifiManager: add iface name and mode labels · dc5abdd8
      Rebecca Silberstein authored
      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
      Merged-In: I67f82525b5c0fa5b81235311988c9b186d16077a
      Merged-In: Ieff7af7c1ac2113b8044c16a01cad0f96cb70158
      Change-Id: I64e1d13a9e422945fe9c4c268c206da365d0a3eb
      (cherry picked from commit 4ac2cab8)
      dc5abdd8
  30. 25 May, 2017 1 commit
    • Rebecca Silberstein's avatar
      WifiManager: add iface name and mode labels · 4ac2cab8
      Rebecca Silberstein authored
      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
      4ac2cab8