diff options
| author | 2020-12-17 10:28:25 +0000 | |
|---|---|---|
| committer | 2020-12-17 10:28:25 +0000 | |
| commit | 5cc9ca266cfd703a66e7b5c9db905b56e475104e (patch) | |
| tree | 4bc68ea0dcba25fd86752bda77d2942a5c499f7d | |
| parent | 8bde459cbcfa1d9af7c97fa0a0f2c898fea04bd8 (diff) | |
| parent | 9c0631b52d694e2a792cbd92b2afa482fb39f10e (diff) | |
Merge "Expose APIs for SipTransport registration management" am: b3f8228f21 am: 3434bcd027 am: 9c0631b52d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1526901
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I8d2cafe151aab5315be84dc21543f284069961d7
| -rw-r--r-- | core/api/system-current.txt | 2 | ||||
| -rw-r--r-- | telephony/java/android/telephony/ims/aidl/IImsRegistration.aidl | 4 | ||||
| -rw-r--r-- | telephony/java/android/telephony/ims/stub/ImsRegistrationImplBase.java | 15 |
3 files changed, 18 insertions, 3 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 040dc5f4c8cd..0f1adc0d0883 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -12894,6 +12894,8 @@ package android.telephony.ims.stub { method public final void onSubscriberAssociatedUriChanged(android.net.Uri[]); method public final void onTechnologyChangeFailed(int, android.telephony.ims.ImsReasonInfo); method public void triggerFullNetworkRegistration(@IntRange(from=100, to=699) int, @Nullable String); + method public void triggerSipDelegateDeregistration(); + method public void updateSipDelegateRegistration(); field public static final int REGISTRATION_TECH_IWLAN = 1; // 0x1 field public static final int REGISTRATION_TECH_LTE = 0; // 0x0 field public static final int REGISTRATION_TECH_NONE = -1; // 0xffffffff diff --git a/telephony/java/android/telephony/ims/aidl/IImsRegistration.aidl b/telephony/java/android/telephony/ims/aidl/IImsRegistration.aidl index 298a98274dd9..4fd904041365 100644 --- a/telephony/java/android/telephony/ims/aidl/IImsRegistration.aidl +++ b/telephony/java/android/telephony/ims/aidl/IImsRegistration.aidl @@ -29,4 +29,6 @@ interface IImsRegistration { oneway void addRegistrationCallback(IImsRegistrationCallback c); oneway void removeRegistrationCallback(IImsRegistrationCallback c); oneway void triggerFullNetworkRegistration(int sipCode, String sipReason); -}
\ No newline at end of file + oneway void triggerUpdateSipDelegateRegistration(); + oneway void triggerSipDelegateDeregistration(); +} diff --git a/telephony/java/android/telephony/ims/stub/ImsRegistrationImplBase.java b/telephony/java/android/telephony/ims/stub/ImsRegistrationImplBase.java index aee24ffccc9e..088a7e26a9d0 100644 --- a/telephony/java/android/telephony/ims/stub/ImsRegistrationImplBase.java +++ b/telephony/java/android/telephony/ims/stub/ImsRegistrationImplBase.java @@ -38,6 +38,9 @@ import java.lang.annotation.RetentionPolicy; /** * Controls IMS registration for this ImsService and notifies the framework when the IMS * registration for this ImsService has changed status. + * <p> + * Note: There is no guarantee on the thread that the calls from the framework will be called on. It + * is the implementors responsibility to handle moving the calls to a working thread if required. * @hide */ @SystemApi @@ -97,6 +100,16 @@ public class ImsRegistrationImplBase { public void triggerFullNetworkRegistration(int sipCode, String sipReason) { ImsRegistrationImplBase.this.triggerFullNetworkRegistration(sipCode, sipReason); } + + @Override + public void triggerUpdateSipDelegateRegistration() { + ImsRegistrationImplBase.this.updateSipDelegateRegistration(); + } + + @Override + public void triggerSipDelegateDeregistration() { + ImsRegistrationImplBase.this.triggerSipDelegateDeregistration(); + } }; private final RemoteCallbackListExt<IImsRegistrationCallback> mCallbacks = @@ -138,7 +151,6 @@ public class ImsRegistrationImplBase { * If the SIP delegate feature tag configuration has changed, then this method will be * called in order to let the ImsService know that it can pick up these changes in the IMS * registration. - * @hide */ public void updateSipDelegateRegistration() { // Stub implementation, ImsService should implement this @@ -155,7 +167,6 @@ public class ImsRegistrationImplBase { * <p> * This should not affect the registration of features managed by the ImsService itself, such as * feature tags related to MMTEL registration. - * @hide */ public void triggerSipDelegateDeregistration() { // Stub implementation, ImsService should implement this |