Java android.os Process fields, constructors, methods, implement or subclass

Example usage for Java android.os Process fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os Process.

The text is from its open source code.

Field

intFIRST_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.
intTHREAD_PRIORITY_DEFAULT
Standard priority of application threads.
intTHREAD_PRIORITY_LOWEST
Lowest available thread priority.
intTHREAD_PRIORITY_BACKGROUND
Standard priority background threads.
intTHREAD_PRIORITY_FOREGROUND
Standard priority of threads that are currently running a user interface that the user is interacting with.
intTHREAD_PRIORITY_DISPLAY
Standard priority of system display threads, involved in updating the user interface.
intTHREAD_PRIORITY_URGENT_DISPLAY
Standard priority of the most important display threads, for compositing the screen and retrieving input events.
intTHREAD_PRIORITY_MORE_FAVORABLE
Minimum increment to make a priority more favorable.
intTHREAD_PRIORITY_LESS_FAVORABLE
Minimum increment to make a priority less favorable.

Method

voidkillProcess(int pid)
Kill the process with the given PID.
intmyPid()
Returns the identifier of this process, which can be used with #killProcess and #sendSignal .
intmyTid()
Returns the identifier of the calling thread, which be used with #setThreadPriority(int,int) .
intmyUid()
Returns the identifier of this process's uid.
UserHandlemyUserHandle()
Returns this process's user handle.
voidsetThreadPriority(int priority)
Set the priority of the calling thread, based on Linux priorities.