1 /**
2  * Copyright (c) 2022 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.telephony.imsmedia;
18 
19 import android.telephony.CallQuality;
20 import android.telephony.imsmedia.AudioConfig;
21 import android.telephony.ims.RtpHeaderExtension;
22 import android.telephony.imsmedia.IImsAudioSession;
23 import android.telephony.imsmedia.MediaQualityStatus;
24 import android.telephony.imsmedia.RtpReceptionStats;
25 
26 /**
27  * See ImsAudioSessionCallback for more information.
28  *
29  * {@hide}
30  */
31 oneway interface IImsAudioSessionCallback {
onOpenSessionSuccess(IImsAudioSession session)32     void onOpenSessionSuccess(IImsAudioSession session);
onOpenSessionFailure(int error)33     void onOpenSessionFailure(int error);
onSessionClosed()34     void onSessionClosed();
onModifySessionResponse(in AudioConfig config, int result)35     void onModifySessionResponse(in AudioConfig config, int result);
onAddConfigResponse(in AudioConfig config, int result)36     void onAddConfigResponse(in AudioConfig config, int result);
onConfirmConfigResponse(in AudioConfig config, int result)37     void onConfirmConfigResponse(in AudioConfig config, int result);
onFirstMediaPacketReceived(in AudioConfig config)38     void onFirstMediaPacketReceived(in AudioConfig config);
onHeaderExtensionReceived(in List<RtpHeaderExtension> extensions)39     void onHeaderExtensionReceived(in List<RtpHeaderExtension> extensions);
notifyMediaQualityStatus(in MediaQualityStatus status)40     void notifyMediaQualityStatus(in MediaQualityStatus status);
onCallQualityChanged(in CallQuality callQuality)41     void onCallQualityChanged(in CallQuality callQuality);
triggerAnbrQuery(in AudioConfig config)42     void triggerAnbrQuery(in AudioConfig config);
onDtmfReceived(in char dtmfDigit, int durationMs)43     void onDtmfReceived(in char dtmfDigit, int durationMs);
notifyRtpReceptionStats(in RtpReceptionStats stats)44     void notifyRtpReceptionStats(in RtpReceptionStats stats);
45 }
46