53 lines
1.8 KiB
C++
53 lines
1.8 KiB
C++
/*
|
|
* 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 <cutils/misc.h>
|
|
#include <cutils/config_utils.h>
|
|
#include <cutils/compiler.h>
|
|
#include <utils/String8.h>
|
|
#include <utils/Vector.h>
|
|
#include <utils/SortedVector.h>
|
|
#include <binder/BinderService.h>
|
|
#include <system/audio.h>
|
|
#include <system/audio_policy.h>
|
|
#include <android/media/IAudioPolicyService.h>
|
|
#include <media/ToneGenerator.h>
|
|
#include <media/AudioEffect.h>
|
|
#include <media/AudioPolicy.h>
|
|
#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
|