1 /* 2 * Copyright (C) 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at: 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 #include <aidl/android/hardware/audio/effect/BnEffect.h> 18 19 using namespace aidl::android::hardware::audio::effect; 20 21 namespace aidl::android::hardware::audio::effect { 22 23 class EffectMock : public BnEffect { 24 public: open(const Parameter::Common &,const std::optional<Parameter::Specific> &,IEffect::OpenEffectReturn *)25 ndk::ScopedAStatus open(const Parameter::Common&, const std::optional<Parameter::Specific>&, 26 IEffect::OpenEffectReturn*) override { 27 return ndk::ScopedAStatus::ok(); 28 } close()29 ndk::ScopedAStatus close() override { return ndk::ScopedAStatus::ok(); } command(CommandId)30 ndk::ScopedAStatus command(CommandId) override { return ndk::ScopedAStatus::ok(); } getState(State *)31 ndk::ScopedAStatus getState(State*) override { return ndk::ScopedAStatus::ok(); } getDescriptor(Descriptor *)32 ndk::ScopedAStatus getDescriptor(Descriptor*) override { return ndk::ScopedAStatus::ok(); } reopen(IEffect::OpenEffectReturn *)33 ndk::ScopedAStatus reopen(IEffect::OpenEffectReturn*) override { 34 return ndk::ScopedAStatus::ok(); 35 } setParameter(const Parameter &)36 ndk::ScopedAStatus setParameter(const Parameter&) override { return ndk::ScopedAStatus::ok(); } getParameter(const Parameter::Id &,Parameter *)37 ndk::ScopedAStatus getParameter(const Parameter::Id&, Parameter*) override { 38 return ndk::ScopedAStatus::ok(); 39 } 40 }; 41 42 } // namespace aidl::android::hardware::audio::effect 43