summaryrefslogtreecommitdiff
path: root/telecomm
AgeCommit message (Collapse)Author
2020-10-26Merge "Modify the TelecomLoaderService to provide LocalServices to Telecom"Tyler Gunn
2020-10-23Merge changes from topic "mainline-telecom-constants" am: c155bb62a1 am: ↵Hall Liu
e5eef00627 am: 0494ed6b1e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471168 Change-Id: If029ec79c21683684f6d55232ec843cc7b845ff8
2020-10-23API tweaks in response to feedback am: 5968c09340 am: 429a15d480 am: 5cff38cc1bHall Liu
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471167 Change-Id: Iaab53ad343a38a3764344f6e5ace2f7e242c79c1
2020-10-22Modify the TelecomLoaderService to provide LocalServices to TelecomBrad Ebinger
We need access to the DeviceIdleController, which is not currently accessible via the PowerWhitelistManager due to restrictions with components in the same SYSTEM process accessing public APIs (see context#enforceCallingPermission). To get around this, we need to wrap services only available as LocalServices using Binder to pass these services to the Telecom code. This is all in-process (no IPC allowed), so there should be little to no impact. Bug: 160724034 Test: miss call and verify `adb shell cmd deviceidle tempwhitelist` contains default dialer. Test: atest TelecomUnitTests; atest CtsTelecomTestCases Change-Id: I6275b550d19743e576b93f5fcd2bd3aa9ea4e1a8 Merged-In: I3d71331cbc8f01f764cc0b9704416821007feeb5
2020-10-22Update documentation for phone account sort orderHall Liu
Update documentation to reflect that the sort order extra should contain integers. Bug: 169153499 Test: docs only Change-Id: Ic5269d577f007e01a0c9eaa95cd7e8814ab8f79a Merged-In: Ic5269d577f007e01a0c9eaa95cd7e8814ab8f79a
2020-10-22API tweaks in response to feedbackHall Liu
Update documentation on PhoneAccount#EXTRA_SORT_ORDER to make it more clear what the sorting order is in edge cases. Make DisconnectCause#REASON_EMULATING_SINGLE_CALL public, since it might get propogated up to dialer apps. Fixes: 169153499 Test: docs only Change-Id: I7f810f909a8a61b422283c3bafcc97307e4d863b Merged-In: I7f810f909a8a61b422283c3bafcc97307e4d863b
2020-10-20Merge "Remove @TestApi from @SystemApi symbols" am: d2d4637685 am: ↵Anton Hansson
cbe282347e am: 14897c256d Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1466264 Change-Id: I859503688ea3254d5bd1b55e80cf1962286e948f
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-19Use phoneAccountHandle based on connectionSungjae
After triggering dial, phoneAccountHandle can be changed. In this case, the stack to which dial is requested and the stack to be displayed on the UI can be different. So, modified to use phoneAccountHandle which base on connection, not request. Bug: 168681491 Test: manual Signed-off-by: Sungjae <sung_jae.kim@samsung.com> Change-Id: I56ac5b2d4f1b5e8d78741a43a332b025af7e4d54
2020-10-14Merge "Use TelephonyManager#isEmergencyNumber() instead" am: 1963c4b1c6 am: ↵Shuo Qian
e931ca461e am: 4e847577d3 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1454556 Change-Id: Iaf149e798f39c8bceecb5a50ba2933f46402ba52
2020-10-14Use TelephonyManager#isEmergencyNumber() insteadTaesu Lee
Replace deprecated PhoneNumberUtils#isLocalEmergencyNumber() and isEmergencyNumber() with TelephonyManager#isEmergencyNumber(). Test: Build Bug: 132703886 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I232d7f7d23efd963b6d30938f0fa304c90fca8a8 Merged-In: I232d7f7d23efd963b6d30938f0fa304c90fca8a8
2020-10-09Merge "Add clarification text on getCallerNumberVerificationStatus docs." ↵Tyler Gunn
am: f83bccb02f am: 793b248026 am: 0b22366dc7 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455218 Change-Id: I6f93ead176a20d649eb32456288f40b2d8a9d116
2020-10-09Merge "Add clarification text on getCallerNumberVerificationStatus docs."Tyler Gunn
2020-10-08Add clarification text on getCallerNumberVerificationStatus docs.Tyler Gunn
Update API docs to make it clear what the verification status means and how it can be used by CallScreeningService and CallRedirecitonService implementations. Test: Build API docs and view offline. Bug: 150343312 Change-Id: I56f92f5e3ab544e31337a8147134baac33bb4ea9
2020-10-08Merge "CallScreeningService API docs cleanup." am: 834c527a3b am: fcafb9acdf ↵Treehugger Robot
am: c3f4c873df Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1453996 Change-Id: I201fb017f2bd7c4e0c808a6053cdf3655669151c
2020-10-08Merge "CallScreeningService API docs cleanup."Treehugger Robot
2020-10-08Merge "Clarify API docs for getCannedTextResponses." am: fc1a08a982 am: ↵Treehugger Robot
9626f7cc42 am: 48b97996fb Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1451125 Change-Id: Ic9201f0e0a3b48561926023524eb308abd4cde91
2020-10-07CallScreeningService API docs cleanup.Tyler Gunn
Cleanups for call screening service APIs and to provide more clarity for the lifecycle of the service. Fixes: 170286897 Test: make docs ; preview docs genreated. Change-Id: I487b438e39abb83cee1bd050889a6bce164247d7
2020-10-06Clarify API docs for getCannedTextResponses.Tyler Gunn
The API docs do not clearly indicate the fact that canned text responses may not be available when a call is first added. Updating the API docs to clarify this and reference the listener a developer can use to be informed of changes to the canned responses. Test: Docs only change. Bug: 162843384 Change-Id: I52ced96439b2dfa31c1f2428979ab54466763afa
2020-09-16Merge "Expose Telecom constants for use in Telephony" am: 9fcb2819d0 am: ↵Hall Liu
1bf919f084 am: 5b6beb2fc0 am: 2f8cf2f852 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427473 Change-Id: Ib461b9a4f7271b9f9263cae8292dc5d0579fc102
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 "Modify the TelecomLoaderService to provide LocalServices to Telecom" ↵Brad Ebinger
into rvc-qpr-dev am: ebef1b923b Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12522284 Change-Id: I3d71331cbc8f01f764cc0b9704416821007feeb5
2020-09-08Merge "Update OWNERS" am: 33082d4490Brad Ebinger
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418955 Change-Id: Ia358e7f028c9fbbb80aa03e714f652c251a6fd9b
2020-09-03Update OWNERSBrad Ebinger
Test: manual Change-Id: I1c6231bb83f626fcbd3684eb45224abfa610afef
2020-09-03Modify the TelecomLoaderService to provide LocalServices to TelecomBrad Ebinger
We need access to the DeviceIdleController, which is not currently accessible via the PowerWhitelistManager due to restrictions with components in the same SYSTEM process accessing public APIs (see context#enforceCallingPermission). To get around this, we need to wrap services only available as LocalServices using Binder to pass these services to the Telecom code. This is all in-process (no IPC allowed), so there should be little to no impact. Bug: 160724034 Test: miss call and verify `adb shell cmd deviceidle tempwhitelist` contains default dialer. Test: atest TelecomUnitTests; atest CtsTelecomTestCases Change-Id: I6275b550d19743e576b93f5fcd2bd3aa9ea4e1a8
2020-08-31Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)Xin Li
Bug: 166295507 Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27 Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-13Merge "Add adhoc conference APIs to RemoteConnection and ↵Grace Jia
RemoteConnectionService."
2020-08-12Merge "Improve remote connection logging."Tyler Gunn
2020-08-12Merge "Fix createLaunchEmergencyDialerIntent API behavior when Telecom ↵Tyler Gunn
unavailable."
2020-08-11Add adhoc conference APIs to RemoteConnection andGrace Jia
RemoteConnectionService. Plumb through the adhoc conference APIs via these new APIs. Bug: 159944852 Test: atest CtsTelecomTestCases:RemoteConnectionTest Change-Id: Icfa27e0616dd35ba350f7a491e5c95337a286b9d
2020-08-05Improve remote connection logging.Tyler Gunn
This CL improves traceability of calls initiated via a remote connection service. For regular incoming/outgoing calls, when initiating a request to create a remote connection in RemoteConnectionService, we set EXTRA_REQUESTING_PACKAGE_NAME in the parcelled request to the package name of the connection manager. In ConnectionService this serves as an indicator that the incoming request is via a connection manager and is used to trigger setting of EXTRA_REMOTE_PHONE_ACCOUNT_HANDLE with the phone account handle the remote connection service uses to place the call. For conferences and existing connections, the initial request is from the remote connection service to the connection manager so we can just set the EXTRA_REMOTE_PHONE_ACCOUNT handle there directly. Also cleaned up logging in the telecom session logging to remove the assumption that the ownerInfo is an incall service. Test: Manual testing with connection manager to verify logging. Bug: 154353494 Fixes: 155097158 Merged-In: I916750e0f558db1eb9e581bab7a9fbc71f781709 Change-Id: Iee1b5cfd3334a5de08d7b04022b7c6d5af6a4b04
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-30Merge "Update language to comply with Android's inclusive language guidance"Tyler Gunn
2020-07-29Update language to comply with Android's inclusive language guidanceTyler Gunn
See https://source.android.com/setup/contribute/respectful-code for reference Test: Presubmit Bug: 161896447 Change-Id: I4142f4819f5ed3e2ffddf471b90923985e72523a
2020-07-28Merge "Run CtsTelecomTestCases in presubmit"Hall Liu
2020-07-27Expose adhoc conference calling API as public.Grace Jia
Bug: 159944852 Test: make Change-Id: I2cf39a6fd8a02ca4f2d0c83c484ab12bb13f74c3
2020-07-08Add telecom command to stop block suppressionHall Liu
Add a Telecom command to stop the number blocking suppression that happens after an emergency call. Bug: 158798240 Fixes: 160667708 Test: atest CtsTelecomTestCases Change-Id: I122de1962fb6aa48a3092c2aa323dcbdcbb8f42e
2020-07-01Run CtsTelecomTestCases in presubmitHall Liu
Run Telecom CTS in presubmit, and include a few fixes to prevent flakiness in said presubmit. Fixes: 158798240 Test: presubmit Change-Id: I9b9e2f2604615e93301bc83be7c3545c6f80cb9c
2020-06-26Merge "Add telecom command to stop block suppression" am: afe114c2f5 am: ↵Treehugger Robot
533a19175c Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1350781 Change-Id: I4cface851f70245a7efc4063e54c2943f2d0e362
2020-06-26Merge "Add telecom command to stop block suppression"Treehugger Robot
2020-06-26Add telecom command to stop block suppressionHall Liu
Add a Telecom command to stop the number blocking suppression that happens after an emergency call. Bug: 158798240 Test: atest CtsTelecomTestCases Change-Id: I122de1962fb6aa48a3092c2aa323dcbdcbb8f42e
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-15Merge "Update audio processing API docs." into rvc-dev am: 04e5ed5223Tyler Gunn
Change-Id: Ie0c28b5904df38f59dc6ca528e0269f95d4e54da
2020-05-15Update audio processing API docs.Tyler Gunn
Updating the audio processing API docs to mention the fact that the app must indicate in their InCallService and CallScreeningService service entries that the service type is for "microphone" access, otherwise background audio access will not be permitted. Test: Docs only change. Bug: 156042528 Change-Id: I3576dba445497791e6fa4e0a2fa42cf10eb1df5b
2020-05-12Merge "Ensure conference state is posted to Telecom for new conferences." ↵Tyler Gunn
am: 2e46eac097 Change-Id: I03b8dbca60d71aaeb03ff700482a45d35e34f6d3
2020-05-12Merge "Ensure conference state is posted to Telecom for new conferences."Tyler Gunn
2020-05-11Ensure conference state is posted to Telecom for new conferences.Tyler Gunn
There is an edge-case where an IMS conference fails to merge two participants into a conference, AND the conference event package comes in before the ImsCall indicates it is multiparty. In this case, the CEP will have a single participant which means we'll treat the call as a standalone call. ImsConference correctly sets the conference state, but this was previously just passed along the ConnectionService adapter to Telecom. In this case the conference isn't even added to Telecom so the method call in effect does nothing. Changed to cache the conference state and ensure when adding the conference to Telecom that we call the setConferenceState method (yeah, could have put this in the ParcelableConference, but this is an edge case). Test: Wrote unit test to verify property is set. Bug: 134047008 Fixes: 155097934 Merged-In: I203880c593f6bac471a06eb9dcbb529d0bb75ba5 Change-Id: Ib48437abb1295d147e227727ce4ff2996f28b5de
2020-05-11Merge "Fix parceling and unparceling for URIs in Telecom." am: 68a50c1b2fTyler Gunn
Change-Id: I9f15005fd017442afd6894b9769df883524fc055
2020-05-11Merge "Fix parceling and unparceling for URIs in Telecom."Tyler Gunn