summaryrefslogtreecommitdiff
path: root/telephony/java/com
diff options
context:
space:
mode:
authorBrad Ebinger <breadley@google.com>2020-05-18 17:46:06 -0700
committerBrad Ebinger <breadley@google.com>2020-05-18 17:46:06 -0700
commit64e101323b62fb2bf77594919610812f21cbe349 (patch)
treef0ef4bd2f262f9f0db30b3c607680337f29801c8 /telephony/java/com
parent5093c5816b7ff7228cd28fa056811368d3d4086f (diff)
Fix MmTelFeatureConnection Memory Leak
In FeatureConnection, we never cleaned up the ImsFeatureStatusCallback after it was destroyed, leaving zombie FeatureConnections around. Bug: 156893040 Test: atest FrameworksTelephonyTests Change-Id: Idcf8b558c3807a3f9f5094afee532e76ea6f02cb
Diffstat (limited to 'telephony/java/com')
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl8
1 files changed, 8 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index f5cd68f050a4..369020033a59 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -851,6 +851,14 @@ interface ITelephony {
IImsRcsFeature getRcsFeatureAndListen(int slotId, in IImsServiceFeatureCallback callback);
/**
+ * Unregister a callback that was previously registered through
+ * {@link #getMmTelFeatureAndListen} or {@link #getRcsFeatureAndListen}. This should always be
+ * called when the callback is no longer being used.
+ */
+ void unregisterImsFeatureCallback(int slotId, int featureType,
+ in IImsServiceFeatureCallback callback);
+
+ /**
* Returns the IImsRegistration associated with the slot and feature specified.
*/
IImsRegistration getImsRegistration(int slotId, int feature);