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 android.telecom.cts.selfmanagedcstestapp; 18 19 import android.telecom.PhoneAccountHandle; 20 import android.telecom.PhoneAccount; 21 22 interface ICtsSelfManagedConnectionServiceControl { init()23 void init(); deInit()24 void deInit(); waitForBinding()25 boolean waitForBinding(); waitForUpdate(int lock)26 boolean waitForUpdate(int lock); registerPhoneAccount(in PhoneAccount phoneAccount)27 void registerPhoneAccount(in PhoneAccount phoneAccount); unregisterPhoneAccount(in PhoneAccountHandle phoneAccountHandle)28 void unregisterPhoneAccount(in PhoneAccountHandle phoneAccountHandle); isConnectionAvailable()29 boolean isConnectionAvailable(); waitOnHold()30 boolean waitOnHold(); waitOnUnHold()31 boolean waitOnUnHold(); waitOnDisconnect()32 boolean waitOnDisconnect(); initiateIncomingCall(in PhoneAccountHandle handle, in String uri)33 boolean initiateIncomingCall(in PhoneAccountHandle handle, in String uri); placeOutgoingCall(in PhoneAccountHandle handle, in String uri)34 boolean placeOutgoingCall(in PhoneAccountHandle handle, in String uri); placeIncomingCall(in PhoneAccountHandle handle, in String uri, in int videoState)35 boolean placeIncomingCall(in PhoneAccountHandle handle, 36 in String uri, in int videoState); isIncomingCall()37 boolean isIncomingCall(); waitOnAnswer()38 boolean waitOnAnswer(); getAudioModeIsVoip()39 boolean getAudioModeIsVoip(); getConnectionState()40 int getConnectionState(); getOnShowIncomingUiInvokeCounter()41 int getOnShowIncomingUiInvokeCounter(); setConnectionCapabilityNoHold()42 void setConnectionCapabilityNoHold(); setConnectionActive()43 void setConnectionActive(); disconnectConnection()44 void disconnectConnection(); 45 } 46