/hardware/interfaces/audio/aidl/vts/ |
D | VtsHalAudioEffectTargetTest.cpp | 67 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 …]
|
D | VtsHalAECTargetTest.cpp | 52 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()
|
D | VtsHalAGC1TargetTest.cpp | 53 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()
|
D | VtsHalNSTargetTest.cpp | 49 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()
|
D | VtsHalAGC2TargetTest.cpp | 54 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()
|
D | VtsHalEqualizerTargetTest.cpp | 72 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()
|
D | VtsHalVisualizerTargetTest.cpp | 63 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()
|
D | VtsHalSpatializerTargetTest.cpp | 79 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()
|
D | VtsHalVolumeTargetTest.cpp | 37 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 …]
|
D | VtsHalLoudnessEnhancerTargetTest.cpp | 48 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 …]
|
D | VtsHalHapticGeneratorTargetTest.cpp | 89 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 …]
|
D | VtsHalPresetReverbTargetTest.cpp | 40 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/ |
D | AcousticEchoCancelerEffect.cpp | 34 : 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 …]
|
D | EnvironmentalReverbEffect.cpp | 34 : 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 …]
|
D | BassBoostEffect.cpp | 34 : 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 …]
|
D | PresetReverbEffect.cpp | 34 : 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 …]
|
D | LoudnessEnhancerEffect.cpp | 36 : 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 …]
|
D | DownmixEffect.cpp | 34 : 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 …]
|
D | AutomaticGainControlEffect.cpp | 33 : 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 …]
|
D | NoiseSuppressionEffect.cpp | 33 : 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 …]
|
D | VisualizerEffect.cpp | 34 : 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 …]
|
D | EqualizerEffect.cpp | 35 : 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 …]
|
D | VirtualizerEffect.cpp | 40 : 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/ |
D | LoudnessEnhancerEffect.h | 32 ::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 …]
|
D | EqualizerEffect.h | 32 ::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 …]
|