/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/net/INetworkManagementEventObserver.aidl
 */
package android.net;
Callback class for receiving events from an INetworkManagementService
@hide
/** * Callback class for receiving events from an INetworkManagementService * * @hide */
public interface INetworkManagementEventObserver extends android.os.IInterface {
Local-side IPC implementation stub class.
/** 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.
/** 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.
/** * 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); reply.writeNoException(); 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); reply.writeNoException(); return true; } case TRANSACTION_interfaceAdded: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.interfaceAdded(_arg0); reply.writeNoException(); return true; } case TRANSACTION_interfaceRemoved: { data.enforceInterface(descriptor); java.lang.String _arg0; _arg0 = data.readString(); this.interfaceRemoved(_arg0); reply.writeNoException(); 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); reply.writeNoException(); 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); reply.writeNoException(); 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); reply.writeNoException(); 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); reply.writeNoException(); 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); reply.writeNoException(); 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); reply.writeNoException(); 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); reply.writeNoException(); 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.
Params:
  • iface – The interface.
  • up – True if the interface has been enabled.
/** * 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(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(iface); _data.writeInt(((up)?(1):(0))); mRemote.transact(Stub.TRANSACTION_interfaceStatusChanged, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Interface physical-layer link state has changed. For Ethernet, this method is invoked when the cable is plugged in or unplugged.
Params:
  • iface – The interface.
  • up – True if the physical link-layer connection signal is valid.
/** * 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(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(iface); _data.writeInt(((up)?(1):(0))); mRemote.transact(Stub.TRANSACTION_interfaceLinkStateChanged, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
An interface has been added to the system
Params:
  • iface – The interface.
/** * 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(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(iface); mRemote.transact(Stub.TRANSACTION_interfaceAdded, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
An interface has been removed from the system
Params:
  • iface – The interface.
/** * 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(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(iface); mRemote.transact(Stub.TRANSACTION_interfaceRemoved, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
An interface address has been added or updated.
Params:
  • iface – The interface.
  • address – The address.
/** * 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(); android.os.Parcel _reply = 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); } mRemote.transact(Stub.TRANSACTION_addressUpdated, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
An interface address has been removed.
Params:
  • iface – The interface.
  • address – The address.
/** * 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(); android.os.Parcel _reply = 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); } mRemote.transact(Stub.TRANSACTION_addressRemoved, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
A networking quota limit has been reached. The quota might not be specific to an interface.
Params:
  • limitName – The name of the limit that triggered.
  • iface – The interface on which the limit was detected.
/** * 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(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(limitName); _data.writeString(iface); mRemote.transact(Stub.TRANSACTION_limitReached, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Interface data activity status is changed.
Params:
  • iface – The interface.
  • active – True if the interface is actively transmitting data, false if it is idle.
  • tsNanos – Elapsed realtime in nanos when the state of the network interface changed.
/** * 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(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(label); _data.writeInt(((active)?(1):(0))); _data.writeLong(tsNanos); mRemote.transact(Stub.TRANSACTION_interfaceClassDataActivityChanged, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Information about available DNS servers has been received.
Params:
  • iface – The interface on which the information was received.
  • lifetime – The time in seconds for which the DNS servers may be used.
  • servers – The IP addresses of the DNS servers.
/** * 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(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(iface); _data.writeLong(lifetime); _data.writeStringArray(servers); mRemote.transact(Stub.TRANSACTION_interfaceDnsServerInfo, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
A route has been added or updated.
/** * 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(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((route!=null)) { _data.writeInt(1); route.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_routeUpdated, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
A route has been removed.
/** * 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(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((route!=null)) { _data.writeInt(1); route.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_routeRemoved, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } 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); }
Interface configuration status has changed.
Params:
  • iface – The interface.
  • up – True if the interface has been enabled.
/** * 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.
Params:
  • iface – The interface.
  • up – True if the physical link-layer connection signal is valid.
/** * 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
Params:
  • iface – The interface.
/** * 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
Params:
  • iface – The interface.
/** * 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.
Params:
  • iface – The interface.
  • address – The address.
/** * 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.
Params:
  • iface – The interface.
  • address – The address.
/** * 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.
Params:
  • limitName – The name of the limit that triggered.
  • iface – The interface on which the limit was detected.
/** * 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.
Params:
  • iface – The interface.
  • active – True if the interface is actively transmitting data, false if it is idle.
  • tsNanos – Elapsed realtime in nanos when the state of the network interface changed.
/** * 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.
Params:
  • iface – The interface on which the information was received.
  • lifetime – The time in seconds for which the DNS servers may be used.
  • servers – The IP addresses of the DNS servers.
/** * 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.
/** * A route has been added or updated. */
public void routeUpdated(android.net.RouteInfo route) throws android.os.RemoteException;
A route has been removed.
/** * A route has been removed. */
public void routeRemoved(android.net.RouteInfo route) throws android.os.RemoteException; }