Loading system/audio_hal_interface/aidl/a2dp_encoding_aidl.cc +1 −1 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ BluetoothAudioSinkClientInterface* active_hal_interface = nullptr; // ProviderInfo for A2DP hardware offload encoding and decoding data paths, // if supported by the HAL and enabled. nullptr if not supported // or disabled. ::bluetooth::audio::aidl::a2dp::ProviderInfo* provider_info; std::unique_ptr<::bluetooth::audio::aidl::a2dp::ProviderInfo> provider_info; // Save the value if the remote reports its delay before this interface is // initialized Loading system/audio_hal_interface/aidl/provider_info.cc +3 −2 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ using ::aidl::android::hardware::bluetooth::audio::SessionType; * getProviderInfo, or if the feature flag for codec * extensibility is disabled. ***/ ProviderInfo* ProviderInfo::GetProviderInfo() { std::unique_ptr<ProviderInfo> ProviderInfo::GetProviderInfo() { if (!IS_FLAG_ENABLED(a2dp_offload_codec_extensibility)) { LOG(INFO) << "a2dp offload codec extensibility is disabled;" << " not going to load the ProviderInfo"; Loading Loading @@ -79,7 +79,8 @@ ProviderInfo* ProviderInfo::GetProviderInfo() { sink_codecs = std::move(sink_provider_info->codecInfos); } return new ProviderInfo(std::move(source_codecs), std::move(sink_codecs)); return std::make_unique<ProviderInfo>(std::move(source_codecs), std::move(sink_codecs)); } /*** Loading system/audio_hal_interface/aidl/provider_info.h +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ class ProviderInfo { * getProviderInfo, or if the feature flag for codec * extensibility is disabled. ***/ static ProviderInfo* GetProviderInfo(); static std::unique_ptr<ProviderInfo> GetProviderInfo(); ProviderInfo(std::vector<CodecInfo> source_codecs, std::vector<CodecInfo> sink_codecs); Loading Loading
system/audio_hal_interface/aidl/a2dp_encoding_aidl.cc +1 −1 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ BluetoothAudioSinkClientInterface* active_hal_interface = nullptr; // ProviderInfo for A2DP hardware offload encoding and decoding data paths, // if supported by the HAL and enabled. nullptr if not supported // or disabled. ::bluetooth::audio::aidl::a2dp::ProviderInfo* provider_info; std::unique_ptr<::bluetooth::audio::aidl::a2dp::ProviderInfo> provider_info; // Save the value if the remote reports its delay before this interface is // initialized Loading
system/audio_hal_interface/aidl/provider_info.cc +3 −2 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ using ::aidl::android::hardware::bluetooth::audio::SessionType; * getProviderInfo, or if the feature flag for codec * extensibility is disabled. ***/ ProviderInfo* ProviderInfo::GetProviderInfo() { std::unique_ptr<ProviderInfo> ProviderInfo::GetProviderInfo() { if (!IS_FLAG_ENABLED(a2dp_offload_codec_extensibility)) { LOG(INFO) << "a2dp offload codec extensibility is disabled;" << " not going to load the ProviderInfo"; Loading Loading @@ -79,7 +79,8 @@ ProviderInfo* ProviderInfo::GetProviderInfo() { sink_codecs = std::move(sink_provider_info->codecInfos); } return new ProviderInfo(std::move(source_codecs), std::move(sink_codecs)); return std::make_unique<ProviderInfo>(std::move(source_codecs), std::move(sink_codecs)); } /*** Loading
system/audio_hal_interface/aidl/provider_info.h +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ class ProviderInfo { * getProviderInfo, or if the feature flag for codec * extensibility is disabled. ***/ static ProviderInfo* GetProviderInfo(); static std::unique_ptr<ProviderInfo> GetProviderInfo(); ProviderInfo(std::vector<CodecInfo> source_codecs, std::vector<CodecInfo> sink_codecs); Loading