aboutsummaryrefslogtreecommitdiff
path: root/src/java
AgeCommit message (Collapse)Author
2022-10-28Remove airplane mode handling code.android-13.0.0_r82android-13.0.0_r81android-13.0.0_r80android-13.0.0_r74android-13.0.0_r73android-13.0.0_r72android-13.0.0_r66android-13.0.0_r65android-13.0.0_r64android-13.0.0_r60android-13.0.0_r59android-13.0.0_r58android13-qpr3-c-s8-releaseandroid13-qpr3-c-s7-releaseandroid13-qpr3-c-s6-releaseandroid13-qpr3-c-s5-releaseandroid13-qpr3-c-s4-releaseandroid13-qpr3-c-s3-releaseandroid13-qpr3-c-s2-releaseandroid13-qpr3-c-s12-releaseandroid13-qpr3-c-s11-releaseandroid13-qpr3-c-s10-releaseandroid13-qpr3-c-s1-releaseHyunho
In VZW TC 3.18, the device did not need to send a PUBLISH when a 412 response was received for a UN PUBLISH request. Turn on airplane mode for testing. As a result, the device sends a UN PUBLISH request. However, since airplane mode has changed, the Framework sends a PUBLISH request to the ImsService. So this case failed. Bug: b/243137045 Test: Turn on airplane mode > deice sends a UN PUBLISH request > Not handle airplane mode change event in the publish controller. Test: atest DeviceCapabilityListenerTest Change-Id: Id96bd4a233e9208865afaa9c3fe0cccb239bad93 Merged-In: Id96bd4a233e9208865afaa9c3fe0cccb239bad93 (cherry picked from commit b4a75a44ff977b0e9bfb215cdde502901ca36d6c)
2022-06-21Add MODIFY_PHONE_STATE when registering receiverChinmay Dhodapkar
Without this additional check we can end up handling ACTION_TTY_PREFERRED_MODE_CHANGE from an unpriviledged app Currently this intent is sent by dialer on 1P devices, so it cannot be converted to a protected-broadcast Bug: 236264289 Tests: atest DeviceCapabilityListenerTest Change-Id: I221b28dd3e1f7ed51f915dc79a62f8818f8a65a2
2022-06-17Fix RTT NPE due to ImsCall#close being calledandroid13-devBrad Ebinger
When the IMS call is closed, in some cases, a pending RTT initialization request could still be in the queue to be processed. Since this depends on resources that have since been release, it can cause an NPE. Guard against this condition and return early if this condition is hit. Bug: 236279778 Test: atest FrameworksTelephonyTests:ImsCallTest Change-Id: I1c734eebd8135655752e646c5967e65cfe140c89
2022-06-10Fix shouldProcessCall in ImsManagerChinmay Dhodapkar
There can be call attempts made before the ims service is initialized. In this case, shouldProcessCall should throw an exception, else it might result in subsequent call failure in IMS. Bug: 232514463 Test: atest ImsManagerTest Change-Id: I81a25250a65bf6af0910c57f093ebbc71bad1dba (cherry picked from commit 7b6fb80d5ec80d4ef996453f16403727d17ff279)
2022-05-23update to handle IllegalArgumentExceptionjoonhunshin
ImaManager used ImsProvisioningController. When the subId is not valid, ImsProvisioningController throws IllegalArgumentException. Exception handling code updated for ImsManager. Bug: 233114326 Test: atest ImsManagerTest Change-Id: I634ff650ce1d144bcc19952d99a57140be00056f
2022-05-06Fix a minor logic issue in ag/18176102Brad Ebinger
Bug: b/229669620 Test: atest ImsCommonTests; confirmed PUBLISH 200 OK on TMO Change-Id: I5399b58a14e3522697d9be4a8fb92aebee6d5b5b
2022-05-06add use_tel_uri_for_pidf_xml field for ATT-UCE 430Hyunho
Add use_tel_uri_for_pidf_xml field for ATT-UCE 430 Set the added filed to false by defaut and true for ATT If the field is true, get the first TEL URI from associated uris. Bug: b/229669620 Test: PUBLSIH-200 OK in live network Test: Forcibly set tel and sip uri to assocoated uri and change the field value to see if the desired URI is obtained. Test: atest DeviceCapabilityInfoTest Merged-In: I64537994418beb37c7a05c206cebe5bbc9fcb8f5 Change-Id: I64537994418beb37c7a05c206cebe5bbc9fcb8f5
2022-05-04Merge "ImsProvisioningController returns provisioned when provisoning has ↵Joonhun Shin
not completed" into tm-dev
2022-05-04Merge "Replace the KEY_CARRIER_VOLTE_PROVISIONED_BOOL with bundle/tech to ↵Joonhun Shin
check if the EAB provisioned." into tm-dev
2022-05-02ImsProvisioningController returns provisioned when provisoning has not completedjoonhunshin
Delete code that access deprecated carrier config key, and hand over to ImsProvisioningController Bug: 230794289 Test: atest ImsManagerTest, ImsServiceTest Test: manual with TMO, ATT SIM 1. add carrier config carrier_volte_provisioning_required_bool as true 2. device reboot 3. check IMS registration and imsprovisioningstatus_X.xml file is created by ImsProvisioningLoader Change-Id: I289e0787ab90957a5c5eb03b4bff9b0ee35160d6
2022-04-28Replace the KEY_CARRIER_VOLTE_PROVISIONED_BOOL with bundle/tech to check if ↵joonhunshin
the EAB provisioned. Replace the KEY_CARRIER_VOLTE_PROVISIONED_BOOL with bundle/tech to check if the EAB provisioned. Bug: 229793066 Test: atest ImsService, ImsCommonTests Test: manual test with TMO, PUBLISH OK Change-Id: Idb70802ba524807fc298e4d47a82cbe6d44dff1c
2022-04-25Merge "Add state for 480,486,500,503,603 responses of PUBLISH" into tm-devBrad Ebinger
2022-04-22(Increasing logging) Adding a new case for IllegalStateExceptionvirkumar
Handle IllegalStateException for increasing logging incase such excpetion occures. Test: atest CtsTelephonyTestCases:ImsCallingTest Bug: 229756822 Merged-In: Iea42ae7c41eb424978bf4390aa8cea63fbd81fce Change-Id: Iea42ae7c41eb424978bf4390aa8cea63fbd81fce (cherry picked from commit 4bacd9b15a36491fd5727c836258de19905c6ae7)
2022-04-21Add state for 480,486,500,503,603 responses of PUBLISHHyunho
Upon receiving 480,486,500,503,603 responses to PUBLISH, the device state set to re_try. If the device state is retry, the PUBLISH requests should be blocked until the vendor called CapabilityExchangeEventListener#onPublishUpdated or CapabilityExchangeEventListener#onRequestPublishCapabilities. Test: atest PublishControllerImplTest CapabilityRequestTest UceControllerTest Bug: b/228781651 Change-Id: I0a4d41a885ff3d212f1d003602b83ccf5ed0a430
2022-04-21Add the break statement between vt_provisioning_status and ↵Hyunho
rcs_publish_source_throttle_ms This is to prevent an accident in which an incorrect value is set. Bug: b/229396800 Test: Build pass Change-Id: I283bcadb6bf1e91635d4052a1e67cc0bcb8db56d
2022-04-14Merge "After saving the capability information in the EAB DB, the invalid ↵Hyunho Shin
data is immediately deleted from the EAB DB." am: d9f22e0d8f am: 4f956cc5a8 am: 148dbf8421 Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/2058852 Change-Id: Iab71d55369cd795fef825a06a860af32abee2b2a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13Merge "Even though the state of the ImsFeature is set to STATE_UNAVAILABLE, ↵Hyosun Kim
fixed CapabilityCallbackManager#unregisterCallback to complete successfully." into tm-dev
2022-04-12Merge "Do not delete the DB if the received document is malformed/corrupt" ↵Hyunho Shin
am: 3263fd22ef am: 0b25267de2 am: 921b824036 Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/2058847 Change-Id: I78ebefcc9217ebb846bea59c264d4575bffb4eff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12Even though the state of the ImsFeature is set to STATE_UNAVAILABLE, fixed ↵hyosun
CapabilityCallbackManager#unregisterCallback to complete successfully. Change CapabilityCallbackManager#unregisterCallback to use #isBinderAlive instead of using #checkServiceIsReady. Bug: 225259107 Test: atest ImsCommonTests Change-Id: Ie5fdc093701a6a1602372a80125629e96d7775bf
2022-04-10After saving the capability information in the EAB DB, the invalid data is ↵Hyunho
immediately deleted from the EAB DB. However, if you request the information just saved in DB, EabControllerImpl can generate information based on invalid data. Bug: b/227862302 Test: atest CtsTelephonyTestCases:EabControllerTest and EabControllerTest Change-Id: I357cbc22821bf8847ba3ac5fb8a98da15fd4d53a Merged-In: I357cbc22821bf8847ba3ac5fb8a98da15fd4d53a
2022-04-08[Telephony] support TTY Call on VoWifidonaldahn
Bug: b/202966224 Test: TMUS-TTY Call on wifi with O6(oriole) device in Kansas Test: Volte/WFC dial and disconnect basic test Test: ATest ImsManagerTest testTtyStats Change-Id: If165cd18d9ed9ae75f7c8a3732948cc9f3df45fd
2022-04-08Do not delete the DB if the received document is malformed/corruptHyunho
According to RCC.59 v5, if a device receives malformed/corrupted xml it should keep the old functionality. However, if the presence element is malformed, that contact is set to the non-rcs user. And if one of the tuple in xml is malformed, another valid tuple should be parsed and stored in DB. Don't save anything if all tuples in xml are malformed. Bug: b/225998718 Test: atest PresenceTest TupleTest Test: cts CtsTelephonyTestCases:RcsUceAdapterTest Change-Id: I4839a45f933092a9bd42d74564797bacfeac49c1 Merged-In: I4839a45f933092a9bd42d74564797bacfeac49c1
2022-04-07Refactoring ImsManager to access aosp storage instead accessing ImsConfig ↵joonhunshin
directly Refactoring ImsManager to access aosp storage instead accessing ImsConfig directly. Removed not used functions. Bug: 227405288 Test: atest ImsManagerTest Test: cts ImsServiceTest Test: manual with AT&T and TMUS sim basic VoLTE MO/MT call setup basic WFC MO/MT call setup Change-Id: I4c1ea4ab37d78088f3faea1187258f073aef1b19
2022-04-06New provisioning keys for VoLTE/VoNR, VT, VoWiFijoonhunshin
Adapt new provisioning keys KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE, KEY_RCS_REQUIRES_PROVISIONING_BUNDLE for VoLTE/VoNR, VT, VoWiFi instead of KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL, KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL. Bug: 186798382 Test: atest ImsManagerTest Test: cts ImsServiceTest Test: manual with AT&T and TMUS sim basic VoLTE MO/MT call setup basic WFC MO/MT call setup Change-Id: I2960015b34e75b4a356d43d862d20886827125d1
2022-03-31Add the processing code that the device received the 504 response to the ↵Hyunho
PUBLISH request am: 3195dc704d am: 5bc043b00c am: 943fc668d8 Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/2048563 Change-Id: I2d9015cdf5bcd5e39ff511a68a4047258e698e4c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-29Add the processing code that the device received the 504 response to the ↵Hyunho
PUBLISH request As per AT&T requirements, if a device receives a 504 response to a PUBLISH request, it is treated like a received 403 response. However, the current AOSP framework is missing for this. Bug: b/225094509 Test: atest CtsTelephonyTestCases:ImsServiceTest Change-Id: I43665589e735023de9c8d3d3138e23d094910c19 Merged-In: I43665589e735023de9c8d3d3138e23d094910c19
2022-03-07Fixing empty tuple capability always expired am: bdd893747asam_222710654Calvin Pan
Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/2011982 Change-Id: I4802449adeae1c8fcebe8bd56f135fdfc11572e5
2022-03-07Fixing empty tuple capability always expiredCalvin Pan
EAB stores capabilities in two different tables (common, presence), and stores the expiration time in the Presence table, because a contact may have multiple tuples, and each tuple may have its own expiration time. But if the server sends capabilities with empty tuples, EAB will not store any data in the Presence table. It causes the EAB to treat it as an expired capability and request a new capability every time. [Fix] If there is no tuple ability, store the current timestamp and null presence attributes in the presence table. Bug: 203676348 Test: atest EabControllerTest Merged-In: Id54a71b71d353f3d2fa5c3246ab534ad581fe245 Change-Id: Id54a71b71d353f3d2fa5c3246ab534ad581fe245
2022-02-23Merge changes from topic "revert_uce_dupe_req" into tm-devTreeHugger Robot
* changes: Revert "Add a new api that does not send PUBLISH request with duplicated presence capabilities" Revert "Set mPendingPublicCapabilities to the currently registered service description"
2022-02-22Revert "Add a new api that does not send PUBLISH request with duplicated ↵Brad Ebinger
presence capabilities" This reverts commit 08151870e5579a2e56eb4dcfbc48326393fbeacb. Reason for revert: CL caused NPE in certain scenarios - b/220236505 Change-Id: I7d6843f6cbabd499a99f530409e247228e9a8f27
2022-02-22Revert "Set mPendingPublicCapabilities to the currently registered service ↵Brad Ebinger
description" This reverts commit 0407bd9e1876d2290526fbd1c2cc762a646f20ad. Reason for revert: CL caused NPE in certain scenarios - b/220236505 Change-Id: I0d9947ad996fe9838fa1307eb9f4271203754525
2022-02-22Partial Revert of subId changes in ImsManagerBrad Ebinger
Waiting for the subId of ImsManager to match the remote MmTelFeature is too slow and is exposing many race conditions with the vendor ImsServices which expect IMS configurations to be available when they receive CARRIER_CONFIG_CHANGED and not once the IMS service loads the new configuration. Bug: 217748245 Test: atest ImsCommonTests CtsTelephonyTestCases Change-Id: I56e9f1134893940125fb381172238e177b618a5a
2022-02-22Revert "Expose getSubId to ensure we have correct subId state in IMS"Brad Ebinger
Revert "Enforce the subId of a request matches the active subId ..." Revert submission 16908142-enforce_subId Reason for revert: b/217748245 Reverted Changes: Ie9838dde5:Expose getSubId to ensure we have correct subId st... I4ec85c201:Enforce the subId of a request matches the active ... Change-Id: I015e2e6dd3e7a12e282a4c8aaaa9a3e5324a8ffd
2022-02-19Set mPendingPublicCapabilities to the currently registered service ↵Hyunho
description am: 35a6054b00 am: 51cd405955 am: c92d27d0ea Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/1991493 Change-Id: I58268fcd343839857da0583e5cef6873cf2acd70
2022-02-19Set mPendingPublicCapabilities to the currently registered service ↵Hyunho
description am: 35a6054b00 Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/1991493 Change-Id: I399946166e8c3e620e4f143e1bcd765e1b5d7908
2022-02-18Set mPendingPublicCapabilities to the currently registered service descriptionHyunho
If getDeviceCapabilities() is called when mechanism is PRESENCE, set mPendingPublicCapabilities to the currently registered service description. Test: atest DeviceCapabilityInfoTest Bug: b/220236505 Change-Id: Icaf0b7430879f295e9981821180d311c2e14a535 Merged-In: Icaf0b7430879f295e9981821180d311c2e14a535
2022-02-18Add a new api that does not send PUBLISH request with duplicated presence ↵Hyunho
capabilities am: 1035afff32 Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/1989826 Change-Id: Ib141818f153ce0d5653ebc4db397e3e9ac42aed2
2022-02-17Merge "Throw IllegalStateException when IMS is not ready for callback ↵Brad Ebinger
registration"
2022-02-17Merge "Expose getSubId to ensure we have correct subId state in IMS"Brad Ebinger
2022-02-17Add a new api that does not send PUBLISH request with duplicated presence ↵Hyunho
capabilities Add API that get RcsContactUsCapability when there are changed presence capabilities. If there is no changed presence capabilities, do not send PUBLISH request. Test: atest DeviceCapabilityInfoTest, PublishProcessor Bug: b/215749573 Change-Id: Ifbf9b4f27a51acd89e3472cd8c68cd2659e3ffd6 Merged-In: Ifbf9b4f27a51acd89e3472cd8c68cd2659e3ffd6
2022-02-17Merge "Add a new api that does not send PUBLISH request with duplicated ↵Hyunho Shin
presence capabilities"
2022-02-16Throw IllegalStateException when IMS is not ready for callback registrationBrad Ebinger
Simulate existing behavior for when IMS is not ready by throwing an IllegalStateException until IMS callbacks can be registered. This will ensure there is no way that a callback can be registered and then removed invisibly once the IMS stack catches up to the state of telephony. Bug: 219529364 Test: atest FrameworksTelephonyTests; manual Change-Id: Ic0e1ea2c9ab81dd9c7bb99825be317f8703a5f67
2022-02-16Expose getSubId to ensure we have correct subId state in IMSBrad Ebinger
Expose getSubId in order to allow consumers of ImsManager to know if ImsManager does not match the requested subId. Fixes: 218893458 Bug: 219529364 Test: atest ImsCommonTests Change-Id: Ie9838dde5ce628b13937078fa9acf878a0b71dc4
2022-02-16Add a new api that does not send PUBLISH request with duplicated presence ↵Hyunho
capabilities Add API that get RcsContactUsCapability when there are changed presence capabilities. If there is no changed presence capabilities, do not send PUBLISH request. Test: atest DeviceCapabilityInfoTest, PublishProcessor Bug: b/215749573 Change-Id: Ifbf9b4f27a51acd89e3472cd8c68cd2659e3ffd6
2022-02-15Add entity uri field to Eab provider am: 4c329e11a8Hyunho
Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/1977696 Change-Id: I1c1632ddfaf0ba7418499fa5eb19a676e1faeb01
2022-02-14Merge "Merge sc-v2-dev-plus-aosp-without-vendor@8084891" into stage-aosp-masterXin Li
2022-02-12Add entity uri field to Eab providerHyunho
- Add entity uri field to Eab provider. - If the entity uri value exists in the Eab provider, it will be used as the request uri when sending a single subscription request. - Add new API to convert input uri to sip uri when carrier config value is set to true. Add entity uri field to Eab provider Test: atest EabControllerTest PidfParserTest Bug: b/195791162 Change-Id: I52937d21b3f2f882615c74bf309b27a0144bab5a Merged-In: I52937d21b3f2f882615c74bf309b27a0144bab5a
2022-02-11Merge "Shortcut and return caps of contacts who have non-expired cap info"Treehugger Robot
2022-02-11Shortcut and return caps of contacts who have non-expired cap infoBrad Ebinger
When an application requests the UCE capabilities of a list of numbers, return the cached info from the EAB DB right for numbers where the cap info hasnt expired yet instead of queueing the request for those numbers behind other pending network requests. This helps improve latency issues that were happening when network requests were taking a long time (1 min+) to finish on the network. Bug: 205878771 Test: atest ImsCommonTests CtsTelephonyTestCases:RcsUceAdapterTest Change-Id: Id7f07cbf3107271c7b2e9b9396d2c795974f3311 Merged-In: Id7f07cbf3107271c7b2e9b9396d2c795974f3311
2022-02-11Merge sc-v2-dev-plus-aosp-without-vendor@8084891Xin Li
Bug: 214455710 Merged-In: I1e122c64450d5b504cfaa93197439182c21e0956 Change-Id: I80b403dd9a3cb5527edde81d3b04a87cd18ee040