public static class ActivityManager.MemoryInfo extends Object implements Parcelable
ActivityManager.getMemoryInfo(android.app.ActivityManager.MemoryInfo)
.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
long |
availMem
The available memory on the system.
|
static Parcelable.Creator<ActivityManager.MemoryInfo> |
CREATOR |
long |
foregroundAppThreshold |
long |
hiddenAppThreshold |
boolean |
lowMemory
Set to true if the system considers itself to currently be in a low
memory situation.
|
long |
secondaryServerThreshold |
long |
threshold
The threshold of
availMem at which we consider memory to be
low and start killing background services and other non-extraneous
processes. |
long |
totalMem
The total memory accessible by the kernel.
|
long |
visibleAppThreshold |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
MemoryInfo() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
void |
readFromParcel(Parcel source) |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public long availMem
public long totalMem
public long threshold
availMem
at which we consider memory to be
low and start killing background services and other non-extraneous
processes.public boolean lowMemory
public long hiddenAppThreshold
public long secondaryServerThreshold
public long visibleAppThreshold
public long foregroundAppThreshold
public static final Parcelable.Creator<ActivityManager.MemoryInfo> CREATOR
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
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
.public void readFromParcel(Parcel source)