Remove "one shot" type of FeatureCallback
Instead of having a special case for ImsManager#getInstance, implement it properly. Test: atest CtsTelephonyTestCases Change-Id: I2e986fb2a1086043a25b11c71c005481cea74196
This commit is contained in:
@@ -22,6 +22,7 @@ import android.telephony.ims.aidl.IRcsUceControllerCallback;
|
||||
import android.telephony.ims.aidl.IRcsUcePublishStateCallback;
|
||||
import android.telephony.ims.aidl.IImsRegistrationCallback;
|
||||
|
||||
import com.android.ims.ImsFeatureContainer;
|
||||
import com.android.ims.internal.IImsServiceFeatureCallback;
|
||||
import com.android.internal.telephony.IIntegerConsumer;
|
||||
|
||||
@@ -53,7 +54,6 @@ interface IImsRcsController {
|
||||
void unregisterUcePublishStateCallback(int subId, IRcsUcePublishStateCallback c);
|
||||
|
||||
// Internal commands that should not be made public
|
||||
void registerRcsFeatureCallback(int slotId, in IImsServiceFeatureCallback callback,
|
||||
boolean oneShot);
|
||||
void registerRcsFeatureCallback(int slotId, in IImsServiceFeatureCallback callback);
|
||||
void unregisterImsFeatureCallback(in IImsServiceFeatureCallback callback);
|
||||
}
|
||||
|
||||
@@ -829,8 +829,7 @@ interface ITelephony {
|
||||
* as well as registering the MmTelFeature for callbacks using the IImsServiceFeatureCallback
|
||||
* interface.
|
||||
*/
|
||||
void registerMmTelFeatureCallback(int slotId, in IImsServiceFeatureCallback callback,
|
||||
boolean oneShot);
|
||||
void registerMmTelFeatureCallback(int slotId, in IImsServiceFeatureCallback callback);
|
||||
|
||||
/**
|
||||
* Unregister a callback that was previously registered through
|
||||
|
||||
Reference in New Issue
Block a user