ITelephony.aidl 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.android.internal.telephony;
  2. /**
  3. * Interface used to interact with the phone. Mostly this is used by the
  4. * TelephonyManager class. A few places are still using this directly.
  5. * Please clean them up if possible and use TelephonyManager instead.
  6. * {@hide}
  7. */
  8. interface ITelephony {
  9. /**
  10. * End call or go to the Home screen
  11. * @return whether it hung up
  12. */
  13. boolean endCall();
  14. /**
  15. * Answer the currently-ringing call.
  16. *
  17. * If there's already a current active call, that call will be
  18. * automatically put on hold. If both lines are currently in use, the
  19. * current active call will be ended.
  20. *
  21. * TODO: provide a flag to let the caller specify what policy to use
  22. * if both lines are in use. (The current behavior is hardwired to
  23. * "answer incoming, end ongoing", which is how the CALL button
  24. * is specced to behave.)
  25. *
  26. * TODO: this should be a oneway call (especially since it's called
  27. * directly from the key queue thread).
  28. */
  29. void answerRingingCall();
  30. /**
  31. * Allow mobile data connections.
  32. */
  33. boolean enableDataConnectivity();
  34. /**
  35. * Disallow mobile data connections.
  36. */
  37. boolean disableDataConnectivity();
  38. /**
  39. * Report whether data connectivity is possible.
  40. */
  41. boolean isDataConnectivityPossible();
  42. }