content: /*___Generated_by_IDEA___*/
  
  /*
   * This file is auto-generated.  DO NOT MODIFY.
   */
  package android.net;
  /**
   * Callback class for receiving events from an INetworkManagementService
   *
   * @hide
   */
  public interface INetworkManagementEventObserver extends android.os.IInterface
  {
    /** Default implementation for INetworkManagementEventObserver. */
    public static class Default implements android.net.INetworkManagementEventObserver
    {
      /**
           * Interface configuration status has changed.
           *
           * @param iface The interface.
           * @param up True if the interface has been enabled.
           */
      @Override public void interfaceStatusChanged(java.lang.String iface, boolean up) throws android.os.RemoteException
      {
      }
      /**
           * Interface physical-layer link state has changed.  For Ethernet,
           * this method is invoked when the cable is plugged in or unplugged.
           *
           * @param iface The interface.
           * @param up  True if the physical link-layer connection signal is valid.
           */
      @Override public void interfaceLinkStateChanged(java.lang.String iface, boolean up) throws android.os.RemoteException
      {
      }
      /**
           * An interface has been added to the system
           *
           * @param iface The interface.
           */
      @Override public void interfaceAdded(java.lang.String iface) throws android.os.RemoteException
      {
      }
      /**
           * An interface has been removed from the system
           *
           * @param iface The interface.
           */
      @Override public void interfaceRemoved(java.lang.String iface) throws android.os.RemoteException
      {
      }
      /**
           * An interface address has been added or updated.
           *
           * @param iface The interface.
           * @param address The address.
           */
      @Override public void addressUpdated(java.lang.String iface, android.net.LinkAddress address) throws android.os.RemoteException
      {
      }
      /**
           * An interface address has been removed.
           *
           * @param iface The interface.
           * @param address The address.
           */
      @Override public void addressRemoved(java.lang.String iface, android.net.LinkAddress address) throws android.os.RemoteException
      {
      }
      /**
           * A networking quota limit has been reached. The quota might not
           * be specific to an interface.
           *
           * @param limitName The name of the limit that triggered.
           * @param iface The interface on which the limit was detected.
           */
      @Override public void limitReached(java.lang.String limitName, java.lang.String iface) throws android.os.RemoteException
      {
      }
      /**
           * Interface data activity status is changed.
           *
           * @param iface The interface.
           * @param active  True if the interface is actively transmitting data, false if it is idle.
           * @param tsNanos Elapsed realtime in nanos when the state of the network interface changed.
           */
      @Override public void interfaceClassDataActivityChanged(java.lang.String label, boolean active, long tsNanos) throws android.os.RemoteException
      {
      }
      /**
           * Information about available DNS servers has been received.
           *
           * @param iface The interface on which the information was received.
           * @param lifetime The time in seconds for which the DNS servers may be used.
           * @param servers The IP addresses of the DNS servers.
           */
      @Override public void interfaceDnsServerInfo(java.lang.String iface, long lifetime, java.lang.String[] servers) throws android.os.RemoteException
      {
      }
      /**
           * A route has been added or updated.
           */
      @Override public void routeUpdated(android.net.RouteInfo route) throws android.os.RemoteException
      {
      }
      /**
           * A route has been removed.
           */
      @Override public void routeRemoved(android.net.RouteInfo route) 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.net.INetworkManagementEventObserver
    {
      private static final java.lang.String DESCRIPTOR = "android.net.INetworkManagementEventObserver";
      /** Construct the stub at attach it to the interface. */
      public Stub()
      {
        this.attachInterface(this, DESCRIPTOR);
      }
      /**
       * Cast an IBinder object into an android.net.INetworkManagementEventObserver interface,
       * generating a proxy if needed.
       */
      public static android.net.INetworkManagementEventObserver asInterface(android.os.IBinder obj)
      {
        if ((obj==null)) {
          return null;
        }
        android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
        if (((iin!=null)&&(iin instanceof android.net.INetworkManagementEventObserver))) {
          return ((android.net.INetworkManagementEventObserver)iin);
        }
        return new android.net.INetworkManagementEventObserver.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_interfaceStatusChanged:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            boolean _arg1;
            _arg1 = (0!=data.readInt());
            this.interfaceStatusChanged(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_interfaceLinkStateChanged:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            boolean _arg1;
            _arg1 = (0!=data.readInt());
            this.interfaceLinkStateChanged(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_interfaceAdded:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            this.interfaceAdded(_arg0);
            return true;
          }
          case TRANSACTION_interfaceRemoved:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            this.interfaceRemoved(_arg0);
            return true;
          }
          case TRANSACTION_addressUpdated:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            android.net.LinkAddress _arg1;
            if ((0!=data.readInt())) {
              _arg1 = android.net.LinkAddress.CREATOR.createFromParcel(data);
            }
            else {
              _arg1 = null;
            }
            this.addressUpdated(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_addressRemoved:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            android.net.LinkAddress _arg1;
            if ((0!=data.readInt())) {
              _arg1 = android.net.LinkAddress.CREATOR.createFromParcel(data);
            }
            else {
              _arg1 = null;
            }
            this.addressRemoved(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_limitReached:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            java.lang.String _arg1;
            _arg1 = data.readString();
            this.limitReached(_arg0, _arg1);
            return true;
          }
          case TRANSACTION_interfaceClassDataActivityChanged:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            boolean _arg1;
            _arg1 = (0!=data.readInt());
            long _arg2;
            _arg2 = data.readLong();
            this.interfaceClassDataActivityChanged(_arg0, _arg1, _arg2);
            return true;
          }
          case TRANSACTION_interfaceDnsServerInfo:
          {
            data.enforceInterface(descriptor);
            java.lang.String _arg0;
            _arg0 = data.readString();
            long _arg1;
            _arg1 = data.readLong();
            java.lang.String[] _arg2;
            _arg2 = data.createStringArray();
            this.interfaceDnsServerInfo(_arg0, _arg1, _arg2);
            return true;
          }
          case TRANSACTION_routeUpdated:
          {
            data.enforceInterface(descriptor);
            android.net.RouteInfo _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.RouteInfo.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            this.routeUpdated(_arg0);
            return true;
          }
          case TRANSACTION_routeRemoved:
          {
            data.enforceInterface(descriptor);
            android.net.RouteInfo _arg0;
            if ((0!=data.readInt())) {
              _arg0 = android.net.RouteInfo.CREATOR.createFromParcel(data);
            }
            else {
              _arg0 = null;
            }
            this.routeRemoved(_arg0);
            return true;
          }
          default:
          {
            return super.onTransact(code, data, reply, flags);
          }
        }
      }
      private static class Proxy implements android.net.INetworkManagementEventObserver
      {
        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;
        }
        /**
             * Interface configuration status has changed.
             *
             * @param iface The interface.
             * @param up True if the interface has been enabled.
             */
        @Override public void interfaceStatusChanged(java.lang.String iface, boolean up) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(iface);
            _data.writeInt(((up)?(1):(0)));
            boolean _status = mRemote.transact(Stub.TRANSACTION_interfaceStatusChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().interfaceStatusChanged(iface, up);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * Interface physical-layer link state has changed.  For Ethernet,
             * this method is invoked when the cable is plugged in or unplugged.
             *
             * @param iface The interface.
             * @param up  True if the physical link-layer connection signal is valid.
             */
        @Override public void interfaceLinkStateChanged(java.lang.String iface, boolean up) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(iface);
            _data.writeInt(((up)?(1):(0)));
            boolean _status = mRemote.transact(Stub.TRANSACTION_interfaceLinkStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().interfaceLinkStateChanged(iface, up);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * An interface has been added to the system
             *
             * @param iface The interface.
             */
        @Override public void interfaceAdded(java.lang.String iface) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(iface);
            boolean _status = mRemote.transact(Stub.TRANSACTION_interfaceAdded, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().interfaceAdded(iface);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * An interface has been removed from the system
             *
             * @param iface The interface.
             */
        @Override public void interfaceRemoved(java.lang.String iface) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(iface);
            boolean _status = mRemote.transact(Stub.TRANSACTION_interfaceRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().interfaceRemoved(iface);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * An interface address has been added or updated.
             *
             * @param iface The interface.
             * @param address The address.
             */
        @Override public void addressUpdated(java.lang.String iface, android.net.LinkAddress address) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(iface);
            if ((address!=null)) {
              _data.writeInt(1);
              address.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            boolean _status = mRemote.transact(Stub.TRANSACTION_addressUpdated, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().addressUpdated(iface, address);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * An interface address has been removed.
             *
             * @param iface The interface.
             * @param address The address.
             */
        @Override public void addressRemoved(java.lang.String iface, android.net.LinkAddress address) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(iface);
            if ((address!=null)) {
              _data.writeInt(1);
              address.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            boolean _status = mRemote.transact(Stub.TRANSACTION_addressRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().addressRemoved(iface, address);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * A networking quota limit has been reached. The quota might not
             * be specific to an interface.
             *
             * @param limitName The name of the limit that triggered.
             * @param iface The interface on which the limit was detected.
             */
        @Override public void limitReached(java.lang.String limitName, java.lang.String iface) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(limitName);
            _data.writeString(iface);
            boolean _status = mRemote.transact(Stub.TRANSACTION_limitReached, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().limitReached(limitName, iface);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * Interface data activity status is changed.
             *
             * @param iface The interface.
             * @param active  True if the interface is actively transmitting data, false if it is idle.
             * @param tsNanos Elapsed realtime in nanos when the state of the network interface changed.
             */
        @Override public void interfaceClassDataActivityChanged(java.lang.String label, boolean active, long tsNanos) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(label);
            _data.writeInt(((active)?(1):(0)));
            _data.writeLong(tsNanos);
            boolean _status = mRemote.transact(Stub.TRANSACTION_interfaceClassDataActivityChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().interfaceClassDataActivityChanged(label, active, tsNanos);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * Information about available DNS servers has been received.
             *
             * @param iface The interface on which the information was received.
             * @param lifetime The time in seconds for which the DNS servers may be used.
             * @param servers The IP addresses of the DNS servers.
             */
        @Override public void interfaceDnsServerInfo(java.lang.String iface, long lifetime, java.lang.String[] servers) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            _data.writeString(iface);
            _data.writeLong(lifetime);
            _data.writeStringArray(servers);
            boolean _status = mRemote.transact(Stub.TRANSACTION_interfaceDnsServerInfo, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().interfaceDnsServerInfo(iface, lifetime, servers);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * A route has been added or updated.
             */
        @Override public void routeUpdated(android.net.RouteInfo route) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((route!=null)) {
              _data.writeInt(1);
              route.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            boolean _status = mRemote.transact(Stub.TRANSACTION_routeUpdated, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().routeUpdated(route);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        /**
             * A route has been removed.
             */
        @Override public void routeRemoved(android.net.RouteInfo route) throws android.os.RemoteException
        {
          android.os.Parcel _data = android.os.Parcel.obtain();
          try {
            _data.writeInterfaceToken(DESCRIPTOR);
            if ((route!=null)) {
              _data.writeInt(1);
              route.writeToParcel(_data, 0);
            }
            else {
              _data.writeInt(0);
            }
            boolean _status = mRemote.transact(Stub.TRANSACTION_routeRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY);
            if (!_status && getDefaultImpl() != null) {
              getDefaultImpl().routeRemoved(route);
              return;
            }
          }
          finally {
            _data.recycle();
          }
        }
        public static android.net.INetworkManagementEventObserver sDefaultImpl;
      }
      static final int TRANSACTION_interfaceStatusChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
      static final int TRANSACTION_interfaceLinkStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
      static final int TRANSACTION_interfaceAdded = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
      static final int TRANSACTION_interfaceRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
      static final int TRANSACTION_addressUpdated = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
      static final int TRANSACTION_addressRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
      static final int TRANSACTION_limitReached = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
      static final int TRANSACTION_interfaceClassDataActivityChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
      static final int TRANSACTION_interfaceDnsServerInfo = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
      static final int TRANSACTION_routeUpdated = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
      static final int TRANSACTION_routeRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
      public static boolean setDefaultImpl(android.net.INetworkManagementEventObserver 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.net.INetworkManagementEventObserver getDefaultImpl() {
        return Stub.Proxy.sDefaultImpl;
      }
    }
    /**
         * Interface configuration status has changed.
         *
         * @param iface The interface.
         * @param up True if the interface has been enabled.
         */
    public void interfaceStatusChanged(java.lang.String iface, boolean up) throws android.os.RemoteException;
    /**
         * Interface physical-layer link state has changed.  For Ethernet,
         * this method is invoked when the cable is plugged in or unplugged.
         *
         * @param iface The interface.
         * @param up  True if the physical link-layer connection signal is valid.
         */
    public void interfaceLinkStateChanged(java.lang.String iface, boolean up) throws android.os.RemoteException;
    /**
         * An interface has been added to the system
         *
         * @param iface The interface.
         */
    public void interfaceAdded(java.lang.String iface) throws android.os.RemoteException;
    /**
         * An interface has been removed from the system
         *
         * @param iface The interface.
         */
    public void interfaceRemoved(java.lang.String iface) throws android.os.RemoteException;
    /**
         * An interface address has been added or updated.
         *
         * @param iface The interface.
         * @param address The address.
         */
    public void addressUpdated(java.lang.String iface, android.net.LinkAddress address) throws android.os.RemoteException;
    /**
         * An interface address has been removed.
         *
         * @param iface The interface.
         * @param address The address.
         */
    public void addressRemoved(java.lang.String iface, android.net.LinkAddress address) throws android.os.RemoteException;
    /**
         * A networking quota limit has been reached. The quota might not
         * be specific to an interface.
         *
         * @param limitName The name of the limit that triggered.
         * @param iface The interface on which the limit was detected.
         */
    public void limitReached(java.lang.String limitName, java.lang.String iface) throws android.os.RemoteException;
    /**
         * Interface data activity status is changed.
         *
         * @param iface The interface.
         * @param active  True if the interface is actively transmitting data, false if it is idle.
         * @param tsNanos Elapsed realtime in nanos when the state of the network interface changed.
         */
    public void interfaceClassDataActivityChanged(java.lang.String label, boolean active, long tsNanos) throws android.os.RemoteException;
    /**
         * Information about available DNS servers has been received.
         *
         * @param iface The interface on which the information was received.
         * @param lifetime The time in seconds for which the DNS servers may be used.
         * @param servers The IP addresses of the DNS servers.
         */
    public void interfaceDnsServerInfo(java.lang.String iface, long lifetime, java.lang.String[] servers) throws android.os.RemoteException;
    /**
         * A route has been added or updated.
         */
    public void routeUpdated(android.net.RouteInfo route) throws android.os.RemoteException;
    /**
         * A route has been removed.
         */
    public void routeRemoved(android.net.RouteInfo route) throws android.os.RemoteException;
  }
  