Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04eed731 authored by Zhen Zhang's avatar Zhen Zhang
Browse files

Update registerUidObserver documentation

Mentioned that if using ActivityManger#PROCESS_STATE_UNKNOWN as the
cutpoint, onUidStateChanged will be called on every state change.

Test: only change javadoc
Fix: 427558514
Flag: DOCS_ONLY
Change-Id: I782d62a8b8fb3b6070df8ae78ad94d08b3edab3f
parent 03fb9e8f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -8086,7 +8086,9 @@ public class ActivityManagerService extends IActivityManager.Stub
     * @param observer The UidObserver implementation to register.
     * @param which    A bitmask of events to observe. See ActivityManager.UID_OBSERVER_*.
     * @param cutpoint The cutpoint for onUidStateChanged events. When the state crosses this
     *                 threshold in either direction, onUidStateChanged will be called.
     *                 threshold in either direction, onUidStateChanged will be called. If using
     *                 {@link ActivityManager#PROCESS_STATE_UNKNOWN}, onUidStateChanged will be
     *                 called on every state change.
     * @param callingPackage The name of the calling package.
     * @param uids     A list of uids to watch. If all uids are to be watched, use
     *                 registerUidObserver instead.