Home | History | Annotate | Download | only in telecom
      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.telecom.PhoneAccountHandle;
     20 
     21 /**
     22  * Internal remote callback interface for in-call services.
     23  *
     24  * @see android.telecom.InCallAdapter
     25  *
     26  * {@hide}
     27  */
     28 oneway interface IInCallAdapter {
     29     void answerCall(String callId, int videoState);
     30 
     31     void rejectCall(String callId, boolean rejectWithMessage, String textMessage);
     32 
     33     void disconnectCall(String callId);
     34 
     35     void holdCall(String callId);
     36 
     37     void unholdCall(String callId);
     38 
     39     void mute(boolean shouldMute);
     40 
     41     void setAudioRoute(int route);
     42 
     43     void playDtmfTone(String callId, char digit);
     44 
     45     void stopDtmfTone(String callId);
     46 
     47     void postDialContinue(String callId, boolean proceed);
     48 
     49     void phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle,
     50             boolean setDefault);
     51 
     52     void conference(String callId, String otherCallId);
     53 
     54     void splitFromConference(String callId);
     55 
     56     void mergeConference(String callId);
     57 
     58     void swapConference(String callId);
     59 
     60     void turnOnProximitySensor();
     61 
     62     void turnOffProximitySensor(boolean screenOnImmediately);
     63 }
     64