summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
AgeCommit message (Collapse)Author
2021-07-09Merge SP1A.210624.001Scott Lobdell
Change-Id: I96a39cdca22771b76e89caebd53ed52416005092
2021-06-21Protect TelecomManager#getPhoneAccount with necessary permissions.Grace Jia
Bug: 183407956 Test: make, CTS test Change-Id: I0ff68f29865c0bb2b316b3fc73d2c5adc37e4a36 (cherry picked from commit b13eb2c476fbb403646e48ded69fbc6b26f55606)
2021-04-29Merge SP1A.210425.001Scott Lobdell
Change-Id: I8d45e47c131320cac5e794fd629fdef84dd3bcfc
2021-04-17Move READ_PHONE_STATE compat id to @hideBrad Ebinger
Bug: 185121376 Test: atest CtsTelephony2TestCases CtsTelecomTestCases2 Change-Id: I0207faf30c85cc3275e312939bec570390129304
2021-04-07Merge SP1A.210331.003Scott Lobdell
Change-Id: Iad00646ffe00e570d3a19d18431764371ecc9f0b
2021-04-02Merge SP1A.210329.001Scott Lobdell
Change-Id: I1e21c5890b5b2e2f2855f09960bc8eec8aa922bf
2021-03-25Enforce READ_PHONE_STATE for APIs involving call stateBrad Ebinger
For API version 31+, ensure that READ_PHONE_STATE is checked on APIs that retrieve/notify the call state of the device. Bug: 157233955 Test: atest CtsTelecomTestCases2 CtsTelephony2TestCases Change-Id: I9f8674a3075d3e0f75ee4f41eefce328c0fa6b91
2021-03-24Merge SP1A.210311.001Scott Lobdell
Change-Id: Id1a205bf3f0609c0b13e4bea377056c3b06299fa
2021-03-11Clarify semantics in call composer extrasHall Liu
Docs updates: * setCallExtraParcelable must take a framework-defined parcelable * EXTRA_PICTURE_URI takes an android.net.Uri * Remove redundant documentation on setCallComposerStatus Fixes: 182510687 Test: docs only Change-Id: I43f776cf8bcb72c4121515536a3790cf44bf1638
2021-02-25Companion InCallService API reviewShuo Qian
Test: atest; make docs Bug: 179116441 Change-Id: Id75e727f6c3fc42132a80f7258bf790be79acf19 Merged-In: Id75e727f6c3fc42132a80f7258bf790be79acf19
2021-02-17Merge SP1A.210208.001Daniel Norman
Change-Id: I7d4929024872b369444e276a60ded06e37b1fefb
2021-01-28Rename TelecomManager.EXTRA_INCOMING_PICTUREHall Liu
Rename to EXTRA_PICTURE_URI, since we also need to set it for outgoing calls in order to write to the call log correctly. Bug: 177613111 Test: atest CallComposerTest Change-Id: Ie171c8f978db7de30e81800c464b2bd68aff73f8 Merged-In: Ie171c8f978db7de30e81800c464b2bd68aff73f8
2021-01-28Add support for integrating call composerHall Liu
* Minor bugfix in call log to handle USER_CURRENT * add TelephonyLocalConnection that allows frameworks/opt/telephony to call code (indirectly) in packages/services/Telephony Bug: 177613111 Test: atest CallComposerTest Merged-In: I602b51da6009c884364a026781ca3c160978fbd1 Change-Id: I61af7553b4b3d71fe87c86fca62941747d43ef55
2020-12-08Merge SP1A.201207.001Daniel Norman
Change-Id: I1cca277b923fed07896ee2e268c8da7df72eedce
2020-12-03Add Call Composer API extras in TelecomManagerShuo Qian
Test: cts Bug: 173437870 Change-Id: I46cd9ee72de3d217fa23b368c0b88811cf8ce555
2020-12-02Merge SP1A.201130.001Daniel Norman
Change-Id: Idcf943792aaa73080b26e2294f0569061502c85d
2020-11-17Cache the telecom service in getTelecomService()Kevin Jeon
This change caches the results of getTelecomService() and implements a death recipient that clears the cache when necessary. Bug: 173460628 Bug: 173039862 Test: manual testing (phone calls, dialer tab transitions) Change-Id: I438d479c78319eafa917ba661d7cbd49600fff2c
2020-11-17Merge SP1A.201116.001Scott Lobdell
Change-Id: I51f7864ca57206ba4034be7db7ae9f36d5c53f59
2020-11-16Merge "Remove isServiceConnected() from TelecomManager"Kevin Jeon
2020-11-13Merge SP1A.201105.002Scott Lobdell
Change-Id: Iec83a0c1f6f286a1e51abfc4356633ca9d8aea5f
2020-11-12Remove legacy style metalava suppressionAurimas Liutikas
@SuppressLint("Doclava125") is a legacy way of suppressing RequiresPermission check. Updating to the new style of suppression so metalava no longer has to support the legacy mode. sed -i "s/@SuppressLint(\"Doclava125/@SuppressLint(\"RequiresPermission/" \ core/java/android/app/admin/DevicePolicyManager.java \ core/java/android/hardware/hdmi/HdmiControlManager.java \ core/java/android/hardware/location/ContextHubManager.java \ core/java/android/hardware/usb/UsbDeviceConnection.java \ core/java/android/net/TrafficStats.java \ core/java/android/os/RecoverySystem.java \ core/java/android/os/storage/StorageManager.java \ core/java/android/service/persistentdata/PersistentDataBlockManager.java \ location/java/android/location/LocationManager.java \ media/java/android/media/AudioManager.java \ telecomm/java/android/telecom/TelecomManager.java \ telephony/java/android/telephony/CarrierConfigManager.java \ telephony/java/android/telephony/TelephonyManager.java \ wifi/java/android/net/wifi/RttManager.java \ wifi/java/android/net/wifi/WifiScanner.java Test: make Exempt-From-Owner-Approval: No-op change Change-Id: I6d5df95cfca2950ea86872d2f0afc1ba828841dc
2020-11-11Remove isServiceConnected() from TelecomManagerKevin Jeon
isServiceConnected() was being called before uses of getTelecomService() to ensure that the service was connected before accessing it. However, isServiceConnected() used getTelecomService() to check if the service was connected, resulting in unnecessary binder calls. Bug: 173036057 Bug: 173039862 Test: manual testing (switching between different tabs, calling) Change-Id: I622464927826d8af1c6e75ed4557580d8723315c
2020-11-09Merge "Remove redundant permission requirements docs." am: ef2c66e72f am: ↵Tyler Gunn
7e94f9e844 am: 6f4ea387c3 am: df4dfb23e0 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1490126 Change-Id: Icdf6583384aafa71c1cdfafafc605430223a55cf
2020-11-09Merge "Remove redundant permission requirements docs." am: ef2c66e72f am: ↵Tyler Gunn
7e94f9e844 am: 6f4ea387c3 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1490126 Change-Id: I0997f681c52485345cf9ee2c6004b53e74974630
2020-11-07Merge "Add disconnect message constant Bug: b/171255813 Test: make ↵TreeHugger Robot
Change-Id: Ia300b12ecf7d0c1d7d057b48a801b2928354315e" into rvc-qpr-dev am: 265a962d72 am: f6bdb84e9a Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12987248 Change-Id: I55595d8ed84af37d315947809d95191b211f6164
2020-11-07Merge "Add disconnect message constant Bug: b/171255813 Test: make ↵TreeHugger Robot
Change-Id: Ia300b12ecf7d0c1d7d057b48a801b2928354315e" into rvc-qpr-dev am: 265a962d72 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12987248 Change-Id: Id8d13e2cd4b52a616b4e36331d43ba8084033151
2020-11-06Remove redundant permission requirements docs.Tyler Gunn
Methods use @RequiresPermission annotation to declare permissions. This CL removes redundant javadoc which also state the permission reqs; the @RequiresPermission annotation results in autogenerated permission docs. Let some references in the javadoc in where a permission OR a role is a requirement to use an API, or where permissions had specific API levels noted in the javadoc. Test: make docs Fixes: 137633265 Change-Id: Id1ab7090def6b1d0dbdc8d2cc8586b5341e2eb7e
2020-11-06Add disconnect message constantradhika
Bug: b/171255813 Test: make Change-Id: Ia300b12ecf7d0c1d7d057b48a801b2928354315e
2020-10-26Introduce hasCompanionInCallServiceAccess APIShuo Qian
It retruns whether the caller has InCallService access for the companion apps. A companion app is an app associated with a physical wearable device via the {@link android.companion.CompanionDeviceManager} API. Test: cts Bug: 169595473 Change-Id: Id659bfae8556e965d3c31613848bde808f28a858
2020-10-20Remove @TestApi from @SystemApi symbolsAnton Hansson
I ran these commands: cd frameworks/base grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs' grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs' Bug: 171179806 Test: m checkapi Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-10-19Remove @TestApi from @SystemApi symbolsAnton Hansson
I ran these commands: cd frameworks/base grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs' grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs' Bug: 171179806 Test: m checkapi Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789 Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-10-09Merge SP1A.200921.001Scott Lobdell
Change-Id: I6a8d7215f874fed05e9fec71b17c8a3d1e2c94e0
2020-09-16Merge "Expose Telecom constants for use in Telephony" am: 9fcb2819d0 am: ↵Hall Liu
1bf919f084 am: 5b6beb2fc0 am: 2f8cf2f852 am: 74bb99708b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427473 Change-Id: Id62c2a0f4add8ce3fccaef64240f9a8efb79aa94
2020-09-14Expose Telecom constants for use in TelephonyHall Liu
Expose Telecom constants that are used in Telephony in preparation for mainline. Exposure is a combination of public/system -- those which made sense for 3pty apps to access were made public. Fixes: 168551099 Test: atest CtsTelecomTestCases Change-Id: I688f04ba4ddf0498bad3463888fae71cdff2844a
2020-09-09Merge SP1A.200727.001Daniel Norman
Change-Id: Ibb86a528ed692cde325705779c7fa57e4b4de682
2020-08-31Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)Xin Li
Bug: 166295507 Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27 Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-07Deprecate TelecomManager#getPhoneAccountsForPackage for security.Grace Jia
Bug: 153995334 Test: make Change-Id: I66d757139f3b7e25481b302e9378327873c7912c
2020-08-05Fix 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. Bug: 152187752 Fixes: 155097434 Merged-In: I1665d456dace8e41cc035e792f319d98dd07219c Change-Id: I06f8a5bebace5b22822f7bb714e14915126b904f
2020-07-28Merge "Expose adhoc conference calling API as public." am: 8ebbe3c038 am: ↵Treehugger Robot
fb8f41f0c2 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1368819 Change-Id: Ia5e17f2dbbfbb539f2415348e1ddb960354d3662
2020-07-27Expose adhoc conference calling API as public.Grace Jia
Bug: 159944852 Test: make Change-Id: I2cf39a6fd8a02ca4f2d0c83c484ab12bb13f74c3
2020-06-17Merge "Mark TelecomManager#isRinging as a TestApi" am: 94091aceaa am: 1ab98f185eHall Liu
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1340753 Change-Id: Ic643ef7b31f62a6771c1f1ba5aa0e4c0a16e7e0c
2020-06-16Mark TelecomManager#isRinging as a TestApiHall Liu
Bug: 150320750 Test: atest BackgroundCallAudioTest Change-Id: I048960feb97cd6cf081056ee649e7ea8dacdc8e3 Merged-In: I048960feb97cd6cf081056ee649e7ea8dacdc8e3
2020-05-19Mark TelecomManager#isRinging as a TestApiHall Liu
Bug: 150320750 Test: atest BackgroundCallAudioTest Change-Id: I048960feb97cd6cf081056ee649e7ea8dacdc8e3
2020-05-05Merge RP1A.200504.002Steven Laver
Change-Id: Ic724c34ede3e3aa7705e5600bce0327bc2289815
2020-05-01Fix broken @see tags in public documentation.Andrew Sapperstein
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)
2020-05-01Fix broken @see tags in public documentation.Andrew Sapperstein
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 Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85 Merged-In: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
2020-05-01Merge "Fix broken @see tags in public documentation."Andrew Sapperstein
2020-04-29Merge RP1A.200429.001Steven Laver
Change-Id: I1bf5e56d29cf58e860e3ba78967e4bae0d51678e
2020-04-28Fix broken @see tags in public documentation.Andrew Sapperstein
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 Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
2020-04-28Add @TestApi to createLaunchEmergencyDialerIntentFan Zhang
Test: build Bug: 154867896 Change-Id: Id2eb94b233c6c00a81c51d17c5414b3cce5ebdf5