18f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon/* 28f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * Copyright (C) 2014 The Android Open Source Project 38f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * 48f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * Licensed under the Apache License, Version 2.0 (the "License"); 58f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * you may not use this file except in compliance with the License. 68f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * You may obtain a copy of the License at 78f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * 88f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * http://www.apache.org/licenses/LICENSE-2.0 98f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * 108f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * Unless required by applicable law or agreed to in writing, software 118f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * distributed under the License is distributed on an "AS IS" BASIS, 128f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 138f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * See the License for the specific language governing permissions and 148f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon * limitations under the License. 158f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon */ 168f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon 17ef9f6f957d897ea0ed82114185b8fa3fefd4917bTyler Gunnpackage com.android.internal.telecom; 188f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon 192ab88cc313fc4af7fb9436e236cd3a5d1ac58478Sailesh Nepalimport android.app.PendingIntent; 20876dbfb4767da4a2ba5459d5b78fb6eb55e4516fTyler Gunnimport android.os.Bundle; 214af5935c71f1e31ef1aec27661c4ef60545a0924Yorke Leeimport android.telecom.CallAudioState; 22ef9f6f957d897ea0ed82114185b8fa3fefd4917bTyler Gunnimport android.telecom.ParcelableCall; 23ab5d282dd6f487578ae86b2d53d0d8edc9b71747Sailesh Nepal 24ef9f6f957d897ea0ed82114185b8fa3fefd4917bTyler Gunnimport com.android.internal.telecom.IInCallAdapter; 258f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon 268f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon/** 272f23664b4fb9527f3b4e12843926ffe2220ea559Ihab Awad * Internal remote interface for in-call services. 282f23664b4fb9527f3b4e12843926ffe2220ea559Ihab Awad * 29ef9f6f957d897ea0ed82114185b8fa3fefd4917bTyler Gunn * @see android.telecom.InCallService 302f23664b4fb9527f3b4e12843926ffe2220ea559Ihab Awad * 31ab5d282dd6f487578ae86b2d53d0d8edc9b71747Sailesh Nepal * {@hide} 328f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon */ 338f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordononeway interface IInCallService { 348f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon void setInCallAdapter(in IInCallAdapter inCallAdapter); 358f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon 3688b771d8cd3f1e5748078c02f3ab571831ace72fSantos Cordon void addCall(in ParcelableCall call); 378f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon 3888b771d8cd3f1e5748078c02f3ab571831ace72fSantos Cordon void updateCall(in ParcelableCall call); 392f23664b4fb9527f3b4e12843926ffe2220ea559Ihab Awad 402f23664b4fb9527f3b4e12843926ffe2220ea559Ihab Awad void setPostDial(String callId, String remaining); 412f23664b4fb9527f3b4e12843926ffe2220ea559Ihab Awad 422f23664b4fb9527f3b4e12843926ffe2220ea559Ihab Awad void setPostDialWait(String callId, String remaining); 43b632e5b122d82333c390cc334ab17100bc2af7a2Sailesh Nepal 444af5935c71f1e31ef1aec27661c4ef60545a0924Yorke Lee void onCallAudioStateChanged(in CallAudioState callAudioState); 453534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordon 463534ede5722b98c5be1526ba0bc2cd8acfbe0e55Santos Cordon void bringToForeground(boolean showDialpad); 476c912b7d056c67b41fd46f31de168795e97c2336Santos Cordon 486c912b7d056c67b41fd46f31de168795e97c2336Santos Cordon void onCanAddCallChanged(boolean canAddCall); 499c2618b17fe580d70994ba8f5d999f20804575f9Sailesh Nepal 509c2618b17fe580d70994ba8f5d999f20804575f9Sailesh Nepal void silenceRinger(); 51876dbfb4767da4a2ba5459d5b78fb6eb55e4516fTyler Gunn 52876dbfb4767da4a2ba5459d5b78fb6eb55e4516fTyler Gunn void onConnectionEvent(String callId, String event, in Bundle extras); 5395d5587d0aad9dfd49f798408f4212f95ce68fc7Hall Liu 5495d5587d0aad9dfd49f798408f4212f95ce68fc7Hall Liu void onRttUpgradeRequest(String callId, int id); 5557006aa82a69740df73415a456d31993e2785e24Hall Liu 5657006aa82a69740df73415a456d31993e2785e24Hall Liu void onRttInitiationFailure(String callId, int reason); 578f3fd30a60d4a5b6e9c94d463681b0c0ac3f119eSantos Cordon} 58