Modifier and Type | Class and Description |
---|---|
class |
Watchdog.HandlerChecker
Used for checking status of handle threads and scheduling monitor callbacks.
|
static interface |
Watchdog.Monitor |
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static String[] |
NATIVE_STACKS_OF_INTEREST |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
void |
addMonitor(Watchdog.Monitor monitor) |
void |
addThread(Handler thread) |
void |
addThread(Handler thread,
long timeoutMillis) |
static Watchdog |
getInstance() |
void |
init(Context context,
ActivityManagerService activity) |
void |
processStarted(String name,
int pid) |
void |
run()
If this thread was constructed using a separate
Runnable run object, then that
Runnable object's run method is called;
otherwise, this method does nothing and returns. |
void |
setActivityController(IActivityController controller) |
void |
setAllowRestart(boolean allowRestart) |
activeCount, blockedOn, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, parkFor$, parkUntil$, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, unpark$, yield
public static final String[] NATIVE_STACKS_OF_INTEREST
public static Watchdog getInstance()
public void init(Context context, ActivityManagerService activity)
public void processStarted(String name, int pid)
public void setActivityController(IActivityController controller)
public void setAllowRestart(boolean allowRestart)
public void addMonitor(Watchdog.Monitor monitor)
public void addThread(Handler thread)
public void addThread(Handler thread, long timeoutMillis)
public void run()
Thread
Runnable
run object, then that
Runnable
object's run
method is called;
otherwise, this method does nothing and returns.
Subclasses of Thread
should override this method.
run
in interface Runnable
run
in class Thread
Thread.start()
,
Thread.stop()
,
Thread.Thread(ThreadGroup, Runnable, String)