コード例 #1
0
 @Override
 public int register(
     com.sonyericsson.extras.liveview.IPluginServiceCallbackV1 cb,
     java.lang.String imageMenu,
     java.lang.String pluginName,
     boolean selectableMenu,
     java.lang.String packageName)
     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.writeStrongBinder((((cb != null)) ? (cb.asBinder()) : (null)));
     _data.writeString(imageMenu);
     _data.writeString(pluginName);
     _data.writeInt(((selectableMenu) ? (1) : (0)));
     _data.writeString(packageName);
     mRemote.transact(Stub.TRANSACTION_register, _data, _reply, 0);
     _reply.readException();
     _result = _reply.readInt();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
   return _result;
 }
コード例 #2
0
 @Override
 public void unregister(int id, com.sonyericsson.extras.liveview.IPluginServiceCallbackV1 cb)
     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(id);
     _data.writeStrongBinder((((cb != null)) ? (cb.asBinder()) : (null)));
     mRemote.transact(Stub.TRANSACTION_unregister, _data, _reply, 0);
     _reply.readException();
   } finally {
     _reply.recycle();
     _data.recycle();
   }
 }