blob: b9563fa7bb185a7dcc614eafcad1da6cf276c2b9 [file] [log] [blame]
Santos Cordon8f3fd302014-01-27 08:46:21 -08001/*
2 * Copyright (C) 2014 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
Tyler Gunnef9f6f92014-09-12 22:16:17 -070017package com.android.internal.telecom;
Santos Cordon8f3fd302014-01-27 08:46:21 -080018
Sailesh Nepal2ab88cc2014-07-18 14:49:18 -070019import android.app.PendingIntent;
Tyler Gunn876dbfb2016-03-14 15:18:07 -070020import android.os.Bundle;
Yorke Lee4af59352015-05-13 14:14:54 -070021import android.telecom.CallAudioState;
Tyler Gunnef9f6f92014-09-12 22:16:17 -070022import android.telecom.ParcelableCall;
Sailesh Nepalab5d2822014-03-08 18:01:06 -080023
Tyler Gunnef9f6f92014-09-12 22:16:17 -070024import com.android.internal.telecom.IInCallAdapter;
Santos Cordon8f3fd302014-01-27 08:46:21 -080025
26/**
Ihab Awad2f236642014-03-10 15:33:45 -070027 * Internal remote interface for in-call services.
28 *
Tyler Gunnef9f6f92014-09-12 22:16:17 -070029 * @see android.telecom.InCallService
Ihab Awad2f236642014-03-10 15:33:45 -070030 *
Sailesh Nepalab5d2822014-03-08 18:01:06 -080031 * {@hide}
Santos Cordon8f3fd302014-01-27 08:46:21 -080032 */
33oneway interface IInCallService {
Santos Cordon8f3fd302014-01-27 08:46:21 -080034 void setInCallAdapter(in IInCallAdapter inCallAdapter);
35
Santos Cordon88b771d2014-07-19 13:10:40 -070036 void addCall(in ParcelableCall call);
Santos Cordon8f3fd302014-01-27 08:46:21 -080037
Santos Cordon88b771d2014-07-19 13:10:40 -070038 void updateCall(in ParcelableCall call);
Ihab Awad2f236642014-03-10 15:33:45 -070039
40 void setPostDial(String callId, String remaining);
41
42 void setPostDialWait(String callId, String remaining);
Sailesh Nepalb632e5b2014-04-03 12:54:33 -070043
Yorke Lee4af59352015-05-13 14:14:54 -070044 void onCallAudioStateChanged(in CallAudioState callAudioState);
Santos Cordon3534ede2014-05-29 13:07:10 -070045
46 void bringToForeground(boolean showDialpad);
Santos Cordon6c912b72014-11-07 16:05:09 -080047
48 void onCanAddCallChanged(boolean canAddCall);
Sailesh Nepal9c2618b2016-01-23 16:28:22 -080049
50 void silenceRinger();
Tyler Gunn876dbfb2016-03-14 15:18:07 -070051
52 void onConnectionEvent(String callId, String event, in Bundle extras);
Hall Liu95d55872017-01-25 17:12:49 -080053
54 void onRttUpgradeRequest(String callId, int id);
Hall Liu57006aa2017-02-06 10:49:48 -080055
56 void onRttInitiationFailure(String callId, int reason);
Sanket Padawee29a2662017-12-01 13:59:27 -080057
58 void onHandoverFailed(String callId, int error);
Tyler Gunn79bc1ec2018-01-22 15:17:54 -080059
60 void onHandoverComplete(String callId);
Santos Cordon8f3fd302014-01-27 08:46:21 -080061}