Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e07461b authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

has_client: Add upper tester for the PTS

With this patch, if cache is off, we read all presets to satisfy PTS.

Bug: 238171211
Test: manualy with PTS
Test: atest BluetoothInstrumentationTests
Tag: #feature
Change-Id: I641e9933d0a967c4949ff3374e8f43d119fe3b92
parent cdb9c23b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -919,6 +919,13 @@ class HasClientImpl : public HasClient {
                                device.active_preset_handle,
                                device.active_preset_ccc_handle);
    }

    if (osi_property_get_bool("persist.bluetooth.has.always_use_preset_cache",
                              true) == false) {
      CpReadAllPresetsOperation(HasCtpOp(
          device.addr, PresetCtpOpcode::READ_PRESETS,
          le_audio::has::kStartPresetIndex, le_audio::has::kMaxNumOfPresets));
    }
  }

  void OnEncrypted(HasDevice& device) {