/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/app/IUidObserver.aidl
 */
package android.app;
{@hide}
/** {@hide} */
public interface IUidObserver 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.app.IUidObserver { private static final java.lang.String DESCRIPTOR = "android.app.IUidObserver";
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.app.IUidObserver interface, generating a proxy if needed.
/** * Cast an IBinder object into an android.app.IUidObserver interface, * generating a proxy if needed. */
public static android.app.IUidObserver asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.app.IUidObserver))) { return ((android.app.IUidObserver)iin); } return new android.app.IUidObserver.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_onUidGone: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _arg1; _arg1 = (0!=data.readInt()); this.onUidGone(_arg0, _arg1); return true; } case TRANSACTION_onUidActive: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); this.onUidActive(_arg0); return true; } case TRANSACTION_onUidIdle: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _arg1; _arg1 = (0!=data.readInt()); this.onUidIdle(_arg0, _arg1); return true; } case TRANSACTION_onUidStateChanged: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); long _arg2; _arg2 = data.readLong(); this.onUidStateChanged(_arg0, _arg1, _arg2); return true; } case TRANSACTION_onUidCachedChanged: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); boolean _arg1; _arg1 = (0!=data.readInt()); this.onUidCachedChanged(_arg0, _arg1); return true; } default: { return super.onTransact(code, data, reply, flags); } } } private static class Proxy implements android.app.IUidObserver { 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; } // WARNING: when these transactions are updated, check if they are any callers on the native // side. If so, make sure they are using the correct transaction ids and arguments. // If a transaction which will also be used on the native side is being inserted, add it to // below block of transactions. // Since these transactions are also called from native code, these must be kept in sync with // the ones in frameworks/native/include/binder/IActivityManager.h // =============== Beginning of transactions used on native side as well ======================
Report that there are no longer any processes running for a uid.
/** * Report that there are no longer any processes running for a uid. */
@Override public void onUidGone(int uid, boolean disabled) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(uid); _data.writeInt(((disabled)?(1):(0))); mRemote.transact(Stub.TRANSACTION_onUidGone, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } }
Report that a uid is now active (no longer idle).
/** * Report that a uid is now active (no longer idle). */
@Override public void onUidActive(int uid) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(uid); mRemote.transact(Stub.TRANSACTION_onUidActive, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } }
Report that a uid is idle -- it has either been running in the background for a sufficient period of time, or all of its processes have gone away.
/** * Report that a uid is idle -- it has either been running in the background for * a sufficient period of time, or all of its processes have gone away. */
@Override public void onUidIdle(int uid, boolean disabled) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(uid); _data.writeInt(((disabled)?(1):(0))); mRemote.transact(Stub.TRANSACTION_onUidIdle, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } // =============== End of transactions used on native side as well ============================
General report of a state change of an uid.
Params:
  • uid – The uid for which the state change is being reported.
  • procState – The updated process state for the uid.
  • procStateSeq – The sequence no. associated with process state change of the uid, see UidRecord.procStateSeq for details.
/** * General report of a state change of an uid. * * @param uid The uid for which the state change is being reported. * @param procState The updated process state for the uid. * @param procStateSeq The sequence no. associated with process state change of the uid, * see UidRecord.procStateSeq for details. */
@Override public void onUidStateChanged(int uid, int procState, long procStateSeq) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(uid); _data.writeInt(procState); _data.writeLong(procStateSeq); mRemote.transact(Stub.TRANSACTION_onUidStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } }
Report when the cached state of a uid has changed. If true, a uid has become cached -- that is, it has some active processes that are all in the cached state. It should be doing as little as possible at this point. If false, that a uid is no longer cached. This will only be called after onUidCached() has been reported true. It will happen when either one of its actively running processes is no longer cached, or it no longer has any actively running processes.
/** * Report when the cached state of a uid has changed. * If true, a uid has become cached -- that is, it has some active processes that are * all in the cached state. It should be doing as little as possible at this point. * If false, that a uid is no longer cached. This will only be called after * onUidCached() has been reported true. It will happen when either one of its actively * running processes is no longer cached, or it no longer has any actively running processes. */
@Override public void onUidCachedChanged(int uid, boolean cached) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(uid); _data.writeInt(((cached)?(1):(0))); mRemote.transact(Stub.TRANSACTION_onUidCachedChanged, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } } static final int TRANSACTION_onUidGone = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onUidActive = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_onUidIdle = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_onUidStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_onUidCachedChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); } // WARNING: when these transactions are updated, check if they are any callers on the native // side. If so, make sure they are using the correct transaction ids and arguments. // If a transaction which will also be used on the native side is being inserted, add it to // below block of transactions. // Since these transactions are also called from native code, these must be kept in sync with // the ones in frameworks/native/include/binder/IActivityManager.h // =============== Beginning of transactions used on native side as well ======================
Report that there are no longer any processes running for a uid.
/** * Report that there are no longer any processes running for a uid. */
public void onUidGone(int uid, boolean disabled) throws android.os.RemoteException;
Report that a uid is now active (no longer idle).
/** * Report that a uid is now active (no longer idle). */
public void onUidActive(int uid) throws android.os.RemoteException;
Report that a uid is idle -- it has either been running in the background for a sufficient period of time, or all of its processes have gone away.
/** * Report that a uid is idle -- it has either been running in the background for * a sufficient period of time, or all of its processes have gone away. */
public void onUidIdle(int uid, boolean disabled) throws android.os.RemoteException; // =============== End of transactions used on native side as well ============================
General report of a state change of an uid.
Params:
  • uid – The uid for which the state change is being reported.
  • procState – The updated process state for the uid.
  • procStateSeq – The sequence no. associated with process state change of the uid, see UidRecord.procStateSeq for details.
/** * General report of a state change of an uid. * * @param uid The uid for which the state change is being reported. * @param procState The updated process state for the uid. * @param procStateSeq The sequence no. associated with process state change of the uid, * see UidRecord.procStateSeq for details. */
public void onUidStateChanged(int uid, int procState, long procStateSeq) throws android.os.RemoteException;
Report when the cached state of a uid has changed. If true, a uid has become cached -- that is, it has some active processes that are all in the cached state. It should be doing as little as possible at this point. If false, that a uid is no longer cached. This will only be called after onUidCached() has been reported true. It will happen when either one of its actively running processes is no longer cached, or it no longer has any actively running processes.
/** * Report when the cached state of a uid has changed. * If true, a uid has become cached -- that is, it has some active processes that are * all in the cached state. It should be doing as little as possible at this point. * If false, that a uid is no longer cached. This will only be called after * onUidCached() has been reported true. It will happen when either one of its actively * running processes is no longer cached, or it no longer has any actively running processes. */
public void onUidCachedChanged(int uid, boolean cached) throws android.os.RemoteException; }