/hardware/interfaces/audio/aidl/default/ |
D | EffectImpl.cpp | 50 RETURN_IF(common.input.base.format.pcm != common.output.base.format.pcm || in open() 57 RETURN_IF(!mImplContext, EX_NULL_POINTER, "nullContext"); in open() 59 RETURN_IF(!getInterfaceVersion(&mVersion).isOk(), EX_UNSUPPORTED_OPERATION, in open() 72 RETURN_IF(createThread(getEffectNameWithVersion()) != RetCode::SUCCESS, in open() 80 RETURN_IF(mState == State::INIT, EX_ILLEGAL_STATE, "alreadyClosed"); in reopen() 83 RETURN_IF(!mImplContext, EX_NULL_POINTER, "nullContext"); in reopen() 92 RETURN_IF(mState == State::PROCESSING, EX_ILLEGAL_STATE, "closeAtProcessing"); in close() 96 RETURN_IF(notifyEventFlag(mDataMqNotEmptyEf) != RetCode::SUCCESS, EX_ILLEGAL_STATE, in close() 99 RETURN_IF(destroyThread() != RetCode::SUCCESS, EX_UNSUPPORTED_OPERATION, in close() 159 RETURN_IF(!mImplContext, EX_NULL_POINTER, "nullContext"); in setParameterCommon() [all …]
|
D | EffectFactory.cpp | 59 RETURN_IF(!desc, EX_NULL_POINTER, "nullDescriptor"); in getDescriptorWithUuid_l() 65 RETURN_IF(!libInterface || !libInterface->queryEffectFunc, EX_NULL_POINTER, in getDescriptorWithUuid_l() 137 RETURN_IF(!libInterface || !libInterface->createEffectFunc, EX_NULL_POINTER, in createEffect() 167 RETURN_IF(!interface || !interface->destroyEffectFunc, EX_NULL_POINTER, in destroyEffectImpl_l()
|
/hardware/interfaces/audio/aidl/default/extension/ |
D | ExtensionEffect.cpp | 83 RETURN_IF(Parameter::Specific::vendorEffect != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 85 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 89 RETURN_IF(STATUS_OK != vendorEffect.extension.getParcelable(&defaultExt), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 91 RETURN_IF(!defaultExt.has_value(), EX_ILLEGAL_ARGUMENT, "parcelableNull"); in setParameterSpecific() 92 RETURN_IF(mContext->setParams(defaultExt->bytes) != RetCode::SUCCESS, EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 101 RETURN_IF(Parameter::Id::vendorEffectTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 104 RETURN_IF(STATUS_OK != extensionId.extension.getParcelable(&defaultIdExt), EX_ILLEGAL_ARGUMENT, in getParameterSpecific() 106 RETURN_IF(!defaultIdExt.has_value(), EX_ILLEGAL_ARGUMENT, "parcelableIdNull"); in getParameterSpecific() 111 RETURN_IF(STATUS_OK != extension.extension.setParcelable(defaultExt), EX_ILLEGAL_ARGUMENT, in getParameterSpecific()
|
/hardware/interfaces/audio/aidl/default/envReverb/ |
D | EnvReverbSw.cpp | 98 RETURN_IF(Parameter::Specific::environmentalReverb != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 102 RETURN_IF(!inRange(erParam, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 106 RETURN_IF(mContext->setErRoomLevel(erParam.get<EnvironmentalReverb::roomLevelMb>()) != in setParameterSpecific() 112 RETURN_IF( in setParameterSpecific() 119 RETURN_IF(mContext->setErDecayTime(erParam.get<EnvironmentalReverb::decayTimeMs>()) != in setParameterSpecific() 125 RETURN_IF( in setParameterSpecific() 132 RETURN_IF(mContext->setErReflectionsLevel( in setParameterSpecific() 139 RETURN_IF(mContext->setErReflectionsDelay( in setParameterSpecific() 146 RETURN_IF(mContext->setErLevel(erParam.get<EnvironmentalReverb::levelMb>()) != in setParameterSpecific() 152 RETURN_IF(mContext->setErDelay(erParam.get<EnvironmentalReverb::delayMs>()) != in setParameterSpecific() [all …]
|
/hardware/interfaces/audio/aidl/default/automaticGainControlV2/ |
D | AutomaticGainControlV2Sw.cpp | 90 RETURN_IF(Parameter::Specific::automaticGainControlV2 != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 92 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 95 RETURN_IF(!inRange(param, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 99 RETURN_IF(mContext->setDigitalGain( in setParameterSpecific() 106 RETURN_IF(mContext->setLevelEstimator( in setParameterSpecific() 113 RETURN_IF(mContext->setSaturationMargin( in setParameterSpecific() 130 RETURN_IF(Parameter::Id::automaticGainControlV2Tag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 146 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterAutomaticGainControlV2()
|
/hardware/interfaces/audio/aidl/default/automaticGainControlV1/ |
D | AutomaticGainControlV1Sw.cpp | 86 RETURN_IF(Parameter::Specific::automaticGainControlV1 != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 88 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 91 RETURN_IF(!inRange(param, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 95 RETURN_IF(mContext->setTargetPeakLevel( in setParameterSpecific() 102 RETURN_IF(mContext->setMaxCompressionGain( in setParameterSpecific() 109 RETURN_IF( in setParameterSpecific() 126 RETURN_IF(Parameter::Id::automaticGainControlV1Tag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 142 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterAutomaticGainControlV1()
|
/hardware/interfaces/audio/aidl/default/acousticEchoCanceler/ |
D | AcousticEchoCancelerSw.cpp | 92 RETURN_IF(Parameter::Specific::acousticEchoCanceler != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 94 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 97 RETURN_IF(!inRange(param, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 102 RETURN_IF(mContext->setEchoDelay(param.get<AcousticEchoCanceler::echoDelayUs>()) != in setParameterSpecific() 108 RETURN_IF(true == param.get<AcousticEchoCanceler::mobileMode>(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 123 RETURN_IF(Parameter::Id::acousticEchoCancelerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 139 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterAcousticEchoCanceler()
|
/hardware/interfaces/audio/aidl/default/visualizer/ |
D | VisualizerSw.cpp | 88 RETURN_IF(Parameter::Specific::visualizer != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 92 RETURN_IF(!inRange(vsParam, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 97 RETURN_IF(mContext->setVsCaptureSize(vsParam.get<Visualizer::captureSamples>()) != in setParameterSpecific() 103 RETURN_IF(mContext->setVsScalingMode(vsParam.get<Visualizer::scalingMode>()) != in setParameterSpecific() 109 RETURN_IF(mContext->setVsMeasurementMode(vsParam.get<Visualizer::measurementMode>()) != in setParameterSpecific() 115 RETURN_IF(mContext->setVsLatency(vsParam.get<Visualizer::latencyMs>()) != in setParameterSpecific() 131 RETURN_IF(Parameter::Id::visualizerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 145 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterVisualizer()
|
/hardware/interfaces/audio/aidl/default/bassboost/ |
D | BassBoostSw.cpp | 86 RETURN_IF(Parameter::Specific::bassBoost != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 88 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 91 RETURN_IF(!inRange(bbParam, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 97 RETURN_IF(mContext->setBbStrengthPm(strength) != RetCode::SUCCESS, EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 112 RETURN_IF(Parameter::Id::bassBoostTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 127 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterBassBoost()
|
/hardware/interfaces/audio/aidl/default/equalizer/ |
D | EqualizerSw.cpp | 107 RETURN_IF(Parameter::Specific::equalizer != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 109 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 112 RETURN_IF(!inRange(eqParam, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 116 RETURN_IF(mContext->setEqPreset(eqParam.get<Equalizer::preset>()) != RetCode::SUCCESS, in setParameterSpecific() 121 RETURN_IF(mContext->setEqBandLevels(eqParam.get<Equalizer::bandLevels>()) != in setParameterSpecific() 141 RETURN_IF(Parameter::Id::equalizerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 156 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterEqualizer()
|
/hardware/interfaces/audio/aidl/default/volume/ |
D | VolumeSw.cpp | 86 RETURN_IF(Parameter::Specific::volume != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 90 RETURN_IF(!inRange(volParam, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 95 RETURN_IF(mContext->setVolLevel(volParam.get<Volume::levelDb>()) != RetCode::SUCCESS, in setParameterSpecific() 100 RETURN_IF(mContext->setVolMute(volParam.get<Volume::mute>()) != RetCode::SUCCESS, in setParameterSpecific() 115 RETURN_IF(Parameter::Id::volumeTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 130 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterVolume()
|
/hardware/interfaces/audio/aidl/default/presetReverb/ |
D | PresetReverbSw.cpp | 94 RETURN_IF(Parameter::Specific::presetReverb != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 97 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 100 RETURN_IF(!inRange(prParam, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 105 RETURN_IF( in setParameterSpecific() 121 RETURN_IF(Parameter::Id::presetReverbTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 136 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterPresetReverb()
|
/hardware/interfaces/audio/aidl/default/hapticGenerator/ |
D | HapticGeneratorSw.cpp | 81 RETURN_IF(Parameter::Specific::hapticGenerator != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 83 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 90 RETURN_IF(mContext->setHgHapticScales(hgParam.get<HapticGenerator::hapticScales>()) != in setParameterSpecific() 96 RETURN_IF(mContext->setHgVibratorInformation( in setParameterSpecific() 112 RETURN_IF(Parameter::Id::hapticGeneratorTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 128 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterHapticGenerator()
|
/hardware/interfaces/audio/aidl/default/noiseSuppression/ |
D | NoiseSuppressionSw.cpp | 81 RETURN_IF(Parameter::Specific::noiseSuppression != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 83 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 90 RETURN_IF(mContext->setLevel(param.get<NoiseSuppression::level>()) != RetCode::SUCCESS, in setParameterSpecific() 95 RETURN_IF(mContext->setType(param.get<NoiseSuppression::type>()) != RetCode::SUCCESS, in setParameterSpecific() 110 RETURN_IF(Parameter::Id::noiseSuppressionTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 127 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterNoiseSuppression()
|
/hardware/interfaces/audio/aidl/default/loudnessEnhancer/ |
D | LoudnessEnhancerSw.cpp | 80 RETURN_IF(Parameter::Specific::loudnessEnhancer != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 82 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 89 RETURN_IF(mContext->setLeGainMb(leParam.get<LoudnessEnhancer::gainMb>()) != in setParameterSpecific() 105 RETURN_IF(Parameter::Id::loudnessEnhancerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 121 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterLoudnessEnhancer()
|
/hardware/interfaces/audio/aidl/default/downmix/ |
D | DownmixSw.cpp | 80 RETURN_IF(Parameter::Specific::downmix != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 82 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 89 RETURN_IF(mContext->setDmType(dmParam.get<Downmix::type>()) != RetCode::SUCCESS, in setParameterSpecific() 104 RETURN_IF(Parameter::Id::downmixTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 119 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterDownmix()
|
/hardware/interfaces/audio/aidl/default/dynamicProcessing/ |
D | DynamicsProcessingSw.cpp | 110 RETURN_IF(Parameter::Specific::dynamicsProcessing != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 113 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 120 RETURN_IF(mContext->setEngineArchitecture( in setParameterSpecific() 127 RETURN_IF(mContext->setPreEqChannelCfgs(dpParam.get<DynamicsProcessing::preEq>()) != in setParameterSpecific() 133 RETURN_IF(mContext->setPostEqChannelCfgs(dpParam.get<DynamicsProcessing::postEq>()) != in setParameterSpecific() 139 RETURN_IF(mContext->setMbcChannelCfgs(dpParam.get<DynamicsProcessing::mbc>()) != in setParameterSpecific() 145 RETURN_IF(mContext->setPreEqBandCfgs(dpParam.get<DynamicsProcessing::preEqBand>()) != in setParameterSpecific() 151 RETURN_IF(mContext->setPostEqBandCfgs(dpParam.get<DynamicsProcessing::postEqBand>()) != in setParameterSpecific() 157 RETURN_IF(mContext->setMbcBandCfgs(dpParam.get<DynamicsProcessing::mbcBand>()) != in setParameterSpecific() 163 RETURN_IF(mContext->setLimiterCfgs(dpParam.get<DynamicsProcessing::limiter>()) != in setParameterSpecific() [all …]
|
/hardware/interfaces/audio/aidl/default/virtualizer/ |
D | VirtualizerSw.cpp | 95 RETURN_IF(Parameter::Specific::virtualizer != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 99 RETURN_IF(!inRange(vrParam, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 104 RETURN_IF(mContext->setVrStrength(vrParam.get<Virtualizer::strengthPm>()) != in setParameterSpecific() 110 RETURN_IF(mContext->setForcedDevice(vrParam.get<Virtualizer::device>()) != in setParameterSpecific() 128 RETURN_IF(Parameter::Id::virtualizerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 146 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterVirtualizer()
|
/hardware/interfaces/audio/aidl/default/spatializer/ |
D | SpatializerSw.cpp | 102 RETURN_IF(Parameter::Specific::spatializer != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific() 104 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in setParameterSpecific() 107 RETURN_IF(!inRange(param, kRanges), EX_ILLEGAL_ARGUMENT, "outOfRange"); in setParameterSpecific() 114 RETURN_IF(!mContext, EX_NULL_POINTER, "nullContext"); in getParameterSpecific() 117 RETURN_IF(Parameter::Id::spatializerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific() 196 RETURN_IF(tag == Spatializer::supportedChannelLayout, EX_ILLEGAL_ARGUMENT, in setParam()
|
/hardware/interfaces/audio/aidl/default/include/effect-impl/ |
D | EffectTypes.h | 89 #define RETURN_IF(expr, exception, message) \ macro
|