Skip to content
Snippets Groups Projects
  1. Feb 23, 2024
    • Rongxuan Liu's avatar
      [le audio] Set pa sync interval default to match the APIs · a07241f3
      Rongxuan Liu authored
      getPaSyncInterval() and setPaSyncInterval() both declared the unknown
      interval value is 0xFFFF.
      But in metadata builder, we set the default as -1.
      In the case of assistant parsing metadata from Base, pa interval is not
      present and we uses -1 there which is not matching the APIs.
      We should update the default value to 0xFFFF to keep aligned with APIs.
      
      Tag: #bug
      Bug: 326528942
      Bug: 316005152
      Test: atest BluetoothLeBroadcastTest BluetoothLeBroadcastMetadataTest BluetoothLeBroadcastAssistantTest
      Change-Id: I9adf0356cbf0f52907ca816cb3aae84a4f58dd6b
      a07241f3
  2. Feb 22, 2024
  3. Feb 15, 2024
  4. Feb 13, 2024
    • William Escande's avatar
      VolumeControl: Early return in unregisterCallback · 1d5d4bae
      William Escande authored
      replaced:
      ```
      if (foo) {
        /*
        * long code
        */
      }
      ```
      by
      ```
      if (!bar) {
        return;
      }
      /*
      * long code
      */
      ```
      
      To win some indent spaces
      
      Bug: 324492914
      Test: m Bluetooth | Existing test
      Flag: Exempt, mechanical no-op
      Change-Id: Ib735d03f1ea14547aae9213b6f7abc3362ff1338
      1d5d4bae
    • William Escande's avatar
      VolumeControl: Early return in registerCallback · b6d8b917
      William Escande authored
      replaced:
      ```
      if (service) {
        /*
        * long code
        */
      }
      ```
      by
      ```
      if (!service) {
        return;
      }
      /*
      * long code
      */
      ```
      
      To win some indent spaces
      
      Bug: 324492914
      Test: m Bluetooth | Existing test
      Flag: Exempt, mechanical no-op
      Change-Id: Ia580c60c2e35b446ecdfb373afed10206e4376b7
      b6d8b917
  5. Feb 12, 2024
  6. Feb 09, 2024
    • Michal Belusiak's avatar
      BluetoothVolumeControl: Improve Java API for Volume Control Offset · c31210df
      Michal Belusiak authored
      Add argument for selecting a VOCS instance in setVolumeOffset.
      Add instance id argument for onVolumeOffsetChanged callback.
      Add callbacks for audio location and audio description change.
      Add method to read number of VOCS instances.
      
      Bug: 322779934
      Bug: 323156655
      Tag: #feature
      Test: atest VolumeControlServiceTest BluetoothVolumeControlTest
      Change-Id: I080bfb20112ce37c1f6560cd254b4a0c9433b1c1
      c31210df
  7. Feb 08, 2024
    • William Escande's avatar
      SystemServer: AutoOn: Add system API · 2912f2d5
      William Escande authored
      Bug: 316946334
      Bug: 323060869
      Test: m Bluetooth
      Test: atest CtsBluetoothTestCases
      Test: atest ServiceBluetoothRoboTests
      Change-Id: I0d8c37a9b3684a0b2c45111ddb8b0738a9682792
      2912f2d5
    • Kyunglyul Hyun's avatar
      Fix BluetoothGatt busy state after failure · cf66648a
      Kyunglyul Hyun authored
      Previously, when BluetoothGatt#writeCharacteristics
      failed early, the `mDeviceBusy` incorrectly remain
      `true`. This prevented subsequent operations
      on the BluetoothGatt instance.
      
      This change ensures the `mDeviceBusy` is properly set to
      `false` after a failure is returned by the service,
      allowing for continued use of the instance.
      
      It also adds a test for ensuring the behavior.
      
      Bug: 322580271
      Bug: 322509603
      Test: atest GattClientTest
      
      Change-Id: I6aea853745e15aca5c4caf75037e680592e74c81
      cf66648a
  8. Feb 07, 2024
    • Himanshu Rawat's avatar
      HidHost interface changes to select preferred transport · 2cb2aa0c
      Himanshu Rawat authored
      Added new setter and getter APIs for preferred transport.
      Added transport information in the connection state change intent
      
      Test: mmm packages/modules/Bluetooth
      Bug: 324094735
      Bug: 320762367
      Change-Id: Id9cef158de8084b90098bf2160b233ebe0814461
      2cb2aa0c
  9. Feb 05, 2024
    • Sagar Verma's avatar
      LE_Audio: Add missing spec defined sampling frequencies · cda6dbf3
      Sagar Verma authored
      Add missing spec defined sampling frequencies
      
      Bug: 322482347
      Bug: 323287937
      Test: mmm packages/modules/Bluetooth
      Change-Id: Ie644abe38a812b18e37077b03c4dbae67555bfbc
      cda6dbf3
    • Łukasz Rymanowski's avatar
      leaudio: Add callback to notify about streaming state · 5599ea35
      Łukasz Rymanowski authored
      Bug: 323288188
      Bug: 323288608
      Test: atest BluetoothLeAudioTest
      Tag: #feature
      Change-Id: I44c7aa9d9f6afb163a1ecfa5fd2184a4af06267e
      5599ea35
    • Ben's avatar
      BumbleBluetoothTests: Improve directConnectGattAfterClose · 67cc6df2
      Ben authored
      Reduce the flakyness of GattClientTest#directConnectGattAfterClose
      by only reconnecting once (instead of 10 times) and ensuring the
      second gatt connection disconnects before the end of the test.
      
      Bug: 322506814
      Flag: TEST_ONLY
      Test: atest BumbleBluetoothTests:android.bluetooth.GattClientTest
      Change-Id: I221291d49f6c14e3e3652288f35d4dcaa095415d
      67cc6df2
    • Ben's avatar
      BumbleBluetoothTests: Fix reconnectExistingClient flake · 3a66e424
      Ben authored
      Fix GattClientTest#reconnectExistingClient flake where
      the gatt callback was sometimes being called to notify
      of disconnection at the end of the test. The end of the
      test and the disconnection were racing. This is fixed
      by explicitly disconnecting at the end of the test.
      
      Bug: 322517596
      Flag: TEST_ONLY
      Test: atest BumbleBluetoothTests:android.bluetooth.GattClientTest
      Change-Id: I428a3c6230aa139fc0479c1fcb5b09dd97686f57
      3a66e424
  10. Feb 02, 2024
    • Chienyuan Huang's avatar
      Align value range of set/get confidence level · 2f7b7fce
      Chienyuan Huang authored
      Bug: 322979029
      Bug: 317683528
      Test: atest DistanceMeasurementResultTest
      Change-Id: Idee22a13c2a598443d3889ce25b2f492c0c7872c
      2f7b7fce
    • Rongxuan Liu's avatar
      Add new metadata API for active device preferrence · bea47613
      Rongxuan Liu authored
      This API allows application to set preference if the device should
      remain as inactive audio device upon connection.
      
      Tag: #feature
      Bug: 311243225
      Bug: 322387487
      Test: atest DatabaseManagerTest BluetoothDeviceTest
      Change-Id: I20aeb3b9a232a5d6544795871a64c88e782e46c5
      bea47613
    • Himanshu Rawat's avatar
      Test parallel service discovery with pairing cancelation · 4cf6a2bd
      Himanshu Rawat authored
      Test that parallel service discovery should not cause the BT stack to
      lose track of the pairing with the same device.
      
      Test: atest BumbleBluetoothTests:PairingTest
      Flag: EXEMPT test code
      Bug: 311790408
      Change-Id: I8162681ccb4c378d249f3466b7c7dcc8dc605af9
      4cf6a2bd
    • David Duarte's avatar
      BumbleBluetoothTests: Ignore UNAVAILABLE status during factoryReset · 33e99399
      David Duarte authored
      During factoryReset a Pandora Server might shutdown itself (Bumble do
      this) leading to the stream being closed and the call failing with
      an UNAVAILABLE status.
      As this is an expected behavior, ignore this error.
      
      Bug: 322509596
      Test: atest BumbleBluetoothTests
      Flag: Exempt, Test only change
      Change-Id: I98f937089413d480519e80b8ad41d7498150437b
      33e99399
  11. Feb 01, 2024
  12. Jan 31, 2024
    • William Escande's avatar
      Prevent checking flag in CTS for device before V · 579a19bf
      William Escande authored
      Calling a flag check on device prior to V will check for
      READ_DEVICE_CONFIG permission.
      
      Test does not have this permission
      
      Bug: 323199303
      Fix: 323199303
      Test: atest CtsBluetoothTestCases on T devices
      Flag: Exempt, Cts test only
      Change-Id: I0b60d340dc756b748f526de37c32a7395ce1719e
      579a19bf
    • Kihong Seong's avatar
      Add GATT_CONNECTION_TIMEOUT and change connection timeout flow · 3615d8fa
      Kihong Seong authored
      Replace GATT_ERROR being returned to the developer when GATT connection
      times out after 30 seconds, with new status code
      GATT_CONNECTION_TIMEOUT.
      
      Bug: 201571634
      Bug: 320574336
      Test: atest GattClientTest
      Change-Id: I09e7fe32b67b40f5281f1f8cddfd2863bee2993e
      3615d8fa
  13. Jan 29, 2024
  14. Jan 26, 2024
  15. Jan 25, 2024
    • Jihoon Kang's avatar
      Remove java_api_contribution modules from .bp files · 24dfd2e5
      Jihoon Kang authored
      java_api_contribution modules are dynamically generated from droidstubs
      modules or java_sdk_library_import, and is not a user-facing module.
      Defining this module is a .bp file is a no-op.
      
      Test: m nothing
      Bug: 322242515
      Change-Id: Id02754c66c7fc1fad9880187298694f4941f14e1
      Flag: Exempt, Build files only
      24dfd2e5
  16. Jan 24, 2024
  17. Jan 23, 2024
  18. Jan 22, 2024
  19. Jan 20, 2024
    • Pomai Ahlo's avatar
      Add RFCOMM Metrics Implementation · b3db9592
      Pomai Ahlo authored
      Add logic necessary to log RfcommConnectionAttempt as described in
      go/rfcomm_metrics_design
      
      Bug: 306760576
      Flag: EXEMPT the metrics implementation doesn't affect bt behavior
      Test: m Bluetooth
      Change-Id: I3c086bdd8a914895449080944d1dc3674ca49f5a
      b3db9592
  20. Jan 19, 2024
    • William Escande's avatar
      Use Flag instead of string for api · 703da24a
      William Escande authored
      Follow up of aosp/2898732 for CLs being checked meantime
      
      Bug: 318901016
      Test: m framework-bluetooth | no-op change from logical point of view
      Flag: Exempt, build change.. or said otherwise: This CL is the flag :)
      Change-Id: Id85bf02d3b66c835fa3ee742e301246ca52fb165
      703da24a
    • William Escande's avatar
      Revert^2 "Use aconfig flag for flaggedApi" · 651e8d2e
      William Escande authored
      This reverts commit 9a4b6b9c.
      
      Reason for revert: Re-landing the fix and check the test is passing
      
      Bug: 318901016
      Bug: 321154514
      Change-Id: If7985865d390258fee976833b8e29aad307e0fa2
      Fix: 318901016
      Test: atest StrictJavaPackagesTest
      Test: m framework-bluetooth | no-op change from logical point of view
      Flag: Exempt, build change.. or said otherwise: This CL is the flag :)
      651e8d2e
    • Henri Chataing's avatar
      a2dp: Fix value of CODEC_ID_AAC · e2eb20ff
      Henri Chataing authored
      Incorrectly set to 0x1 instead of 0x2.
      The value is normative (defined by A2DP specification).
      
      Bug: 305734815
      Bug: 308686081
      Test: m com.android.btservice
      Change-Id: I8709577442ab07e8e0f64933c55c99844bcda3a3
      e2eb20ff
    • Pomai Ahlo's avatar
      Save Socket Creation info as nanoseconds · bc19c025
      Pomai Ahlo authored
      New metrics are going to save latency information in nanoseconds.
      To accomodate for this, change socketCreationTime and
      socketCreationLatency to nanoseconds.  This does not change the units
      for existing metrics.
      
      Bug: 306760576
      Flag: EXEMPT mechanical refactor
      Test: m Bluetooth
      Change-Id: Ica70f968847e8f41c51344851882baabb7d03945
      bc19c025
    • Pomai Ahlo's avatar
      Separate Existing Metrics · e28d3cb0
      Pomai Ahlo authored
      Move metrics logic from BluetothSocket.java and
      BluetoothServerSocket.java into a new SocketMetrics.java
      
      Bug: 306760576
      Flag: EXEMPT strictly mechanical refactor
      Test: m Bluetooth
      Change-Id: Iad667d59a45d5f5d729acc6613bc41aeccd7d113
      e28d3cb0
Loading