content: /*___Generated_by_IDEA___*/
  
  /*
   * This file is auto-generated.  DO NOT MODIFY.
   */
  package com.android.internal.view;
  /**
   * {@hide}
   */
  public interface IInputContextCallback extends android.os.IInterface
  {
    /** Default implementation for IInputContextCallback. */
    public static class Default implements com.android.internal.view.IInputContextCallback
    {
      @Override public void setTextBeforeCursor(java.lang.CharSequence textBeforeCursor, int seq) throws android.os.RemoteException
      {
      }
      @Override public void setTextAfterCursor(java.lang.CharSequence textAfterCursor, int seq) throws android.os.RemoteException
      {
      }
      @Override public void setCursorCapsMode(int capsMode, int seq) throws android.os.RemoteException
      {
      }
      @Override public void setExtractedText(android.view.inputmethod.ExtractedText extractedText, int seq) throws android.os.RemoteException
      {
      }
      @Override public void setSelectedText(java.lang.CharSequence selectedText, int seq) throws android.os.RemoteException
      {
      }
      @Override public void setRequestUpdateCursorAnchorInfoResult(boolean result, int seq) throws android.os.RemoteException
      {
      }
      @Override public void setCommitContentResult(boolean result, int seq) throws android.os.RemoteException
      {
      }
      @Override
      public android.os.IBinder asBinder() {
        return null;
      }
    }
    /** Local-side IPC implementation stub class. */
    public static abstract class Stub extends android.os.Binder implements com.android.internal.view.IInputContextCallback
    {
      private static final java.lang.String DESCRIPTOR = "com.android.internal.view.IInputContextCallback";
      /** Construct the stub at attach it to the interface. */
      public Stub()
      {
        this.attachInterface(this, DESCRIPTOR);
      }
      /**
       * Cast an IBinder object into an com.android.internal.view.IInputContextCallback interface,
       * generating a proxy if needed.
       */
      public static com.android.internal.view.IInputContextCallback asInterface(android.os.IBinder obj)
      {
        if ((obj==null)) {
          return null;
        }
        android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
        if (((iin!=null)&&(iin instanceof com.android.internal.view.IInputContextCallback))) {
          return ((com.android.internal.view.IInputContextCallback)iin);
        }
        return new com.android.internal.view.IInputContextCallback.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_setTextBeforeCursor:
          {
            data.enforceInterface(descriptor);
            java.lang.CharSequence _arg0;
            if (0!=data.readInt()) {
              _arg0 = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            int _arg1;
            _arg1 = data.readInt();
            this.setTextBeforeCursor(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_setTextAfterCursor:
          {
            data.enforceInterface(descriptor);
            java.lang.CharSequence _arg0;
            if (0!=data.readInt()) {
              _arg0 = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            int _arg1;
            _arg1 = data.readInt();
            this.setTextAfterCursor(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_setCursorCapsMode:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            int _arg1;
            _arg1 = data.readInt();
            this.setCursorCapsMode(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_setExtractedText:
          {
            data.enforceInterface(descriptor);
            android.view.inputmethod.ExtractedText _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.view.inputmethod.ExtractedText.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            int _arg1;
            _arg1 = data.readInt();
            this.setExtractedText(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_setSelectedText:
          {
            data.enforceInterface(descriptor);
            java.lang.CharSequence _arg0;
            if (0!=data.readInt()) {
              _arg0 = android.text.TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            int _arg1;
            _arg1 = data.readInt();
            this.setSelectedText(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_setRequestUpdateCursorAnchorInfoResult:
          {
            data.enforceInterface(descriptor);
            boolean _arg0;
            _arg0 = (0!=data.readInt());
            int _arg1;
            _arg1 = data.readInt();
            this.setRequestUpdateCursorAnchorInfoResult(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_setCommitContentResult:
          {
            data.enforceInterface(descriptor);
            boolean _arg0;
            _arg0 = (0!=data.readInt());
            int _arg1;
            _arg1 = data.readInt();
            this.setCommitContentResult(_arg0, _arg1);
            return true;
          }
          default:
          {
            return super.onTransact(code, data, reply, flags);
          }
        }
      }
      private static class Proxy implements com.android.internal.view.IInputContextCallback
      {
        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 void setTextBeforeCursor(java.lang.CharSequence textBeforeCursor, int seq) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if (textBeforeCursor!=null) {
              _data.writeInt(1);
              android.text.TextUtils.writeToParcel(textBeforeCursor, _data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeInt(seq);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setTextBeforeCursor, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setTextBeforeCursor(textBeforeCursor, seq);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        @Override public void setTextAfterCursor(java.lang.CharSequence textAfterCursor, int seq) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if (textAfterCursor!=null) {
              _data.writeInt(1);
              android.text.TextUtils.writeToParcel(textAfterCursor, _data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeInt(seq);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setTextAfterCursor, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setTextAfterCursor(textAfterCursor, seq);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        @Override public void setCursorCapsMode(int capsMode, int seq) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(capsMode);
            _data.writeInt(seq);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setCursorCapsMode, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setCursorCapsMode(capsMode, seq);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        @Override public void setExtractedText(android.view.inputmethod.ExtractedText extractedText, int seq) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((extractedText!=null)) {
              _data.writeInt(1);
              extractedText.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeInt(seq);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setExtractedText, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setExtractedText(extractedText, seq);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        @Override public void setSelectedText(java.lang.CharSequence selectedText, int seq) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if (selectedText!=null) {
              _data.writeInt(1);
              android.text.TextUtils.writeToParcel(selectedText, _data, 0);
            }
            else {
              _data.writeInt(0);
            }
            _data.writeInt(seq);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setSelectedText, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setSelectedText(selectedText, seq);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        @Override public void setRequestUpdateCursorAnchorInfoResult(boolean result, int seq) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(((result)?(1):(0)));
            _data.writeInt(seq);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setRequestUpdateCursorAnchorInfoResult, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setRequestUpdateCursorAnchorInfoResult(result, seq);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        @Override public void setCommitContentResult(boolean result, int seq) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(((result)?(1):(0)));
            _data.writeInt(seq);
            boolean _status = mRemote.transact(Stub.TRANSACTION_setCommitContentResult, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().setCommitContentResult(result, seq);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        public static com.android.internal.view.IInputContextCallback sDefaultImpl;
      }
      static final int TRANSACTION_setTextBeforeCursor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
      static final int TRANSACTION_setTextAfterCursor = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
      static final int TRANSACTION_setCursorCapsMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
      static final int TRANSACTION_setExtractedText = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
      static final int TRANSACTION_setSelectedText = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
      static final int TRANSACTION_setRequestUpdateCursorAnchorInfoResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
      static final int TRANSACTION_setCommitContentResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
      public static boolean setDefaultImpl(com.android.internal.view.IInputContextCallback impl) {
        // Only one user of this interface can use this function
        // at a time. This is a heuristic to detect if two different
        // users in the same process use this function.
        if (Stub.Proxy.sDefaultImpl != null) {
          throw new IllegalStateException("setDefaultImpl() called twice");
        }
        if (impl != null) {
          Stub.Proxy.sDefaultImpl = impl;
          return true;
        }
        return false;
      }
      public static com.android.internal.view.IInputContextCallback getDefaultImpl() {
        return Stub.Proxy.sDefaultImpl;
      }
    }
    public void setTextBeforeCursor(java.lang.CharSequence textBeforeCursor, int seq) throws android.os.RemoteException;
    public void setTextAfterCursor(java.lang.CharSequence textAfterCursor, int seq) throws android.os.RemoteException;
    public void setCursorCapsMode(int capsMode, int seq) throws android.os.RemoteException;
    public void setExtractedText(android.view.inputmethod.ExtractedText extractedText, int seq) throws android.os.RemoteException;
    public void setSelectedText(java.lang.CharSequence selectedText, int seq) throws android.os.RemoteException;
    public void setRequestUpdateCursorAnchorInfoResult(boolean result, int seq) throws android.os.RemoteException;
    public void setCommitContentResult(boolean result, int seq) throws android.os.RemoteException;
  }
  