From a9c53f456a72ffbf36b4da2e520e26844b11c1b4 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Wed, 17 Jul 2013 18:01:48 -0700 Subject: Add updateProcessState to VMRuntime This process state will be used for determining GC behavior. Change-Id: I2dde66a79d8fa835a7ed2499bd37069c6062f84b --- libdvm/src/main/java/dalvik/system/VMRuntime.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libdvm') diff --git a/libdvm/src/main/java/dalvik/system/VMRuntime.java b/libdvm/src/main/java/dalvik/system/VMRuntime.java index 8ee607c..fb77bed 100644 --- a/libdvm/src/main/java/dalvik/system/VMRuntime.java +++ b/libdvm/src/main/java/dalvik/system/VMRuntime.java @@ -237,4 +237,11 @@ public final class VMRuntime { * Registers a native free by reducing the number of native bytes accounted for. */ public native void registerNativeFree(int bytes); + + /* + * Updates the internal process state of the VM. You can find the process states in + * ActivityManager. + */ + public native void updateProcessState(int newProcessState); + } -- cgit v1.1