-
- All Implemented Interfaces:
-
android.app.IUidObserver,android.os.IBinder
@RequiresApi(value = Build.VERSION_CODES.N) public class UidObserverAdapter extends IUidObserver.Stub
-
-
Method Summary
Modifier and Type Method Description final voidonUidGone(int uid)voidonUidGone(int uid, boolean disabled)Report that there are no longer any processes running for a uid. voidonUidActive(int uid)Report that a uid is now active (no longer idle). final voidonUidIdle(int uid)voidonUidIdle(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 voidonUidStateChanged(int uid, int procState)final voidonUidStateChanged(int uid, int procState, long procStateSeq)voidonUidStateChanged(int uid, int procState, long procStateSeq, int capability)General report of a state change of an uid. voidonUidCachedChanged(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. booleanonTransact(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
final void onUidGone(int uid)
-
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
final void onUidIdle(int uid)
-
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)
-
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.
-
onTransact
boolean onTransact(int code, @NonNull() Parcel data, Parcel reply, int flags)
-
-
-
-