aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/android/ims/ImsFeatureBinderRepository.java
AgeCommit message (Collapse)Author
2022-01-11ImsService Subscription NotificationsJonggeon Kim
Remove OnSubscriptionsChangedListener implementation from ImsCallbackAdapterManager because the MmTelFeatureConnection lifecycle is on a per-subId basis now. Propagate changed subscription ID to every related component. Bug: 197991451 Test: atest ImsCommonTests:MmTelFeatureConnectionTest Change-Id: Ieb185593497ba6702e8bb19e58430b0c3d80061a
2020-10-01Move to a push model of querying ImsFeature BindersBrad Ebinger
[RESUBMISSION AFTER REVERT aosp/1426022] Instead of a polling model, allow listeners to instead listen for updates to a specific ImsFeature interface and get notified when they are available. FeatureConnectionRepository is used by the ImsServiceControllers to store new MMTEL and RCS feature binders along with the associated IMS config and registration interfaces that should be used along with them. Listeners can then register for updates to the ImsFeatures, including changes to capabilities and state. The FeatureConnector has also been refactored to listen ann update MmTel and RCS FeatureConnections in the ImsManager and RcsFeatureManager instances as Binders become available/unavailable or change when new SIM cards are inserted/removed instead of using a polling method of retrieving Binder instances. Fixes: 169864814 Test: atest ImsCommonTests Change-Id: Ie35b443ee2734c72f52d736f3980c1521a958d96
2020-09-30Revert "Move to a push model of querying ImsFeature Binders"Brad Ebinger
Revert "Clean up IMS based interfaces to use a push model instea..." Revert "Move IMS to a listener type model instead of a poll model" Revert "Push Binder updates when ImsFeatures change" Revert submission 1425374-ims_poll Reason for revert: b/169729036, ANR in phone process Reverted Changes: I1d6dd2dfd:Move to a push model of querying ImsFeature Binder... Ie3982c245:Move IMS to a listener type model instead of a pol... I8b9ded0f4:Push Binder updates when ImsFeatures change Ia9f7ae3db:Clean up IMS based interfaces to use a push model ... Change-Id: I0505602b19d0af8ba1f6c8ad477d2ecedb8f39f3
2020-09-28Move to a push model of querying ImsFeature BindersBrad Ebinger
Instead of a polling model, allow listeners to instead listen for updates to a specific ImsFeature interface and get notified when they are available. FeatureConnectionRepository is used by the ImsServiceControllers to store new MMTEL and RCS feature binders along with the associated IMS config and registration interfaces that should be used along with them. Listeners can then register for updates to the ImsFeatures, including changes to capabilities and state. The FeatureConnector has also been refactored to listen ann update MmTel and RCS FeatureConnections in the ImsManager and RcsFeatureManager instances as Binders become available/unavailable or change when new SIM cards are inserted/removed instead of using a polling method of retrieving Binder instances. Test: atest ImsCommonTests Change-Id: I1d6dd2dfdf891a28719b38cb17ecb989188114e4