Build 1.0_r1(from source)

android.app
Class ActivityManager.MemoryInfo

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

public static class ActivityManager.MemoryInfo
extends Object
implements Parcelable

Information you can retrieve about the available memory through ActivityManager.getMemoryInfo(android.app.ActivityManager.MemoryInfo).


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Field Summary
 long availMem
          The total available memory on the system.
static Parcelable.Creator<ActivityManager.MemoryInfo> CREATOR
           
 boolean lowMemory
          Set to true if the system considers itself to currently be in a low memory situation.
 long threshold
          The threshold of availMem at which we consider memory to be low and start killing background services and other non-extraneous processes.
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
ActivityManager.MemoryInfo()
           
 
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

availMem

public long availMem
The total available memory on the system. This number should not be considered absolute: due to the nature of the kernel, a significant portion of this memory is actually in use and needed for the overall system to run well.


threshold

public long threshold
The threshold of availMem at which we consider memory to be low and start killing background services and other non-extraneous processes.


lowMemory

public boolean lowMemory
Set to true if the system considers itself to currently be in a low memory situation.


CREATOR

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

ActivityManager.MemoryInfo

public ActivityManager.MemoryInfo()
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