Sequenceablepublic class ProcessInfo extends Object implements Sequenceable
You can use this class to obtain information about a process, including the process name and ID.
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<ProcessInfo> |
PRODUCER |
Creates a
ProcessInfo instance from a Parcel. |
| 构造器 | 说明 |
|---|---|
ProcessInfo() |
Default constructor used to create a
ProcessInfo instance. |
ProcessInfo(String name,
int pid) |
A parameterized constructor used to create a
ProcessInfo instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getPid() |
Obtains the process ID of an application.
|
String |
getProcessName() |
Obtains the process name of an application.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<ProcessInfo> PRODUCER
ProcessInfo instance from a Parcel.public ProcessInfo()
ProcessInfo instance.public ProcessInfo(String name, int pid)
ProcessInfo instance.name - Indicates the process name of the application.pid - Indicates the process ID of the application.public String getProcessName()
public int getPid()
public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.Sequenceable.marshalling(Parcel)public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.Sequenceable.unmarshalling(Parcel)