android.os
Class Process
java.lang.Object
android.os.Process
public class Process
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SYSTEM_UID
public static final int SYSTEM_UID
- See Also:
- Constant Field Values
PHONE_UID
public static final int PHONE_UID
- See Also:
- Constant Field Values
FIRST_APPLICATION_UID
public static final int FIRST_APPLICATION_UID
- See Also:
- Constant Field Values
LAST_APPLICATION_UID
public static final int LAST_APPLICATION_UID
- See Also:
- Constant Field Values
BLUETOOTH_GID
public static final int BLUETOOTH_GID
- See Also:
- Constant Field Values
THREAD_PRIORITY_DEFAULT
public static final int THREAD_PRIORITY_DEFAULT
- See Also:
- Constant Field Values
THREAD_PRIORITY_LOWEST
public static final int THREAD_PRIORITY_LOWEST
- See Also:
- Constant Field Values
THREAD_PRIORITY_BACKGROUND
public static final int THREAD_PRIORITY_BACKGROUND
- See Also:
- Constant Field Values
THREAD_PRIORITY_FOREGROUND
public static final int THREAD_PRIORITY_FOREGROUND
- See Also:
- Constant Field Values
THREAD_PRIORITY_DISPLAY
public static final int THREAD_PRIORITY_DISPLAY
- See Also:
- Constant Field Values
THREAD_PRIORITY_URGENT_DISPLAY
public static final int THREAD_PRIORITY_URGENT_DISPLAY
- See Also:
- Constant Field Values
THREAD_PRIORITY_AUDIO
public static final int THREAD_PRIORITY_AUDIO
- See Also:
- Constant Field Values
THREAD_PRIORITY_URGENT_AUDIO
public static final int THREAD_PRIORITY_URGENT_AUDIO
- See Also:
- Constant Field Values
THREAD_PRIORITY_MORE_FAVORABLE
public static final int THREAD_PRIORITY_MORE_FAVORABLE
- See Also:
- Constant Field Values
THREAD_PRIORITY_LESS_FAVORABLE
public static final int THREAD_PRIORITY_LESS_FAVORABLE
- See Also:
- Constant Field Values
SIGNAL_QUIT
public static final int SIGNAL_QUIT
- See Also:
- Constant Field Values
SIGNAL_KILL
public static final int SIGNAL_KILL
- See Also:
- Constant Field Values
SIGNAL_USR1
public static final int SIGNAL_USR1
- See Also:
- Constant Field Values
Process
public Process()
getElapsedCpuTime
public static final long getElapsedCpuTime()
myPid
public static final int myPid()
myTid
public static final int myTid()
myUid
public static final int myUid()
getUidForName
public static final int getUidForName(String name)
getGidForName
public static final int getGidForName(String name)
setThreadPriority
public static final void setThreadPriority(int tid,
int priority)
throws IllegalArgumentException,
SecurityException
- Throws:
IllegalArgumentException
SecurityException
setThreadPriority
public static final void setThreadPriority(int priority)
throws IllegalArgumentException,
SecurityException
- Throws:
IllegalArgumentException
SecurityException
getThreadPriority
public static final int getThreadPriority(int tid)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
supportsProcesses
public static final boolean supportsProcesses()
killProcess
public static final void killProcess(int pid)
sendSignal
public static final void sendSignal(int pid,
int signal)
Copyright © 2008-2012. All Rights Reserved.