Code example for Parcel

Methods: writeIntwriteNoException

0
} 
case TRANSACTION_getInputMethodList:
{ 
data.enforceInterface(DESCRIPTOR);
java.util.List<android.view.inputmethod.InputMethodInfo> _result = this.getInputMethodList();
reply.writeNoException();
reply.writeTypedList(_result);
return true; 
} 
case TRANSACTION_getEnabledInputMethodList:
{ 
data.enforceInterface(DESCRIPTOR);
java.util.List<android.view.inputmethod.InputMethodInfo> _result = this.getEnabledInputMethodList();
reply.writeNoException();
reply.writeTypedList(_result);
return true; 
} 
case TRANSACTION_addClient:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.internal.view.IInputMethodClient _arg0;
_arg0 = com.android.internal.view.IInputMethodClient.Stub.asInterface(data.readStrongBinder());
com.android.internal.view.IInputContext _arg1;
_arg1 = com.android.internal.view.IInputContext.Stub.asInterface(data.readStrongBinder());
int _arg2;
_arg2 = data.readInt();
int _arg3;
_arg3 = data.readInt();
this.addClient(_arg0, _arg1, _arg2, _arg3);
reply.writeNoException();
return true; 
} 
case TRANSACTION_removeClient:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.internal.view.IInputMethodClient _arg0;
_arg0 = com.android.internal.view.IInputMethodClient.Stub.asInterface(data.readStrongBinder());
this.removeClient(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_startInput:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.internal.view.IInputMethodClient _arg0;
_arg0 = com.android.internal.view.IInputMethodClient.Stub.asInterface(data.readStrongBinder());
com.android.internal.view.IInputContext _arg1;
_arg1 = com.android.internal.view.IInputContext.Stub.asInterface(data.readStrongBinder());
android.view.inputmethod.EditorInfo _arg2;
if ((0!=data.readInt())) {
_arg2 = android.view.inputmethod.EditorInfo.CREATOR.createFromParcel(data);
} 
else { 
_arg2 = null;
} 
boolean _arg3;
_arg3 = (0!=data.readInt());
boolean _arg4;
_arg4 = (0!=data.readInt());
com.android.internal.view.InputBindResult _result = this.startInput(_arg0, _arg1, _arg2, _arg3, _arg4);
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_finishInput:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.internal.view.IInputMethodClient _arg0;
_arg0 = com.android.internal.view.IInputMethodClient.Stub.asInterface(data.readStrongBinder());
this.finishInput(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_showSoftInput:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.internal.view.IInputMethodClient _arg0;
_arg0 = com.android.internal.view.IInputMethodClient.Stub.asInterface(data.readStrongBinder());
int _arg1;
_arg1 = data.readInt();
android.os.ResultReceiver _arg2;
if ((0!=data.readInt())) {
_arg2 = android.os.ResultReceiver.CREATOR.createFromParcel(data);
} 
else { 
_arg2 = null;
} 
boolean _result = this.showSoftInput(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_hideSoftInput:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.internal.view.IInputMethodClient _arg0;
_arg0 = com.android.internal.view.IInputMethodClient.Stub.asInterface(data.readStrongBinder());
int _arg1;
_arg1 = data.readInt();
android.os.ResultReceiver _arg2;
if ((0!=data.readInt())) {
_arg2 = android.os.ResultReceiver.CREATOR.createFromParcel(data);
} 
else { 
_arg2 = null;
} 
boolean _result = this.hideSoftInput(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
case TRANSACTION_windowGainedFocus:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.internal.view.IInputMethodClient _arg0;
_arg0 = com.android.internal.view.IInputMethodClient.Stub.asInterface(data.readStrongBinder());
android.os.IBinder _arg1;
_arg1 = data.readStrongBinder();
boolean _arg2;
_arg2 = (0!=data.readInt());
boolean _arg3;
_arg3 = (0!=data.readInt());
int _arg4;
_arg4 = data.readInt();
boolean _arg5;
_arg5 = (0!=data.readInt());
int _arg6;
_arg6 = data.readInt();
this.windowGainedFocus(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
reply.writeNoException();
return true; 
} 
case TRANSACTION_showInputMethodPickerFromClient:
{ 
data.enforceInterface(DESCRIPTOR);
com.android.internal.view.IInputMethodClient _arg0;
_arg0 = com.android.internal.view.IInputMethodClient.Stub.asInterface(data.readStrongBinder());
this.showInputMethodPickerFromClient(_arg0);
reply.writeNoException();
return true; 
} 
case TRANSACTION_setInputMethod:
{ 
data.enforceInterface(DESCRIPTOR);
android.os.IBinder _arg0;
_arg0 = data.readStrongBinder();
java.lang.String _arg1;
_arg1 = data.readString();
this.setInputMethod(_arg0, _arg1);
reply.writeNoException();
return true; 
} 
case TRANSACTION_hideMySoftInput:
{ 
data.enforceInterface(DESCRIPTOR);
android.os.IBinder _arg0;
_arg0 = data.readStrongBinder();
int _arg1;
_arg1 = data.readInt();
this.hideMySoftInput(_arg0, _arg1);
reply.writeNoException();
return true; 
} 
case TRANSACTION_showMySoftInput:
{ 
data.enforceInterface(DESCRIPTOR);
android.os.IBinder _arg0;
_arg0 = data.readStrongBinder();
int _arg1;
_arg1 = data.readInt();
this.showMySoftInput(_arg0, _arg1);
reply.writeNoException();
return true; 
} 
case TRANSACTION_updateStatusIcon:
{ 
data.enforceInterface(DESCRIPTOR);
android.os.IBinder _arg0;
_arg0 = data.readStrongBinder();
java.lang.String _arg1;
_arg1 = data.readString();
int _arg2;
_arg2 = data.readInt();
this.updateStatusIcon(_arg0, _arg1, _arg2);
reply.writeNoException();
return true; 
} 
case TRANSACTION_setInputMethodEnabled:
{ 
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
boolean _arg1;
_arg1 = (0!=data.readInt());
boolean _result = this.setInputMethodEnabled(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true; 
} 
} 
return super.onTransact(code, data, reply, flags);
Stop searching for code, let great code find you!  Add Codota to your java IDE