diff options
Diffstat (limited to 'services/jni/com_android_server_InputWindow.cpp')
-rw-r--r-- | services/jni/com_android_server_InputWindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/jni/com_android_server_InputWindow.cpp b/services/jni/com_android_server_InputWindow.cpp index 8548b47..d36c010 100644 --- a/services/jni/com_android_server_InputWindow.cpp +++ b/services/jni/com_android_server_InputWindow.cpp @@ -40,6 +40,7 @@ static struct { jfieldID frameTop; jfieldID frameRight; jfieldID frameBottom; + jfieldID scaleFactor; jfieldID touchableRegion; jfieldID visible; jfieldID canReceiveKeys; @@ -102,6 +103,8 @@ void android_server_InputWindow_toNative( gInputWindowClassInfo.frameRight); outInputWindow->frameBottom = env->GetIntField(inputWindowObj, gInputWindowClassInfo.frameBottom); + outInputWindow->scaleFactor = env->GetFloatField(inputWindowObj, + gInputWindowClassInfo.scaleFactor); jobject regionObj = env->GetObjectField(inputWindowObj, gInputWindowClassInfo.touchableRegion); @@ -176,6 +179,9 @@ int register_android_server_InputWindow(JNIEnv* env) { GET_FIELD_ID(gInputWindowClassInfo.frameBottom, gInputWindowClassInfo.clazz, "frameBottom", "I"); + GET_FIELD_ID(gInputWindowClassInfo.scaleFactor, gInputWindowClassInfo.clazz, + "scaleFactor", "F"); + GET_FIELD_ID(gInputWindowClassInfo.touchableRegion, gInputWindowClassInfo.clazz, "touchableRegion", "Landroid/graphics/Region;"); |