Home
last modified time | relevance | path

Searched refs:memoryInfo (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/tools/preload/loadclass/
DLoadClass.java62 Debug.MemoryInfo memoryInfo = new Debug.MemoryInfo(); in main() local
63 Debug.getMemoryInfo(memoryInfo); in main()
64 response.append(',').append(memoryInfo.nativeSharedDirty); in main()
65 response.append(',').append(memoryInfo.dalvikSharedDirty); in main()
66 response.append(',').append(memoryInfo.otherSharedDirty); in main()
67 response.append(',').append(memoryInfo.nativePrivateDirty); in main()
68 response.append(',').append(memoryInfo.dalvikPrivateDirty); in main()
69 response.append(',').append(memoryInfo.otherPrivateDirty); in main()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java154 Debug.MemoryInfo memoryInfo = new Debug.MemoryInfo(); in testMemoryAllocation() local
155 Debug.getMemoryInfo(memoryInfo); in testMemoryAllocation()
156 final long memoryBefore = memoryInfo.getTotalPss(); // Get memory usage in KB in testMemoryAllocation()
162 Debug.getMemoryInfo(memoryInfo); in testMemoryAllocation()
163 final long memoryAfter = memoryInfo.getTotalPss(); in testMemoryAllocation()
/frameworks/base/services/core/jni/
Dcom_android_server_am_CachedAppOptimizer.cpp506 struct sysinfo memoryInfo; in com_android_server_am_CachedAppOptimizer_getFreeSwapPercent() local
507 int error = sysinfo(&memoryInfo); in com_android_server_am_CachedAppOptimizer_getFreeSwapPercent()
512 return (double)memoryInfo.freeswap / (double)memoryInfo.totalswap; in com_android_server_am_CachedAppOptimizer_getFreeSwapPercent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileLifecycleManagerTest.java379 ActivityManager.MemoryInfo memoryInfo = invocation.getArgument(0); in testKillProcessLowMemory()
380 memoryInfo.lowMemory = true; in testKillProcessLowMemory()
422 ActivityManager.MemoryInfo memoryInfo = invocation.getArgument(0); in testKillProcessLowMemory_unbound_doesntBindAgain()
423 memoryInfo.lowMemory = true; in testKillProcessLowMemory_unbound_doesntBindAgain()
/frameworks/base/core/java/android/os/
DDebug.java1945 public static native void getMemoryInfo(MemoryInfo memoryInfo); in getMemoryInfo() argument
1956 public static native boolean getMemoryInfo(int pid, MemoryInfo memoryInfo); in getMemoryInfo() argument
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java1156 ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); in isRunningOnLowMemory() local
1157 mActivityManager.getMemoryInfo(memoryInfo); in isRunningOnLowMemory()
1158 double availableMBsInPercentage = memoryInfo.availMem / (double)memoryInfo.totalMem * in isRunningOnLowMemory()