PageRenderTime 28ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/src/android/bluetooth/IBluetoothHeadset.aidl

http://auto-answer.googlecode.com/
Android Interface Definition Language | 56 lines | 14 code | 3 blank | 39 comment | 0 complexity | ea9b1e1e71bc92405fb2f397f6f6e715 MD5 | raw file
  1. /*
  2. * AutoAnswer
  3. * Copyright (C) 2010 EverySoft
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. * This file incorporates work covered by the following copyright and
  19. * permission notice:
  20. *
  21. * Copyright (C) 2008 The Android Open Source Project
  22. *
  23. * Licensed under the Apache License, Version 2.0 (the "License");
  24. * you may not use this file except in compliance with the License.
  25. * You may obtain a copy of the License at
  26. *
  27. * http://www.apache.org/licenses/LICENSE-2.0
  28. *
  29. * Unless required by applicable law or agreed to in writing, software
  30. * distributed under the License is distributed on an "AS IS" BASIS,
  31. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  32. * See the License for the specific language governing permissions and
  33. * limitations under the License.
  34. */
  35. package android.bluetooth;
  36. import android.bluetooth.BluetoothDevice;
  37. /**
  38. * System private API for Bluetooth Headset service
  39. *
  40. * {@hide}
  41. */
  42. interface IBluetoothHeadset {
  43. int getState();
  44. BluetoothDevice getCurrentHeadset();
  45. boolean connectHeadset(in BluetoothDevice device);
  46. void disconnectHeadset();
  47. boolean isConnected(in BluetoothDevice device);
  48. boolean startVoiceRecognition();
  49. boolean stopVoiceRecognition();
  50. boolean setPriority(in BluetoothDevice device, int priority);
  51. int getPriority(in BluetoothDevice device);
  52. int getBatteryUsageHint();
  53. }