• 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.app.PendingIntent;
20 import android.os.Bundle;
21 import android.telecom.CallAudioState;
22 import android.telecom.CallEndpoint;
23 import android.telecom.ParcelableCall;
24 
25 import com.android.internal.telecom.IInCallAdapter;
26 
27 /**
28  * Internal remote interface for in-call services.
29  *
30  * @see android.telecom.InCallService
31  *
32  * {@hide}
33  */
34 oneway interface IInCallService {
setInCallAdapter(in IInCallAdapter inCallAdapter)35     void setInCallAdapter(in IInCallAdapter inCallAdapter);
36 
addCall(in ParcelableCall call)37     void addCall(in ParcelableCall call);
38 
updateCall(in ParcelableCall call)39     void updateCall(in ParcelableCall call);
40 
setPostDial(String callId, String remaining)41     void setPostDial(String callId, String remaining);
42 
setPostDialWait(String callId, String remaining)43     void setPostDialWait(String callId, String remaining);
44 
onCallAudioStateChanged(in CallAudioState callAudioState)45     void onCallAudioStateChanged(in CallAudioState callAudioState);
46 
onCallEndpointChanged(in CallEndpoint callEndpoint)47     void onCallEndpointChanged(in CallEndpoint callEndpoint);
48 
onAvailableCallEndpointsChanged(in List<CallEndpoint> availableCallEndpoints)49     void onAvailableCallEndpointsChanged(in List<CallEndpoint> availableCallEndpoints);
50 
onMuteStateChanged(boolean isMuted)51     void onMuteStateChanged(boolean isMuted);
52 
bringToForeground(boolean showDialpad)53     void bringToForeground(boolean showDialpad);
54 
onCanAddCallChanged(boolean canAddCall)55     void onCanAddCallChanged(boolean canAddCall);
56 
silenceRinger()57     void silenceRinger();
58 
onConnectionEvent(String callId, String event, in Bundle extras)59     void onConnectionEvent(String callId, String event, in Bundle extras);
60 
onRttUpgradeRequest(String callId, int id)61     void onRttUpgradeRequest(String callId, int id);
62 
onRttInitiationFailure(String callId, int reason)63     void onRttInitiationFailure(String callId, int reason);
64 
onHandoverFailed(String callId, int error)65     void onHandoverFailed(String callId, int error);
66 
onHandoverComplete(String callId)67     void onHandoverComplete(String callId);
68 }
69