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

Commit 6352e825 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audio: Update NS for functions from h/i/audio/aidl/common/include/Utils.h

These utility functions got moved into 'aidl' namespace,
update code that uses them.

Along the way reorganized lists of includes to match the
style guide.

Bug: 205884982
Test: m
Change-Id: I541e45b9cdb6c85711e53bd8c0cd10a60160bcc5
parent d02dde2d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ std::vector<std::string> splitString(const std::string& s, char separator) {
std::vector<std::string> filterOutNonVendorTags(const std::vector<std::string>& tags) {
    std::vector<std::string> result;
    std::copy_if(tags.begin(), tags.end(), std::back_inserter(result),
            ::android::hardware::audio::common::maybeVendorExtension);
            ::aidl::android::hardware::audio::common::maybeVendorExtension);
    return result;
}

+3 −3
Original line number Diff line number Diff line
@@ -50,14 +50,14 @@ using aidl::android::media::audio::common::AudioPortExt;
using aidl::android::media::audio::common::AudioSource;
using aidl::android::media::audio::common::Int;
using aidl::android::media::audio::common::Float;
using aidl::android::hardware::audio::common::getFrameSizeInBytes;
using aidl::android::hardware::audio::common::isBitPositionFlagSet;
using aidl::android::hardware::audio::common::makeBitPositionFlagMask;
using aidl::android::hardware::audio::common::RecordTrackMetadata;
using aidl::android::hardware::audio::core::AudioPatch;
using aidl::android::hardware::audio::core::IModule;
using aidl::android::hardware::audio::core::ITelephony;
using aidl::android::hardware::audio::core::StreamDescriptor;
using android::hardware::audio::common::getFrameSizeInBytes;
using android::hardware::audio::common::isBitPositionFlagSet;
using android::hardware::audio::common::makeBitPositionFlagMask;

namespace android {

+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ status_t AidlConversionDp::getParameter(EffectParamWriter& param) {
            return getLimiterConfig(param);
        }
        case DP_PARAM_GET_CHANNEL_COUNT: {
            uint32_t channel = ::android::hardware::audio::common::getChannelCount(
            uint32_t channel = ::aidl::android::hardware::audio::common::getChannelCount(
                    mCommon.input.base.channelMask);
            RETURN_STATUS_IF_ERROR(param.writeToValue(&channel));
            return OK;
+2 −2
Original line number Diff line number Diff line
@@ -21,8 +21,8 @@
#include "DownmixContext.h"

using aidl::android::hardware::audio::effect::IEffect;
using ::aidl::android::media::audio::common::AudioChannelLayout;
using ::android::hardware::audio::common::getChannelCount;
using aidl::android::hardware::audio::common::getChannelCount;
using aidl::android::media::audio::common::AudioChannelLayout;

namespace aidl::android::hardware::audio::effect {

+2 −2
Original line number Diff line number Diff line
@@ -288,8 +288,8 @@ IEffect::Status DynamicsProcessingContext::lvmProcess(float* in, float* out, int
void DynamicsProcessingContext::init() {
    std::lock_guard lg(mMutex);
    mState = DYNAMICS_PROCESSING_STATE_INITIALIZED;
    mChannelCount =
            ::android::hardware::audio::common::getChannelCount(mCommon.input.base.channelMask);
    mChannelCount = ::aidl::android::hardware::audio::common::getChannelCount(
            mCommon.input.base.channelMask);
}

dp_fx::DPChannel* DynamicsProcessingContext::getChannel_l(int channel) {
Loading