summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Connection.java
Commit message (Collapse)AuthorAgeFilesLines
...
| * Make get/setCallerNumberVerificationStatus final.Tyler Gunn2020-02-131-2/+2
| | | | | | | | | | | | | | | | | | Make new APIs final. Test: make -j update-api Test: run unit tests Bug: 149316218 Change-Id: Ib3d4ceacff451ac646a504ab02f0242852228a32
* | IMS: Add support for IMS Explicit call transferRavi Paluri2020-02-141-1/+45
| | | | | | | | | | | | Test: Manual Bug: 62170207 Change-Id: I06a256adb0e1910d40809c91bcdd42c56a142842
* | Merge "API Review cleanups."Tyler Gunn2020-02-131-7/+29
|\ \
| * | API Review cleanups.Tyler Gunn2020-02-131-7/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New @SystemApis on Conference and PhoneAccount were missing the required permissions annotations. - Rename PROPERTY_ASSISTED_DIALING_USED to PROPERTY_ASSISTED_DIALING - Standardize get/setConnectionStartElapsedRealtimeMillis method naming across Connection and Conference classes. - Clarify Conference#sendConferenceEvent API documentation to match the docs present for similar method in Connection; include some examples of valid event/extras combinations. - Update TelecomManager#getDefaultdialerPackage to use UserHandle instead of userId. - Move Conference#getConnectionStartElapsedRealtimeMillis to public API since the setter is already part of the public API. Test: Run Telecom and Telephony CTS tests. Test: Run Telephony unit tests. Test: Perform manual single-party-conference regression test to confirm that conference behavior does not regress. Bug: 147301297 Bug: 148286830 Bug: 148284863 Bug: 148284843 Bug: 148287068 Bug: 148285484 Bug: 148285560 Change-Id: I1f446d81859fa109d74af3661a42a0bd224de5aa Merged-In: I1f446d81859fa109d74af3661a42a0bd224de5aa
* | | Mark adhoc conference call APIs as @hide.Tyler Gunn2020-02-111-2/+4
| | | | | | | | | | | | | | | | | | | | | Test: make -j update-api Test: Run unit tests Bug: 62151032 Change-Id: I8fe9c4d2c9a8861deea3a0def82c432762cd1222
* | | Ims: Add support to add participants to existing callRavi Paluri2020-02-111-2/+16
| |/ |/| | | | | | | | | | | | | | | Supports initiation of a conference call by directly adding participants to existing call Test: Manual Bug: 62151032 Change-Id: I4e60efafab4761ae65a460fdc6c4cacc3e233220
* | Hide Adhoc conference call API.Tyler Gunn2020-02-101-1/+1
|/ | | | | | | | Marking the adhoc conference call API as @hide. Test: make -j update-api Bug: 148165780 Change-Id: I447ec317c66f0c1b4e7a828635b5dcf8b144e32a
* Add support for rejecting Telecom call with a specified reason.Tyler Gunn2020-01-231-0/+11
| | | | | | | | | | | | | | | | | | | | Adding a new Call API which supports passing a user-specified call rejection reason down to the lower layers for reporting to the network. Part of the VERSTAT spec involves support for this type of signaling, so it makes sense to also support it here as well. There are two potential types of reject reason: declined - user declined the call because they want it to go to voicemail or don't want to talk to the caller right now. unwanted - this is a nuisance call and the user never wanted to receive it. Bug: 135929421 Test: Added new CTS test to validate API pathways. Test: Ran existing telecom and telephony unit tests. Test: Modified test dialer app to use the new reject API and verified that the reject reason signals down to the modem and translates to the correct reject cause. Change-Id: I6f25fafa2b2620e2839e5d3a9fb986f1130fa165
* Merge "Ims: Add support for Adhoc Conference calls"Treehugger Robot2020-01-221-1/+14
|\
| * Ims: Add support for Adhoc Conference callsRavi Paluri2020-01-221-1/+14
| | | | | | | | | | | | | | | | Add support for Adhoc Conference calls Test: Manual Bug: 62151032 Change-Id: Id50d235595d2133f867848ffdebdfe11e2f1c896
* | Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-141-1/+1
| | | | | | | | | | | | | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv \ git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import' Merged-In: I853372f3c6fef905553bb31be4f1bb48df735f7a Change-Id: I853372f3c6fef905553bb31be4f1bb48df735f7a
* | Merge "Cleanup API docs for audio codecs and add intdef."Tyler Gunn2020-01-061-25/+90
|\ \ | |/ |/|
| * Cleanup API docs for audio codecs and add intdef.Tyler Gunn2019-12-201-25/+90
| | | | | | | | | | | | | | | | | | | | | | | | - Cleanup the API docs for the audio codec constants. - Add an IntDef for the constants - Refer to IntDef in the EXTRA_AUDIO_CODEC definition. - Cleanup API docs for EXTRA_AUDIO_CODEC to make it more clear that the codecs mentioned are not the only ones supported. Fixes: 146563762 Test: Compile/make update-api Change-Id: If837c640033c76f32dfa25dcf9c7d1d6cb344d7b
* | Merge "Revert "Use new UnsupportedAppUsage annotation.""Austin Wang2019-12-191-1/+1
|\ \ | |/ |/|
| * Revert "Use new UnsupportedAppUsage annotation."Austin Wang2019-12-191-1/+1
| | | | | | | | | | | | | | | | This reverts commit a5264903e22bc741add895133474ea13a370de4c. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=sdk_phone_armv7-sdk&lkgb=6083299&lkbb=6085371&fkbb=6083313, bug b/146533269 Change-Id: Ie5b031d7b277cf0e09b0a9776b26bf74f5f69e70
* | Merge "Use new UnsupportedAppUsage annotation."satayev2019-12-181-1/+1
|\|
| * Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | | | | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv \ git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import' Change-Id: I087bb1cecbe59f1cf0c2e770c735d7a433722c6f
* | Merge "User cannot reject a waiting call after a switch call fails"Tyler Gunn2019-12-171-0/+9
|\ \ | |/ |/|
| * User cannot reject a waiting call after a switch call failsMasaho Nishikawa2019-11-201-0/+9
| | | | | | | | | | | | | | | | | | | | Add new connection event to indicate switch failure. Test: Manual - Verify that incoming call can be rejected after switch call is failed. Bug: 143918738 Change-Id: Ib38ceb3cb72ce946c071a8ec9748a1c81ca58808
* | Merge "Add Verstat fields to Telecom call/connection classes."Tyler Gunn2019-12-051-0/+57
|\ \
| * | Add Verstat fields to Telecom call/connection classes.Tyler Gunn2019-12-021-0/+57
| | | | | | | | | | | | | | | | | | Test: Added new CTS tests to verify operation. Bug: 135929421 Change-Id: I42360dad677060e03ecec865f31145b1760cf46a
* | | Define EXTRA_AUDIO_CODEC_TYPE in Connectionallenwtsu2019-12-041-3/+54
|/ / | | | | | | | | | | Bug: 143576354 Test: By manual Change-Id: Ib8e701632676cfbe9993f1de2b58546f59ba580f
* / telephony annotations part 2Chen Xu2019-11-201-0/+1
|/ | | | | | | | | | | adding missing annotations Bug: 140908357 Test: Build Merged-In: I6de632ef7ef01a939971b7d1bacb227ec5ff4048 Change-Id: I6de632ef7ef01a939971b7d1bacb227ec5ff4048 (cherry picked from commit f85cf993d38462a45a7c4c4ab623742a13a7c4e8)
* More telephony updates for mainline.Tyler Gunn2019-11-081-50/+22
| | | | | | | | | | | | | | | Add new TelecomManager#getDefaultDialerPackage which is multiuse aware; this is used when showing the voicemail notification. Remove some @hide methods from Conference; push these inline. Move ConferenceParticipantConnection into frameworks/opt/net/ims since it is just an IMS implementation detail. Bug: 141576016 Test: Manual smoke test. Test: Run unit tests. Test: Run CTS tests. Change-Id: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9 Merged-In: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9
* Make Connection.Listener methods package private.Tyler Gunn2019-10-251-3/+3
| | | | | | | | | | | To prevent using these outside of the API surface, making package private so we don't get tempted to use in the framework. Bug: 141576016 Test: Manual smoke test. Test: Run unit tests. Test: Run CTS tests. Change-Id: Ife3a82371b018b74efbe10e11015526d7aaeb7a9
* Telecom API updates for mainline support.Tyler Gunn2019-10-171-191/+143
| | | | | | | | | | | | | | Moving some Telecom APIs into public since they are harmless to expose. Moving some other Telecom APIs into the System API space since they're API details specific to the TelephonyConnectionService so don't need to be exposed in the public API. Bug: 141576016 Test: Manual smoke test. Test: Run unit tests. Test: Run CTS tests. Change-Id: Iaf75b9d671712d791f501c11536e73436908f7de Merged-In: Iaf75b9d671712d791f501c11536e73436908f7de
* Support indicating call direction on existing connections.Tyler Gunn2019-06-251-0/+22
| | | | | | | | | | | | | | | | | This is important for ensuring the original call direction for existing connections added from Conference Event Packages matches the call direction of the original calls merged into the conference. Also moved a utility function into ConferenceParticipant from ConferenceParticipantConnection to make it generically usable inside Telephony. Test: Run all unit tests. Test: Manual testing using VoLTE conference calls with mix of MO and MT calls; verify call logging is appropriate. Bug: 134471046 Change-Id: Iab09397b811782ab0f876aac02070e3447d81f09
* Enhancements to conference for non-conference host scenarios.Tyler Gunn2019-05-311-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a device A creates a conference call containing device B and C, both B and C can receive IMS signaling to indicate that they are in a conference call. This occurs on most domestic carriers; the Telephony framework uses the "multiparty" indicator on the IMS call to switch the call to a conference call. We made some changes to how conference calls are logged in Q which improves the accuracy of the call durations. We used to log calls as they're merged into a conference. In the case of a participant in a remotely hosted conference call, we'd log the call as soon as they are remotely added to the conference. This is unfortunate as the call durations are grossly under-reported. The conference call logging changes now assume we'll log the conference event package children in the conference instead of the participants which merge into the conference itself. On domestic carriers, since the call on B (or C) becomes a conference, we would then no longer log the call. This is FURTHER complicated because on some carriers, B and C will ALSO receive a conference event package from the network showing all the participants in the conference. So if B hangs up on the conference, they will have entries in their call log for A and C, which is really strange because a call to C was never originated on their device. In Telecom we need to ensure we do not log remotely hosted conference participants, and we need to ensure that we DO log a remotely hosted conference as if its just a single party call. To accomplish this we need: 1. the address and name display information associated with the call from A-B / A-C prior to the call turning into a remotely hosted conference. We need this to log to the call log 2. the remotely hosted conference and participants need to be marked in a manner that Telecom can identify them. Test: Manual test. Test: Add unit test to cover this logging scenario. Bug: 132325382 Change-Id: I65e713f68d1695a48d96dacbf7faa4476cd8d815
* Merge "Fix issues associated with hold failure" am: df6e5604f3 am: 9fefce6df5Hall Liu2019-03-131-0/+9
|\ | | | | | | | | | | am: c3557eb639 Change-Id: I82de9a1462a18707a6a9410e78f72b6908d6ee7a
| * Fix issues associated with hold failureHall Liu2019-03-111-0/+9
| | | | | | | | | | | | | | | | Add new connection event to indicate hold failure Fixes: 128275255 Test: manual Change-Id: I2678cda12d7703eba37d3feca3a8d98b21c050b1
* | API Review: SIP INVITE fields on a MT callShi Lu2019-02-131-1/+1
|/ | | | | Bug: 123927153 Change-Id: I163aaa2b0cc2cd9dd36d1c63cd54bfca43a0d932
* Add connect time to conference participant.Youming Ye2019-02-041-4/+4
| | | | | | Bug: 78176188 Test: Manual Change-Id: Ifb7f061ddcc69356a21d08c9c446edeb38a6674c
* IMS: Propagate media profile changed messageWileen Chiu2019-01-111-0/+15
| | | | | | | | | | | | | | | | | | - RTT Voice information will be passed to the UI via media profile changed message - The RTT voice information - SPEECH/SILENCE, will be conveyed via the ImsStreamMediaProfile.hasRttAudioSpeech - A connection event will be sent from frameworks to the UI - EVENT_RTT_AUDIO_INDICATION_CHANGED - Add listeners, connection event and extras to propagate media profile changed to the UI Test: Manual Bug: 110976450 Change-Id: I34d2dd612915d65f5047986dabece968c78f0abe
* Propagate some SIP INVITE header fields on a MT callshilu2019-01-101-0/+5
| | | | | | | | These fields can be used for Spoof call detection in the Dialer Bug: 115537553 Test: compile and test on device Change-Id: Ib92043536e0fc43e40efc53189a28c4e58064ddc
* Unsupported app usage API cleanupTyler Gunn2018-11-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL includes a number of cleanups related to unsupported app usage tags. TelecomManager#EXTRA_IS_HANDOVER - public APIS exist for this usecase; updated docs and limit to P with maxtarget sdk. TelecomManager#getSimCallManager(int userId) - marked as max target P; there is a public API available which can be used to accomplish the same thing. Nobody should be calling this. TelecomManager#getCallCapablePhoneAccounts(boolean) - marked as max target P; callers should use the version without the boolean parameter. Deprecate CAPABILITY_CAN_UPGRADE_TO_VIDEO; its redundant. New public API: Promote TelecomManager#getSystemDialerPackage() to public API; its a benign API and doesn't expose anything which can't be inferred other ways. New system APIs: TelecomManager#getCurrentTtyMode() - used by settings app. TelecomManager#setDefaultDialer() - used by useful for settings app. TelecomManager#TTY_MODE* constants - used by getCurrentTtyMode API. Test: Compile / run unit tests Bug: 119305590 Change-Id: I67d6213e6c689fb545fc9ceae4a359831f97c32f
* Merge "Mark event-based handover constants as deprecated."Tyler Gunn2018-09-261-0/+4
|\ | | | | | | | | | | am: 5604cc2516 Change-Id: I25b81274e0825e94133d21b976c8a20c4faff83d
| * Merge "Mark event-based handover constants as deprecated."Tyler Gunn2018-09-261-0/+4
| |\
| | * Mark event-based handover constants as deprecated.Tyler Gunn2018-09-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | With the introduction of supported APIs in P, these event-based prototype constants are no longer needed. Test: Manual testing with test app Bug: 110846969 Change-Id: Ic453923f57eb30d9ae7e1ee3c8ff07420e79f597
* | | Merge "Add support for network identified emergency calls."Tyler Gunn2018-09-241-0/+11
|\| | | | | | | | | | | | | | | | | am: 108349f8d6 Change-Id: I21ffa931cba06086ca8fd970a0172c282af03b3a
| * | Merge "Add support for network identified emergency calls."Tyler Gunn2018-09-241-0/+11
| |\ \
| | * | Add support for network identified emergency calls.Tyler Gunn2018-09-211-0/+11
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the IMS call profile to indicate that a call is an emergency call. Add supporting connection and call properties so that this can be propagated to Telecom and ultimately the Dialer app. Add System API to determine if the device is in a network IDed or dialed emergency call (used in Telephony). Test: Manual test using test intents and ecclist property. Test: Added new telecom unit tests. Bug: 77565333 Change-Id: I769e7b5000b10662c08fe53c91ef99edc685d2b1
* | | Merge "Propagates voice call radio technology to connection"Hall Liu2018-09-201-0/+40
|\| | | | | | | | | | | | | | | | | am: 5405d09204 Change-Id: I244839f759f40066565111dae91bbe07692e3ebf
| * | Propagates voice call radio technology to connectionWei Huang2018-09-191-0/+40
| |/ | | | | | | | | | | | | | | | | | | This patch mainly takes below changes: 1) Add new extra to indicates the call network technology. 2) Provides basic function to set/get call radio technology. Bug: 67856372 Test: Manual Change-Id: I1a12382fdb589ce823fe7af025832db4cdc152c2
* | Merge "Add @UnsupportedAppUsage annotations" am: 44091cdb47Mathew Inwood2018-08-061-0/+2
|\| | | | | | | | | | | am: ec3f7c80ce Change-Id: I50594b690a776145e4b0278e1e0685c5ebc53832
| * Merge "Add @UnsupportedAppUsage annotations"Mathew Inwood2018-08-061-0/+2
| |\ | | | | | | | | | | | | | | | am: 44091cdb47 Change-Id: I1dfae6f3d8ba8d5ff63f378c71f9670199a3adc3
| | * Merge "Add @UnsupportedAppUsage annotations"Treehugger Robot2018-08-061-0/+2
| | |\
| | | * Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.telecom.Logging android.telecom This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I540cb034b933c0d1417a138747ed347fcf0748d7 Merged-In: I04a94d7555be608dc3958787554a3d33b72158ec
* | | | Merge "Telecom: Reset the duration after the CDMA call is accepted" am: ↵Hall Liu2018-08-011-0/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2cbf44dc2f am: e784d5e5ca Change-Id: I3ce3d19c460f3e95bdbdd4c983d53657c06443d3
| * | | Merge "Telecom: Reset the duration after the CDMA call is accepted"Hall Liu2018-08-011-0/+11
| |\| | | | | | | | | | | | | | | | | | | | | | am: 2cbf44dc2f Change-Id: I823efd5765b77fcf55f4c38a6091d980530abae8
| | * | Telecom: Reset the duration after the CDMA call is acceptedMengjun Leng2018-07-311-0/+11
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | In android original design, the duration of CDMA MO call is started from the dial command sent, so it is not the real duration of the active time. In this patch, a new message is registered to listen the event of the call accepted, and then reset the duration when the event happens. Change-Id: Icc447012030ae243f200ec2c83b7d5210af9b31c