PsParser

public class PsParser
extends Object

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


Utility used to parse(USER,PID and NAME) from the "ps" command output

Summary

Public constructors

PsParser()

Public methods

static getProcesses(String psOutput)

Parse username, process id and process name from the ps command output and convert to list of ProcessInfo objects.

Public constructors

PsParser

public PsParser ()

Public methods

getProcesses

public static  getProcesses (String psOutput)

Parse username, process id and process name from the ps command output and convert to list of ProcessInfo objects.

Parameters
psOutput String: output of "ps" command.

Returns
list of processInfo