Loading media/libeffects/downmix/aidl/DownmixContext.cpp +0 −5 Original line number Original line Diff line number Diff line Loading @@ -100,11 +100,6 @@ RetCode DownmixContext::disable() { return RetCode::SUCCESS; return RetCode::SUCCESS; } } void DownmixContext::reset() { disable(); resetBuffer(); } IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int samples) { IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int samples) { IEffect::Status status = {EX_ILLEGAL_ARGUMENT, 0, 0}; IEffect::Status status = {EX_ILLEGAL_ARGUMENT, 0, 0}; Loading media/libeffects/downmix/aidl/DownmixContext.h +2 −3 Original line number Original line Diff line number Diff line Loading @@ -32,9 +32,8 @@ class DownmixContext final : public EffectContext { public: public: DownmixContext(int statusDepth, const Parameter::Common& common); DownmixContext(int statusDepth, const Parameter::Common& common); ~DownmixContext(); ~DownmixContext(); RetCode enable(); RetCode enable() override; RetCode disable(); RetCode disable() override; void reset(); RetCode setDmType(Downmix::Type type) { RetCode setDmType(Downmix::Type type) { mType = type; mType = type; Loading media/libeffects/downmix/aidl/EffectDownmix.cpp +0 −20 Original line number Original line Diff line number Diff line Loading @@ -71,26 +71,6 @@ ndk::ScopedAStatus DownmixImpl::getDescriptor(Descriptor* _aidl_return) { return ndk::ScopedAStatus::ok(); return ndk::ScopedAStatus::ok(); } } ndk::ScopedAStatus DownmixImpl::commandImpl(CommandId command) { RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); switch (command) { case CommandId::START: mContext->enable(); break; case CommandId::STOP: mContext->disable(); break; case CommandId::RESET: mContext->reset(); break; default: LOG(ERROR) << __func__ << " commandId " << toString(command) << " not supported"; return ndk::ScopedAStatus::fromExceptionCodeWithMessage(EX_ILLEGAL_ARGUMENT, "commandIdNotSupported"); } return ndk::ScopedAStatus::ok(); } ndk::ScopedAStatus DownmixImpl::setParameterSpecific(const Parameter::Specific& specific) { ndk::ScopedAStatus DownmixImpl::setParameterSpecific(const Parameter::Specific& specific) { RETURN_IF(Parameter::Specific::downmix != specific.getTag(), EX_ILLEGAL_ARGUMENT, RETURN_IF(Parameter::Specific::downmix != specific.getTag(), EX_ILLEGAL_ARGUMENT, "EffectNotSupported"); "EffectNotSupported"); Loading media/libeffects/downmix/aidl/EffectDownmix.h +0 −1 Original line number Original line Diff line number Diff line Loading @@ -31,7 +31,6 @@ class DownmixImpl final : public EffectImpl { DownmixImpl() = default; DownmixImpl() = default; ~DownmixImpl() { cleanUp(); } ~DownmixImpl() { cleanUp(); } ndk::ScopedAStatus commandImpl(CommandId command) REQUIRES(mImplMutex) override; ndk::ScopedAStatus getDescriptor(Descriptor* _aidl_return) override; ndk::ScopedAStatus getDescriptor(Descriptor* _aidl_return) override; ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific) ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific) REQUIRES(mImplMutex) override; REQUIRES(mImplMutex) override; Loading media/libeffects/dynamicsproc/aidl/DynamicsProcessing.cpp +0 −21 Original line number Original line Diff line number Diff line Loading @@ -244,27 +244,6 @@ ndk::ScopedAStatus DynamicsProcessingImpl::getDescriptor(Descriptor* _aidl_retur return ndk::ScopedAStatus::ok(); return ndk::ScopedAStatus::ok(); } } ndk::ScopedAStatus DynamicsProcessingImpl::commandImpl(CommandId command) { RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); switch (command) { case CommandId::START: mContext->enable(); return ndk::ScopedAStatus::ok(); case CommandId::STOP: mContext->disable(); return ndk::ScopedAStatus::ok(); case CommandId::RESET: mContext->disable(); mContext->resetBuffer(); return ndk::ScopedAStatus::ok(); default: // Need this default handling for vendor extendable CommandId::VENDOR_COMMAND_* LOG(ERROR) << __func__ << " commandId " << toString(command) << " not supported"; return ndk::ScopedAStatus::fromExceptionCodeWithMessage(EX_ILLEGAL_ARGUMENT, "commandIdNotSupported"); } } bool DynamicsProcessingImpl::isParamInRange(const Parameter::Specific& specific) { bool DynamicsProcessingImpl::isParamInRange(const Parameter::Specific& specific) { auto& dp = specific.get<Parameter::Specific::dynamicsProcessing>(); auto& dp = specific.get<Parameter::Specific::dynamicsProcessing>(); return DynamicsProcessingRanges::isParamInRange(dp, kRanges); return DynamicsProcessingRanges::isParamInRange(dp, kRanges); Loading Loading
media/libeffects/downmix/aidl/DownmixContext.cpp +0 −5 Original line number Original line Diff line number Diff line Loading @@ -100,11 +100,6 @@ RetCode DownmixContext::disable() { return RetCode::SUCCESS; return RetCode::SUCCESS; } } void DownmixContext::reset() { disable(); resetBuffer(); } IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int samples) { IEffect::Status DownmixContext::downmixProcess(float* in, float* out, int samples) { IEffect::Status status = {EX_ILLEGAL_ARGUMENT, 0, 0}; IEffect::Status status = {EX_ILLEGAL_ARGUMENT, 0, 0}; Loading
media/libeffects/downmix/aidl/DownmixContext.h +2 −3 Original line number Original line Diff line number Diff line Loading @@ -32,9 +32,8 @@ class DownmixContext final : public EffectContext { public: public: DownmixContext(int statusDepth, const Parameter::Common& common); DownmixContext(int statusDepth, const Parameter::Common& common); ~DownmixContext(); ~DownmixContext(); RetCode enable(); RetCode enable() override; RetCode disable(); RetCode disable() override; void reset(); RetCode setDmType(Downmix::Type type) { RetCode setDmType(Downmix::Type type) { mType = type; mType = type; Loading
media/libeffects/downmix/aidl/EffectDownmix.cpp +0 −20 Original line number Original line Diff line number Diff line Loading @@ -71,26 +71,6 @@ ndk::ScopedAStatus DownmixImpl::getDescriptor(Descriptor* _aidl_return) { return ndk::ScopedAStatus::ok(); return ndk::ScopedAStatus::ok(); } } ndk::ScopedAStatus DownmixImpl::commandImpl(CommandId command) { RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); switch (command) { case CommandId::START: mContext->enable(); break; case CommandId::STOP: mContext->disable(); break; case CommandId::RESET: mContext->reset(); break; default: LOG(ERROR) << __func__ << " commandId " << toString(command) << " not supported"; return ndk::ScopedAStatus::fromExceptionCodeWithMessage(EX_ILLEGAL_ARGUMENT, "commandIdNotSupported"); } return ndk::ScopedAStatus::ok(); } ndk::ScopedAStatus DownmixImpl::setParameterSpecific(const Parameter::Specific& specific) { ndk::ScopedAStatus DownmixImpl::setParameterSpecific(const Parameter::Specific& specific) { RETURN_IF(Parameter::Specific::downmix != specific.getTag(), EX_ILLEGAL_ARGUMENT, RETURN_IF(Parameter::Specific::downmix != specific.getTag(), EX_ILLEGAL_ARGUMENT, "EffectNotSupported"); "EffectNotSupported"); Loading
media/libeffects/downmix/aidl/EffectDownmix.h +0 −1 Original line number Original line Diff line number Diff line Loading @@ -31,7 +31,6 @@ class DownmixImpl final : public EffectImpl { DownmixImpl() = default; DownmixImpl() = default; ~DownmixImpl() { cleanUp(); } ~DownmixImpl() { cleanUp(); } ndk::ScopedAStatus commandImpl(CommandId command) REQUIRES(mImplMutex) override; ndk::ScopedAStatus getDescriptor(Descriptor* _aidl_return) override; ndk::ScopedAStatus getDescriptor(Descriptor* _aidl_return) override; ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific) ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific) REQUIRES(mImplMutex) override; REQUIRES(mImplMutex) override; Loading
media/libeffects/dynamicsproc/aidl/DynamicsProcessing.cpp +0 −21 Original line number Original line Diff line number Diff line Loading @@ -244,27 +244,6 @@ ndk::ScopedAStatus DynamicsProcessingImpl::getDescriptor(Descriptor* _aidl_retur return ndk::ScopedAStatus::ok(); return ndk::ScopedAStatus::ok(); } } ndk::ScopedAStatus DynamicsProcessingImpl::commandImpl(CommandId command) { RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); switch (command) { case CommandId::START: mContext->enable(); return ndk::ScopedAStatus::ok(); case CommandId::STOP: mContext->disable(); return ndk::ScopedAStatus::ok(); case CommandId::RESET: mContext->disable(); mContext->resetBuffer(); return ndk::ScopedAStatus::ok(); default: // Need this default handling for vendor extendable CommandId::VENDOR_COMMAND_* LOG(ERROR) << __func__ << " commandId " << toString(command) << " not supported"; return ndk::ScopedAStatus::fromExceptionCodeWithMessage(EX_ILLEGAL_ARGUMENT, "commandIdNotSupported"); } } bool DynamicsProcessingImpl::isParamInRange(const Parameter::Specific& specific) { bool DynamicsProcessingImpl::isParamInRange(const Parameter::Specific& specific) { auto& dp = specific.get<Parameter::Specific::dynamicsProcessing>(); auto& dp = specific.get<Parameter::Specific::dynamicsProcessing>(); return DynamicsProcessingRanges::isParamInRange(dp, kRanges); return DynamicsProcessingRanges::isParamInRange(dp, kRanges); Loading