/* * Copyright 2019 HIMSA II K/S - www.himsa.com. * Represented by EHIMA - www.ehima.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.bluetooth; import com.mediatek.bt.BluetoothTbsCall; import android.bluetooth.IBluetoothTbsCallback; import android.bluetooth.BluetoothDevice; import android.os.ParcelUuid; /** * @hide */ interface IBluetoothTbs { oneway void registerBearer(in String token, in IBluetoothTbsCallback callback, in String uci, in List uriSchemes, in int capabilities, in String provider, in int technology); oneway void unregisterBearer(in String token); oneway void requestResult(in int ccid, in int requestId, in int result); oneway void callAdded(in int ccid, in BluetoothTbsCall call); oneway void callRemoved(in int ccid, in ParcelUuid callId, in int reason); oneway void callStateChanged(in int ccid, in ParcelUuid callId, in int state); oneway void currentCallsList(in int ccid, in List calls); oneway void networkStateChanged(in int ccid, in String provider, in int technology); oneway void phoneStateChanged(in int numActive, in int numHeld, in int callState, in String number, in int type, in String name); boolean isInbandRingingEnabled(); boolean startVoiceRecognition(in BluetoothDevice device); boolean stopVoiceRecognition(in BluetoothDevice device); boolean isAudioOn(); boolean connectAudio(); boolean disconnectAudio(); boolean startIsoUsingVirtualVoiceCall(); boolean stopIsoUsingVirtualVoiceCall(); int getAudioState(in BluetoothDevice device); }