blob: 138a877cd843b5139deb866385f6dd23782155aa [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
Tyler Gunnef9f6f92014-09-12 22:16:17 -070019import android.telecom.PhoneAccountHandle;
Sailesh Nepal4cff3922014-03-19 10:15:37 -070020
Santos Cordon8f3fd302014-01-27 08:46:21 -080021/**
Ihab Awad2f236642014-03-10 15:33:45 -070022 * Internal remote callback interface for in-call services.
23 *
Tyler Gunnef9f6f92014-09-12 22:16:17 -070024 * @see android.telecom.InCallAdapter
Ihab Awad2f236642014-03-10 15:33:45 -070025 *
Sailesh Nepalab5d2822014-03-08 18:01:06 -080026 * {@hide}
Santos Cordon8f3fd302014-01-27 08:46:21 -080027 */
28oneway interface IInCallAdapter {
Andrew Lee8da4c3c2014-07-16 10:11:42 -070029 void answerCall(String callId, int videoState);
Santos Cordon8f3fd302014-01-27 08:46:21 -080030
Ihab Awadc0677542014-06-10 13:29:47 -070031 void rejectCall(String callId, boolean rejectWithMessage, String textMessage);
Santos Cordon8f3fd302014-01-27 08:46:21 -080032
Santos Cordon8f3fd302014-01-27 08:46:21 -080033 void disconnectCall(String callId);
Yorke Lee81ccaaa2014-03-12 18:33:19 -070034
Yorke Lee81ccaaa2014-03-12 18:33:19 -070035 void holdCall(String callId);
36
Yorke Lee81ccaaa2014-03-12 18:33:19 -070037 void unholdCall(String callId);
Sailesh Nepal4cff3922014-03-19 10:15:37 -070038
Sailesh Nepal4cff3922014-03-19 10:15:37 -070039 void mute(boolean shouldMute);
40
Sailesh Nepal4cff3922014-03-19 10:15:37 -070041 void setAudioRoute(int route);
Ihab Awad2f236642014-03-10 15:33:45 -070042
43 void playDtmfTone(String callId, char digit);
44
45 void stopDtmfTone(String callId);
46
Evan Charlton6dea4ac2014-06-03 14:07:13 -070047 void postDialContinue(String callId, boolean proceed);
Sailesh Nepalb632e5b2014-04-03 12:54:33 -070048
Evan Charlton8c8a0622014-07-20 12:31:00 -070049 void phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle);
Nancy Chen5da0fd52014-07-08 14:16:17 -070050
Santos Cordon7c7bc7f2014-07-28 18:15:48 -070051 void conference(String callId, String otherCallId);
Santos Cordon980acb92014-05-31 10:31:19 -070052
53 void splitFromConference(String callId);
Sailesh Nepal61203862014-07-11 14:50:13 -070054
Santos Cordona4868042014-09-04 17:39:22 -070055 void mergeConference(String callId);
56
57 void swapConference(String callId);
58
Yorke Lee0d6ea712014-07-28 14:39:23 -070059 void turnOnProximitySensor();
60
61 void turnOffProximitySensor(boolean screenOnImmediately);
Santos Cordon8f3fd302014-01-27 08:46:21 -080062}