• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
17 package com.android.internal.telecom;
18 
19 import android.net.Uri;
20 import android.os.Bundle;
21 import android.os.ResultReceiver;
22 import android.telecom.PhoneAccountHandle;
23 import android.telecom.CallEndpoint;
24 
25 /**
26  * Internal remote callback interface for in-call services.
27  *
28  * @see android.telecom.InCallAdapter
29  *
30  * {@hide}
31  */
32 oneway interface IInCallAdapter {
answerCall(String callId, int videoState)33     void answerCall(String callId, int videoState);
34 
deflectCall(String callId, in Uri address)35     void deflectCall(String callId, in Uri address);
36 
rejectCall(String callId, boolean rejectWithMessage, String textMessage)37     void rejectCall(String callId, boolean rejectWithMessage, String textMessage);
38 
rejectCallWithReason(String callId, int rejectReason)39     void rejectCallWithReason(String callId, int rejectReason);
40 
transferCall(String callId, in Uri targetNumber, boolean isConfirmationRequired)41     void transferCall(String callId, in Uri targetNumber, boolean isConfirmationRequired);
42 
consultativeTransfer(String callId, String otherCallId)43     void consultativeTransfer(String callId, String otherCallId);
44 
disconnectCall(String callId)45     void disconnectCall(String callId);
46 
holdCall(String callId)47     void holdCall(String callId);
48 
unholdCall(String callId)49     void unholdCall(String callId);
50 
mute(boolean shouldMute)51     void mute(boolean shouldMute);
52 
setAudioRoute(int route, String bluetoothAddress)53     void setAudioRoute(int route, String bluetoothAddress);
54 
requestCallEndpointChange(in CallEndpoint endpoint, in ResultReceiver callback)55     void requestCallEndpointChange(in CallEndpoint endpoint, in ResultReceiver callback);
56 
enterBackgroundAudioProcessing(String callId)57     void enterBackgroundAudioProcessing(String callId);
58 
exitBackgroundAudioProcessing(String callId, boolean shouldRing)59     void exitBackgroundAudioProcessing(String callId, boolean shouldRing);
60 
playDtmfTone(String callId, char digit)61     void playDtmfTone(String callId, char digit);
62 
stopDtmfTone(String callId)63     void stopDtmfTone(String callId);
64 
postDialContinue(String callId, boolean proceed)65     void postDialContinue(String callId, boolean proceed);
66 
phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle, boolean setDefault)67     void phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle,
68             boolean setDefault);
69 
conference(String callId, String otherCallId)70     void conference(String callId, String otherCallId);
71 
splitFromConference(String callId)72     void splitFromConference(String callId);
73 
mergeConference(String callId)74     void mergeConference(String callId);
75 
swapConference(String callId)76     void swapConference(String callId);
77 
addConferenceParticipants(String callId, in List<Uri> participants)78     void addConferenceParticipants(String callId, in List<Uri> participants);
79 
turnOnProximitySensor()80     void turnOnProximitySensor();
81 
turnOffProximitySensor(boolean screenOnImmediately)82     void turnOffProximitySensor(boolean screenOnImmediately);
83 
pullExternalCall(String callId)84     void pullExternalCall(String callId);
85 
sendCallEvent(String callId, String event, int targetSdkVer, in Bundle extras)86     void sendCallEvent(String callId, String event, int targetSdkVer, in Bundle extras);
87 
putExtras(String callId, in Bundle extras)88     void putExtras(String callId, in Bundle extras);
89 
removeExtras(String callId, in List<String> keys)90     void removeExtras(String callId, in List<String> keys);
91 
sendRttRequest(String callId)92     void sendRttRequest(String callId);
93 
respondToRttRequest(String callId, int id, boolean accept)94     void respondToRttRequest(String callId, int id, boolean accept);
95 
stopRtt(String callId)96     void stopRtt(String callId);
97 
setRttMode(String callId, int mode)98     void setRttMode(String callId, int mode);
99 
handoverTo(String callId, in PhoneAccountHandle destAcct, int videoState, in Bundle extras)100     void handoverTo(String callId, in PhoneAccountHandle destAcct, int videoState,
101             in Bundle extras);
102 }
103