summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/CallDiagnosticService.java
AgeCommit message (Collapse)Author
2021-05-21Fix potential exceptions in CallDiagnosticService and missing locks.Tyler Gunn
There is a possibility of a call receiving a details update when it has already been removed from the CallDiagnosticService. Handling this case by just ignoring the details update (since it isn't relevant as the call is now removed). Also noted there were a number of places where access to the shared maps was not synchronized as it should be. Test: Run manual tests and note no more CDS crashes from SCONE app. Fixes: 188939131 Change-Id: Ic1f96fd60a70432bef0daaa2e9729c66401ba4ac
2021-03-19Propagate call quality reports from Telephony to CallDiagnosticService.Tyler Gunn
Complete plumbing for call quality reports to get to the CDS. Test: Manual network testing. Test: Modify CTS tests to cover these cases. Bug: 163085177 Change-Id: I2bb68d29c4ad11cc8738c26cd69404fde4348843
2021-03-16Rename DiagnosticCall to CallDiagnostics.Tyler Gunn
Keep DiagnosticAll in a deprecated form to maintain binary compatibility with ongoing work in other repos. Test: run CTS Test: run unit tests Fixes: 182241145 Change-Id: Ia14113bcce344bb589408b74eaab74d413de9e7e
2021-03-15Merge "Propagate Telephony disconnect cause to Telecom." into sc-devTyler Gunn
2021-03-12API review changes to CallDiagnosticServiceTyler Gunn
1. Remove NETWORK_TYPE and AUDIO_CODEC constants in favor of existing constants in TelephonyManager and Connection. Add API docs explaining the simplifications of these two concepts. 2. Add more documentation on DiagnosticCall#sendDeviceToDeviceMessage to explain the D2D protocol and the bandwidth challenges inherent. 3. Remove DiagnosticCall#getCallDetails. 4. Provide provision for developer-defined Executor in the CallDiagnosticService; added docs there and in DiagnosticCall explaining the threading model used. Test: Ran CTS tests Fixes: 182241145 Change-Id: Icb0d8a05add778a0cfcbe3448063cd9dcee3abc1
2021-03-10Propagate Telephony disconnect cause to Telecom.Tyler Gunn
Propagate telephony disconnect causes and imsreasoninfo to Telecom for propagation to CAllDiagnosticService. Plumb through disconnect message override in CallDiagnosticService. Test: Added new CTS test coverage for these APIs. Test: Manual test with telecom test app; verify the disconnect message is overridden. Bug: 163085177 Change-Id: I0c6938f2d0a46d535ae201364193ef58e07ec488
2021-02-25CallDiagnosticService APITyler Gunn
The CallDiagnosticService API is an OEM-backed API which allows an OEM provided app to monitor the state of ongoing telephony calls on the device and to help the user navigate connectivity or audio issues related to these calls. It also provides a means for the app to send and receive device to device messages between devices during an ongoing call (where supported) in order to facilitate a better calling experience. Test: Added new CTS test suite for API. Test: Manual test of CDS behavior using telecom command line option to override the active CDS to the telecom test app implementation. Bug: 163085177 Change-Id: I1f37408d2aa6c630f0f9e3d6b6eb8a390d804d7e