1 /* 2 * Copyright (C) 2020 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 package android.media; 18 19 import android.media.AudioConfigBase; 20 import android.media.AudioSourceType; 21 import android.media.EffectDescriptor; 22 import android.media.RecordClientInfo; 23 24 /** 25 * {@hide} 26 */ 27 oneway interface IAudioPolicyServiceClient { 28 /** Notifies a change of volume group. */ onAudioVolumeGroupChanged(int group, int flags)29 void onAudioVolumeGroupChanged(int /* volume_group_t */ group, 30 int flags); 31 /** Notifies a change of audio port configuration. */ onAudioPortListUpdate()32 void onAudioPortListUpdate(); 33 /** Notifies a change of audio patch configuration. */ onAudioPatchListUpdate()34 void onAudioPatchListUpdate(); 35 /** Notifies a change in the mixing state of a specific mix in a dynamic audio policy. */ onDynamicPolicyMixStateUpdate(@tf8InCpp String regId, int state)36 void onDynamicPolicyMixStateUpdate(@utf8InCpp String regId, 37 int state); 38 /** Notifies a change of audio recording configuration. */ onRecordingConfigurationUpdate(int event, in RecordClientInfo clientInfo, in AudioConfigBase clientConfig, in EffectDescriptor[] clientEffects, in AudioConfigBase deviceConfig, in EffectDescriptor[] effects, int patchHandle, AudioSourceType source)39 void onRecordingConfigurationUpdate(int event, 40 in RecordClientInfo clientInfo, 41 in AudioConfigBase clientConfig, 42 in EffectDescriptor[] clientEffects, 43 in AudioConfigBase deviceConfig, 44 in EffectDescriptor[] effects, 45 int /* audio_patch_handle_t */ patchHandle, 46 AudioSourceType source); 47 /** Notifies a change of audio routing */ onRoutingUpdated()48 void onRoutingUpdated(); 49 } 50