content: /*___Generated_by_IDEA___*/
  
  /*
   * This file is auto-generated.  DO NOT MODIFY.
   */
  package android.media;
  /**
   * AIDL for the AudioService to report requests for remote volume update requests.
   * @hide
   */
  public interface IRemoteVolumeObserver extends android.os.IInterface
  {
    /** Default implementation for IRemoteVolumeObserver. */
    public static class Default implements android.media.IRemoteVolumeObserver
    {
      @Override public void dispatchRemoteVolumeUpdate(int direction, int value) 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 android.media.IRemoteVolumeObserver
    {
      private static final java.lang.String DESCRIPTOR = "android.media.IRemoteVolumeObserver";
      /** Construct the stub at attach it to the interface. */
      public Stub()
      {
        this.attachInterface(this, DESCRIPTOR);
      }
      /**
       * Cast an IBinder object into an android.media.IRemoteVolumeObserver interface,
       * generating a proxy if needed.
       */
      public static android.media.IRemoteVolumeObserver asInterface(android.os.IBinder obj)
      {
        if ((obj==null)) {
          return null;
        }
        android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
        if (((iin!=null)&&(iin instanceof android.media.IRemoteVolumeObserver))) {
          return ((android.media.IRemoteVolumeObserver)iin);
        }
        return new android.media.IRemoteVolumeObserver.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_dispatchRemoteVolumeUpdate:
          {
            data.enforceInterface(descriptor);
            int _arg0;
            _arg0 = data.readInt();
            int _arg1;
            _arg1 = data.readInt();
            this.dispatchRemoteVolumeUpdate(_arg0, _arg1);
            return true;
          }
          default:
          {
            return super.onTransact(code, data, reply, flags);
          }
        }
      }
      private static class Proxy implements android.media.IRemoteVolumeObserver
      {
        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 dispatchRemoteVolumeUpdate(int direction, int value) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeInt(direction);
            _data.writeInt(value);
            boolean _status = mRemote.transact(Stub.TRANSACTION_dispatchRemoteVolumeUpdate, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().dispatchRemoteVolumeUpdate(direction, value);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        public static android.media.IRemoteVolumeObserver sDefaultImpl;
      }
      static final int TRANSACTION_dispatchRemoteVolumeUpdate = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
      public static boolean setDefaultImpl(android.media.IRemoteVolumeObserver 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 android.media.IRemoteVolumeObserver getDefaultImpl() {
        return Stub.Proxy.sDefaultImpl;
      }
    }
    public void dispatchRemoteVolumeUpdate(int direction, int value) throws android.os.RemoteException;
  }
  