Build 1.0_r1(from source)

android.app
Class ActivityManager.RunningServiceInfo

java.lang.Object
  extended by android.app.ActivityManager.RunningServiceInfo
All Implemented Interfaces:
Parcelable
Enclosing class:
ActivityManager

public static class ActivityManager.RunningServiceInfo
extends Object
implements Parcelable

Information you can retrieve about a particular Service that is currently running in the system.


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Field Summary
 long activeSince
          The time when the service was first made activity, either by someone starting or binding to it.
 int clientCount
          Number of clients connected to the service.
 int crashCount
          Number of times the service's process has crashed while the service is running.
static Parcelable.Creator<ActivityManager.RunningServiceInfo> CREATOR
           
 boolean foreground
          Set to true if the service has asked to run as a foreground process.
 long lastActivityTime
          The time when there was last activity in the service (either explicit requests to start it or clients binding to it).
 int pid
          If non-zero, this is the process the service is running in.
 String process
          The name of the process this service runs in.
 long restarting
          If non-zero, this service is not currently running, but scheduled to restart at the given time.
 ComponentName service
          The service component.
 boolean started
          Set to true if this service has been explicitly started.
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
ActivityManager.RunningServiceInfo()
           
 
Method Summary
 int describeContents()
          Describe the kinds of special objects contained in this Parcelable's marshalled representation.
 void readFromParcel(Parcel source)
           
 void writeToParcel(Parcel dest, int flags)
          Flatten this object in to a Parcel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

public ComponentName service
The service component.


pid

public int pid
If non-zero, this is the process the service is running in.


process

public String process
The name of the process this service runs in.


foreground

public boolean foreground
Set to true if the service has asked to run as a foreground process.


activeSince

public long activeSince
The time when the service was first made activity, either by someone starting or binding to it.


started

public boolean started
Set to true if this service has been explicitly started.


clientCount

public int clientCount
Number of clients connected to the service.


crashCount

public int crashCount
Number of times the service's process has crashed while the service is running.


lastActivityTime

public long lastActivityTime
The time when there was last activity in the service (either explicit requests to start it or clients binding to it).


restarting

public long restarting
If non-zero, this service is not currently running, but scheduled to restart at the given time.


CREATOR

public static final Parcelable.Creator<ActivityManager.RunningServiceInfo> CREATOR
Constructor Detail

ActivityManager.RunningServiceInfo

public ActivityManager.RunningServiceInfo()
Method Detail

describeContents

public int describeContents()
Description copied from interface: Parcelable
Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Specified by:
describeContents in interface Parcelable
Returns:
a bitmask indicating the set of special object types marshalled by the Parcelable.

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Description copied from interface: Parcelable
Flatten this object in to a Parcel.

Specified by:
writeToParcel in interface Parcelable
Parameters:
dest - The Parcel in which the object should be written.
flags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.

readFromParcel

public void readFromParcel(Parcel source)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature