summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Connection.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "Make Connection#onSilence a public API." am: cbe3737f13Tyler Gunn2018-07-131-6/+43
|\| | | | | | | | | | | | | | | | | am: 01ab0b90bf Change-Id: I8c011d4a495d5240ebec83b07bc0b8f57a3c40ac
| * | Merge "Make Connection#onSilence a public API."Tyler Gunn2018-07-131-6/+43
| |\| | | | | | | | | | | | | | | | am: cbe3737f13 Change-Id: I4ab192ca160219770d7384e88c8e0025137b42bd
| | * Make Connection#onSilence a public API.Tyler Gunn2018-07-111-6/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Connection#onSilence is generally applicable to apps implementing the self-managed ConnectionService API. Also updated the docs to make it more clear where that API is to be used and how the developer can silence the ringtone. Test: CTS test, manual test. Bug: 110348674 Change-Id: I1c1791c101827780949fd633c531ed83037e7b4e
| * | Merge "Change signature of requestBluetoothAudio" am: 545e20389dHall Liu2018-04-021-6/+5
| |\| | | | | | | | | | | | | | | | am: 442575f4f1 Change-Id: Ic10b762e04d74635663fa97f5879072ebe00eca9
| | * Change signature of requestBluetoothAudioHall Liu2018-04-021-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | requestBluetoothAudio now takes a BluetoothDevice instead of a string. Bug: 74408978 Test: unable to CTS -- can't emulate bluetooth devices Change-Id: Id21e32b911da234f69a248e9937f9df0cf12a9a9
| | * RTT bugfixes, part 5Hall Liu2018-02-221-23/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a new API to allow Telecom to inform ConnectionServices when the RTT text stream changes * No longer set the RTT property from ConnectionService. Client apps should be setting properties themselves. * Add Dialer-side RTT property in order to remove the dependence on checking the RTT streams, which have a complex lifecycle Bug: 72951201 Bug: 72648661 Test: manual, with real RTT calls and Dialer's SimulatorConnection, also cts Change-Id: Ic4c7d883d2dc6baf8e8c0eaa4df58d7de8762b9e Merged-In: Ic4c7d883d2dc6baf8e8c0eaa4df58d7de8762b9e
| | * Merge "Un-hide Connection-side RTT APIs for Dialer"Treehugger Robot2018-02-151-22/+2
| | |\
| | | * Un-hide Connection-side RTT APIs for DialerHall Liu2018-02-151-22/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 63934808 Test: builds Change-Id: I59a892fb0e314810e92dd9ad7d0c2f4610055045 Merged-In: I59a892fb0e314810e92dd9ad7d0c2f461005504
| | * | Add setting and logging for RTTHall Liu2018-02-151-0/+5
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a system setting to store preferred RTT mode for calls. Add logging for RTT in Telecom base classes. Bug: 63934808 Test: manual Change-Id: Ie26fac800931604379bbe7b8abfed7caa8c0236d Merged-In: Ie26fac800931604379bbe7b8abfed7caa8c0236d
* | | Fix readImmediately for CTSHall Liu2018-07-031-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The readImmediately API (only used by CTS so far) was broken by a previous change that unknowingly changed the semantics of ready(). Fixing this so that CTS tests work again. Change-Id: I6970713eae2a01dd07e30778ca8ee0d9bc7dfeb9 Fixes: 111125833 Test: CTS
* | | Make RttTextStream's read interruptibleHall Liu2018-06-251-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrap the FileInputStream in a java.nio.Channel so that sending a Thread.interrupt() to the thread blocked on the read will actually do something. Change-Id: Icc11ba69167f448e2b33d9a1a13a1dfa5e5d0d58 Fixes: 110570772 Test: manual (follow repro steps in bug, but type really fast),treehugger
* | | Change signature of requestBluetoothAudioHall Liu2018-04-021-6/+5
|/ / | | | | | | | | | | | | | | requestBluetoothAudio now takes a BluetoothDevice instead of a string. Bug: 74408978 Test: unable to CTS -- can't emulate bluetooth devices Change-Id: Id21e32b911da234f69a248e9937f9df0cf12a9a9
* | Merge "Revert "Add the assisted dialing carrier config.""TreeHugger Robot2018-02-261-14/+1
|\ \
| * | Revert "Add the assisted dialing carrier config."Eric Erfanian2018-02-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit af7b8c0a67f1f416e9156c375a940a47389ab838. Reason for revert: we're cutting the feature from P Change-Id: I1ccc2c36b480f64c3a8b3df7eee73f80b7863722 Bug: 73727182
* | | Merge "RTT bugfixes, part 5"Hall Liu2018-02-151-23/+9
|\ \ \
| * | | RTT bugfixes, part 5Hall Liu2018-02-141-23/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a new API to allow Telecom to inform ConnectionServices when the RTT text stream changes * No longer set the RTT property from ConnectionService. Client apps should be setting properties themselves. * Add Dialer-side RTT property in order to remove the dependence on checking the RTT streams, which have a complex lifecycle Bug: 72951201 Bug: 72648661 Test: manual, with real RTT calls and Dialer's SimulatorConnection, also cts Change-Id: Ic4c7d883d2dc6baf8e8c0eaa4df58d7de8762b9e
* | | | Merge "Rename Conference#setConnectionElapsedTime to clarity." am: ↵Tyler Gunn2018-02-141-1/+1
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | d1134525fc am: a0b41a82ce am: 4c09901931 Change-Id: I493ade2029398983a76fd41fcf9f080ee2f06b95
| * | | Merge "Rename Conference#setConnectionElapsedTime to clarity."Treehugger Robot2018-02-131-1/+1
| |\ \ \
| | * | | Rename Conference#setConnectionElapsedTime to clarity.Tyler Gunn2018-02-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change name of conference connection elapsed time method to make it more clear what it is for. Updated documentation of this method and its companion to make it more clear what they are for. Test: Compile - this is a docs and naming change only. Bug: 70639525 Change-Id: I02662cb0331cba0d1fe2d4353438a68f334f9192
* | | | | Merge "Updates to Telecom API docs for clarity." am: e845bddb40 am: 8fe8f5fa9bTyler Gunn2018-02-131-4/+46
|\| | | | | |_|/ / |/| | | | | | | | | | | | | | | am: 82d572ed07 Change-Id: I2699c25dd3a309eed0742dc87b636a9b96d32e96
| * | | Merge "Updates to Telecom API docs for clarity."Treehugger Robot2018-02-131-4/+46
| |\ \ \
| | * | | Updates to Telecom API docs for clarity.Tyler Gunn2018-02-121-4/+46
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Update Connection onAnswer/onReject docs to make it more clear for a self-managed connectionservice that these methods could be called by the framework or by a car mode in call service. - Update the Connection onShowIncomingCallUI method to take into account the new concurrent calling capabilities in P. Test: Docs only change Bug: 73112552 Change-Id: Icb47aa15d03d4bfc05380948e30686317124301e
* | | | Merge "IMS: Add support in frameworks for call deflection feature" am: ↵Pooja Jain2018-02-081-1/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ba0f9d2973 am: f39bef4801 am: ac48eed9c0 Change-Id: I4695aca7d886f37341672ea5815770e3ccdf7a51
| * | | IMS: Add support in frameworks for call deflection featurePooja Jain2018-02-071-1/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Call deflection feature is useful to deflect MT call to another number. Test: Manual Bug: 62170348 Change-Id: Idfbcc175a856aa0bb9476f8c73d7a614a3af0700
| * | Add handover permission, fill in some missing API gaps.Tyler Gunn2018-01-251-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding the ACCEPT_HANDOVER runtime permission which an app must have in order to accept handovers (this is per design). Adding missing onHandoverComplete method in the android.telecom.Connection API (per design). Finishing plumbing for android.telecom.Call#onHandoverComplete API. Fix issue where the new handover API methods would never get called; the legacy handover extra was being used in this case when it should not have been. Bug: 65415068 Test: Verified using new CTS tests Change-Id: If1558f6a23911862c02ac5b18fb62d86911ed7e2 Merged-In: If1558f6a23911862c02ac5b18fb62d86911ed7e2
| * | Add assisted dialing properties to the framework.Eric Erfanian2017-12-121-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These properties allow the feature to be propogated from the outgoing call broadcast, to the connection, to the call, and finally to the call log as a feature. Test: no existing unit tests found. could use some pointers Bug: 35963245 Change-Id: I3ed8ac5ad7300c44f87e2573d9409b3a92b98ab6 Merged-In: I84343fb0cda16514c01997fd71d1e819b5b7eebb
* | | Add setting and logging for RTTHall Liu2018-02-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a system setting to store preferred RTT mode for calls. Add logging for RTT in Telecom base classes. Bug: 63934808 Test: manual Change-Id: Ie26fac800931604379bbe7b8abfed7caa8c0236d
* | | Add handover permission, fill in some missing API gaps.Tyler Gunn2018-01-241-0/+9
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding the ACCEPT_HANDOVER runtime permission which an app must have in order to accept handovers (this is per design). Adding missing onHandoverComplete method in the android.telecom.Connection API (per design). Finishing plumbing for android.telecom.Call#onHandoverComplete API. Fix issue where the new handover API methods would never get called; the legacy handover extra was being used in this case when it should not have been. Bug: 65415068 Test: Verified using new CTS tests Change-Id: If1558f6a23911862c02ac5b18fb62d86911ed7e2
* | Add the assisted dialing carrier config.Eric Erfanian2018-01-221-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | This is used to activate the feature and show the settings. Remove @hide from the public APIS. Design doc: go/assisted-dialing-dd-v1 Test: manual Bug: 63934304 Change-Id: I09ea52720bf2439537e2f4ad32afb14f5df25f71
* | Add assisted dialing properties to the framework.Eric Erfanian2017-12-071-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a manual merge of the oc-mr1-dev change I086e761ada9a57dca61c3a412561ee54255d6260 These properties allow the feature to be propogated from the outgoing call broadcast, to the connection, to the call, and finally to the call log as a feature. Test: no existing unit tests found. could use some pointers Bug: 35963245 Change-Id: I84343fb0cda16514c01997fd71d1e819b5b7eebb
* | Un-hide Connection-side RTT APIs for DialerHall Liu2017-12-041-22/+2
| | | | | | | | | | | | Bug: 63934808 Test: builds Change-Id: I59a892fb0e314810e92dd9ad7d0c2f4610055045
* | Merge "[Telecom] Improve hold capability signal"Pengquan Meng2017-11-151-0/+23
|\ \ | |/ |/|
| * [Telecom] Improve hold capability signalPengquan Meng2017-10-201-0/+23
| | | | | | | | | | | | | | | | | | | | Add some method to the ConnectionService in order to notify the connection changed. Test: manually test and unit test Bug: 66949982 Change-Id: I077902474f9af70e00a383aa269e1ae6ff9230a9
| * Merge "Emergency redial implementation"Brad Ebinger2017-08-251-0/+14
| |\
| | * Emergency redial implementationSrikanth Chintala2017-08-241-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define connection event to notify Telecom/InCallUi about change in account handle after redial and extra for emergency phone handle. Test: Unit Tests Bug: 27059146 Change-Id: Ie72ab2901ec05d972204ed11f115a05b79173c1d
| * | Track conference start in system elapsed time.Tyler Gunn2017-08-231-4/+33
| |/ | | | | | | | | | | | | | | | | This is important so that Telecom can track the duration of the call, which is tracked using wall clock time. Test: Manual, unit test Bug: 64068300 Change-Id: If642d282cd8134060acf6ffe8d81215c394d800c
* | Update Telecom APIs to include multi-hfpHall Liu2017-11-091-2/+25
| | | | | | | | | | | | | | | | | | | | | | * Add bluetooth devices to CallAudioState * Add methods for specifying a bluetooth device to InCallService * Add methods for specifying a bluetooth device to Connection (for self-managed connections) Bug: 64767509 Test: unit tests Change-Id: I286b19b423dc2ee417dbc90eda7e8055b2da2444
* | Merge "Emergency redial implementation"Brad Ebinger2017-08-251-0/+14
|\ \ | | | | | | | | | | | | | | | am: b3b09849bc Change-Id: If7fe179da4eb4c639dad1e2957f091bbee9e54f9
| * | Emergency redial implementationSrikanth Chintala2017-08-251-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define connection event to notify Telecom/InCallUi about change in account handle after redial and extra for emergency phone handle. Bug: 27059146 Change-Id: Ie72ab2901ec05d972204ed11f115a05b79173c1d
* | | Merge "Track conference start in system elapsed time."Tyler Gunn2017-08-241-4/+33
|\| | | |/ |/| | | | | | | am: 3b166fba8a Change-Id: I8b78aaa447adcc1bfce0fec8f50857daa37d0575
| * Track conference start in system elapsed time.Tyler Gunn2017-08-221-4/+33
| | | | | | | | | | | | | | | | | | This is important so that Telecom can track the duration of the call, which is tracked using wall clock time. Test: Manual, unit test Bug: 64068300 Change-Id: If642d282cd8134060acf6ffe8d81215c394d800c
* | Merge "Add ability to add existing connection AND set parent at the same ↵Tyler Gunn2017-05-251-0/+20
|\| | | | | | | | | | | | | | | time." into oc-dev am: 95f4f14e0b am: 0aea0d2c53 Change-Id: I76805ba85bfac39cdaa3ddd2b8340423e4c7ffbe
| * Merge "Add ability to add existing connection AND set parent at the same ↵Tyler Gunn2017-05-251-0/+20
| |\ | | | | | | | | | | | | | | | | | | | | | time." into oc-dev am: 95f4f14e0b Change-Id: If762616920b266064cd1ee5520d5778ebb1475a7
| | * Add ability to add existing connection AND set parent at the same time.Tyler Gunn2017-05-241-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful for IMS conferences where we want to add a connection and set it as a child of a conference at the same time. Test: Manual Bug: 37581781 Change-Id: Id09c8296ffe18893c5642d403c6a69ad6c9765e2
| | * Remove default public ctor from RttModifyStatusHall Liu2017-04-241-0/+1
| | | | | | | | | | | | | | | | | | Test: builds Bug: 37515063 Change-Id: I1e573d945b48e28d12621078cc8f37eb076d9ee3
| | * Self Managed CS ImplementationTyler Gunn2017-03-301-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add API guide for developers giving an overview of what they need to implement. - Add @hide setLabel method in PhoneAccount; used when registering a self-managed CS's phone account; we override it with their app label to ensure they don't try to give themselves another name. Test: Unit Bug: 34159263 Merged-In: I0c890dc2feeb3ee438a80ed425db2aaf1f4c1fdd Change-Id: I0c890dc2feeb3ee438a80ed425db2aaf1f4c1fdd
| | * Merge "API review cleanups/changes." am: 9324d6513b am: dd4bc7c69cTyler Gunn2017-03-071-3/+46
| | |\ | | | | | | | | | | | | | | | | | | | | am: c49b011151 Change-Id: Ib3d76474bef8c911b2ec6a61b916e38af0a3b861
| | * | Add further Connection-side APIs for RTT (part 2)Hall Liu2017-03-011-0/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add methods and callbacks to facilitate local and remote RTT initiation and termination in the middle of a call. Adds @hide Connection-side APIs to communicate with the ConnectionService, as well as plumbing for RemoteConnections. Test: manual, through telecom testapps Change-Id: Ia80604b7dff8586ff222dbccdbe55e91aab02178
* | | | Merge "Further handover support changes."Tyler Gunn2017-04-271-0/+18
|\ \ \ \ | |/ / / |/| | |
| * | | Further handover support changes.Tyler Gunn2017-04-261-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add handover extras key used when initiating handover. Add handover complete / fail connection events which are sent to the initiating IncallService when a handover is complete or fails. Adding PhoneAccount extra to indicate that a self-managed CS should have its calls logged to the call log. Test: Manual Bug: 37102939 Change-Id: Icbb6f1addf913de841a9c48089a7d8311668f3bc