Press on the image to return to the main documentation page.
MSOS
Written by thedesolatesoul
List of types:
MSOS
MSOS
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Permissions:
android.permission.GET_TASKS
Events:
None
Members:
formateFileSize
(
size
As
Long
)
As
String
getForegroundApp
(
pImportance
As
Int
)
As
List
getForegroundTask
As
List
getFormattedSystemAvailabeMemorySize
As
String
getFormattedSystemTotalMemorySize
As
String
getProcessMemoryInfo
(
pid
As
Int
)
As
Int
getSystemAvailabeMemorySize
As
Long
getSystemTotalMemorySize
As
Long
IMPORTANCE_FOREGROUND
As
Int
IMPORTANCE_VISIBLE
As
Int
NumCores
As
Int
[read
only]
Members description:
formateFileSize
(
size
As
Long
)
As
String
Formats the raw size of anything in bytes into a human readable string
size: in bytes
Return type: @return:a formatted string
getForegroundApp
(
pImportance
As
Int
)
As
List
Returns a list of processes with the corresponding IMPORTANCE FLAG set
The format of the return list is
|
|
getForegroundTask
As
List
Returns a list of Running tasks
The format of the return list is
|
getFormattedSystemAvailabeMemorySize
As
String
Gets available/free system memory as a formatted string
ba:
Return type: @return:
getFormattedSystemTotalMemorySize
As
String
Gets the formatted string for Total Memory size availble to the kernel, this excludes DMA buffers and other low level allocations
getProcessMemoryInfo
(
pid
As
Int
)
As
Int
Returns memory information about a process id
Get the process id from getForegroundApp
pid:
Return type: @return:
getSystemAvailabeMemorySize
As
Long
Gets available/free system memory in bytes
ba:
Return type: @return:
getSystemTotalMemorySize
As
Long
Gets the Total Memory size availble to the kernel, this excludes DMA buffers and other low level allocations
IMPORTANCE_FOREGROUND
As
Int
IMPORTANCE_VISIBLE
As
Int
NumCores
As
Int
[read
only]
Gets the number of cores available in this device, across all processors.
Requires: Ability to peruse the filesystem at "/sys/devices/system/cpu"
Top