Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / aosp-stubs / src / main / java / android / telephony / ims / SipDelegateManager.java
SipDelegateManager.java70 lines · 3.0 KiBRaw
| 1 | package android.telephony.ims; |
| 2 | |
| 3 | import android.telephony.ims.stub.DelegateConnectionMessageCallback; |
| 4 | import android.telephony.ims.stub.DelegateConnectionStateCallback; |
| 5 | import java.util.concurrent.Executor; |
| 6 | |
| 7 | /** |
| 8 | * Compile-only stub of the framework's {@code @SystemApi} |
| 9 | * {@code android.telephony.ims.SipDelegateManager}. Mirrors the AOSP method |
| 10 | * surface RCS code uses. Not packaged; the real class is provided by the |
| 11 | * framework at runtime. |
| 12 | */ |
| 13 | public class SipDelegateManager { |
| 14 | public static final int MESSAGE_FAILURE_REASON_UNKNOWN = 0; |
| 15 | public static final int MESSAGE_FAILURE_REASON_DELEGATE_DEAD = 1; |
| 16 | public static final int MESSAGE_FAILURE_REASON_DELEGATE_CLOSED = 2; |
| 17 | public static final int MESSAGE_FAILURE_REASON_INVALID_START_LINE = 3; |
| 18 | public static final int MESSAGE_FAILURE_REASON_INVALID_HEADER_FIELDS = 4; |
| 19 | public static final int MESSAGE_FAILURE_REASON_INVALID_BODY_CONTENT = 5; |
| 20 | public static final int MESSAGE_FAILURE_REASON_INVALID_FEATURE_TAG = 6; |
| 21 | public static final int MESSAGE_FAILURE_REASON_TAG_NOT_ENABLED_FOR_DELEGATE = 7; |
| 22 | public static final int MESSAGE_FAILURE_REASON_NETWORK_NOT_AVAILABLE = 8; |
| 23 | public static final int MESSAGE_FAILURE_REASON_NOT_REGISTERED = 9; |
| 24 | public static final int MESSAGE_FAILURE_REASON_STALE_IMS_CONFIGURATION = 10; |
| 25 | public static final int MESSAGE_FAILURE_REASON_INTERNAL_DELEGATE_STATE_TRANSITION = 11; |
| 26 | |
| 27 | public static final int DENIED_REASON_UNKNOWN = 0; |
| 28 | public static final int DENIED_REASON_IN_USE_BY_ANOTHER_DELEGATE = 1; |
| 29 | public static final int DENIED_REASON_NOT_ALLOWED = 2; |
| 30 | public static final int DENIED_REASON_SINGLE_REGISTRATION_NOT_ALLOWED = 3; |
| 31 | public static final int DENIED_REASON_INVALID = 4; |
| 32 | |
| 33 | public static final int SIP_DELEGATE_DESTROY_REASON_UNKNOWN = 0; |
| 34 | public static final int SIP_DELEGATE_DESTROY_REASON_SERVICE_DEAD = 1; |
| 35 | public static final int SIP_DELEGATE_DESTROY_REASON_REQUESTED_BY_APP = 2; |
| 36 | public static final int SIP_DELEGATE_DESTROY_REASON_USER_DISABLED_RCS = 3; |
| 37 | public static final int SIP_DELEGATE_DESTROY_REASON_SUBSCRIPTION_TORN_DOWN = 4; |
| 38 | |
| 39 | public @interface MessageFailureReason {} |
| 40 | public @interface DeniedReason {} |
| 41 | public @interface SipDelegateDestroyReason {} |
| 42 | |
| 43 | public boolean isSupported() throws ImsException { |
| 44 | throw new RuntimeException("Stub"); |
| 45 | } |
| 46 | |
| 47 | public void createSipDelegate( |
| 48 | DelegateRequest request, |
| 49 | Executor executor, |
| 50 | DelegateConnectionStateCallback dc, |
| 51 | DelegateConnectionMessageCallback mc) |
| 52 | throws ImsException { |
| 53 | throw new RuntimeException("Stub"); |
| 54 | } |
| 55 | |
| 56 | public void destroySipDelegate( |
| 57 | SipDelegateConnection delegateConnection, |
| 58 | int reason) |
| 59 | throws ImsException { |
| 60 | throw new RuntimeException("Stub"); |
| 61 | } |
| 62 | |
| 63 | public void triggerFullNetworkRegistration( |
| 64 | SipDelegateConnection connection, |
| 65 | int sipCode, |
| 66 | String sipReason) |
| 67 | throws ImsException { |
| 68 | throw new RuntimeException("Stub"); |
| 69 | } |
| 70 | } |