/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/com/android/ims/internal/IImsService.aidl
 */
package com.android.ims.internal;
{@hide}
/** * {@hide} */
public interface IImsService extends android.os.IInterface {
Local-side IPC implementation stub class.
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.android.ims.internal.IImsService { private static final java.lang.String DESCRIPTOR = "com.android.ims.internal.IImsService";
Construct the stub at attach it to the interface.
/** Construct the stub at attach it to the interface. */
public Stub() { this.attachInterface(this, DESCRIPTOR); }
Cast an IBinder object into an com.android.ims.internal.IImsService interface, generating a proxy if needed.
/** * Cast an IBinder object into an com.android.ims.internal.IImsService interface, * generating a proxy if needed. */
public static com.android.ims.internal.IImsService asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof com.android.ims.internal.IImsService))) { return ((com.android.ims.internal.IImsService)iin); } return new com.android.ims.internal.IImsService.Stub.Proxy(obj); } @Override public android.os.IBinder asBinder() { return this; } @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException { java.lang.String descriptor = DESCRIPTOR; switch (code) { case INTERFACE_TRANSACTION: { reply.writeString(descriptor); return true; } case TRANSACTION_open: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); android.app.PendingIntent _arg2; if ((0!=data.readInt())) { _arg2 = android.app.PendingIntent.CREATOR.createFromParcel(data); } else { _arg2 = null; } com.android.ims.internal.IImsRegistrationListener _arg3; _arg3 = com.android.ims.internal.IImsRegistrationListener.Stub.asInterface(data.readStrongBinder()); int _result = this.open(_arg0, _arg1, _arg2, _arg3); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_close: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.close(_arg0); reply.writeNoException(); return true; } case TRANSACTION_isConnected: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); boolean _result = this.isConnected(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_isOpened: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _result = this.isOpened(_arg0); reply.writeNoException(); reply.writeInt(((_result)?(1):(0))); return true; } case TRANSACTION_setRegistrationListener: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); com.android.ims.internal.IImsRegistrationListener _arg1; _arg1 = com.android.ims.internal.IImsRegistrationListener.Stub.asInterface(data.readStrongBinder()); this.setRegistrationListener(_arg0, _arg1); reply.writeNoException(); return true; } case TRANSACTION_addRegistrationListener: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); com.android.ims.internal.IImsRegistrationListener _arg2; _arg2 = com.android.ims.internal.IImsRegistrationListener.Stub.asInterface(data.readStrongBinder()); this.addRegistrationListener(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_createCallProfile: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); android.telephony.ims.ImsCallProfile _result = this.createCallProfile(_arg0, _arg1, _arg2); reply.writeNoException(); if ((_result!=null)) { reply.writeInt(1); _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_createCallSession: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); android.telephony.ims.ImsCallProfile _arg1; if ((0!=data.readInt())) { _arg1 = android.telephony.ims.ImsCallProfile.CREATOR.createFromParcel(data); } else { _arg1 = null; } com.android.ims.internal.IImsCallSessionListener _arg2; _arg2 = com.android.ims.internal.IImsCallSessionListener.Stub.asInterface(data.readStrongBinder()); com.android.ims.internal.IImsCallSession _result = this.createCallSession(_arg0, _arg1, _arg2); reply.writeNoException(); reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); return true; } case TRANSACTION_getPendingCallSession: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); java.lang.String _arg1; _arg1 = data.readString(); com.android.ims.internal.IImsCallSession _result = this.getPendingCallSession(_arg0, _arg1); reply.writeNoException(); reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); return true; } case TRANSACTION_getUtInterface: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); com.android.ims.internal.IImsUt _result = this.getUtInterface(_arg0); reply.writeNoException(); reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); return true; } case TRANSACTION_getConfigInterface: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); com.android.ims.internal.IImsConfig _result = this.getConfigInterface(_arg0); reply.writeNoException(); reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); return true; } case TRANSACTION_turnOnIms: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.turnOnIms(_arg0); reply.writeNoException(); return true; } case TRANSACTION_turnOffIms: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.turnOffIms(_arg0); reply.writeNoException(); return true; } case TRANSACTION_getEcbmInterface: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); com.android.ims.internal.IImsEcbm _result = this.getEcbmInterface(_arg0); reply.writeNoException(); reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); return true; } case TRANSACTION_setUiTTYMode: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); android.os.Message _arg2; if ((0!=data.readInt())) { _arg2 = android.os.Message.CREATOR.createFromParcel(data); } else { _arg2 = null; } this.setUiTTYMode(_arg0, _arg1, _arg2); reply.writeNoException(); return true; } case TRANSACTION_getMultiEndpointInterface: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); com.android.ims.internal.IImsMultiEndpoint _result = this.getMultiEndpointInterface(_arg0); reply.writeNoException(); reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null))); return true; } default: { return super.onTransact(code, data, reply, flags); } } } private static class Proxy implements com.android.ims.internal.IImsService { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } @Override public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } @Override public int open(int phoneId, int serviceClass, android.app.PendingIntent incomingCallIntent, com.android.ims.internal.IImsRegistrationListener listener) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(phoneId); _data.writeInt(serviceClass); if ((incomingCallIntent!=null)) { _data.writeInt(1); incomingCallIntent.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_open, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public void close(int serviceId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); mRemote.transact(Stub.TRANSACTION_close, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public boolean isConnected(int serviceId, int serviceType, int callType) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); _data.writeInt(serviceType); _data.writeInt(callType); mRemote.transact(Stub.TRANSACTION_isConnected, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public boolean isOpened(int serviceId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); boolean _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); mRemote.transact(Stub.TRANSACTION_isOpened, _data, _reply, 0); _reply.readException(); _result = (0!=_reply.readInt()); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Replace existing registration listener
/** * Replace existing registration listener * */
@Override public void setRegistrationListener(int serviceId, com.android.ims.internal.IImsRegistrationListener listener) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_setRegistrationListener, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Add new registration listener
/** * Add new registration listener */
@Override public void addRegistrationListener(int phoneId, int serviceClass, com.android.ims.internal.IImsRegistrationListener listener) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(phoneId); _data.writeInt(serviceClass); _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_addRegistrationListener, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public android.telephony.ims.ImsCallProfile createCallProfile(int serviceId, int serviceType, int callType) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.telephony.ims.ImsCallProfile _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); _data.writeInt(serviceType); _data.writeInt(callType); mRemote.transact(Stub.TRANSACTION_createCallProfile, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.telephony.ims.ImsCallProfile.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public com.android.ims.internal.IImsCallSession createCallSession(int serviceId, android.telephony.ims.ImsCallProfile profile, com.android.ims.internal.IImsCallSessionListener listener) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); com.android.ims.internal.IImsCallSession _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); if ((profile!=null)) { _data.writeInt(1); profile.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_createCallSession, _data, _reply, 0); _reply.readException(); _result = com.android.ims.internal.IImsCallSession.Stub.asInterface(_reply.readStrongBinder()); } finally { _reply.recycle(); _data.recycle(); } return _result; } @Override public com.android.ims.internal.IImsCallSession getPendingCallSession(int serviceId, java.lang.String callId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); com.android.ims.internal.IImsCallSession _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); _data.writeString(callId); mRemote.transact(Stub.TRANSACTION_getPendingCallSession, _data, _reply, 0); _reply.readException(); _result = com.android.ims.internal.IImsCallSession.Stub.asInterface(_reply.readStrongBinder()); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Ut interface for the supplementary service configuration.
/** * Ut interface for the supplementary service configuration. */
@Override public com.android.ims.internal.IImsUt getUtInterface(int serviceId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); com.android.ims.internal.IImsUt _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); mRemote.transact(Stub.TRANSACTION_getUtInterface, _data, _reply, 0); _reply.readException(); _result = com.android.ims.internal.IImsUt.Stub.asInterface(_reply.readStrongBinder()); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Config interface to get/set IMS service/capability parameters.
/** * Config interface to get/set IMS service/capability parameters. */
@Override public com.android.ims.internal.IImsConfig getConfigInterface(int phoneId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); com.android.ims.internal.IImsConfig _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(phoneId); mRemote.transact(Stub.TRANSACTION_getConfigInterface, _data, _reply, 0); _reply.readException(); _result = com.android.ims.internal.IImsConfig.Stub.asInterface(_reply.readStrongBinder()); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Used for turning on IMS when its in OFF state.
/** * Used for turning on IMS when its in OFF state. */
@Override public void turnOnIms(int phoneId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(phoneId); mRemote.transact(Stub.TRANSACTION_turnOnIms, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Used for turning off IMS when its in ON state. When IMS is OFF, device will behave as CSFB'ed.
/** * Used for turning off IMS when its in ON state. * When IMS is OFF, device will behave as CSFB'ed. */
@Override public void turnOffIms(int phoneId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(phoneId); mRemote.transact(Stub.TRANSACTION_turnOffIms, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
ECBM interface for Emergency Callback mode mechanism.
/** * ECBM interface for Emergency Callback mode mechanism. */
@Override public com.android.ims.internal.IImsEcbm getEcbmInterface(int serviceId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); com.android.ims.internal.IImsEcbm _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); mRemote.transact(Stub.TRANSACTION_getEcbmInterface, _data, _reply, 0); _reply.readException(); _result = com.android.ims.internal.IImsEcbm.Stub.asInterface(_reply.readStrongBinder()); } finally { _reply.recycle(); _data.recycle(); } return _result; }
Used to set current TTY Mode.
/** * Used to set current TTY Mode. */
@Override public void setUiTTYMode(int serviceId, int uiTtyMode, android.os.Message onComplete) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); _data.writeInt(uiTtyMode); if ((onComplete!=null)) { _data.writeInt(1); onComplete.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_setUiTTYMode, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
MultiEndpoint interface for DEP.
/** * MultiEndpoint interface for DEP. */
@Override public com.android.ims.internal.IImsMultiEndpoint getMultiEndpointInterface(int serviceId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); com.android.ims.internal.IImsMultiEndpoint _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(serviceId); mRemote.transact(Stub.TRANSACTION_getMultiEndpointInterface, _data, _reply, 0); _reply.readException(); _result = com.android.ims.internal.IImsMultiEndpoint.Stub.asInterface(_reply.readStrongBinder()); } finally { _reply.recycle(); _data.recycle(); } return _result; } } static final int TRANSACTION_open = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_close = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_isConnected = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_isOpened = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_setRegistrationListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_addRegistrationListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_createCallProfile = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_createCallSession = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); static final int TRANSACTION_getPendingCallSession = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8); static final int TRANSACTION_getUtInterface = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9); static final int TRANSACTION_getConfigInterface = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10); static final int TRANSACTION_turnOnIms = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11); static final int TRANSACTION_turnOffIms = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12); static final int TRANSACTION_getEcbmInterface = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13); static final int TRANSACTION_setUiTTYMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14); static final int TRANSACTION_getMultiEndpointInterface = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15); } public int open(int phoneId, int serviceClass, android.app.PendingIntent incomingCallIntent, com.android.ims.internal.IImsRegistrationListener listener) throws android.os.RemoteException; public void close(int serviceId) throws android.os.RemoteException; public boolean isConnected(int serviceId, int serviceType, int callType) throws android.os.RemoteException; public boolean isOpened(int serviceId) throws android.os.RemoteException;
Replace existing registration listener
/** * Replace existing registration listener * */
public void setRegistrationListener(int serviceId, com.android.ims.internal.IImsRegistrationListener listener) throws android.os.RemoteException;
Add new registration listener
/** * Add new registration listener */
public void addRegistrationListener(int phoneId, int serviceClass, com.android.ims.internal.IImsRegistrationListener listener) throws android.os.RemoteException; public android.telephony.ims.ImsCallProfile createCallProfile(int serviceId, int serviceType, int callType) throws android.os.RemoteException; public com.android.ims.internal.IImsCallSession createCallSession(int serviceId, android.telephony.ims.ImsCallProfile profile, com.android.ims.internal.IImsCallSessionListener listener) throws android.os.RemoteException; public com.android.ims.internal.IImsCallSession getPendingCallSession(int serviceId, java.lang.String callId) throws android.os.RemoteException;
Ut interface for the supplementary service configuration.
/** * Ut interface for the supplementary service configuration. */
public com.android.ims.internal.IImsUt getUtInterface(int serviceId) throws android.os.RemoteException;
Config interface to get/set IMS service/capability parameters.
/** * Config interface to get/set IMS service/capability parameters. */
public com.android.ims.internal.IImsConfig getConfigInterface(int phoneId) throws android.os.RemoteException;
Used for turning on IMS when its in OFF state.
/** * Used for turning on IMS when its in OFF state. */
public void turnOnIms(int phoneId) throws android.os.RemoteException;
Used for turning off IMS when its in ON state. When IMS is OFF, device will behave as CSFB'ed.
/** * Used for turning off IMS when its in ON state. * When IMS is OFF, device will behave as CSFB'ed. */
public void turnOffIms(int phoneId) throws android.os.RemoteException;
ECBM interface for Emergency Callback mode mechanism.
/** * ECBM interface for Emergency Callback mode mechanism. */
public com.android.ims.internal.IImsEcbm getEcbmInterface(int serviceId) throws android.os.RemoteException;
Used to set current TTY Mode.
/** * Used to set current TTY Mode. */
public void setUiTTYMode(int serviceId, int uiTtyMode, android.os.Message onComplete) throws android.os.RemoteException;
MultiEndpoint interface for DEP.
/** * MultiEndpoint interface for DEP. */
public com.android.ims.internal.IImsMultiEndpoint getMultiEndpointInterface(int serviceId) throws android.os.RemoteException; }