1 /* 2 * Copyright (C) 2019 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.carmodetestapp; 18 import android.telecom.PhoneAccountHandle; 19 import android.telecom.PhoneAccount; 20 21 interface ICtsCarModeInCallServiceControl { isBound()22 boolean isBound(); isUnbound()23 boolean isUnbound(); reset()24 void reset(); getCallCount()25 int getCallCount(); enableCarMode(int priority)26 void enableCarMode(int priority); disableCarMode()27 void disableCarMode(); disconnectCalls()28 void disconnectCalls(); requestAutomotiveProjection()29 boolean requestAutomotiveProjection(); releaseAutomotiveProjection()30 void releaseAutomotiveProjection(); checkBindStatus(boolean bind)31 boolean checkBindStatus(boolean bind); getSelfManagedPhoneAccounts()32 List<PhoneAccountHandle> getSelfManagedPhoneAccounts(); getOwnSelfManagedPhoneAccounts()33 List<PhoneAccountHandle> getOwnSelfManagedPhoneAccounts(); registerPhoneAccount(in PhoneAccount phoneAccount)34 void registerPhoneAccount(in PhoneAccount phoneAccount); unregisterPhoneAccount(in PhoneAccountHandle phoneAccountHandle)35 void unregisterPhoneAccount(in PhoneAccountHandle phoneAccountHandle); checkCallAddedStatus()36 boolean checkCallAddedStatus(); getCallVideoState()37 int getCallVideoState(); getCallState()38 int getCallState(); hold()39 void hold(); unhold()40 void unhold(); disconnect()41 void disconnect(); answerCall(int videoState)42 void answerCall(int videoState); 43 }