Home
last modified time | relevance | path

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

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowActivityManager.java30 private ActivityManager.MemoryInfo memoryInfo; field in ShadowActivityManager
127 if (memoryInfo != null) { in getMemoryInfo()
128 outInfo.availMem = memoryInfo.availMem; in getMemoryInfo()
129 outInfo.lowMemory = memoryInfo.lowMemory; in getMemoryInfo()
130 outInfo.threshold = memoryInfo.threshold; in getMemoryInfo()
131 outInfo.totalMem = memoryInfo.totalMem; in getMemoryInfo()
192 public void setMemoryInfo(ActivityManager.MemoryInfo memoryInfo) { in setMemoryInfo() argument
193 this.memoryInfo = memoryInfo; in setMemoryInfo()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowActivityManagerTest.java32 ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); in getMemoryInfo_canGetMemoryInfoForOurProcess() local
33 memoryInfo.availMem = 12345; in getMemoryInfo_canGetMemoryInfoForOurProcess()
34 memoryInfo.lowMemory = true; in getMemoryInfo_canGetMemoryInfoForOurProcess()
35 memoryInfo.threshold = 10000; in getMemoryInfo_canGetMemoryInfoForOurProcess()
36 memoryInfo.totalMem = 55555; in getMemoryInfo_canGetMemoryInfoForOurProcess()
37 shadowOf(activityManager).setMemoryInfo(memoryInfo); in getMemoryInfo_canGetMemoryInfoForOurProcess()
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/
DSkiaPooledImageRegionDecoder.java456 ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo(); in isLowMemory() local
457 activityManager.getMemoryInfo(memoryInfo); in isLowMemory()
458 return memoryInfo.lowMemory; in isLowMemory()