IBluetoothHeadsetClient.aidl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright 2014 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. package android.bluetooth;
  17. import android.bluetooth.BluetoothDevice;
  18. import android.bluetooth.BluetoothHeadsetClientCall;
  19. import android.os.Bundle;
  20. /**
  21. * API for Bluetooth Headset Client service (HFP HF Role)
  22. *
  23. * {@hide}
  24. */
  25. interface IBluetoothHeadsetClient {
  26. boolean connect(in BluetoothDevice device);
  27. boolean disconnect(in BluetoothDevice device);
  28. List<BluetoothDevice> getConnectedDevices();
  29. List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states);
  30. int getConnectionState(in BluetoothDevice device);
  31. boolean setPriority(in BluetoothDevice device, int priority);
  32. int getPriority(in BluetoothDevice device);
  33. boolean startVoiceRecognition(in BluetoothDevice device);
  34. boolean stopVoiceRecognition(in BluetoothDevice device);
  35. List<BluetoothHeadsetClientCall> getCurrentCalls(in BluetoothDevice device);
  36. Bundle getCurrentAgEvents(in BluetoothDevice device);
  37. boolean acceptCall(in BluetoothDevice device, int flag);
  38. boolean holdCall(in BluetoothDevice device);
  39. boolean rejectCall(in BluetoothDevice device);
  40. boolean terminateCall(in BluetoothDevice device, in BluetoothHeadsetClientCall call);
  41. boolean enterPrivateMode(in BluetoothDevice device, int index);
  42. boolean explicitCallTransfer(in BluetoothDevice device);
  43. BluetoothHeadsetClientCall dial(in BluetoothDevice device, String number);
  44. boolean sendDTMF(in BluetoothDevice device, byte code);
  45. boolean getLastVoiceTagNumber(in BluetoothDevice device);
  46. int getAudioState(in BluetoothDevice device);
  47. boolean connectAudio(in BluetoothDevice device);
  48. boolean disconnectAudio(in BluetoothDevice device);
  49. void setAudioRouteAllowed(in BluetoothDevice device, boolean allowed);
  50. boolean getAudioRouteAllowed(in BluetoothDevice device);
  51. Bundle getCurrentAgFeatures(in BluetoothDevice device);
  52. }