Skip to content
Snippets Groups Projects
  1. Feb 15, 2024
  2. Nov 08, 2023
    • David Duarte's avatar
      Remove ASAN workaround · 755cb55f
      David Duarte authored
      The underlying issue seems to have been fixed
      
      Bug: 154347133
      Fix: 308547175
      Test: N/A
      Change-Id: I8ca8a8c5328c876b6410f8a4c85f614d5feafb89
      755cb55f
  3. Oct 10, 2023
    • William Escande's avatar
      Force reorder-init-list as error · 27297183
      William Escande authored
      Since we fixed all warning, it would be better to not introduce any
      futur regression, hence adding the flag by default
      
      Bug: 297606425
      Test: m Bluetooth | this is no-op, only impact build
      Change-Id: Iac0b15bae84408804c5f9c1d4428a3201484d500
      27297183
  4. Sep 10, 2023
  5. Aug 01, 2023
  6. Jun 29, 2023
    • David Duarte's avatar
      Rename fluoride_common_options into bluetooth_cflags · 4043a70f
      David Duarte authored
      fluoride_common_options are not only used inside fluoride but all
      bluetooth cc targets so use the prefix `bluetooth` instead of
      `fluoride`.
      
      Also use a less generic name `common_options` -> `cflags` to
      document what contains this default for the rules using this default
      
      Test: mma packages/modules/Bluetooth
      Bug: 279502784
      Change-Id: Ic3b7a62bc97f8eab24d9130fbe2e2367596bdc9b
      4043a70f
  7. Mar 28, 2023
  8. Mar 27, 2023
    • David Duarte's avatar
      Run GTests with ASAN on 32bit only · 13387158
      David Duarte authored
      Address Sanitizer seems to only be flaky on 64bit binaries.
      So workaround this issue by running the 32bit binaries on 64bit targets.
      
      Bug: 273846603
      Bug: 154347133
      Test: TreeHugger
      Change-Id: Ic573b01c122d44eb6928516682305bfec53fb957
      13387158
    • David Duarte's avatar
      Revert "Add template to prevent sharding of some bt test modules" · f45d9015
      David Duarte authored
      This reverts commit e58cc9d4.
      
      Reason for revert: Trying another workarround, reverting to reduce
                         the number of configuration possibilities
      Test: None
      Bug: 273588072
      Bug: 273846603
      
      Change-Id: I9b2eee0f460b59f6d806b33ceebe2f1fda4d3e43
      f45d9015
  9. Mar 24, 2023
  10. Mar 17, 2023
  11. Mar 06, 2022
  12. Feb 14, 2021
    • Bob Badour's avatar
      [LSC] Add LOCAL_LICENSE_KINDS to system/bt · 92ecf7c4
      Bob Badour authored
      Added SPDX-license-identifier-Apache-2.0 to:
        apex/Android.bp
        audio_a2dp_hw/Android.bp
        audio_bluetooth_hw/Android.bp
        audio_hal_interface/Android.bp
        audio_hearing_aid_hw/Android.bp
        binder/Android.bp
        bta/Android.bp
        btcore/Android.bp
        btif/Android.bp
        build/Android.bp
        common/Android.bp
        conf/Android.bp
        device/Android.bp
        embdrv/g722/fuzzer/Android.bp
        embdrv/sbc/Android.bp
        embdrv/sbc/decoder/Android.bp
        embdrv/sbc/encoder/Android.bp
        gd/att/Android.bp
        gd/common/Android.bp
        gd/dumpsys/Android.bp
        gd/dumpsys/bundler/Android.bp
        gd/fuzz/Android.bp
        gd/hal/Android.bp
        gd/hci/Android.bp
        gd/iso/Android.bp
        gd/l2cap/Android.bp
        gd/l2cap/fuzz/Android.bp
        gd/neighbor/Android.bp
        gd/os/Android.bp
        gd/packet/Android.bp
        gd/packet/parser/Android.bp
        gd/packet/parser/test/Android.bp
        gd/proto/Android.bp
        gd/rust/common/Android.bp
        gd/rust/facade/Android.bp
        gd/rust/gddi/Android.bp
        gd/rust/hal/Android.bp
        gd/rust/hci/Android.bp
        gd/rust/link/Android.bp
        gd/rust/main/Android.bp
        gd/rust/shim/Android.bp
        gd/security/Android.bp
        gd/security/channel/Android.bp
        gd/security/pairing/Android.bp
        gd/security/record/Android.bp
        gd/shim/Android.bp
        gd/storage/Android.bp
        hci/Android.bp
        include/Android.bp
        internal_include/Android.bp
        main/Android.bp
        main/shim/Android.bp
        osi/test/fuzzers/Android.bp
        osi/test/fuzzers/alarm/Android.bp
        osi/test/fuzzers/allocation_tracker/Android.bp
        osi/test/fuzzers/allocator/Android.bp
        osi/test/fuzzers/array/Android.bp
        osi/test/fuzzers/buffer/Android.bp
        osi/test/fuzzers/compat/Android.bp
        osi/test/fuzzers/fixed_queue/Android.bp
        osi/test/fuzzers/future/Android.bp
        osi/test/fuzzers/list/Android.bp
        osi/test/fuzzers/ringbuffer/Android.bp
        packet/Android.bp
        packet/avrcp/Android.bp
        packet/base/Android.bp
        packet/tests/fuzzers/Android.bp
        profile/avrcp/Android.bp
        profile/sdp/Android.bp
        service/Android.bp
        service/common/Android.bp
        stack/test/fuzzers/Android.bp
        stack/test/fuzzers/a2dp/Android.bp
        stack/test/fuzzers/a2dp/codec/Android.bp
        stack/test/fuzzers/sdp/Android.bp
        test/Android.bp
        test/headless/Android.bp
        test/rootcanal/Android.bp
        test/suite/Android.bp
        types/Android.bp
        udrv/Android.bp
        utils/Android.bp
        vendor_libs/Android.bp
        vendor_libs/linux/Android.bp
        vendor_libs/linux/interface/Android.bp
        vendor_libs/test_vendor_lib/Android.bp
        vendor_libs/test_vendor_lib/types/Android.bp
      
      Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
        gd/Android.bp
        gd/crypto_toolbox/Android.bp
        stack/Android.bp
      
      Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
          SPDX-license-identifier-MIT legacy_unencumbered
      to:
        Android.bp
      
      Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
          legacy_unencumbered
      to:
        embdrv/g722/Android.bp
      
      Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
      to:
        osi/Android.bp
      
      Bug: 68860345
      Bug: 151177513
      Bug: 151953481
      
      Test: m all
      
      Exempt-From-Owner-Approval: janitorial work
      Change-Id: I883bd6b68223a5bc77fdac89e0280993f617d6d0
      92ecf7c4
  13. Dec 06, 2019
  14. May 23, 2019
  15. Mar 27, 2019
  16. Feb 06, 2019
    • Cheney Ni's avatar
      Add stack side interface for Bluetooth audio HAL V2 · 68ce281a
      Cheney Ni authored
      This bases on the new Bluetooth Audio HAL V2 to provide a HIDL based
      interface for the stack. There will be a common interface named
      BluetoothAudioClientInterface that the stack can register its session for
      stream of A2DP or Hearing Aid. When the stack registers to this
      pre-implemented BluetoothAudioClientInterface, the audio HAL can control
      the stream state and the stack can report results to the audio HAL.
      When running for software encoding, there will also data path via FMQ to
      provide the bridge between audio HAL and the stack. This change contains
      A2DP software encoding (legacy) only.
      
      Bug: 111519504
      Test: manual with A2DP software encoding (legacy)
      
      Change-Id: Iac5a43c929d4036fa86e2b0c2c2920ca2b9dfa50
      68ce281a
  17. Feb 05, 2019
    • Cheney Ni's avatar
      Add generic audio HW module for Bluetooth audio HAL V2 · b9a84c27
      Cheney Ni authored
      This is loaded from audio HAL when initials the audio HW module,
      bluetooth_audio, and uses Bluetooth audio HAL V2 to provide stream APIs
      for control and data path. When the audio framework opens different
      input or output streams, it uses the audio device type to choose which
      SessionType is and pass to Bluetooth audio HAL so associates with the
      Provider / Port pair and communicate with the Bluetooth stack.
      
      * Audio contrl path uses IBluetoothAudioPort interface to interact with
        the Bluetooth stack.
      * Audio data path uses HIDL Fast Message Queue that is maintained within
        IBluetoothAudioProvider HIDL and is ready after session started.
      
      Bug: 111519504
      Bug: 122503379
      Test: manual
      
      Change-Id: Ie668456179357c26397f5c6234ff46b5308dfe24
      b9a84c27
  18. Sep 27, 2018
    • Jack He's avatar
      Add TEST_MAPPING to system/bt · cac30a28
      Jack He authored
      * Add "postsubmit" test group to TEST_MAPPING in system/bt
      * Developer can run tests mannually in system/bt via:
        system/bt$ atest :postsubmit
      * Remove legacy configuration files spread across system/bt
      * Created unified configuration file system/bt/AndroidTestTemplate.xml
        and add it to the default build config so that developers don't have
        to configure it
      
      Bug: 113359343
      Test: atest :postsubmit
      Change-Id: I0fdd55b47ef176b5c4ce3d2cd217ffa67cf9bc23
      cac30a28
  19. Aug 02, 2018
    • Jack He's avatar
      Add MessageLoopThread, ExecutionBarrier, and performance tests · 0ac5b1b6
      Jack He authored
      * Add MessageLoopThread to abstract thread implementation to our code
      * Add ExecutionBarrier utility class to help with thread synchronization
      * Add more performance tests and performance benchmarks to evaluate
        execution efficiency in both batch and sequential usages, for various
        thread implementations including:
        - libosi reactor on pthread
        - MessageLoop on libosi reactor on pthread
        - MessageLoop on STL std::thread
        - MessageLoop on Posix pthread
        - MessageLoop on libchrome base::Thread
        - MessageLoop on MessageLoopThread
      
      Bug: 110303473
      Test: make, native and Java unit tests,
            test/run_benchmarks.sh net_benchmark_thread_performance,
            test/run_unit_tests.sh net_test_performance,
            test/run_unit_tests.sh bluetooth_test_common,
            testplans/details/184455/3975
      Change-Id: I5b4ce2ee910a0f1d2edf95e0296916dea04d3f89
      0ac5b1b6
  20. Mar 08, 2018
  21. Mar 07, 2018
  22. Mar 06, 2018
    • Jack He's avatar
      Metrics: Move bluetooth.proto to one place · 9a30a9f9
      Jack He authored
      * Move bluetooth.proto to proto/ and compile it for both Java LITE
        runtime and C++ LITE runtime so that it can be shared between Java
        and native code
      * Remove redundant comments in bluetooth.proto
      
      Bug: 33693818
      Test: make, toggle Bluetooth, clearcut server-client E2E test
            adb shell dumpsys bluetooth_manager --proto-bin
            ACTS tests: BtMetricsTest, BtFunhausMetricsTest
      Change-Id: I7cd5e1b4fb8fcc197272ef8161ff384e53022424
      9a30a9f9
    • Jack He's avatar
      Metrics: Move bluetooth.proto to one place · bd8f4300
      Jack He authored
      * Move bluetooth.proto to proto/ and compile it for both Java LITE
        runtime and C++ LITE runtime so that it can be shared between Java
        and native code
      * Remove redundant comments in bluetooth.proto
      
      Bug: 33693818
      Test: make, toggle Bluetooth, clearcut server-client E2E test
            adb shell dumpsys bluetooth_manager --proto-bin
            ACTS tests: BtMetricsTest, BtFunhausMetricsTest
      Change-Id: I7cd5e1b4fb8fcc197272ef8161ff384e53022424
      (cherry picked from commit 8948b090088330d4ad12cd550986465228d20965)
      bd8f4300
  23. Oct 19, 2017
  24. Oct 18, 2017
  25. Aug 08, 2017
    • Jakub Pawlowski's avatar
      Bluetooth: move AIDL files related to Bluetooth into system/bt (2/3) · 3b10c39a
      Jakub Pawlowski authored
      This patch moves *.aidl files from
      frameworks/base/core/java/android/bluetooth into system/bt/binder. This
      is in preparation to convert the Bluetooth deamon into native
      implementation piece by piece.
      In order to do that, one must have C++ header files, and paths to them
      with AIDL files, and */java/* folder didn't seem as proper place for
      that. Additionally, keeping AIDL files out of framework/base will not
      require creating dependency on this huge project, which should help
      keeping the compilation fast.
      
      Test: compilation test
      Change-Id: I4c992e6ee16eea3173a49b1d37e961af3d3c9ac6
      Merged-In: I4c992e6ee16eea3173a49b1d37e961af3d3c9ac6
      (cherry picked from commit 8a12de49177a341a118c95435177fba4f12fe412)
      3b10c39a
    • Jakub Pawlowski's avatar
      Bluetooth: move AIDL files related to Bluetooth into system/bt (2/3) · 47be5353
      Jakub Pawlowski authored
      This patch moves *.aidl files from
      frameworks/base/core/java/android/bluetooth into system/bt/binder. This
      is in preparation to convert the Bluetooth deamon into native
      implementation piece by piece.
      In order to do that, one must have C++ header files, and paths to them
      with AIDL files, and */java/* folder didn't seem as proper place for
      that. Additionally, keeping AIDL files out of framework/base will not
      require creating dependency on this huge project, which should help
      keeping the compilation fast.
      
      Test: compilation test
      Change-Id: I4c992e6ee16eea3173a49b1d37e961af3d3c9ac6
      47be5353
  26. Jul 06, 2017
    • Jakub Pawlowski's avatar
      Make RawAddress into a class (1/3) · f9f45851
      Jakub Pawlowski authored
      * Add libbluetooth-types - library containing types implementation, that
      is common between stystem/bt and packages/apps/Bluetooth. It must be
      included in every project using btif interface.
      * Put Raw Address implementation into libbluetooth-types
      * Unify all "to/from string" helper methods into ToString and FromString
      * bd_addr_empty -> RawAddress::kEmpty
      * bd_addr_any -> RawAddress::kAny
      
      Also fix leaks in jni str2addr by adding ReleaseStringUTFChars
      
      Test: types_unittest
      Change-Id: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043
      Merged-In: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043
      f9f45851
    • Jakub Pawlowski's avatar
      Make RawAddress into a class (1/3) · 6169a534
      Jakub Pawlowski authored
      * Add libbluetooth-types - library containing types implementation, that
      is common between stystem/bt and packages/apps/Bluetooth. It must be
      included in every project using btif interface.
      * Put Raw Address implementation into libbluetooth-types
      * Unify all "to/from string" helper methods into ToString and FromString
      * bd_addr_empty -> RawAddress::kEmpty
      * bd_addr_any -> RawAddress::kAny
      
      Also fix leaks in jni str2addr by adding ReleaseStringUTFChars
      
      Test: types_unittest
      Change-Id: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043
      6169a534
  27. May 25, 2017
    • Jack He's avatar
      MCAP: Add a test tool for MCAP · 4e452bac
      Jack He authored
      * Add a command line tool for MCAP related tests
      * This tool can access the Bluetooth stack via a command line program
      * Type "help" to obtain a list of available console commands in this
        Bluetooth
      * Bluetooth must be disabled when this tool is running
      
      Bug: 37867299
      Test: make, PTS MCAP test
      Change-Id: I106e6625ee8a29b7fdad88cdfeb99419054ef771
      4e452bac
  28. Jan 18, 2017
    • Jack He's avatar
      Convert build system to soong using Android.bp · 65b2a57b
      Jack He authored
      * Convert top level Android.mk into build templates in build/Android.bp
        and build/fluoride.go
      * Initial conversion is done by "androidmk Android.mk > Android.bp"
      * Android.bp does not allow source inclusion from external directories
        and therefore they have to be made in to cc_library_static in their
        respective sub-directories and linked using whole_static_libs in the
        modules where they are used
      * As Android.bp does not allow multiple modules of the same name,
        same-name mudules for different target are merged into one definition
        with target specific setup
      * Generated proto header path has to be changed in osi/src/metrics.cc as
        Android.bp only generate header path relative to the Android.bp file
        instead of top-level directory such as system/bt
      * Android.bp does not support resource copying yet and hence conf files
        are left un-touched.
      * Android.bp does support conditional module declaration and therefore
        test-vendor libs are left untouched except for unit tests
      * The goal of this CL is to direct (almost) translate Android.mk to
        Android.bp first with Android.bp specific optimizations coming later
      
      Bug: 32958753
      Test: Code compilation, manual testing by test team
      
      Change-Id: I5249e1f2135c4121205619b1d735ce448feb7499
      65b2a57b
Loading