Home
last modified time | relevance | path

Searched refs:mEffect (Results 1 – 25 of 45) sorted by relevance

12

/hardware/interfaces/audio/aidl/vts/
DVtsHalAudioEffectTargetTest.cpp67 if (mEffect) { in TearDown()
68 ASSERT_NO_FATAL_FAILURE(commandIgnoreRet(mEffect, CommandId::STOP)); in TearDown()
69 ASSERT_NO_FATAL_FAILURE(closeIgnoreRet(mEffect)); in TearDown()
70 ASSERT_NO_FATAL_FAILURE(destroyIgnoreRet(mFactory, mEffect)); in TearDown()
71 mEffect.reset(); in TearDown()
77 std::shared_ptr<IEffect> mEffect; member in AudioEffectTest
83 EXPECT_IS_OK(mEffect->setParameter(set)); in setAndGetParameter()
84 EXPECT_IS_OK(mEffect->getParameter(id, &get)); in setAndGetParameter()
102 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in TEST_P()
103 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TEST_P()
[all …]
DVtsHalAECTargetTest.cpp52 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUp()
59 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, specific, &ret, EX_NONE)); in SetUp()
60 ASSERT_NE(nullptr, mEffect); in SetUp()
64 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDown()
65 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDown()
82 std::shared_ptr<IEffect> mEffect; member in AECParamTest
95 ASSERT_STATUS(EX_NONE, mEffect->getDescriptor(&desc)); in SetAndGetParameters()
105 EXPECT_STATUS(expected, mEffect->setParameter(expectParam)) << expectParam.toString(); in SetAndGetParameters()
114 EXPECT_STATUS(EX_NONE, mEffect->getParameter(id, &getParam)); in SetAndGetParameters()
DVtsHalAGC1TargetTest.cpp53 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUp()
60 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, specific, &ret, EX_NONE)); in SetUp()
61 ASSERT_NE(nullptr, mEffect); in SetUp()
65 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDown()
66 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDown()
79 std::shared_ptr<IEffect> mEffect; member in AGC1ParamTest
92 ASSERT_STATUS(EX_NONE, mEffect->getDescriptor(&desc)); in SetAndGetParameters()
103 EXPECT_STATUS(expected, mEffect->setParameter(expectParam)) << expectParam.toString(); in SetAndGetParameters()
112 EXPECT_STATUS(EX_NONE, mEffect->getParameter(id, &getParam)); in SetAndGetParameters()
DVtsHalNSTargetTest.cpp49 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUp()
56 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, specific, &ret, EX_NONE)); in SetUp()
57 ASSERT_NE(nullptr, mEffect); in SetUp()
61 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDown()
62 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDown()
79 std::shared_ptr<IEffect> mEffect; member in NSParamTest
91 ASSERT_STATUS(EX_NONE, mEffect->getDescriptor(&desc)); in SetAndGetParameters()
101 EXPECT_STATUS(expected, mEffect->setParameter(expectParam)) << expectParam.toString(); in SetAndGetParameters()
110 EXPECT_STATUS(EX_NONE, mEffect->getParameter(id, &getParam)); in SetAndGetParameters()
DVtsHalAGC2TargetTest.cpp54 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUp()
61 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, specific, &ret, EX_NONE)); in SetUp()
62 ASSERT_NE(nullptr, mEffect); in SetUp()
66 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDown()
67 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDown()
80 std::shared_ptr<IEffect> mEffect; member in AGC2ParamTest
93 ASSERT_STATUS(EX_NONE, mEffect->getDescriptor(&desc)); in SetAndGetParameters()
104 EXPECT_STATUS(expected, mEffect->setParameter(expectParam)) << expectParam.toString(); in SetAndGetParameters()
113 EXPECT_STATUS(EX_NONE, mEffect->getParameter(id, &getParam)); in SetAndGetParameters()
DVtsHalEqualizerTargetTest.cpp72 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUp()
78 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, std::nullopt, &ret, EX_NONE)); in SetUp()
79 ASSERT_NE(nullptr, mEffect); in SetUp()
82 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDown()
83 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDown()
88 std::shared_ptr<IEffect> mEffect; member in EqualizerTest
94 ASSERT_NE(nullptr, mEffect); in SetAndGetEqualizerParameters()
107 EXPECT_STATUS(expected, mEffect->setParameter(expectParam)) in SetAndGetEqualizerParameters()
117 EXPECT_STATUS(expected, mEffect->getParameter(id, &getParam)); in SetAndGetEqualizerParameters()
DVtsHalVisualizerTargetTest.cpp63 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUp()
69 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, std::nullopt, &ret, EX_NONE)); in SetUp()
70 ASSERT_NE(nullptr, mEffect); in SetUp()
74 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDown()
75 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDown()
80 std::shared_ptr<IEffect> mEffect; member in VisualizerParamTest
94 ASSERT_STATUS(EX_NONE, mEffect->getDescriptor(&desc)); in SetAndGetParameters()
103 EXPECT_STATUS(expected, mEffect->setParameter(expectParam)) << expectParam.toString(); in SetAndGetParameters()
112 EXPECT_STATUS(EX_NONE, mEffect->getParameter(id, &getParam)) in SetAndGetParameters()
DVtsHalSpatializerTargetTest.cpp79 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUp()
86 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, specific, &ret, EX_NONE)); in SetUp()
87 ASSERT_NE(nullptr, mEffect); in SetUp()
91 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDown()
92 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDown()
104 std::shared_ptr<IEffect> mEffect; member in SpatializerParamTest
116 ASSERT_STATUS(EX_NONE, mEffect->getDescriptor(&desc)); in TEST_P()
125 EXPECT_STATUS(expected, mEffect->setParameter(expectParam)) << expectParam.toString(); in TEST_P()
135 EXPECT_STATUS(expected, mEffect->getParameter(id, &getParam)); in TEST_P()
DVtsHalVolumeTargetTest.cpp37 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUpVolumeControl()
44 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, specific, &mOpenEffectReturn, EX_NONE)); in SetUpVolumeControl()
45 ASSERT_NE(nullptr, mEffect); in SetUpVolumeControl()
49 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDownVolumeControl()
50 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDownVolumeControl()
81 EXPECT_STATUS(expected, mEffect->setParameter(expectedParam)) << expectedParam.toString(); in setAndVerifyParameters()
90 EXPECT_STATUS(expected, mEffect->getParameter(id, &getParam)); in setAndVerifyParameters()
103 std::shared_ptr<IEffect> mEffect; member in VolumeControlHelper
205 ASSERT_NO_FATAL_FAILURE(processAndWriteToOutput(mInput, output, mEffect, &mOpenEffectReturn)); in TEST_P()
217 ASSERT_NO_FATAL_FAILURE(processAndWriteToOutput(mInput, output, mEffect, &mOpenEffectReturn)); in TEST_P()
[all …]
DVtsHalLoudnessEnhancerTargetTest.cpp48 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUpLoudnessEnhancer()
54 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, specific, &mOpenEffectReturn, EX_NONE)); in SetUpLoudnessEnhancer()
55 ASSERT_NE(nullptr, mEffect); in SetUpLoudnessEnhancer()
60 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDownLoudnessEnhancer()
61 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDownLoudnessEnhancer()
95 EXPECT_STATUS(expected, mEffect->setParameter(param)) << param.toString(); in setParameters()
107 EXPECT_STATUS(EX_NONE, mEffect->getParameter(id, &getParam)); in validateParameters()
116 std::shared_ptr<IEffect> mEffect; member in LoudnessEnhancerEffectHelper
191 ASSERT_NO_FATAL_FAILURE(command(mEffect, CommandId::START)); in processAndWriteToOutput()
192 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::PROCESSING)); in processAndWriteToOutput()
[all …]
DVtsHalHapticGeneratorTargetTest.cpp89 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUp()
95 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, std::nullopt, &ret, EX_NONE)); in SetUp()
96 ASSERT_NE(nullptr, mEffect); in SetUp()
100 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDown()
101 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDown()
106 std::shared_ptr<IEffect> mEffect; member in HapticGeneratorParamTest
124 EXPECT_STATUS(EX_NONE, mEffect->setParameter(expectParam)) << expectParam.toString(); in SetAndGetHapticGeneratorParameters()
132 EXPECT_STATUS(EX_NONE, mEffect->getParameter(id, &getParam)); in SetAndGetHapticGeneratorParameters()
249 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUp()
255 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, std::nullopt, &ret, EX_NONE)); in SetUp()
[all …]
DVtsHalPresetReverbTargetTest.cpp40 ASSERT_NO_FATAL_FAILURE(create(mFactory, mEffect, mDescriptor)); in SetUpPresetReverb()
46 ASSERT_NO_FATAL_FAILURE(open(mEffect, common, specific, &mOpenEffectReturn, EX_NONE)); in SetUpPresetReverb()
47 ASSERT_NE(nullptr, mEffect); in SetUpPresetReverb()
51 ASSERT_NO_FATAL_FAILURE(close(mEffect)); in TearDownPresetReverb()
52 ASSERT_NO_FATAL_FAILURE(destroy(mFactory, mEffect)); in TearDownPresetReverb()
71 EXPECT_STATUS(EX_NONE, mEffect->setParameter(expectedParam)) << expectedParam.toString(); in setAndVerifyPreset()
79 EXPECT_STATUS(EX_NONE, mEffect->getParameter(id, &getParam)); in setAndVerifyPreset()
93 std::shared_ptr<IEffect> mEffect; member in PresetReverbHelper
174 processAndWriteToOutput(mInput, output, mEffect, &mOpenEffectReturn)); in setPresetAndProcess()
/hardware/interfaces/audio/effect/all-versions/default/
DAcousticEchoCancelerEffect.cpp34 : mEffect(new Effect(true /*isInput*/, handle)) {} in AcousticEchoCancelerEffect()
38 return mEffect->init(); in init()
44 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
48 return mEffect->reset(); in reset()
52 return mEffect->enable(); in enable()
56 return mEffect->disable(); in disable()
61 return mEffect->setAudioSource(source); in setAudioSource()
65 return mEffect->setDevice(device); in setDevice()
69 return mEffect->setInputDevice(device); in setInputDevice()
73 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DEnvironmentalReverbEffect.cpp34 : mEffect(new Effect(false /*isInput*/, handle)) {} in EnvironmentalReverbEffect()
66 return mEffect->init(); in init()
72 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
76 return mEffect->reset(); in reset()
80 return mEffect->enable(); in enable()
84 return mEffect->disable(); in disable()
89 return mEffect->setAudioSource(source); in setAudioSource()
93 return mEffect->setDevice(device); in setDevice()
97 return mEffect->setInputDevice(device); in setInputDevice()
101 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DBassBoostEffect.cpp34 : mEffect(new Effect(false /*isInput*/, handle)) {} in BassBoostEffect()
38 return mEffect->init(); in init()
44 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
48 return mEffect->reset(); in reset()
52 return mEffect->enable(); in enable()
56 return mEffect->disable(); in disable()
61 return mEffect->setAudioSource(source); in setAudioSource()
65 return mEffect->setDevice(device); in setDevice()
69 return mEffect->setInputDevice(device); in setInputDevice()
73 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DPresetReverbEffect.cpp34 : mEffect(new Effect(false /*isInput*/, handle)) {} in PresetReverbEffect()
38 return mEffect->init(); in init()
44 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
48 return mEffect->reset(); in reset()
52 return mEffect->enable(); in enable()
56 return mEffect->disable(); in disable()
61 return mEffect->setAudioSource(source); in setAudioSource()
65 return mEffect->setDevice(device); in setDevice()
69 return mEffect->setInputDevice(device); in setInputDevice()
73 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DLoudnessEnhancerEffect.cpp36 : mEffect(new Effect(false /*isInput*/, handle)) {} in LoudnessEnhancerEffect()
40 return mEffect->init(); in init()
46 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
50 return mEffect->reset(); in reset()
54 return mEffect->enable(); in enable()
58 return mEffect->disable(); in disable()
63 return mEffect->setAudioSource(source); in setAudioSource()
67 return mEffect->setDevice(device); in setDevice()
71 return mEffect->setInputDevice(device); in setInputDevice()
75 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DDownmixEffect.cpp34 : mEffect(new Effect(false /*isInput*/, handle)) {} in DownmixEffect()
38 return mEffect->init(); in init()
44 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
48 return mEffect->reset(); in reset()
52 return mEffect->enable(); in enable()
56 return mEffect->disable(); in disable()
61 return mEffect->setAudioSource(source); in setAudioSource()
65 return mEffect->setDevice(device); in setDevice()
69 return mEffect->setInputDevice(device); in setInputDevice()
73 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DAutomaticGainControlEffect.cpp33 : mEffect(new Effect(true /*isInput*/, handle)) {} in AutomaticGainControlEffect()
51 return mEffect->init(); in init()
57 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
61 return mEffect->reset(); in reset()
65 return mEffect->enable(); in enable()
69 return mEffect->disable(); in disable()
74 return mEffect->setAudioSource(source); in setAudioSource()
78 return mEffect->setDevice(device); in setDevice()
82 return mEffect->setInputDevice(device); in setInputDevice()
86 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DNoiseSuppressionEffect.cpp33 : mEffect(new Effect(true /*isInput*/, handle)) {} in NoiseSuppressionEffect()
49 return mEffect->init(); in init()
55 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
59 return mEffect->reset(); in reset()
63 return mEffect->enable(); in enable()
67 return mEffect->disable(); in disable()
72 return mEffect->setAudioSource(source); in setAudioSource()
76 return mEffect->setDevice(device); in setDevice()
80 return mEffect->setInputDevice(device); in setInputDevice()
84 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DVisualizerEffect.cpp34 : mEffect(new Effect(false /*isInput*/, handle)), in VisualizerEffect()
40 return mEffect->init(); in init()
46 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
50 return mEffect->reset(); in reset()
54 return mEffect->enable(); in enable()
58 return mEffect->disable(); in disable()
63 return mEffect->setAudioSource(source); in setAudioSource()
67 return mEffect->setDevice(device); in setDevice()
71 return mEffect->setInputDevice(device); in setInputDevice()
75 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DEqualizerEffect.cpp35 : mEffect(new Effect(false /*isInput*/, handle)) {} in EqualizerEffect()
61 return mEffect->init(); in init()
67 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
71 return mEffect->reset(); in reset()
75 return mEffect->enable(); in enable()
79 return mEffect->disable(); in disable()
84 return mEffect->setAudioSource(source); in setAudioSource()
88 return mEffect->setDevice(device); in setDevice()
92 return mEffect->setInputDevice(device); in setInputDevice()
96 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
DVirtualizerEffect.cpp40 : mEffect(new Effect(false /*isInput*/, handle)) {} in VirtualizerEffect()
44 return mEffect->init(); in init()
50 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
54 return mEffect->reset(); in reset()
58 return mEffect->enable(); in enable()
62 return mEffect->disable(); in disable()
67 return mEffect->setAudioSource(source); in setAudioSource()
71 return mEffect->setDevice(device); in setDevice()
75 return mEffect->setInputDevice(device); in setInputDevice()
79 return mEffect->setAudioSource(source); in setAudioSource()
[all …]
/hardware/interfaces/audio/common/7.0/example/
DLoudnessEnhancerEffect.h32 ::android::hardware::Return<Result> init() override { return mEffect->init(); } in init()
37 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
39 ::android::hardware::Return<Result> reset() override { return mEffect->reset(); } in reset()
40 ::android::hardware::Return<Result> enable() override { return mEffect->enable(); } in enable()
41 ::android::hardware::Return<Result> disable() override { return mEffect->disable(); } in disable()
44 return mEffect->setDevice(device); in setDevice()
49 return mEffect->setAndGetVolume(volumes, _hidl_cb); in setAndGetVolume()
53 return mEffect->volumeChangeNotification(volumes); in volumeChangeNotification()
57 return mEffect->setAudioMode(mode); in setAudioMode()
63 return mEffect->setConfigReverse(config, inputBufferProvider, outputBufferProvider); in setConfigReverse()
[all …]
DEqualizerEffect.h32 ::android::hardware::Return<Result> init() override { return mEffect->init(); } in init()
37 return mEffect->setConfig(config, inputBufferProvider, outputBufferProvider); in setConfig()
39 ::android::hardware::Return<Result> reset() override { return mEffect->reset(); } in reset()
40 ::android::hardware::Return<Result> enable() override { return mEffect->enable(); } in enable()
41 ::android::hardware::Return<Result> disable() override { return mEffect->disable(); } in disable()
44 return mEffect->setDevice(device); in setDevice()
49 return mEffect->setAndGetVolume(volumes, _hidl_cb); in setAndGetVolume()
53 return mEffect->volumeChangeNotification(volumes); in volumeChangeNotification()
57 return mEffect->setAudioMode(mode); in setAudioMode()
63 return mEffect->setConfigReverse(config, inputBufferProvider, outputBufferProvider); in setConfigReverse()
[all …]

12