Home
last modified time | relevance | path

Searched refs:BYTES_IN_KILOBYTE (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DMemoryStatUtilTest.java19 import static com.android.server.am.MemoryStatUtil.BYTES_IN_KILOBYTE;
275 assertEquals(126776 * BYTES_IN_KILOBYTE, stat.rssInBytes); in testParseMemoryStatFromProcfs_parsesCorrectValues()
277 assertEquals(22 * BYTES_IN_KILOBYTE, stat.swapInBytes); in testParseMemoryStatFromProcfs_parsesCorrectValues()
279 assertEquals(37860 * BYTES_IN_KILOBYTE, stat.anonRssInBytes); in testParseMemoryStatFromProcfs_parsesCorrectValues()
305 assertEquals(137668, parseVmHWMFromProcfs(PROC_STATUS_CONTENTS) / BYTES_IN_KILOBYTE); in testParseVmHWMFromProcfs_parsesCorrectValue()
/frameworks/base/services/core/java/com/android/server/am/
DMemoryStatUtil.java47 static final int BYTES_IN_KILOBYTE = 1024; field in MemoryStatUtil
225 tryParseLong(PROCFS_RSS_IN_KILOBYTES, procStatusContents) * BYTES_IN_KILOBYTE; in parseMemoryStatFromProcfs()
227 tryParseLong(PROCFS_ANON_RSS_IN_KILOBYTES, procStatusContents) * BYTES_IN_KILOBYTE; in parseMemoryStatFromProcfs()
229 tryParseLong(PROCFS_SWAP_IN_KILOBYTES, procStatusContents) * BYTES_IN_KILOBYTE; in parseMemoryStatFromProcfs()
249 * BYTES_IN_KILOBYTE; in parseVmHWMFromProcfs()