summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
AgeCommit message (Collapse)Author
2020-04-27Merge RP1A.200426.001Steven Laver
Change-Id: Iaefb5d5f0b9102034030bad24edb1874db403b21
2020-04-23Fix createLaunchEmergencyDialerIntent API behavior when Telecom unavailable.Tyler Gunn
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
2020-04-14Merge RP1A.200414.001Steven Laver
Change-Id: Ia2e6e04c82ae81d4ff0c6833b34f6f4a624879dd
2020-04-09Merge "Update permission requirements for TelecomManager#getLine1Number" ↵Michael Groover
into rvc-dev
2020-04-08Document that some Telecom broadcast and extra keys are dead-ends.Tyler Gunn
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. Bug: 148268693 Fixes: 152915447 Change-Id: I88b03a62c812232cf0d5bbeb693cdaf3c2eed3e1
2020-04-07Merge RP1A.200401.001Steven Laver
Change-Id: I4050f39c7971bf1750afb1c8bc139f5fc41020e3
2020-03-30Merge RP1A.200326.001Steven Laver
Change-Id: Ida56d101b2c8fed3c07c8a3bad8d04f02f6b91e5
2020-03-27Document that some Telecom broadcast and extra keys are dead-ends.Tyler Gunn
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
2020-03-25Update permission requirements for TelecomManager#getLine1NumberMichael Groover
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
2020-03-24Expose various Telecom constantsHall Liu
Expose constants in Telecom that are being used in Telephony. Note -- nothing is exposed here -- it's a modified cherry pick from internal where all the APIs have been rehidden. Bug: 146834818 Test: NA Change-Id: Ib5cf76183edced3eeffbca87a7c980a85288f937 Merged-In: Ib5cf76183edced3eeffbca87a7c980a85288f937
2020-03-20Hide CALL_SOURCE constants in TelecomManagerHall Liu
Fixes: 151184696 Test: build Change-Id: Ie1886d7cd1bac22da41c942b6507b24bc4238c10 (cherry picked from commit 1b78c5327d892e4519791651ade3909934b0719b)
2020-03-19Merge RP1A.200318.001Steven Laver
Change-Id: I9ac0911d2ed21f7d7f028d5274bd40578935c5e0
2020-03-16Merge RP1A.200313.001Steven Laver
Change-Id: I9365e4e0c5c3871444113ee9fb604d9cba9d62ce
2020-03-12Rename featureId -> attributionTagPhilip P. Moltmann
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
2020-03-10Hide APIs introduced in earlier commitHall Liu
Fixes: 151184696 Test: NA Change-Id: I5ad3229158a140c4d27cb3bd9b608e7dc165a044
2020-03-04Merge RP1A.200303.001Steven Laver
Change-Id: Ifabdc5100baf1d050d89b1a5416c02bdfceffe96
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-18Merge RP1A.200214.001Steven Laver
Change-Id: Id5ee82843b287332c41409e587bbdd33b5872ecd
2020-02-13Merge RP1A.200204.001Steven Laver
Change-Id: I1e6c199dbee77379f84675965391c839eae04961
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-11Merge "Hide Adhoc conference call API." am: 32c29d1ee6 am: 4ccffaef5f am: ↵Automerger Merge Worker
042f26589d Change-Id: Iaadaeb323f2299a0c544a282727e981353a7c9ab
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-24Merge "Expose various Telecom constants"Hall Liu
2020-01-24Expose various Telecom constantsHall Liu
Expose constants in Telecom that are being used in Telephony. Bug: 146834818 Test: NA Change-Id: Ib5cf76183edced3eeffbca87a7c980a85288f937
2020-01-22Merge RP1A.200106.001Steven Laver
Change-Id: I321486af27bd4665b73da2c51d88e293b54f3a4c
2020-01-22Merge "Ims: Add support for Adhoc Conference calls" am: 0ab00030a2 am: ↵Automerger Merge Worker
cac198c770 am: a6d033fa37 Change-Id: I866deb01383fdc648822ef60304f4ca54c36b699
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-17Merge changes from topic "phone-constants-telecom" am: d982f6c3bb am: ↵Automerger Merge Worker
f4fafdbd69 am: ce94e0b7da Change-Id: Id00cd3fe7b7f63115de1332892fc5837ee990ca0
2020-01-16Move PhoneConstants constants to TelecomManagerHall Liu
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
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-09Send featureId to Telecomm noteOpsPhilip P. Moltmann
Bug: 136595429 Test: built Change-Id: I23a12cd4453096e39dfd22ba556e3f3bc9d19319
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
2019-12-19Merge "Introduce telecom api to launch emeregency dialer."Fan Zhang
2019-12-19Introduce telecom api to launch emeregency dialer.Fan Zhang
Test: manual Bug: 136194151 Change-Id: I5c9732062e5123539343843fb9a9ae3ca7111890 Merged-In: I5c9732062e5123539343843fb9a9ae3ca7111890
2019-12-19Merge "Revert "Use new UnsupportedAppUsage annotation."" am: edf7ce4f38 am: ↵Automerger Merge Worker
019286764f am: f6253ef435 Change-Id: Id33f64eb9c8aa7d68cc52f7359b4f0a3d2675d8a
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 "Add post-call screen API." am: f5b6267d93 am: 1ad17b6ded am: 7e749b24bfAutomerger Merge Worker
Change-Id: I6ecd2f7626c2f4686a7e02347a5ffacc6aaf5817
2019-12-18Add post-call screen API.Grace Jia
Test: manual Bug: 135929421 Change-Id: I63043646bb96b8543849c617ce1ccd41a558f24d
2019-12-18Merge "Use new UnsupportedAppUsage annotation." am: 1385dca8f6 am: ↵Automerger Merge Worker
068a9faf3d am: c7f44bacbe Change-Id: I30839db2fe99ba4670ec1b39d5e64540fdd15f69
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-11Merge RP1A.191203.001Steven Laver
Change-Id: I75d5a3e97c8babb1cb711f25797163e70c21642e
2019-12-02Merge "Expose new Telecom APIs for use by Telephony" am: fd191d895e am: ↵Hall Liu
5defb332c9 am: 0c6a39b078 Change-Id: I187b58a7b9fd3234ba9cd367498723d0fcf06866
2019-11-22Merge RP1A.191114.001Steven Laver
Change-Id: I30dd2dce3b0c2fcd635381413a213fe3e97be97b