summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merge "API Review cleanups."Tyler Gunn2020-02-131-5/+6
| |\
| | * API Review cleanups.Tyler Gunn2020-02-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | Fix broken @see tags in public documentation.Andrew Sapperstein2020-05-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These were previously being suppressed by doclava but with this change, all failures are fixed and the suppression logic has been removed. To fix the issues, there were a few possible changes made: - broken reference to a public API (such as incorrect parameters): fixed - unnecessary @link inside an @see tag: fixed - @see referring to an @hide or @SystemApi: reference removed - broken references to inner class constructors - worked around by fully qualifying the constructor Bug: 6963924 Test: make doc-comment-check-docs Exempt-From-Owner-Approval: cherry-picked from master Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85 Merged-In: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85 (cherry picked from commit e0624c7a40baae30cf77e948db5258b78856d0e5)
* | | Add @TestApi to createLaunchEmergencyDialerIntentFan Zhang2020-04-281-0/+1
| | | | | | | | | | | | | | | | | | Test: build Bug: 154867896 Change-Id: Id2eb94b233c6c00a81c51d17c5414b3cce5ebdf5
* | | Fix createLaunchEmergencyDialerIntent API behavior when Telecom unavailable.Tyler Gunn2020-04-231-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The API contract for createLaunchEmergencyDialerIntent indicates that the return value is @NonNull, however the code clearly can return a null value if either: 1. Telecom is unavailable. 2. There is a remote exception. Since the API just returns a new ACTION_EMERGENCY_DIAL intent with the package name of the emergency dialer (from Telecom string resources), we can provide a reasonable fallback behavior by just returning a new ACTION_EMERGENCY_DIAL intent with no targeted package. The system will still launch the emergency dialer in this case, but if there is a scenario where multiple emergency dialers are installed on a device, the AOSP one may get launched instead. This is, however, better than there being NO emergency dialer launched. Test: Comment out call to Telecom service and verify the AOSP emergency dialer still launches. Fixes: 152187752 Change-Id: I06f8a5bebace5b22822f7bb714e14915126b904f
* | | Merge "Update permission requirements for TelecomManager#getLine1Number" ↵Michael Groover2020-04-091-2/+12
|\ \ \ | | | | | | | | | | | | into rvc-dev
| * | | Update permission requirements for TelecomManager#getLine1NumberMichael Groover2020-03-251-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To move READ_PHONE_STATE from a runtime permission to a normal permission all sensitive APIs guarded by READ_PHONE_STATE must be moved to another permission. This commit updates the TelecomManager getLine1Number docs to reflect the new permission requirements; these requirements are the same as TelephonyManager getLine1Number. Bug: 136160623 Test: atest TelecomUnitTests:TelecomServiceImplTest Change-Id: Ibb8e5d1cf16a05e95c2cc2fb68af35dc4bdb0f02
* | | | Document that some Telecom broadcast and extra keys are dead-ends.Tyler Gunn2020-03-271-7/+11
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Too late to @deprecate, but we can still at least indicate that the broadcasts are dead-ends and help the developer know the right way to go. Test: make -j offline-sdk-docs; confirm docs look good. Fixes: 148268693 Change-Id: I88b03a62c812232cf0d5bbeb693cdaf3c2eed3e1
* | | Hide CALL_SOURCE constants in TelecomManagerHall Liu2020-03-201-3/+0
| | | | | | | | | | | | | | | | | | | | | Fixes: 151184696 Test: build Change-Id: Ie1886d7cd1bac22da41c942b6507b24bc4238c10 (cherry picked from commit 1b78c5327d892e4519791651ade3909934b0719b)
* | | Rename featureId -> attributionTagPhilip P. Moltmann2020-03-121-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the core functionality this changes everything including aidl's and field names: - Context - ContentProvider - AppOps* - Package parsing For the rest, this is a shallow change to only change to the changed APIs. This keeps the change small-ish Exempt-From-Owner-Approval: Rename Fixes: 148792795 Test: TH Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
* | | Hide APIs introduced in earlier commitHall Liu2020-03-101-7/+1
| | | | | | | | | | | | | | | | | | Fixes: 151184696 Test: NA Change-Id: I5ad3229158a140c4d27cb3bd9b608e7dc165a044
* | | Added missed incoming call SMS supportJack Yu2020-02-241-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | Merge "API Review cleanups."Tyler Gunn2020-02-131-5/+6
|\ \ \
| * | | API Review cleanups.Tyler Gunn2020-02-121-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | | Merge "Hide Adhoc conference call API." am: 32c29d1ee6 am: 4ccffaef5f am: ↵Automerger Merge Worker2020-02-111-1/+2
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | 042f26589d Change-Id: Iaadaeb323f2299a0c544a282727e981353a7c9ab
| * / Hide Adhoc conference call API.Tyler Gunn2020-02-101-1/+2
| |/ | | | | | | | | | | | | | | Marking the adhoc conference call API as @hide. Test: make -j update-api Bug: 148165780 Change-Id: I447ec317c66f0c1b4e7a828635b5dcf8b144e32a
* | Merge "Expose various Telecom constants"Hall Liu2020-01-241-14/+55
|\ \
| * | Expose various Telecom constantsHall Liu2020-01-241-14/+55
| | | | | | | | | | | | | | | | | | | | | | | | Expose constants in Telecom that are being used in Telephony. Bug: 146834818 Test: NA Change-Id: Ib5cf76183edced3eeffbca87a7c980a85288f937
* | | Merge "Ims: Add support for Adhoc Conference calls" am: 0ab00030a2 am: ↵Automerger Merge Worker2020-01-221-0/+75
|\ \ \ | |/ / |/| / | |/ | | | | cac198c770 am: a6d033fa37 Change-Id: I866deb01383fdc648822ef60304f4ca54c36b699
| * Merge "Ims: Add support for Adhoc Conference calls"Treehugger Robot2020-01-221-0/+75
| |\
| | * Ims: Add support for Adhoc Conference callsRavi Paluri2020-01-221-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | Add support for Adhoc Conference calls Test: Manual Bug: 62151032 Change-Id: Id50d235595d2133f867848ffdebdfe11e2f1c896
* | | Merge changes from topic "phone-constants-telecom" am: d982f6c3bb am: ↵Automerger Merge Worker2020-01-171-0/+11
|\| | | | | | | | | | | | | | | | | f4fafdbd69 am: ce94e0b7da Change-Id: Id00cd3fe7b7f63115de1332892fc5837ee990ca0
| * | Move PhoneConstants constants to TelecomManagerHall Liu2020-01-161-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the video-call related constants to TelecomManager since Telecom is the only consumer. Bug: 147845600 Bug: 146834818 Test: manually make a video call and verify audio route Change-Id: I32ddaf6a237460bcf9431fee8a3f31c88d3e9361
| * | 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 "Introduce telecom api to launch emeregency dialer."Fan Zhang2019-12-191-0/+23
| |\
| | * Introduce telecom api to launch emeregency dialer.Fan Zhang2019-12-191-0/+23
| | | | | | | | | | | | | | | | | | | | | Test: manual Bug: 136194151 Change-Id: I5c9732062e5123539343843fb9a9ae3ca7111890 Merged-In: I5c9732062e5123539343843fb9a9ae3ca7111890
* | | Send featureId to Telecomm noteOpsPhilip P. Moltmann2020-01-091-14/+22
| | | | | | | | | | | | | | | | | | Bug: 136595429 Test: built Change-Id: I23a12cd4453096e39dfd22ba556e3f3bc9d19319
* | | Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-081-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: I853372f3c6fef905553bb31be4f1bb48df735f7a
* | | Merge "Revert "Use new UnsupportedAppUsage annotation."" am: edf7ce4f38 am: ↵Automerger Merge Worker2019-12-191-1/+1
|\| | | | | | | | | | | | | | | | | 019286764f am: f6253ef435 Change-Id: Id33f64eb9c8aa7d68cc52f7359b4f0a3d2675d8a
| * | 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 "Add post-call screen API." am: f5b6267d93 am: 1ad17b6ded am: 7e749b24bfAutomerger Merge Worker2019-12-181-0/+97
|\| | | | | | | | | | | | | | | Change-Id: I6ecd2f7626c2f4686a7e02347a5ffacc6aaf5817
| * | | Add post-call screen API.Grace Jia2019-12-181-0/+97
| |/ / | | | | | | | | | | | | | | | Test: manual Bug: 135929421 Change-Id: I63043646bb96b8543849c617ce1ccd41a558f24d
* | | Merge "Use new UnsupportedAppUsage annotation." am: 1385dca8f6 am: ↵Automerger Merge Worker2019-12-181-1/+1
|\| | | | | | | | | | | | | | | | | 068a9faf3d am: c7f44bacbe Change-Id: I30839db2fe99ba4670ec1b39d5e64540fdd15f69
| * | 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 "Expose new Telecom APIs for use by Telephony" am: fd191d895e am: ↵Hall Liu2019-12-021-3/+7
|\| | | | | | | | | | | | | | | 5defb332c9 am: 0c6a39b078 Change-Id: I187b58a7b9fd3234ba9cd367498723d0fcf06866
| * Expose new Telecom APIs for use by TelephonyHall Liu2019-11-161-3/+8
| | | | | | | | | | | | | | | | | | Expose TelecomManager#getCallCapablePhoneAccounts(boolean) and ConnectionRequest#getTelecomCallId Bug: 141576153 Test: CTS Change-Id: Ie0214fc93682229a3e5781f62743f00f68472702
| * More telephony updates for mainline.Tyler Gunn2019-11-081-7/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * new telephony annotation classChen Xu2019-11-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a preparatory work for mainline. since Intdef is hidden, so we have to move some annotations (applied in SDK/system API) to a separate annotation class and having other module statically link to it. TODO: include telephony annotation in framework-non-updatable-sources Bug: 140908357 Test: Build Change-Id: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1 (cherry picked from commit c9d4ee112e5441ae01502d597f6661f0feecc363) Merged-in: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1 (cherry picked from commit 4712711d3d91621083bf92f5a1647b92c20a8b81)
* | More telephony updates for mainline.Tyler Gunn2019-11-111-7/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Introduce telecom api to launch emeregency dialer.Fan Zhang2019-10-181-0/+24
| | | | | | | | | | | | Test: manual Bug: 136194151 Change-Id: I5c9732062e5123539343843fb9a9ae3ca7111890
* | Merge "Add Telecom command for setting connectionservice filter" am: ↵Brad Ebinger2019-10-021-2/+3
|\| | | | | | | | | | | | | | | 25f4dca660 am: 05e03e8c0c am: 4d4dc1165a am: 7acb9ff577 Change-Id: I2b4aa863848da2e0249c71577c55ecb0918a5ed0
| * Add Telecom command for setting connectionservice filterBrad Ebinger2019-09-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For testing we need the emergency call to go through the CTS ConnectionService. This is achieved by passing in a package name filter for testing, which restricts which ConnectionServices are available for emergency calling. For safety this filter will be bypassed if the user calls an actual emergency number (instead of a test number). Bug: 138741228 Test: atest CtsTelecomTestCases Change-Id: I656533e4a36a7bba48625bf6f763731991695aed
* | new telephony annotation classChen Xu2019-09-301-1/+2
|/ | | | | | | | | | | | This is a preparatory work for mainline. since Intdef is hidden, so we have to move some annotations (applied in SDK/system API) to a separate annotation class and having other module statically link to it. TODO: include telephony annotation in framework-non-updatable-sources Bug: 140908357 Test: Build Change-Id: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
* Add CAPABILITY_EMERGENCY_PREFERRED in PhoneAccountBrad Ebinger2019-05-221-0/+7
| | | | | | | | | | | | Allow Telephony to mark a SIM PhoneAccount as emergency preferred, meaning that Telecom will override a user's PhoneAccount preference for emergency calls if the PhoneAccount has the CAPABILITY_EMERGENCY_PREFERRED capability. Bug: 131203278 Test: Manual testing, Telecom/Telephony unit testing Change-Id: I88b8bbfa444f5445b2f0d6a1542c6406a19b240f
* Merge "Revert "Revert "Remove deprecated System APIs added in Q.""" into qt-devIan Pedowitz2019-05-151-0/+1
|\
| * Revert "Revert "Remove deprecated System APIs added in Q.""Suprabh Shukla2019-05-131-0/+1
| | | | | | | | | | | | | | This reverts commit 79a19effee0de8c6363815893223d58ee830bbd0. Bug: 129975435 Change-Id: I113c87f8c0b7ab225e4b99ef2462ae12e199b816
* | Update API docs for TelecomManager#endCall.Tyler Gunn2019-05-141-2/+3
|/ | | | | | | | | Make it clear that ending an emergency call is not possible with this method. Test: Compile; this is a docs change. Bug: 132438333 Change-Id: I736b90e31723ee2055cedf16142c4d0f494bf49b
* Merge changes from topics "role-dialer-dialog", "role-sms-dialog" into qt-devTreeHugger Robot2019-05-111-0/+4
|\ | | | | | | | | | | | | * changes: Deprecate intent action to the old changing default dialer/SMS dialogs. Remove TelecomManager.ACTION_CHANGE_DEFAULT_DIALER for apps targeting Q. Remove Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT for apps targeting Q.
| * Deprecate intent action to the old changing default dialer/SMS dialogs.Hai Zhang2019-05-101-0/+4
| | | | | | | | | | | | | | Bug: 124452117 Bug: 131204827 Test: presubmit Change-Id: Iee636cf2dbcf4bdda5fc487d6883591e9463b0af