summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Connection.java
AgeCommit message (Collapse)Author
2020-03-04Merge RP1A.200303.001Steven Laver
Change-Id: Ifabdc5100baf1d050d89b1a5416c02bdfceffe96
2020-03-02Merge RP1A.200221.003Bill Peckham
Conflicts: api/system-current.txt core/jni/AndroidRuntime.cpp core/res/res/values/symbols.xml packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java packages/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java services/core/java/com/android/server/ConnectivityService.java services/core/java/com/android/server/am/ActivityManagerConstants.java services/core/java/com/android/server/connectivity/NetworkAgentInfo.java services/core/java/com/android/server/display/LocalDisplayAdapter.java telecomm/java/android/telecom/Call.java telecomm/java/android/telecom/Connection.java telecomm/java/android/telecom/ConnectionService.java wifi/java/android/net/wifi/SoftApConfiguration.java Change-Id: I2405f392c9e65b868e5901dedaa3ce6c90609cd8
2020-02-25Added missed incoming call SMS supportJack Yu
Provided a way for carrier to notify their users about missed incoming call via special SMS. Bug: 144068181 Test: MissedIncomingCallSmsFilterTest Merged-In: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c Change-Id: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c
2020-02-24Added missed incoming call SMS supportJack Yu
Provided a way for carrier to notify their users about missed incoming call via special SMS. Bug: 144068181 Test: MissedIncomingCallSmsFilterTest Merged-In: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c Change-Id: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c (cherry picked from commit 0630b6c358506da8e21978c6d5bad3389763b72c)
2020-02-19Merge "Make get/setCallerNumberVerificationStatus final."Tyler Gunn
2020-02-18Merge RP1A.200214.001Steven Laver
Change-Id: Id5ee82843b287332c41409e587bbdd33b5872ecd
2020-02-14IMS: Add support for IMS Explicit call transferRavi Paluri
Test: Manual Bug: 62170207 Change-Id: I06a256adb0e1910d40809c91bcdd42c56a142842
2020-02-13Merge RP1A.200204.001Steven Laver
Change-Id: I1e6c199dbee77379f84675965391c839eae04961
2020-02-13Make get/setCallerNumberVerificationStatus final.Tyler Gunn
Make new APIs final. Test: make -j update-api Test: run unit tests Bug: 149316218 Change-Id: Ib3d4ceacff451ac646a504ab02f0242852228a32
2020-02-13Merge changes from topic "add_participant" am: fdfc58fcd9 am: ac4f7edbd3 am: ↵Automerger Merge Worker
0997ab95ae Change-Id: I82f5641c95547646bf41a21c6ee4d4e0c4cc9aef
2020-02-13Merge "API Review cleanups."Tyler Gunn
2020-02-13API Review cleanups.Tyler Gunn
- 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
2020-02-13Merge "API Review cleanups."Tyler Gunn
2020-02-12API Review cleanups.Tyler Gunn
- 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
2020-02-11Mark adhoc conference call APIs as @hide.Tyler Gunn
Test: make -j update-api Test: Run unit tests Bug: 62151032 Change-Id: I8fe9c4d2c9a8861deea3a0def82c432762cd1222
2020-02-11Ims: Add support to add participants to existing callRavi Paluri
Supports initiation of a conference call by directly adding participants to existing call Test: Manual Bug: 62151032 Change-Id: I4e60efafab4761ae65a460fdc6c4cacc3e233220
2020-02-10Hide Adhoc conference call API.Tyler Gunn
Marking the adhoc conference call API as @hide. Test: make -j update-api Bug: 148165780 Change-Id: I447ec317c66f0c1b4e7a828635b5dcf8b144e32a
2020-02-04Merge RP1A.200123.001Steven Laver
Change-Id: I16a4437d9876db7a6a2b07231b4584df4564bee4
2020-01-23Add support for rejecting Telecom call with a specified reason.Tyler Gunn
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
2020-01-22Merge RP1A.200106.001Steven Laver
Change-Id: I321486af27bd4665b73da2c51d88e293b54f3a4c
2020-01-22Merge "Ims: Add support for Adhoc Conference calls"Treehugger Robot
2020-01-22Ims: Add support for Adhoc Conference callsRavi Paluri
Add support for Adhoc Conference calls Test: Manual Bug: 62151032 Change-Id: Id50d235595d2133f867848ffdebdfe11e2f1c896
2020-01-14Use new UnsupportedAppUsage annotation.Artur Satayev
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
2020-01-08Use new UnsupportedAppUsage annotation.Artur Satayev
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: I853372f3c6fef905553bb31be4f1bb48df735f7a
2020-01-06Merge "Cleanup API docs for audio codecs and add intdef."Tyler Gunn
2020-01-03Merge RP1A.191212.001Steven Laver
Change-Id: Ib2e174d6b8488cb1b904c452e712a1fd14326972
2019-12-20Cleanup API docs for audio codecs and add intdef.Tyler Gunn
- 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
2019-12-19Merge "Revert "Use new UnsupportedAppUsage annotation.""Austin Wang
2019-12-19Revert "Use new UnsupportedAppUsage annotation."Austin Wang
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
2019-12-18Merge "Use new UnsupportedAppUsage annotation."satayev
2019-12-18Use new UnsupportedAppUsage annotation.Artur Satayev
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
2019-12-17Merge "User cannot reject a waiting call after a switch call fails"Tyler Gunn
2019-12-05Merge "Add Verstat fields to Telecom call/connection classes."Tyler Gunn
2019-12-04Define EXTRA_AUDIO_CODEC_TYPE in Connectionallenwtsu
Bug: 143576354 Test: By manual Change-Id: Ib8e701632676cfbe9993f1de2b58546f59ba580f
2019-12-02Add Verstat fields to Telecom call/connection classes.Tyler Gunn
Test: Added new CTS tests to verify operation. Bug: 135929421 Change-Id: I42360dad677060e03ecec865f31145b1760cf46a
2019-11-22Merge RP1A.191114.001Steven Laver
Change-Id: I30dd2dce3b0c2fcd635381413a213fe3e97be97b
2019-11-20telephony annotations part 2Chen Xu
adding missing annotations Bug: 140908357 Test: Build Merged-In: I6de632ef7ef01a939971b7d1bacb227ec5ff4048 Change-Id: I6de632ef7ef01a939971b7d1bacb227ec5ff4048 (cherry picked from commit f85cf993d38462a45a7c4c4ab623742a13a7c4e8)
2019-11-20User cannot reject a waiting call after a switch call failsMasaho Nishikawa
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
2019-11-11More telephony updates for mainline.Tyler Gunn
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
2019-11-09Merge RP1A.191024.001Steven Laver
Change-Id: I5cda3bba276e99d948b752be87d4599e9f882e0f
2019-11-08More telephony updates for mainline.Tyler Gunn
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
2019-10-31Merge "Make Connection.Listener methods package private." am: 9c3abc4692 am: ↵Tyler Gunn
48c29257d3 am: 8d6e633a6e Change-Id: Ic37e0a62448769ffe5184a82fdd8bbd63b74b30c
2019-10-25Make Connection.Listener methods package private.Tyler Gunn
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
2019-10-17Telecom API updates for mainline support.Tyler Gunn
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
2019-10-17Telecom API updates for mainline support.Tyler Gunn
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
2019-10-02telephony annotations part 2Chen Xu
adding missing annotations Bug: 140908357 Test: Build Change-Id: I6de632ef7ef01a939971b7d1bacb227ec5ff4048
2019-06-27Merge QP1A.190627.001Scott Lobdell
Change-Id: I203c1936d0bae0022333606d1df8b1aee7038b7f
2019-06-25Support indicating call direction on existing connections.Tyler Gunn
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
2019-06-13Merge QP1A.190609.001Scott Lobdell
Bug: 135212124 Change-Id: I8cee91c5c647c253628d65da22bfb82469df09c4
2019-05-31Enhancements to conference for non-conference host scenarios.Tyler Gunn
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