ProcessInfo

public class ProcessInfo
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.ProcessInfo


Used to store process related(USER, PID, NAME, START TIME IN SECOND SINCE EPOCH) information.

Summary

Public constructors

ProcessInfo(String user, int pid, String name)

Constructs the process info object based on the user, process id and name of the process.

ProcessInfo(String user, int pid, String name, long startTime)

Constructs the process info object based on the user, process id, name of the process, process start time.

Public methods

String getName()

Returns the process name.

int getPid()

Returns the process ID number.

long getStartTime()

Returns the process start time in second since epoch.

String getUser()

Returns the username of the process's owner.

String toString()

Public constructors

ProcessInfo

public ProcessInfo (String user, 
                int pid, 
                String name)

Constructs the process info object based on the user, process id and name of the process.

Parameters
user String: username of process owner

pid int: process id number

name String: process name

ProcessInfo

public ProcessInfo (String user, 
                int pid, 
                String name, 
                long startTime)

Constructs the process info object based on the user, process id, name of the process, process start time.

Parameters
user String: username of process owner

pid int: process id number

name String: process name

startTime long: process start time in second since epoch

Public methods

getName

public String getName ()

Returns the process name.

Returns
String

getPid

public int getPid ()

Returns the process ID number.

Returns
int

getStartTime

public long getStartTime ()

Returns the process start time in second since epoch. For device process, the start time would use device time

Returns
long

getUser

public String getUser ()

Returns the username of the process's owner.

Returns
String

toString

public String toString ()

Returns
String