IMS: Add API to clear RegistrantList
Change-Id: I590d072f3062863145e37cc09ccdaa4dd9659289
CRs-Fixed: 3199556
diff --git a/qti-utils/src/org/codeaurora/utils/RegistrantList.java b/qti-utils/src/org/codeaurora/utils/RegistrantList.java
index 4b3bb18..dcf8464 100644
--- a/qti-utils/src/org/codeaurora/utils/RegistrantList.java
+++ b/qti-utils/src/org/codeaurora/utils/RegistrantList.java
@@ -19,6 +19,12 @@
* limitations under the License.
*/
+/*
+ * Changes from Qualcomm Innovation Center are provided under the following license:
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause-Clear
+ */
+
package org.codeaurora.telephony.utils;
import android.os.Handler;
@@ -128,4 +134,8 @@
removeCleared();
}
+
+ public synchronized void clear() {
+ registrants.clear();
+ }
}