public class Process extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BLUETOOTH_UID
Defines the UID/GID for the Bluetooth service process.
|
static int |
DRM_UID
Defines the UID/GID for the DRM process.
|
static int |
FIRST_APPLICATION_UID
Defines the start of a range of UIDs (and GIDs), going from this
number to
LAST_APPLICATION_UID that are reserved for assigning
to applications. |
static int |
FIRST_ISOLATED_UID
First uid used for fully isolated sandboxed processes (with no permissions of their own)
|
static int |
FIRST_SHARED_APPLICATION_GID
First gid for applications to share resources.
|
static int |
LAST_APPLICATION_UID
Last of application-specific UIDs starting at
FIRST_APPLICATION_UID. |
static int |
LAST_ISOLATED_UID
Last uid used for fully isolated sandboxed processes (with no permissions of their own)
|
static int |
LAST_SHARED_APPLICATION_GID
Last gid for applications to share resources.
|
static int |
LOG_UID
Defines the UID/GID for the log group.
|
static int |
MEDIA_RW_GID
Defines the GID for the group that allows write access to the internal media storage.
|
static int |
MEDIA_UID
Defines the UID/GID for the mediaserver process.
|
static int |
NFC_UID
Defines the UID/GID for the NFC service process.
|
static int |
PACKAGE_INFO_GID
Access to installed package details
|
static int |
PHONE_UID
Defines the UID/GID under which the telephony code runs.
|
static int |
ROOT_UID
Defines the root UID.
|
static int |
SCHED_BATCH
Batch scheduling policy
|
static int |
SCHED_FIFO
First-In First-Out scheduling policy
|
static int |
SCHED_IDLE
Idle scheduling policy
|
static int |
SCHED_OTHER
Default scheduling policy
|
static int |
SCHED_RR
Round-Robin scheduling policy
|
static String |
SECONDARY_ZYGOTE_SOCKET |
static int |
SHARED_RELRO_UID
Defines the UID/GID for the shared RELRO file updater process.
|
static int |
SHARED_USER_GID
Defines the gid shared by all applications running under the same profile.
|
static int |
SHELL_UID
Defines the UID/GID for the user shell.
|
static int |
SIGNAL_KILL |
static int |
SIGNAL_QUIT |
static int |
SIGNAL_USR1 |
static int |
SYSTEM_UID
Defines the UID/GID under which system code runs.
|
static int |
THREAD_GROUP_AUDIO_APP
Application audio thread group.
|
static int |
THREAD_GROUP_AUDIO_SYS
System audio thread group.
|
static int |
THREAD_GROUP_BG_NONINTERACTIVE
Background thread group - All threads in
this group are scheduled with a reduced share of the CPU.
|
static int |
THREAD_GROUP_DEFAULT
Default thread group -
has meaning with setProcessGroup() only, cannot be used with setThreadGroup().
|
static int |
THREAD_GROUP_SYSTEM
System thread group.
|
static int |
THREAD_PRIORITY_AUDIO
Standard priority of audio threads.
|
static int |
THREAD_PRIORITY_BACKGROUND
Standard priority background threads.
|
static int |
THREAD_PRIORITY_DEFAULT
Standard priority of application threads.
|
static int |
THREAD_PRIORITY_DISPLAY
Standard priority of system display threads, involved in updating
the user interface.
|
static int |
THREAD_PRIORITY_FOREGROUND
Standard priority of threads that are currently running a user interface
that the user is interacting with.
|
static int |
THREAD_PRIORITY_LESS_FAVORABLE
Minimum increment to make a priority less favorable.
|
static int |
THREAD_PRIORITY_LOWEST
Lowest available thread priority.
|
static int |
THREAD_PRIORITY_MORE_FAVORABLE
Minimum increment to make a priority more favorable.
|
static int |
THREAD_PRIORITY_URGENT_AUDIO
Standard priority of the most important audio threads.
|
static int |
THREAD_PRIORITY_URGENT_DISPLAY
Standard priority of the most important display threads, for compositing
the screen and retrieving input events.
|
static int |
VPN_UID
Defines the UID/GID for the group that controls VPN services.
|
static int |
WIFI_UID
Defines the UID/GID for the WIFI supplicant process.
|
static String |
ZYGOTE_SOCKET |
| Constructor and Description |
|---|
Process() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setThreadPriority(int priority)
Sets the scheduling group for a thread.
|
public static final String ZYGOTE_SOCKET
public static final String SECONDARY_ZYGOTE_SOCKET
public static final int ROOT_UID
public static final int SYSTEM_UID
public static final int PHONE_UID
public static final int SHELL_UID
public static final int LOG_UID
public static final int WIFI_UID
public static final int MEDIA_UID
public static final int DRM_UID
public static final int VPN_UID
public static final int NFC_UID
public static final int BLUETOOTH_UID
public static final int MEDIA_RW_GID
public static final int PACKAGE_INFO_GID
public static final int SHARED_RELRO_UID
public static final int FIRST_APPLICATION_UID
LAST_APPLICATION_UID that are reserved for assigning
to applications.public static final int LAST_APPLICATION_UID
FIRST_APPLICATION_UID.public static final int FIRST_ISOLATED_UID
public static final int LAST_ISOLATED_UID
public static final int SHARED_USER_GID
public static final int FIRST_SHARED_APPLICATION_GID
public static final int LAST_SHARED_APPLICATION_GID
public static final int THREAD_PRIORITY_DEFAULT
setThreadPriority(int) and
#setThreadPriority(int, int), not with the normal
Thread class.public static final int THREAD_PRIORITY_LOWEST
setThreadPriority(int) and
#setThreadPriority(int, int), not with the normal
Thread class.public static final int THREAD_PRIORITY_BACKGROUND
setThreadPriority(int) and
#setThreadPriority(int, int), not with the normal
Thread class.public static final int THREAD_PRIORITY_FOREGROUND
setThreadPriority(int) and
#setThreadPriority(int, int), not with the normal
Thread class.public static final int THREAD_PRIORITY_DISPLAY
setThreadPriority(int) and
#setThreadPriority(int, int), not with the normal
Thread class.public static final int THREAD_PRIORITY_URGENT_DISPLAY
setThreadPriority(int) and
#setThreadPriority(int, int), not with the normal
Thread class.public static final int THREAD_PRIORITY_AUDIO
setThreadPriority(int) and
#setThreadPriority(int, int), not with the normal
Thread class.public static final int THREAD_PRIORITY_URGENT_AUDIO
setThreadPriority(int) and
#setThreadPriority(int, int), not with the normal
Thread class.public static final int THREAD_PRIORITY_MORE_FAVORABLE
public static final int THREAD_PRIORITY_LESS_FAVORABLE
public static final int SCHED_OTHER
public static final int SCHED_FIFO
public static final int SCHED_RR
public static final int SCHED_BATCH
public static final int SCHED_IDLE
public static final int THREAD_GROUP_DEFAULT
public static final int THREAD_GROUP_BG_NONINTERACTIVE
public static final int THREAD_GROUP_SYSTEM
public static final int THREAD_GROUP_AUDIO_APP
public static final int THREAD_GROUP_AUDIO_SYS
public static final int SIGNAL_QUIT
public static final int SIGNAL_KILL
public static final int SIGNAL_USR1
public static final void setThreadPriority(int priority)
throws IllegalArgumentException,
SecurityException
tid - The identifier of the thread to change.group - The target group for this thread from THREAD_GROUP_*.IllegalArgumentException - Throws IllegalArgumentException if
tid does not exist.SecurityException - Throws SecurityException if your process does
not have permission to modify the given thread, or to use the given
priority.
If the thread is a thread group leader, that is it's gettid() == getpid(),
then the other threads in the same thread group are _not_ affected.