Home
last modified time | relevance | path

Searched refs:Parameter (Results 1 – 25 of 144) sorted by relevance

123456

/frameworks/av/media/libaudiohal/tests/
DEffectHalVersionCompatibility_test.cpp41 using aidl::android::hardware::audio::effect::Parameter;
58 static const std::unordered_map<Parameter::Tag, int /* version */> kParamTagVersionMap = {
59 {Parameter::common, 1}, {Parameter::deviceDescription, 1},
60 {Parameter::mode, 1}, {Parameter::source, 1},
61 {Parameter::offload, 1}, {Parameter::volumeStereo, 1},
62 {Parameter::sourceMetadata, 2}, {Parameter::sinkMetadata, 2},
68 static const std::unordered_map<Parameter::Id::Tag, int /* version */> kParamIdEffectVersionMap = {
69 {Parameter::Id::vendorEffectTag, 1},
70 {Parameter::Id::acousticEchoCancelerTag, 1},
71 {Parameter::Id::automaticGainControlV1Tag, 1},
[all …]
DEffectProxy_test.cpp42 using ::aidl::android::hardware::audio::effect::Parameter;
75 Parameter::Common createParamCommon( in createParamCommon()
84 Parameter::Common common; in createParamCommon()
139 Parameter::Common common = createParamCommon(); in TEST_F()
154 Parameter::Common common = createParamCommon(); in TEST_F()
192 Parameter::Common common = createParamCommon(); in TEST_F()
194 Parameter::VolumeStereo volumeStereo({.left = .1f, .right = -0.8f}); in TEST_F()
195 Parameter expect = Parameter::make<Parameter::volumeStereo>(volumeStereo); in TEST_F()
196 const Parameter::Id id = Parameter::Id::make<Parameter::Id::commonTag>(Parameter::volumeStereo); in TEST_F()
199 Parameter getParam = Parameter::make<Parameter::offload>(true); in TEST_F()
[all …]
/frameworks/av/media/libeffects/lvm/wrapper/Aidl/
DEffectBundleAidl.h39 ndk::ScopedAStatus setParameterCommon(const Parameter& param) REQUIRES(mImplMutex) override;
40 ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific)
42 ndk::ScopedAStatus getParameterSpecific(const Parameter::Id& id, Parameter::Specific* specific)
45 std::shared_ptr<EffectContext> createContext(const Parameter::Common& common)
64 ndk::ScopedAStatus setParameterBassBoost(const Parameter::Specific& specific)
66 ndk::ScopedAStatus getParameterBassBoost(const BassBoost::Id& id, Parameter::Specific* specific)
69 ndk::ScopedAStatus setParameterEqualizer(const Parameter::Specific& specific)
71 ndk::ScopedAStatus getParameterEqualizer(const Equalizer::Id& id, Parameter::Specific* specific)
73 ndk::ScopedAStatus setParameterVolume(const Parameter::Specific& specific) REQUIRES(mImplMutex);
74 ndk::ScopedAStatus getParameterVolume(const Volume::Id& id, Parameter::Specific* specific)
[all …]
DEffectBundleAidl.cpp116 ndk::ScopedAStatus EffectBundleAidl::setParameterCommon(const Parameter& param) { in setParameterCommon()
121 case Parameter::common: in setParameterCommon()
122 RETURN_IF(mContext->setCommon(param.get<Parameter::common>()) != RetCode::SUCCESS, in setParameterCommon()
125 case Parameter::deviceDescription: in setParameterCommon()
126 RETURN_IF(mContext->setOutputDevice(param.get<Parameter::deviceDescription>()) != in setParameterCommon()
130 case Parameter::mode: in setParameterCommon()
131 RETURN_IF(mContext->setAudioMode(param.get<Parameter::mode>()) != RetCode::SUCCESS, in setParameterCommon()
134 case Parameter::source: in setParameterCommon()
135 RETURN_IF(mContext->setAudioSource(param.get<Parameter::source>()) != RetCode::SUCCESS, in setParameterCommon()
138 case Parameter::volumeStereo: in setParameterCommon()
[all …]
/frameworks/av/media/libeffects/preprocessing/aidl/
DEffectPreProcessing.h34 ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific)
36 ndk::ScopedAStatus getParameterSpecific(const Parameter::Id& id, Parameter::Specific* specific)
39 std::shared_ptr<EffectContext> createContext(const Parameter::Common& common)
56 ndk::ScopedAStatus setParameterAcousticEchoCanceler(const Parameter::Specific& specific)
59 Parameter::Specific* specific)
62 ndk::ScopedAStatus setParameterAutomaticGainControlV1(const Parameter::Specific& specific)
65 Parameter::Specific* specific)
68 ndk::ScopedAStatus setParameterAutomaticGainControlV2(const Parameter::Specific& specific)
71 Parameter::Specific* specific)
74 ndk::ScopedAStatus setParameterNoiseSuppression(const Parameter::Specific& specific)
[all …]
DEffectPreProcessing.cpp111 ndk::ScopedAStatus EffectPreProcessing::setParameterSpecific(const Parameter::Specific& specific) { in setParameterSpecific()
117 case Parameter::Specific::acousticEchoCanceler: in setParameterSpecific()
119 case Parameter::Specific::automaticGainControlV1: in setParameterSpecific()
121 case Parameter::Specific::automaticGainControlV2: in setParameterSpecific()
123 case Parameter::Specific::noiseSuppression: in setParameterSpecific()
133 const Parameter::Specific& specific) { in setParameterAcousticEchoCanceler()
134 auto& param = specific.get<Parameter::Specific::acousticEchoCanceler>(); in setParameterAcousticEchoCanceler()
160 const Parameter::Specific& specific) { in setParameterAutomaticGainControlV1()
161 auto& param = specific.get<Parameter::Specific::automaticGainControlV1>(); in setParameterAutomaticGainControlV1()
196 const Parameter::Specific& specific) { in setParameterAutomaticGainControlV2()
[all …]
/frameworks/av/media/audioaidlconversion/include/media/
DAidlConversionEffect.h51 aidl::android::hardware::audio::effect::Parameter::Specific::_tag, \
55 UNION_MAKE(aidl::android::hardware::audio::effect::Parameter, specific, \
56 UNION_MAKE(aidl::android::hardware::audio::effect::Parameter::Specific, _tag, \
60 UNION_MAKE(aidl::android::hardware::audio::effect::Parameter::Id, _tag, \
64 UNION_MAKE(aidl::android::hardware::audio::effect::Parameter::Id, _tag, \
71 aidl::android::hardware::audio::effect::Parameter::Id _id = \
73 aidl::android::hardware::audio::effect::Parameter _aidlParam; \
110 const ::aidl::android::hardware::audio::effect::Parameter& aidl);
111 ConversionResult<::aidl::android::hardware::audio::effect::Parameter>
115 const ::aidl::android::hardware::audio::effect::Parameter& aidl);
[all …]
/frameworks/av/media/libeffects/dynamicsproc/aidl/
DDynamicsProcessing.h36 ndk::ScopedAStatus open(const Parameter::Common& common,
37 const std::optional<Parameter::Specific>& specific,
41 ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific)
43 ndk::ScopedAStatus getParameterSpecific(const Parameter::Id& id, Parameter::Specific* specific)
47 std::shared_ptr<EffectContext> createContext(const Parameter::Common& common)
56 Parameter::Specific* specific)
58 bool isParamInRange(const Parameter::Specific& specific);
DDynamicsProcessing.cpp205 ndk::ScopedAStatus DynamicsProcessingImpl::open(const Parameter::Common& common, in open()
206 const std::optional<Parameter::Specific>& specific, in open()
226 Parameter::Specific defaultSpecific = in open()
227 Parameter::Specific::make<Parameter::Specific::dynamicsProcessing>( in open()
268 bool DynamicsProcessingImpl::isParamInRange(const Parameter::Specific& specific) { in isParamInRange()
269 auto& dp = specific.get<Parameter::Specific::dynamicsProcessing>(); in isParamInRange()
274 const Parameter::Specific& specific) { in setParameterSpecific()
275 RETURN_IF(Parameter::Specific::dynamicsProcessing != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific()
280 auto& param = specific.get<Parameter::Specific::dynamicsProcessing>(); in setParameterSpecific()
346 ndk::ScopedAStatus DynamicsProcessingImpl::getParameterSpecific(const Parameter::Id& id, in getParameterSpecific()
[all …]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/aidl/
DEffectReverb.h33 ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific)
35 ndk::ScopedAStatus getParameterSpecific(const Parameter::Id& id, Parameter::Specific* specific)
38 std::shared_ptr<EffectContext> createContext(const Parameter::Common& common)
57 ndk::ScopedAStatus setParameterPresetReverb(const Parameter::Specific& specific)
60 Parameter::Specific* specific)
63 ndk::ScopedAStatus setParameterEnvironmentalReverb(const Parameter::Specific& specific)
66 Parameter::Specific* specific)
DEffectReverb.cpp115 ndk::ScopedAStatus EffectReverb::setParameterSpecific(const Parameter::Specific& specific) { in setParameterSpecific()
121 case Parameter::Specific::presetReverb: in setParameterSpecific()
123 case Parameter::Specific::environmentalReverb: in setParameterSpecific()
132 ndk::ScopedAStatus EffectReverb::setParameterPresetReverb(const Parameter::Specific& specific) { in setParameterPresetReverb()
133 auto& prParam = specific.get<Parameter::Specific::presetReverb>(); in setParameterPresetReverb()
153 const Parameter::Specific& specific) { in setParameterEnvironmentalReverb()
154 auto& erParam = specific.get<Parameter::Specific::environmentalReverb>(); in setParameterEnvironmentalReverb()
237 ndk::ScopedAStatus EffectReverb::getParameterSpecific(const Parameter::Id& id, in getParameterSpecific()
238 Parameter::Specific* specific) { in getParameterSpecific()
243 case Parameter::Id::presetReverbTag: in getParameterSpecific()
[all …]
/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/
DAidlConversionAgc1.cpp38 using ::aidl::android::hardware::audio::effect::Parameter;
47 Parameter aidlParam = MAKE_SPECIFIC_PARAMETER(AutomaticGainControlV1, automaticGainControlV1, in setParameterLevel()
55 Parameter aidlParam = MAKE_SPECIFIC_PARAMETER(AutomaticGainControlV1, automaticGainControlV1, in setParameterGain()
63 Parameter aidlParam = MAKE_SPECIFIC_PARAMETER(AutomaticGainControlV1, automaticGainControlV1, in setParameterLimiterEnable()
94 Parameter aidlParam = MAKE_SPECIFIC_PARAMETER(AutomaticGainControlV1, in setParameter()
102 Parameter::Id id = MAKE_SPECIFIC_PARAMETER_ID(AutomaticGainControlV1, automaticGainControlV1Tag, in getParameterLevel()
104 Parameter aidlParam; in getParameterLevel()
113 Parameter::Id id = MAKE_SPECIFIC_PARAMETER_ID(AutomaticGainControlV1, automaticGainControlV1Tag, in getParameterGain()
115 Parameter aidlParam; in getParameterGain()
124 Parameter::Id id = MAKE_SPECIFIC_PARAMETER_ID(AutomaticGainControlV1, automaticGainControlV1Tag, in getParameterLimiterEnable()
[all …]
DAidlConversionVendorExtension.cpp39 using ::aidl::android::hardware::audio::effect::Parameter;
54 Parameter aidlParam = VALUE_OR_RETURN_STATUS( in setParameter()
62 Parameter::Id id = UNION_MAKE(Parameter::Id, vendorEffectTag, extId); in getParameter()
63 Parameter aidlParam; in getParameter()
DAidlConversionVisualizer.cpp38 using ::aidl::android::hardware::audio::effect::Parameter;
52 Parameter aidlParam; in setParameter()
94 Parameter aidlParam; in getParameter()
97 Parameter::Id id = MAKE_SPECIFIC_PARAMETER_ID(Visualizer, visualizerTag, in getParameter()
106 Parameter::Id id = MAKE_SPECIFIC_PARAMETER_ID(Visualizer, visualizerTag, in getParameter()
117 Parameter::Id id = MAKE_SPECIFIC_PARAMETER_ID(Visualizer, visualizerTag, in getParameter()
125 Parameter::Id id = MAKE_SPECIFIC_PARAMETER_ID(Visualizer, visualizerTag, in getParameter()
147 Parameter aidlParam; in visualizerCapture()
148 Parameter::Id id = MAKE_SPECIFIC_PARAMETER_ID(Visualizer, visualizerTag, in visualizerCapture()
165 Parameter aidlParam; in visualizerMeasure()
[all …]
/frameworks/av/media/libaudiohal/impl/
DEffectConversionHelperAidl.cpp46 using ::aidl::android::hardware::audio::effect::Parameter;
174 Parameter::Common common = { in handleSetConfig()
197 Parameter aidlParam = UNION_MAKE(Parameter, common, common); in handleSetConfig()
235 Parameter param; in handleGetConfig()
237 Parameter::Id::make<Parameter::Id::commonTag>(Parameter::common), &param))); in handleGetConfig()
238 if (param.getTag() != Parameter::common) { in handleGetConfig()
244 const auto& common = param.get<Parameter::common>(); in handleGetConfig()
305 mEffect->setParameter(Parameter::make<Parameter::source>(aidlSource)))); in handleSetAudioSource()
324 mEffect->setParameter(Parameter::make<Parameter::mode>(aidlMode)))); in handleSetAudioMode()
356 mEffect->setParameter(Parameter::make<Parameter::deviceDescription>(aidlDevices)))); in handleSetDevice()
[all …]
/frameworks/av/media/libaudioclient/aidl/fuzzer/libaudiomockhal/include/effect-mock/
DEffectMock.h25 ndk::ScopedAStatus open(const Parameter::Common&, const std::optional<Parameter::Specific>&, in open()
36 ndk::ScopedAStatus setParameter(const Parameter&) override { return ndk::ScopedAStatus::ok(); } in setParameter() argument
37 ndk::ScopedAStatus getParameter(const Parameter::Id&, Parameter*) override { in getParameter() argument
/frameworks/av/media/libeffects/hapticgenerator/aidl/
DEffectHapticGenerator.cpp93 ndk::ScopedAStatus HapticGeneratorImpl::setParameterSpecific(const Parameter::Specific& specific) { in setParameterSpecific()
94 RETURN_IF(Parameter::Specific::hapticGenerator != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific()
98 auto& hgParam = specific.get<Parameter::Specific::hapticGenerator>(); in setParameterSpecific()
122 ndk::ScopedAStatus HapticGeneratorImpl::getParameterSpecific(const Parameter::Id& id, in getParameterSpecific()
123 Parameter::Specific* specific) { in getParameterSpecific()
126 RETURN_IF(Parameter::Id::hapticGeneratorTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific()
127 auto hgId = id.get<Parameter::Id::hapticGeneratorTag>(); in getParameterSpecific()
141 Parameter::Specific* specific) { in getParameterHapticGenerator()
161 specific->set<Parameter::Specific::hapticGenerator>(hgParam); in getParameterHapticGenerator()
165 std::shared_ptr<EffectContext> HapticGeneratorImpl::createContext(const Parameter::Common& common) { in createContext()
DEffectHapticGenerator.h35 ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific)
37 ndk::ScopedAStatus getParameterSpecific(const Parameter::Id& id, Parameter::Specific* specific)
41 std::shared_ptr<EffectContext> createContext(const Parameter::Common& common)
50 Parameter::Specific* specific);
/frameworks/av/media/libeffects/loudness/aidl/
DEffectLoudnessEnhancer.cpp94 ndk::ScopedAStatus LoudnessEnhancerImpl::setParameterSpecific(const Parameter::Specific& specific) { in setParameterSpecific()
95 RETURN_IF(Parameter::Specific::loudnessEnhancer != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific()
99 auto& leParam = specific.get<Parameter::Specific::loudnessEnhancer>(); in setParameterSpecific()
117 ndk::ScopedAStatus LoudnessEnhancerImpl::getParameterSpecific(const Parameter::Id& id, in getParameterSpecific()
118 Parameter::Specific* specific) { in getParameterSpecific()
121 RETURN_IF(Parameter::Id::loudnessEnhancerTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific()
122 auto leId = id.get<Parameter::Id::loudnessEnhancerTag>(); in getParameterSpecific()
136 const LoudnessEnhancer::Tag& tag, Parameter::Specific* specific) { in getParameterLoudnessEnhancer()
152 specific->set<Parameter::Specific::loudnessEnhancer>(leParam); in getParameterLoudnessEnhancer()
157 const Parameter::Common& common) { in createContext()
DEffectLoudnessEnhancer.h35 ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific)
37 ndk::ScopedAStatus getParameterSpecific(const Parameter::Id& id, Parameter::Specific* specific)
41 std::shared_ptr<EffectContext> createContext(const Parameter::Common& common)
50 Parameter::Specific* specific)
/frameworks/av/media/audioaidlconversion/
DAidlConversionEffect.cpp44 using ::aidl::android::hardware::audio::effect::Parameter;
248 ConversionResult<uint32_t> aidl2legacy_Parameter_aec_uint32_echoDelay(const Parameter& aidl) { in aidl2legacy_Parameter_aec_uint32_echoDelay()
255 ConversionResult<Parameter> legacy2aidl_uint32_echoDelay_Parameter_aec(uint32_t legacy) { in legacy2aidl_uint32_echoDelay_Parameter_aec()
260 ConversionResult<uint32_t> aidl2legacy_Parameter_aec_uint32_mobileMode(const Parameter& aidl) { in aidl2legacy_Parameter_aec_uint32_mobileMode()
267 ConversionResult<Parameter> legacy2aidl_uint32_mobileMode_Parameter_aec(uint32_t legacy) { in legacy2aidl_uint32_mobileMode_Parameter_aec()
273 const Parameter& aidl) { in aidl2legacy_Parameter_agc_uint32_fixedDigitalGain()
280 ConversionResult<Parameter> legacy2aidl_uint32_fixedDigitalGain_Parameter_agc(uint32_t legacy) { in legacy2aidl_uint32_fixedDigitalGain_Parameter_agc()
287 const Parameter& aidl) { in aidl2legacy_Parameter_agc_uint32_levelEstimator()
294 ConversionResult<Parameter> legacy2aidl_uint32_levelEstimator_Parameter_agc(uint32_t legacy) { in legacy2aidl_uint32_levelEstimator_Parameter_agc()
305 const Parameter& aidl) { in aidl2legacy_Parameter_agc_uint32_saturationMargin()
[all …]
/frameworks/av/media/libeffects/downmix/aidl/
DEffectDownmix.h36 ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific)
38 ndk::ScopedAStatus getParameterSpecific(const Parameter::Id& id, Parameter::Specific* specific)
42 std::shared_ptr<EffectContext> createContext(const Parameter::Common& common)
53 ndk::ScopedAStatus getParameterDownmix(const Downmix::Tag& tag, Parameter::Specific* specific)
DEffectDownmix.cpp94 ndk::ScopedAStatus DownmixImpl::setParameterSpecific(const Parameter::Specific& specific) { in setParameterSpecific()
95 RETURN_IF(Parameter::Specific::downmix != specific.getTag(), EX_ILLEGAL_ARGUMENT, in setParameterSpecific()
99 auto& dmParam = specific.get<Parameter::Specific::downmix>(); in setParameterSpecific()
116 ndk::ScopedAStatus DownmixImpl::getParameterSpecific(const Parameter::Id& id, in getParameterSpecific()
117 Parameter::Specific* specific) { in getParameterSpecific()
120 RETURN_IF(Parameter::Id::downmixTag != tag, EX_ILLEGAL_ARGUMENT, "wrongIdTag"); in getParameterSpecific()
121 auto dmId = id.get<Parameter::Id::downmixTag>(); in getParameterSpecific()
134 Parameter::Specific* specific) { in getParameterDownmix()
150 specific->set<Parameter::Specific::downmix>(dmParam); in getParameterDownmix()
154 std::shared_ptr<EffectContext> DownmixImpl::createContext(const Parameter::Common& common) { in createContext()
/frameworks/av/media/libeffects/visualizer/aidl/
DVisualizer.h37 ndk::ScopedAStatus setParameterSpecific(const Parameter::Specific& specific)
39 ndk::ScopedAStatus getParameterSpecific(const Parameter::Id& id, Parameter::Specific* specific)
43 std::shared_ptr<EffectContext> createContext(const Parameter::Common& common)
53 Parameter::Specific* specific) REQUIRES(mImplMutex);
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DICalendar.java237 private LinkedHashMap<String, ArrayList<Parameter>> mParamsMap =
238 new LinkedHashMap<String, ArrayList<Parameter>>();
287 public void addParameter(Parameter param) { in addParameter()
288 ArrayList<Parameter> params = mParamsMap.get(param.name); in addParameter()
290 params = new ArrayList<Parameter>(); in addParameter()
310 public List<Parameter> getParameters(String name) { in getParameters()
320 public Parameter getFirstParameter(String name) { in getFirstParameter()
321 ArrayList<Parameter> params = mParamsMap.get(name); in getFirstParameter()
343 for (Parameter param : getParameters(parameterName)) { in toString()
357 public static class Parameter { class in ICalendar
[all …]

123456