1b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent/* 2b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * Copyright (C) 2009 The Android Open Source Project 3b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * 4b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * Licensed under the Apache License, Version 2.0 (the "License"); 5b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * you may not use this file except in compliance with the License. 6b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * You may obtain a copy of the License at 7b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * 8b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * http://www.apache.org/licenses/LICENSE-2.0 9b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * 10b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * Unless required by applicable law or agreed to in writing, software 11b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * distributed under the License is distributed on an "AS IS" BASIS, 12b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * See the License for the specific language governing permissions and 14b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent * limitations under the License. 15b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent */ 16b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 17b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent#ifndef ANDROID_IAUDIOPOLICYSERVICECLIENT_H 18b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent#define ANDROID_IAUDIOPOLICYSERVICECLIENT_H 19b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 20b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 21b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent#include <utils/RefBase.h> 22b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent#include <binder/IInterface.h> 23b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent#include <system/audio.h> 24b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 25b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurentnamespace android { 26b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 27b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent// ---------------------------------------------------------------------------- 28b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 29b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurentclass IAudioPolicyServiceClient : public IInterface 30b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent{ 31b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurentpublic: 32b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent DECLARE_META_INTERFACE(AudioPolicyServiceClient); 33b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 34b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent // Notifies a change of audio port configuration. 35b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent virtual void onAudioPortListUpdate() = 0; 36b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent // Notifies a change of audio patch configuration. 37b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent virtual void onAudioPatchListUpdate() = 0; 38b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent}; 39b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 40b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 41b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent// ---------------------------------------------------------------------------- 42b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 43b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurentclass BnAudioPolicyServiceClient : public BnInterface<IAudioPolicyServiceClient> 44b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent{ 45b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurentpublic: 46b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent virtual status_t onTransact( uint32_t code, 47b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent const Parcel& data, 48b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent Parcel* reply, 49b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent uint32_t flags = 0); 50b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent}; 51b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 52b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent// ---------------------------------------------------------------------------- 53b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 54b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent}; // namespace android 55b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent 56b52c152d553556b2d227ffc943489de0c60b4b02Eric Laurent#endif // ANDROID_IAUDIOPOLICYSERVICECLIENT_H 57