summaryrefslogtreecommitdiffstats
path: root/services/jni
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-08-10 16:25:21 -0700
committerJeff Brown <jeffbrown@google.com>2011-08-10 16:25:21 -0700
commit89ef0720ee8e0ac6ae1758faa917e4d6c9606fb4 (patch)
tree2c239993b3d2702dd8becc03a738f1b151a4c4f1 /services/jni
parentba421dddfd558b34726df5dfbf8a3bf748e285b1 (diff)
downloadframeworks_base-89ef0720ee8e0ac6ae1758faa917e4d6c9606fb4.zip
frameworks_base-89ef0720ee8e0ac6ae1758faa917e4d6c9606fb4.tar.gz
frameworks_base-89ef0720ee8e0ac6ae1758faa917e4d6c9606fb4.tar.bz2
Add input system to Watchdog.
Bug: 5094994 Change-Id: I153866958efc64ac19bda8b997c1c9f6ad425ec4
Diffstat (limited to 'services/jni')
-rw-r--r--services/jni/com_android_server_InputManager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/services/jni/com_android_server_InputManager.cpp b/services/jni/com_android_server_InputManager.cpp
index 3414eea..7c84e43 100644
--- a/services/jni/com_android_server_InputManager.cpp
+++ b/services/jni/com_android_server_InputManager.cpp
@@ -1288,6 +1288,15 @@ static jstring android_server_InputManager_nativeDump(JNIEnv* env, jclass clazz)
return env->NewStringUTF(dump.string());
}
+static void android_server_InputManager_nativeMonitor(JNIEnv* env, jclass clazz) {
+ if (checkInputManagerUnitialized(env)) {
+ return;
+ }
+
+ gNativeInputManager->getInputManager()->getReader()->monitor();
+ gNativeInputManager->getInputManager()->getDispatcher()->monitor();
+}
+
// ----------------------------------------------------------------------------
static JNINativeMethod gInputManagerMethods[] = {
@@ -1338,6 +1347,8 @@ static JNINativeMethod gInputManagerMethods[] = {
(void*) android_server_InputManager_nativeSetPointerSpeed },
{ "nativeDump", "()Ljava/lang/String;",
(void*) android_server_InputManager_nativeDump },
+ { "nativeMonitor", "()V",
+ (void*) android_server_InputManager_nativeMonitor },
};
#define FIND_CLASS(var, className) \