Sequenceablepublic class SystemMemoryInfo extends Object implements Sequenceable
IAbilityManager.getSystemMemoryInfo(ohos.aafwk.ability.SystemMemoryInfo).SystemCapability.Aafwk#ABILITYSequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
SystemMemoryInfo() |
A constructor used to create a
SystemMemoryInfo instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
long |
getAvailSysMem() |
Obtains the available system memory.
|
long |
getThreshold() |
Obtains the threshold of the available system memory, against which the system considers the memory low and
starts to kill background services and other irrelevant processes.
|
long |
getTotalSysMem() |
Obtains the total system memory that is accessible by the kernel.
|
boolean |
isLowSysMemory() |
Checks whether the system memory is low.
|
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 SystemMemoryInfo()
SystemMemoryInfo instance.public long getAvailSysMem()
public long getTotalSysMem()
public long getThreshold()
public boolean isLowSysMemory()
true if the current memory is low; returns false otherwise.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.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.