This project is mirrored from https://github.com/LineageOS/android_frameworks_base.git. Updated .
  1. 04 Oct, 2017 1 commit
  2. 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
  3. 17 Aug, 2017 1 commit
    • Etan Cohen's avatar
      [AWARE] Add a group network specifier allowing matches to multiple requests · 523a4250
      Etan Cohen authored
      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
      523a4250
  4. 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
  5. 22 Jun, 2017 1 commit
    • 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
  6. 07 Jun, 2017 1 commit
  7. 01 Jun, 2017 1 commit
  8. 25 May, 2017 1 commit
    • Rebecca Silberstein's avatar
      WifiManager: setWifiApEnabled always returns false · 8cc4eb79
      Rebecca Silberstein authored
      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
      8cc4eb79
  9. 24 May, 2017 1 commit
  10. 19 May, 2017 1 commit
    • Rebecca Silberstein's avatar
      WifiManager: get startLOHS packageName · 967dfb44
      Rebecca Silberstein authored
      When an application calls startLocalOnlyHotspot, we need to send the
      package name from the manager-side of the call.  This CL updates the
      call to WifiServiceImpl.startLocalOnlyHotspot and the relevant aidl
      file.
      
      Bug: 31466854
      Test: frameworks/base/wifi/tests/runtests.sh
      Change-Id: I1dd0142dc58c767336c9323986d20e38bf11220d
      967dfb44
  11. 05 May, 2017 1 commit
    • Rebecca Silberstein's avatar
      WifiManagerTest: alt way to check callback · 695cea59
      Rebecca Silberstein authored
      We are seeing failures on automated tests.  This is occuring when the
      thread id is retrieved from the TestLooper.  Since we do not have
      control over exactly which thread is used in the TestLooper for these
      environments, this CL changes the checks to make sure the the callback
      is called, and also that we never attempt to get the main looper (the
      behavior when the provided handler is null).
      
      Bug: 37828843
      Test:  frameworks/base/wifi/tests/runtests.sh
      Change-Id: I853c423b5f383225c250357d638c4cfd2c098edc
      695cea59
  12. 02 May, 2017 1 commit
    • Rebecca Silberstein's avatar
      WifiManagerTest: test for startLOHS return code · 23d79bf1
      Rebecca Silberstein authored
      Add a test checking the return code value for startLocalOnlyHotspot.
      This test verifies that the error code supplied by WifiServiceImpl is
      passed to the caller via the onFailed(reason) callback.
      
      Bug: 36760523
      Test: frameworks/base/wifi/tests/runtests.sh
      Change-Id: I37eb788d62df89e0b2a133be4368a375e29e39e3
      23d79bf1
  13. 01 May, 2017 2 commits
    • Rebecca Silberstein's avatar
      WifiManager: update API for LOHS · 6d7b130e
      Rebecca Silberstein authored
      Add a return code for disallowed tethering for the user.  Also updated
      call to startLocalOnlyHotspot in WifiServiceImpl to return a code
      instead of a config.  This allows us to return different failure modes
      to the application instead of assuming an incompatible mode error.
      
      Also updated method name to retrieve the wifi config.
      
      Bug: 37073685
      Test: frameworks/base/wifi/tests/runtests.sh
      Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      Change-Id: Iaa442f7062145dbfbdc8e26ae5479d14307addf8
      6d7b130e
    • Peter Qiu's avatar
      hotspot2: update method name for timestamp related APIs · 967501ec
      Peter Qiu authored
      Bug: 37514629
      Test: build
      Change-Id: Iadd8b7a9ea98bc01f796a261293f87173ba1d52f
      967501ec
  14. 30 Apr, 2017 2 commits
    • Rebecca Silberstein's avatar
      WifiManager: implement watch LocalOnlyHotspot · 4871da6b
      Rebecca Silberstein authored
      Implement new calls to watchLocalOnlyHotspot and
      unregisterLocalOnlyHotspotObserver along with the classes
      LocalOnlyHotspotObserver and LocalOnlyHotspotSubscription.
      
      Added tests for watching LOHS and cancelling a LOHS subscription.
      
      The calls will be exposed in a later CL.
      
      Bug: 36704763
      Test: compiles
      Test: frameworks/base/wifi/tests/runtests.sh
      Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      Change-Id: Ia0a528191ae0897742304d8b61e9779ad721a450
      4871da6b
    • Rebecca Silberstein's avatar
      WifiManager: implement start/stopLocalOnlyHotspot · ce74fc29
      Rebecca Silberstein authored
      Implement new calls to startLocalOnlyHotspot and
      cancelLocalOnlyHotspotRequest along with the classes
      LocalOnlyHotspotCallback and LocalOnlyHotspotReservation.
      
      Added tests for starting LOHS and cancelling a LOHS request.
      
      The calls will be exposed in a later CL.
      
      Bug: 36704763
      Test: compiles
      Test: frameworks/base/wifi/tests/runtests.sh
      Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      
      Change-Id: If54a89cb8dfd235bc18ef3e6c89f9d30882136a3
      ce74fc29
  15. 21 Apr, 2017 3 commits
    • Etan Cohen's avatar
      [AWARE] Add AutoCloseable interface/implementation · a1d90d9e
      Etan Cohen authored
      Make resource holding classes AutoCloseable. These are objects
      which (already) require the client to call a destroy() method.
      
      Note: the destroy() method was renamed to close() - no sense in
      identical/duplicate methods.
      
      Bug: 37514387
      Test: unit tests and integration (sl4a) tests passing.
      Merged-In: Ia14065ab9dcd92481412532bfdb198f2e8d9f83c
      Change-Id: Ia14065ab9dcd92481412532bfdb198f2e8d9f83c
      a1d90d9e
    • Etan Cohen's avatar
      [AWARE] Add AutoCloseable interface/implementation · 8039e6d4
      Etan Cohen authored
      Make resource holding classes AutoCloseable. These are objects
      which (already) require the client to call a destroy() method.
      
      Note: the destroy() method was renamed to close() - no sense in
      identical/duplicate methods.
      
      (cherry-pick of commit 6a4572c89671d9320620eb0ef071dfe0a01de901)
      
      Bug: 37514387
      Test: unit tests and integration (sl4a) tests passing.
      Change-Id: Ia14065ab9dcd92481412532bfdb198f2e8d9f83c
      8039e6d4
    • Etan Cohen's avatar
      [AWARE] Remove match style API · 66a3b8c7
      Etan Cohen authored
      Match style (ALL or FIRST) are not necessary - there is no use-case
      for need to match any but the first time. Match style ALL also has
      power implications.
      
      Bug: 37547045
      Test: unit tests + integration (sl4a) tests passing.
      Change-Id: I6ae872711159f4ade4b2c7cfcd36cd2a0e64dd52
      66a3b8c7
  16. 18 Apr, 2017 1 commit
    • Etan Cohen's avatar
      [AWARE] Implement custom Wi-Fi Aware network specifier · 68507288
      Etan Cohen authored
      Convert Wi-Fi Aware connectivity requests to use a custom
      network specifier (as opposed to a string). Aside from
      simplifying code, allows for more control of information
      printed out, and of additional information to be packaged
      and used in network decisions (uid - TBD).
      
      (cherry-pick of commit a5028455)
      
      Bug: 36275276
      Bug: 36053921
      Test: unit tests and integration (sl4a) tests passing.
      Merged-In: I776fb348b15ec4830f890a8ac5c41f24594e12a7
      Change-Id: I776fb348b15ec4830f890a8ac5c41f24594e12a7
      68507288
  17. 06 Apr, 2017 1 commit
    • Etan Cohen's avatar
      [AWARE] Implement custom Wi-Fi Aware network specifier · a5028455
      Etan Cohen authored
      Convert Wi-Fi Aware connectivity requests to use a custom
      network specifier (as opposed to a string). Aside from
      simplifying code, allows for more control of information
      printed out, and of additional information to be packaged
      and used in network decisions (uid - TBD).
      
      Bug: 36275276
      Bug: 36053921
      Test: unit tests and integration (sl4a) tests passing.
      Change-Id: I776fb348b15ec4830f890a8ac5c41f24594e12a7
      a5028455
  18. 31 Mar, 2017 1 commit
  19. 29 Mar, 2017 4 commits
    • Michael Plass's avatar
      Cherry-pick: Remove implementation of bssid hotlist · 82b4fd94
      Michael Plass authored
      Test: Relevant unit tests pass
      Bug: 30147676
      Change-Id: I268907cc13ef21c0ba547722fe7c866ee4cdae5a
      82b4fd94
    • Michael Plass's avatar
      Remove implementation of bssid hotlist · 31225c46
      Michael Plass authored
      Test: Relevant unit tests pass
      Bug: 30147676
      Change-Id: I268907cc13ef21c0ba547722fe7c866ee4cdae5a
      31225c46
    • Etan Cohen's avatar
      [AWARE] Remove Publish/Subscribe Count configuration · f6d243b6
      Etan Cohen authored
      Simplify API: semantics of publish/subscribe count restrictions
      aren't clear at the app level. They depend on DW configuration as
      well as discovery session type - number of packets transmitted over
      the air.
      
      There's already an app-facing discovery session lifetime configuration -
      the TTL. That has clearer semantics and is sufficient (for now).
      
      (cherry-pick of commit 2cbaf22b)
      
      Bug: 36446307
      Test: unit tests and integration (sl4a) tests.
      Merged-In: I9129975bd2e1a61b3d23a4b6acaae703b42216c7
      Change-Id: I9129975bd2e1a61b3d23a4b6acaae703b42216c7
      f6d243b6
    • Etan Cohen's avatar
      [AWARE] Fix unit tests · a85dcbbd
      Etan Cohen authored
      Update to reflect new mockito semantics.
      
      No functional change, no change to test semantics!
      
      (cherry-pick of commit afddcc3c)
      
      Bug: 36680830
      Test: unit tests now passing
      Merged-In: Ic210f20ce47ab19da25bd0835ae2ee5ae0f73011
      Change-Id: Ic210f20ce47ab19da25bd0835ae2ee5ae0f73011
      a85dcbbd
  20. 28 Mar, 2017 2 commits
    • Etan Cohen's avatar
      [AWARE] Remove Publish/Subscribe Count configuration · 2cbaf22b
      Etan Cohen authored
      Simplify API: semantics of publish/subscribe count restrictions
      aren't clear at the app level. They depend on DW configuration as
      well as discovery session type - number of packets transmitted over
      the air.
      
      There's already an app-facing discovery session lifetime configuration -
      the TTL. That has clearer semantics and is sufficient (for now).
      
      Bug: 36446307
      Test: unit tests and integration (sl4a) tests.
      Change-Id: I9129975bd2e1a61b3d23a4b6acaae703b42216c7
      2cbaf22b
    • Etan Cohen's avatar
      [AWARE] Fix unit tests · afddcc3c
      Etan Cohen authored
      Update to reflect new mockito semantics.
      
      No functional change, no change to test semantics!
      
      Bug: 36680830
      Test: unit tests now passing
      Change-Id: Ic210f20ce47ab19da25bd0835ae2ee5ae0f73011
      afddcc3c
  21. 23 Mar, 2017 2 commits
    • Peter Qiu's avatar
      wifi: use android.graphics.drawable.Icon for Passpoint icon data · ed1fc64e
      Peter Qiu authored
      Bug: 35857805
      Test: frameworks/base/wifi/tests/runtests.sh
      Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      Change-Id: Ib076cd7f565638613173c7373ea5ea61affb876d
      ed1fc64e
    • Peter Qiu's avatar
      hotspot2: ignore uninterested headers and content type attributes · 5a493241
      Peter Qiu authored
      Each vendor might put additional headers and content type attributes
      in the installation file, and will not be useful for us.  So just
      ignore them when parsing the installation file instead of error out.
      
      While there, add support for parsing "Extension" node in PpsMoParser.
      This an interior node containing vendor specific information, only
      meaningful to the vendor.  So we will ignore fields under this node.
      
      Bug: 36477333
      Test: frameworks/base/wifi/tests/runtests.sh
      Test: manual test by installing ruckus Passpoint profile
      Change-Id: I9954ed000387bc8048d0452a5bfb0f339e676659
      5a493241
  22. 21 Mar, 2017 1 commit
    • Dan Shi's avatar
      Add test configs to apct tests under frameworks/base · 7f2afd2d
      Dan Shi authored
      TouchLatency is needed by test TouchLatencyJankTestWear
      UiBench is needed by test UiBenchJankTests
      
      Details about test configs changes are tracked in doc
      https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#
      
      Bug: 35882476
      Test: local test
      make -j32 TouchLatency TouchLatencyJankTestWear  && \
      tradefed.sh run template/local --template:map test=TouchLatencyJankTestWear \
            --test-tag testname --log-level-display VERBOSE
      make -j32 UiBenchJankTests UiBench  && \
      tradefed.sh run template/local --template:map test=UiBenchJankTests \
            --test-tag testname --log-level-display VERBOSE
      
      Change-Id: I63f23e3a21ad1343607953958fb7bb0a5fb8c343
      7f2afd2d
  23. 15 Mar, 2017 1 commit
    • Simran Basi's avatar
      frameworks/base: Add APCT tests to the device-tests suite. · 473a16e4
      Simran Basi authored
      This CL adds the APCT tests within this project to
      a similar suite as CTS known as device-tests.
      
      The current method of running APCT tests in the infrastructure
      is unaffected.
      
      Bug: 35882476
      Test: `make dist device-tests -j` and local builds of
            continuous_instrumentation_tests & continuous_native_tests
      
      Change-Id: Ifa382fe691842c1cd76897775b9e2a1653449eb5
      473a16e4
  24. 13 Mar, 2017 1 commit
    • Peter Qiu's avatar
      hotspot2: update Passpoint intent definitions · 5679145d
      Peter Qiu authored
      Address API Councils comment on the newly added intent definitions
      for Passpoint events:
      - Use a Parcelable class to represent icon info
      - Document all extras that are included for an action
      - Document that the new intents will only be sent to registered
        receivers, and not manifest receivers
      - Rename extras to be more generic
      
      While there, removed the deprecated hidden Passpoint intent
      definitions.
      
      Bug: 35857805
      Test: frameworks/base/wifi/tests/runtests.sh
      Change-Id: I22de2d52fce3ed1adc8d72bf1580d3337bc747c5
      Merged-In: I22de2d52fce3ed1adc8d72bf1580d3337bc747c5
      5679145d
  25. 10 Mar, 2017 1 commit
    • Peter Qiu's avatar
      hotspot2: update Passpoint intent definitions · b91d7deb
      Peter Qiu authored
      Address API Councils comment on the newly added intent definitions
      for Passpoint events:
      - Use a Parcelable class to represent icon info
      - Document all extras that are included for an action
      - Document that the new intents will only be sent to registered
        receivers, and not manifest receivers
      - Rename extras to be more generic
      
      While there, removed the deprecated hidden Passpoint intent
      definitions.
      
      Bug: 35857805
      Test: frameworks/base/wifi/tests/runtests.sh
      Change-Id: I22de2d52fce3ed1adc8d72bf1580d3337bc747c5
      b91d7deb
  26. 08 Mar, 2017 1 commit
  27. 01 Mar, 2017 2 commits
    • Paul Stewart's avatar
      Fix up EAP-SIM documentation · 906a077c
      Paul Stewart authored
      Address API Council comments on doucmentation for the method calls
      and constants related to EAP-SIM.  While here, improve unit tests
      to ensure that passing a null certificate (chain) causes the config
      to forget any existing client certificates.
      
      Bug: 35847887
      Test: Unit tests
      
      Change-Id: I1c4e18e1a7cfb61aa4764e32778793368938e70b
      906a077c
    • Etan Cohen's avatar
      [AWARE] Add data-path security configuration (PMK) · 954111a2
      Etan Cohen authored
      Add API to optionally provide a pairwise master key (PMK)
      to configure security on a data-path.
      
      Clarify the default API to mean open (unencrypted) data-path.
      
      Bug: 33552694
      Test: unit tests and integration (sl4a) tests
      Change-Id: I43fe704547f2921b3207f215e42d253837aa04e9
      954111a2
  28. 23 Feb, 2017 2 commits
  29. 17 Feb, 2017 1 commit
    • Etan Cohen's avatar
      [AWARE] Add discovery window period configuration · 6bb624a5
      Etan Cohen authored
      Discovery window period configuration modifies the duty cycle of
      the Aware discovery session. Allowing trade-offs of discovery
      latency vs. power.
      
      Add the configuration.
      
      Note: the whole ConfigRequest object is not public (at this point)
      so by default so is the new configuration.
      
      Bug: 33552536
      Test: unit tests and integration (sl4a) tests.
      Change-Id: I16f5c084dbc91431763a81de0a3adfe6f452e44c
      6bb624a5