summaryrefslogtreecommitdiffstats
path: root/services/jni
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2013-10-02 10:13:27 -0700
committerAdam Lesinski <adamlesinski@google.com>2013-10-02 16:18:55 -0700
commit95c42974f719d1fac90fc0438eac778e9795681f (patch)
tree3f56c329cc584cb5a3be12792748811c920163ca /services/jni
parent27d3c0fe3775c85c2e25eb84089280cb217799c8 (diff)
downloadframeworks_base-95c42974f719d1fac90fc0438eac778e9795681f.zip
frameworks_base-95c42974f719d1fac90fc0438eac778e9795681f.tar.gz
frameworks_base-95c42974f719d1fac90fc0438eac778e9795681f.tar.bz2
Private flags are masked in correct variable
Newly added private flags were being masked in the public flag variable as opposed to the correct privateFlags variable. bug:11033280 bug:11043194 Change-Id: Idda3a70a083457f3f1b7d4b46d231f4a7e704cf0
Diffstat (limited to 'services/jni')
-rw-r--r--services/jni/com_android_server_input_InputWindowHandle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/jni/com_android_server_input_InputWindowHandle.cpp b/services/jni/com_android_server_input_InputWindowHandle.cpp
index bbb27d3..82e3dad 100644
--- a/services/jni/com_android_server_input_InputWindowHandle.cpp
+++ b/services/jni/com_android_server_input_InputWindowHandle.cpp
@@ -35,6 +35,7 @@ static struct {
jfieldID inputChannel;
jfieldID name;
jfieldID layoutParamsFlags;
+ jfieldID layoutParamsPrivateFlags;
jfieldID layoutParamsType;
jfieldID dispatchingTimeoutNanos;
jfieldID frameLeft;
@@ -109,6 +110,8 @@ bool NativeInputWindowHandle::updateInfo() {
mInfo->layoutParamsFlags = env->GetIntField(obj,
gInputWindowHandleClassInfo.layoutParamsFlags);
+ mInfo->layoutParamsPrivateFlags = env->GetIntField(obj,
+ gInputWindowHandleClassInfo.layoutParamsPrivateFlags);
mInfo->layoutParamsType = env->GetIntField(obj,
gInputWindowHandleClassInfo.layoutParamsType);
mInfo->dispatchingTimeout = env->GetLongField(obj,
@@ -244,6 +247,9 @@ int register_android_server_InputWindowHandle(JNIEnv* env) {
GET_FIELD_ID(gInputWindowHandleClassInfo.layoutParamsFlags, clazz,
"layoutParamsFlags", "I");
+ GET_FIELD_ID(gInputWindowHandleClassInfo.layoutParamsPrivateFlags, clazz,
+ "layoutParamsPrivateFlags", "I");
+
GET_FIELD_ID(gInputWindowHandleClassInfo.layoutParamsType, clazz,
"layoutParamsType", "I");