Skip to content
Snippets Groups Projects
  1. Oct 10, 2023
  2. Oct 09, 2023
    • William Escande's avatar
      Fix reorder-init-list in power telemetry · 57fa4482
      William Escande authored
      ```
      stack_power_telemetry.cc:518:7: warning: ISO C++ requires field
      designators to be specified in declaration order;
      field 'channel_type' will be initialized after field 'src'
      [-Wreorder-init-list]
            .src.cid = static_cast<uint16_t>(src_id),
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      stack_power_telemetry.cc:517:23: note: previous initialization for field
      'channel_type' is here
            .channel_type = channel_type,
                            ^~~~~~~~~~~~
       ```
      
      Bug: 297606425
      Test: m Bluetooth | Only build needed no-op change
      Change-Id: Ifad027799e58a93afb11ea97c54c30adefb104ea
      57fa4482
    • Krzysztof Kosiński's avatar
    • Chris Manton's avatar
      mock: Update mock_bta_av_api · 28e1e70a
      Chris Manton authored
      Bug: 299365655
      Test: m .
      
      Change-Id: Ia3cbf8614f91b99d429a9f60bd23064e795a608c
      28e1e70a
    • Michael Sun's avatar
    • Himanshu Rawat's avatar
      Consistent storage keys · 6f06614b
      Himanshu Rawat authored
      1. Literal strings shouldn't be used as keys
      2. Keys should use a consistent naming convention
      3. Key groups like LE keys are should be bound together
      
      Test: m com.android.btservices
      Bug: 298479810
      Change-Id: Ief56997ac18e6190bab1ef8fb031b610ff5f855f
      6f06614b
    • Myles Watson's avatar
    • Chris Manton's avatar
      Break out jni task code from btif core · 24c5630c
      Chris Manton authored
      Bug: 303926933
      Test: m .
      No-Typo-Check: legacy code
      
      Change-Id: Ie277ed2b19195ee90f6bfc7e82ece8c198e1efb0
      24c5630c
    • Jakub Pawłowski's avatar
    • Myles Watson's avatar
    • Himanshu Rawat's avatar
      Remove entire storage section when the device is unbonded · 3ad5b1bc
      Himanshu Rawat authored
      Every bonded device property is stored under a section corresponding to
      the device. BTIF storage function for removing the device removes the
      individual properties. However as the properties are added in the BT
      stack, chances of some properties left alone during device removal
      increases.
      For example, "AddrType" property is not removed when a device is
      removed. As a result, when reconnecting/repairing with such device, this
      old property unintentionally gets assigned to the device.
      
      Test: m com.android.btservices
      Bug: 298479810
      Change-Id: I5c1bceb708727e17771cb222abe79f986e55a573
      3ad5b1bc
    • Jakub Pawlowski's avatar
      Wait for remote version information, before deciding Robust Cache support · 347b6c93
      Jakub Pawlowski authored
      Currently, GATT service discovery is scheduled immediately after
      connection to new LE device.
      
      Depending on timing of Link Layer, we might not read remote version
      information before checking for Robust Caching support. In this case, we
      would assume device doesn't support it.
      
      After this patch, we would wait for "remote version information" command
      to finish, and go back to schedulsed service discovery. This way, we
      would alawys use Robust Cache when newly connected device supports it.
      
      Test: Bond with a set of devices, where both of them have same GATT
          database hash. Verify service discovery is triggered only once in snoop
          log.
      Bug: 293249869
      Change-Id: Id87ce6f8aa4a4f23a33d963dbbc28ef0891a6d75
      347b6c93
    • Etienne Ruffieux's avatar
      Catch DeadObjectException in PLayerSettingsManager too · 5265d0f3
      Etienne Ruffieux authored
      MediaSessionCompat will crash if the player is not
      responding and this will propagate to AVRCP.
      We need to handle these crashes too and update the
      remote device.
      As all crashes should be handled the same here,
      replace SecurityException by Exception.
      
      Bug: 290576021
      Tag: #feature
      Test: atest net_test_btpackets
      Test: atest BluetoothInstrumentationTests
      Change-Id: I43a37017e9ee49e44dc6f631813ec3eb4ba96a6f
      5265d0f3
    • Archie Pusaka's avatar
      Fix data type when querying remote_dev type · fcbae955
      Archie Pusaka authored
      The check of BT_PROPERTY_TYPE_OF_DEVICE property requires size of 4
      bytes, but some of the read attempts only provide 1 byte of data.
      This causes those read attempts to fail.
      
      Even though the underlying data fits within 1 byte, there are a lot
      of places which assume 4 bytes of data, so changing this to 1 byte
      breaks those assumption and might introduce unwanted side effects.
      
      This CL modifies those failed reads to provide exactly 4 bytes.
      Additionally, this also replaces every accessors that uses enum to use
      uint32_t instead, since enum size is not guaranteed to be 4 bytes.
      
      Bug: 300418914
      Tag: #floss
      Test: m -j
      Test: Manually, make sure we don't fail reading dev_type from storage
            by adding logs and just scan some advertisements.
      
      Change-Id: Ie2a880813ed5e4666813e02bb6914ae52950bb09
      fcbae955
  3. Oct 07, 2023
Loading