summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorRafal Slawik <rslawik@google.com>2018-10-01 16:06:39 +0100
committerRafal Slawik <rslawik@google.com>2018-10-02 11:11:10 +0100
commitc886af9821e1a2329c2493845de66cac6f3ba2d0 (patch)
treea56a825cc5193e4f7983013a5f6133ce5d612a54 /tools/aapt2/java/JavaClassGenerator.cpp
parent77460ad149639dab8711740aaa9e01a290e72e19 (diff)
Fix: convert number of pages to bytes
According to man proc(5), the 24th field in /proc/pid/stat is given in the number of pages (not bytes). Convert it to bytes by multiplying by the default page size in Android. Also, replace Long.valueOf with Long.parseLong to avoid auto-unboxing and wrap parsing in a try-catch where need. Change-Id: Ifb20120019bd962b6e8ce5b69d16853218f9575b Fix: 115639792 Test: atest MemoryStatUtilTest
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions