Package 

Class UidObserverAdapter

    • Method Summary

      Modifier and Type Method Description
      final void onUidGone(int uid)
      void onUidGone(int uid, boolean disabled) Report that there are no longer any processes running for a uid.
      void onUidActive(int uid) Report that a uid is now active (no longer idle).
      final void onUidIdle(int uid)
      void onUidIdle(int uid, boolean disabled) Report that a uid is idle -- it has either been running in the background fora sufficient period of time, or all of its processes have gone away.
      final void onUidStateChanged(int uid, int procState)
      final void onUidStateChanged(int uid, int procState, long procStateSeq)
      void onUidStateChanged(int uid, int procState, long procStateSeq, int capability) General report of a state change of an uid.
      void onUidCachedChanged(int uid, boolean cached) 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 areall in the cached state.
      boolean onTransact(int code, @NonNull() Parcel data, Parcel reply, int flags)
      • Methods inherited from class android.os.Binder

        attachInterface, clearCallingIdentity, clearCallingWorkSource, dumpAsync, flushPendingCommands, getCallingPid, getCallingUid, getCallingUidOrThrow, getCallingUserHandle, getCallingWorkSourceUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, restoreCallingWorkSource, setCallingWorkSourceUid, transact, unlinkToDeath
      • Methods inherited from class android.os.IBinder

        addFrozenStateChangeCallback, getSuggestedMaxIpcSizeBytes, removeFrozenStateChangeCallback
      • Methods inherited from class android.app.IUidObserver

        onUidActive, onUidCachedChanged, onUidGone, onUidIdle, onUidStateChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onUidGone

         void onUidGone(int uid, boolean disabled)

        Report that there are no longer any processes running for a uid.

        Parameters:
        disabled - Added from 8.
      • onUidActive

         void onUidActive(int uid)

        Report that a uid is now active (no longer idle).

      • onUidIdle

         void onUidIdle(int uid, boolean disabled)

        Report that a uid is idle -- it has either been running in the background fora sufficient period of time, or all of its processes have gone away.

        Parameters:
        disabled - Added from 8.
      • onUidStateChanged

         final void onUidStateChanged(int uid, int procState, long procStateSeq)
      • onUidStateChanged

         void onUidStateChanged(int uid, int procState, long procStateSeq, int capability)

        General report of a state change of an uid.

        Parameters:
        uid - The uid for which the state change is being reported.
        procState - The updated process state for the uid.
        procStateSeq - The sequence no.
        capability - the updated process capability for the uid.
      • onUidCachedChanged

         void onUidCachedChanged(int uid, boolean cached)

        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 areall 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 afteronUidCached() has been reported true. It will happen when either one of its activelyrunning processes is no longer cached, or it no longer has any actively running processes.