summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Connection.java
Commit message (Collapse)AuthorAgeFilesLines
* rename renounce fine location dataSooraj Sasindran2022-03-311-4/+5
| | | | | | | | | rename renounce fine location data to include location data Bug: 210923726 Test: cts Merged-In: Ic2ce84f51bf394031903ae180788216cfa910fc0 Change-Id: Ic2ce84f51bf394031903ae180788216cfa910fc0
* Merge "Update API documentation for onRttInitiationFailure." am: 7ee20f2830 ↵Treehugger Robot2022-03-041-0/+12
|\ | | | | | | | | | | | | | | am: 5badbebbf9 am: 2e658ce6fe Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1990510 Change-Id: I5c53a4d30a9dd1143d4bb723df69041bf2a355b2
| * Update API documentation for onRttInitiationFailure.Tyler Gunn2022-02-171-0/+12
| | | | | | | | | | | | | | | | | | | | Add intdef for reason code. Clarifying when this callback can be expected and how to handle RTT state when requested at the start of a call. Test: Docs only change Bug: 216608696 Change-Id: I86e46fbb2b0693564a41d1ca0d9f8c180d775c1a
* | Revert "Add API for external call audio route."Grace Jia2022-02-281-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Add CTS coverage for new external audio route API." Revert submission 16308028-external-audio Reason for revert: Don't want to launch this in T now Reverted Changes: I6634c752a:Add CTS coverage for new external audio route API.... Ibd1c2880e:Add API for external call audio route. I3e262a913:Implement new external audio route. Change-Id: I3a3eab1151b825523499058040c14696ea2887e9
* | Revert "Add API for cross device calling."Grace Jia2022-02-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Add cts tests for new cross device calling api" Revert submission 16308056-cross-api Reason for revert: Don't want to launch this in T now Reverted Changes: I731226c0b:Add cts tests for new cross device calling api I1a3aa6c1a:Add API for cross device calling. I40f78925b:Implement new TelecomManager API for cross device ... Change-Id: I687d94235b159d8daa20fe75de08394adc39f8c7
* | Add API for cross device calling.Grace Jia2022-01-121-9/+0
| | | | | | | | | | Test: CTS test Change-Id: I1a3aa6c1ae6d445a2f3b55e5f0d11918da5bed33
* | Merge "Add API for external call audio route."TreeHugger Robot2022-01-111-0/+9
|\ \
| * | Add API for external call audio route.Grace Jia2021-11-291-0/+9
| | | | | | | | | | | | | | | Test: CTS test Change-Id: Ibd1c2880e732f39281f5f6616465bf2c680c1b0d
* | | Migrate unsafe parcel APIs in framework-minus-apexBernardo Rufino2021-12-151-2/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrate the following unsafe parcel APIs in framework-minus-apex: * Parcel.readSerializable() * Parcel.readArrayList() * Parcel.readList() * Parcel.readParcelable() * Parcel.readParcelableList() * Parcel.readSparseArray() This CL was generated by applying lint fixes that infer the expected type from the caller code and provide that as the type parameter (ag/16365240). A few observations: * In some classes we couldn't migrate because the class also belonged to another build module whose min SDK wasn't current (as is the case for framework-minus-apex), hence I suppressed the lint check (since I'll eventually submit the lint check to the tree). * In some cases, I needed to do the cast in https://stackoverflow.com/a/1080525/5765705 to make the compiler happy since there isn't another way of providing a class of type Class<MyClassWithGenerics<T>>. * In the readSerializable() case, the new API also requires the class loader, that was inferred to by InferredClass.class.getClassLoader(). * Note that automatic formatting and import rely on running hooked up to the IDE, which wasn't the case here. Bug: 195622897 Test: TH passes Change-Id: I11a27b9bdab7959ee86e90aa1e1cbebd7aaf883c
* | Merge "Provide last known cell id for emergency call" am: 761ad6eaf8Sooraj Sasindran2021-12-081-0/+11
|\ \ | |/ |/| | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1870513 Change-Id: I4891c23dc6b5dd78618913d365c858f1c4b270bf
| * Provide last known cell id for emergency callSooraj Sasindran2021-12-061-0/+11
| | | | | | | | | | | | | | | | | | Provide last known cell id to connection service for emergency calls. Bug: 198533763 Test: unit test Change-Id: I8b660c0b5fbe095e3b9b67129b7404ebd7ec5ccd
| * Merge "Merge Android 12"Xin Li2021-10-071-5/+183
| |\
* | \ Merge "IMS: Propagate RTT capability of the called party to UI" am: ↵Tyler Gunn2021-10-071-1/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 57704bd7a3 am: 86da26a494 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/696027 Change-Id: I389a90e671bea7920f20e97ca4335cfc6e938fea
| * | | Merge "IMS: Propagate RTT capability of the called party to UI" am: 57704bd7a3Tyler Gunn2021-10-071-1/+11
| |\| | | | |/ | |/| | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/696027 Change-Id: Ia408690d5a0f4969572757d2c4c7ebe7bbe72739
| | * Merge "IMS: Propagate RTT capability of the called party to UI"Tyler Gunn2021-10-071-1/+11
| | |\
| | | * IMS: Propagate RTT capability of the called party to UIAlvin Dey2021-02-021-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Propagate RTT capability of the called party to UI. Test: Manual Bug: 80063808 Change-Id: Ia7d99e7b1f2e87ac7fb703333f5a4c617321e4ef
* | | | Merge "Fix issue when adding existing connections via remote connection ↵Tyler Gunn2021-08-251-0/+15
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | services." into sc-dev am: 5f54351908 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15113691 Change-Id: I99a561193225b6abb9c3d9b36ca7a004406662f7
| * | | Fix issue when adding existing connections via remote connection services.Tyler Gunn2021-08-131-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an existing connection is added to represent an IMS conference participant, it is added with an associated parent conference specified. This was NOT passed along to the connection manager via the RemoteConnectionService API since there is no equivalent API present for that operation. To work around this, we stash the parent conference's ID into the connection extras. We will use that later so that Telecom can know which conference is the parent of this call. Also, removing restriction in RemoteConnectionService which would ignore conferences with no children. This assumption was incorrect for VOLTE conferences since they will start with no children. As a consequence we would ALWAYS skip adding IMS conferences to the connection manager, which would mean that it had no way of knowing about the conference that the existing connections are associated with. Test: Manual test with connection manager APIS on live network; make conference and verify that the correct objects are being created wrapped by the connection manager. Bug: 188420526 Change-Id: Ie58afed7a3b7eeaa7e329e80479d273e4c50ec82 Change-Id: I4250f9459c7a1b82936583a10e93d049fdfb4c5d
* | | | Merge "Add a hidden extra key for caller number verification status." into ↵Tyler Gunn2021-07-021-0/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sc-dev am: 7402d904f2 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15180465 Change-Id: I2d2e7e1ec9d9793444eb4c77ab1eb261b91a54fe
| * | | Add a hidden extra key for caller number verification status.Tyler Gunn2021-07-011-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is used to work around a bug in the remote connection service API where this property is not being passed through to Telecom. Test: Use connection manager carrier and verify that VERSTAT is now propagated to Telecom. Bug: 192608283 Change-Id: Ie45e7c05d78623085cd2be32470a5870d243745c
* | | | Merge "Clarify the video API "setZoom" ratio." am: 6cf21bae3b am: 9d0f657ddcTyler Gunn2021-06-151-2/+4
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1737273 Change-Id: Ib914f83b7029d2a2ef3d9584175d2f96944956cd
| * | Clarify the video API "setZoom" ratio.Tyler Gunn2021-06-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This should ideally be a valid in terms of the reported camera characteristics. Test: Docs only change Bug: 190804553 Change-Id: I35e0148e6e9d90d991b556e5c6db4bbd77ce39a0
* | | Add hidden extra for communicating whether D2D is availableTyler Gunn2021-05-071-0/+9
| | | | | | | | | | | | | | | | | | Test: Added unit test Bug: 163085177 Change-Id: I65f7fb38f0582e20899a54859d850982c6637237
* | | Merge "Add PROPERTY_DOWNGRADED_CONFERENCE to logging" am: 2e0c2171fd am: ↵Hall Liu2021-03-311-0/+4
|\| | | | | | | | | | | | | | | | | | | | | | | ff4a4a29e7 am: 9c05c40060 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1358163 Change-Id: Icf555d5e3bceda3bc1260b64c6d7394d4f9adb50
| * | Merge "Add PROPERTY_DOWNGRADED_CONFERENCE to logging"Hall Liu2021-03-311-0/+4
| |\ \
| | * | Add PROPERTY_DOWNGRADED_CONFERENCE to loggingHall Liu2020-07-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 153530054 Test: manual Change-Id: I37558527ef867b49fc597ae2cdaf1620cfde0ab1
* | | | Propagate call quality reports from Telephony to CallDiagnosticService.Tyler Gunn2021-03-191-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Complete plumbing for call quality reports to get to the CDS. Test: Manual network testing. Test: Modify CTS tests to cover these cases. Bug: 163085177 Change-Id: I2bb68d29c4ad11cc8738c26cd69404fde4348843
* | | | Rename DiagnosticCall to CallDiagnostics.Tyler Gunn2021-03-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep DiagnosticAll in a deprecated form to maintain binary compatibility with ongoing work in other repos. Test: run CTS Test: run unit tests Fixes: 182241145 Change-Id: Ia14113bcce344bb589408b74eaab74d413de9e7e
* | | | Merge "CallDiagnosticService API" am: c90335033b am: 9882ff4bf8 am: d3bf1aa209Tyler Gunn2021-03-031-0/+40
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1607109 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ie91efc29698d27946f83b751bef2fe89d612c9a2
| * | | CallDiagnosticService APITyler Gunn2021-02-251-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CallDiagnosticService API is an OEM-backed API which allows an OEM provided app to monitor the state of ongoing telephony calls on the device and to help the user navigate connectivity or audio issues related to these calls. It also provides a means for the app to send and receive device to device messages between devices during an ongoing call (where supported) in order to facilitate a better calling experience. Test: Added new CTS test suite for API. Test: Manual test of CDS behavior using telecom command line option to override the active CDS to the telecom test app implementation. Bug: 163085177 Change-Id: I1f37408d2aa6c630f0f9e3d6b6eb8a390d804d7e
| * | | Add relative APIs for InCallService that can support self-managedGrace Jia2021-02-011-0/+20
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connections that want to expose itself. Add PhoneAccount#EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE and Connection#onInCallServiceTrackingChanged. Bug: 161144815 Test: CtsTelecomTestCases Change-Id: I0a42ea79a1cd46aa9df3399c4fa2e9396321778a Merged-In: I0a42ea79a1cd46aa9df3399c4fa2e9396321778a
* | | User arg object in onCallFilteringCompletedHall Liu2021-02-181-14/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | In Connection#onCallFilteringCompleted, use a single data class argument instead of making a hodgepodge of args. Fixes: 180616846 Test: atest CtsTelecomTestCases Change-Id: I33e80e3f59418c5d87799661c0764da029cc9f62
* | | Refactor CallScreeningService's internal structureHall Liu2021-02-121-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a single AIDL method and perform logic in Telecom instead of slicing up the call response on the client side. Also pass through the call response to the connection service. Bug: 179412110 Test: atest ConnectionServiceTest CallScreeningServiceTest Change-Id: I878c0ce34142da104dc0e2795487b03a6bdacb5f
* | | Add relative APIs for InCallService that can support self-managedGrace Jia2021-01-191-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connections that want to expose itself. Add PhoneAccount#EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE and Connection#onInCallServiceTrackingChanged. Bug: 161144815 Test: CtsTelecomTestCases Change-Id: I0a42ea79a1cd46aa9df3399c4fa2e9396321778a
* | | Add API to inform Telephony that call filtering is completeHall Liu2021-01-151-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an API that gets called once call filtering finishes. Meant to trigger download of call composer images. Bug: 177613111 Test: atest ConnectionServiceTest Change-Id: I4e06f19c859022ddb933f697dde13e459a3d354e
* | | Merge "Add intdef for Telecom connection states." am: 96cf67465b am: ↵Tyler Gunn2021-01-151-0/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | a452afcc1b am: 9cbd141892 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1548978 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I863e16f7c6d76882de27a8561e0934e9755f33cb
| * | Add intdef for Telecom connection states.Tyler Gunn2021-01-131-0/+14
| | | | | | | | | | | | | | | | | | Bug: 163085177 Test: Annotation only change. Change-Id: Id3dbf9d38ff4467e94594bf7a75fb00750af64fe
* | | Merge "Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED."Ashwini Oruganti2021-01-131-1/+1
|\ \ \
| * | | Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED.Ashwini Oruganti2021-01-121-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've been working hard to require PendingIntents explicitly declare if they allow their contents to be mutated or not, and to finish landing that work this change applies the new FLAG_MUTABLE_UNAUDITED flag to all remaining code locations until they can be manually inspected. Bug: 160794467 Test: manual Change-Id: I8d7ec64ac89755c14b5959bb6ef0bce203c92bf0
* / / Introduce IMS Cross SIM registrationSooraj Sasindran2021-01-121-1/+9
|/ / | | | | | | | | | | | | | | Introduce IMS Cross SIM registration Bug: 171391883 Test: Build Change-Id: Idd79a0a1f453a36587b89257e88437c96bf6ff4e
* | Declare audio codec bitrate and bandwidthallenwtsu2020-11-111-0/+13
| | | | | | | | | | | | Bug: 172304392 Test: atest Change-Id: Iea4de76a4c1628c8828ba84282ef014f94cc169a
* | Remove @TestApi from @SystemApi symbolsAnton Hansson2020-10-191-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Improve remote connection logging."Tyler Gunn2020-08-121-0/+25
|\ \
| * | Improve remote connection logging.Tyler Gunn2020-08-051-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Update language to comply with Android's inclusive language guidance"Tyler Gunn2020-07-301-1/+1
|\ \ \ | |/ / |/| |
| * | Update language to comply with Android's inclusive language guidanceTyler Gunn2020-07-291-1/+1
| |/ | | | | | | | | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Test: Presubmit Bug: 161896447 Change-Id: I4142f4819f5ed3e2ffddf471b90923985e72523a
* / Expose adhoc conference calling API as public.Grace Jia2020-07-271-6/+6
|/ | | | | | Bug: 159944852 Test: make Change-Id: I2cf39a6fd8a02ca4f2d0c83c484ab12bb13f74c3
* Fix Telecom ConnectionTest.Tyler Gunn2020-03-301-1/+1
| | | | | | | | | | | | | | | A recent Telephony change was made to support missed calls reported over SMS; this change made FailureSignalingConnection fully mutable which failed some CTS. Given that its only the setAddress method which would fail the mutability check, re-added immutability in the FailureSignalingConnection since ultimately we do want to protect these from state changes, but removed the mutability check in the setAddress method since its reasonable to want to report an address in this case. Test: cts-tradefed run cts-dev -m CtsTelecomTestCases -t android.telecom.cts.ConnectionTest Fixes: 150811816 Change-Id: I7f37daf9ac65ff70eec7692410fa299cb30fdc38
* Added missed incoming call SMS supportJack Yu2020-02-251-1/+0
| | | | | | | | | | 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
* Merge "Make get/setCallerNumberVerificationStatus final."Tyler Gunn2020-02-191-2/+2
|\