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

Commit f39e31b6 authored by Yuyang Huang's avatar Yuyang Huang
Browse files

Remove unused getProviderInfo

Bug: 294134504
Bug: 315234036
Test: m .
Change-Id: I71c7edeb6ba5deb453cfc5c95ae7d34b314ffda5
parent 8fe4b1dd
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -650,22 +650,6 @@ size_t BluetoothAudioSourceClientInterface::WriteAudioData(const uint8_t* p_buf,
  return total_written;
}

std::optional<IBluetoothAudioProviderFactory::ProviderInfo>
BluetoothAudioClientInterface::GetProviderInfo(SessionType session_type) {
  if (provider_factory_ == nullptr) {
    LOG(WARNING) << __func__ << ": No provider factory";
    return std::nullopt;
  }
  std::optional<IBluetoothAudioProviderFactory::ProviderInfo> provider_info;
  auto aidl_retval =
      provider_factory_->getProviderInfo(session_type, &provider_info);
  if (!aidl_retval.isOk()) {
    LOG(FATAL) << __func__ << ": BluetoothAudioHal::getProviderInfo failure: "
               << aidl_retval.getDescription();
  }
  return provider_info;
}

void BluetoothAudioClientInterface::SetCodecPriority(CodecId codec_id,
                                                     int32_t priority) {
  CHECK(provider_ != nullptr);
+3 −6
Original line number Diff line number Diff line
@@ -82,9 +82,9 @@ class BluetoothAudioClientInterface {
  static std::vector<AudioCapabilities> GetAudioCapabilities(
      SessionType session_type);
  static std::optional<IBluetoothAudioProviderFactory::ProviderInfo>
  GetProviderInfo(
      SessionType session_type,
      std::shared_ptr<IBluetoothAudioProviderFactory> provider_factory);
  GetProviderInfo(SessionType session_type,
                  std::shared_ptr<IBluetoothAudioProviderFactory>
                      provider_factory = nullptr);

  std::optional<A2dpStatus> ParseA2dpConfiguration(
      const CodecId& codec_id, const std::vector<uint8_t>& configuration,
@@ -113,9 +113,6 @@ class BluetoothAudioClientInterface {

  void FlushAudioData();

  std::optional<IBluetoothAudioProviderFactory::ProviderInfo> GetProviderInfo(
      SessionType session_type);

  void SetCodecPriority(CodecId codec_id, int32_t priority);

  std::vector<IBluetoothAudioProvider::LeAudioAseConfigurationSetting>