• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 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.os.Bundle;
20 import android.telecom.CallControl;
21 import android.telecom.CallEndpoint;
22 import android.telecom.DisconnectCause;
23 import android.os.ResultReceiver;
24 
25 /**
26  * {@hide}
27  */
28 oneway interface ICallControl {
setActive(String callId, in ResultReceiver callback)29     void setActive(String callId, in ResultReceiver callback);
answer(int videoState, String callId, in ResultReceiver callback)30     void answer(int videoState, String callId, in ResultReceiver callback);
setInactive(String callId, in ResultReceiver callback)31     void setInactive(String callId, in ResultReceiver callback);
disconnect(String callId, in DisconnectCause disconnectCause, in ResultReceiver callback)32     void disconnect(String callId, in DisconnectCause disconnectCause, in ResultReceiver callback);
startCallStreaming(String callId, in ResultReceiver callback)33     void startCallStreaming(String callId, in ResultReceiver callback);
requestCallEndpointChange(in CallEndpoint callEndpoint, in ResultReceiver callback)34     void requestCallEndpointChange(in CallEndpoint callEndpoint, in ResultReceiver callback);
setMuteState(boolean isMuted, in ResultReceiver callback)35     void setMuteState(boolean isMuted, in ResultReceiver callback);
sendEvent(String callId, String event, in Bundle extras)36     void sendEvent(String callId, String event, in Bundle extras);
requestVideoState(int videoState, String callId, in ResultReceiver callback)37     void requestVideoState(int videoState, String callId, in ResultReceiver callback);
38 }