/* * Copyright (C) 2019 MediaTek Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ANDROID_AUDIOPOLICYSERVICECUSTOMIMPL_H #define ANDROID_AUDIOPOLICYSERVICECUSTOMIMPL_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include "managerdefault/AudioPolicyManager.h" namespace android { class AudioPolicyServiceCustomImpl { public: virtual ~AudioPolicyServiceCustomImpl(); static AudioPolicyServiceCustomImpl* get(); static status_t gainTable_getAudioData(int par1, size_t len, void *ptr); static status_t common_setVolumeLog(audio_stream_type_t stream, float volume, audio_io_handle_t IO); static status_t common_getDecodedData(String8 strPara, size_t len, void *ptr); protected: AudioPolicyServiceCustomImpl(); private: static AudioPolicyServiceCustomImpl *mAudioPolicyServiceCustomImpl; static Mutex gInstanceLock; }; }; #endif // ANDROID_AUDIOPOLICYSERVICE_CUSTOM_H