diff options
author | Jamie Gennis <jgennis@google.com> | 2012-10-23 15:22:36 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-23 15:22:37 -0700 |
commit | cd79b35c3828e0ebf4c9e68da75f9d857ccf01db (patch) | |
tree | dd61c988eaa7691b8753be7ec1eeb90b5fe768bf /core/jni/android_view_Surface.cpp | |
parent | d401a53c6472921ce7785059195a4f031feea7cc (diff) | |
parent | 95429c3d1b8113c23b0aad3b74d724dccfad7fa9 (diff) | |
download | frameworks_base-cd79b35c3828e0ebf4c9e68da75f9d857ccf01db.zip frameworks_base-cd79b35c3828e0ebf4c9e68da75f9d857ccf01db.tar.gz frameworks_base-cd79b35c3828e0ebf4c9e68da75f9d857ccf01db.tar.bz2 |
Merge "Surface: add the PhysicalDisplayInfo#secure field" into jb-mr1-dev
Diffstat (limited to 'core/jni/android_view_Surface.cpp')
-rw-r--r-- | core/jni/android_view_Surface.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/jni/android_view_Surface.cpp b/core/jni/android_view_Surface.cpp index 8a2c88c..2767e94 100644 --- a/core/jni/android_view_Surface.cpp +++ b/core/jni/android_view_Surface.cpp @@ -89,6 +89,7 @@ static struct { jfieldID density; jfieldID xDpi; jfieldID yDpi; + jfieldID secure; } gPhysicalDisplayInfoClassInfo; @@ -714,6 +715,7 @@ static jboolean nativeGetDisplayInfo(JNIEnv* env, jclass clazz, env->SetFloatField(infoObj, gPhysicalDisplayInfoClassInfo.density, info.density); env->SetFloatField(infoObj, gPhysicalDisplayInfoClassInfo.xDpi, info.xdpi); env->SetFloatField(infoObj, gPhysicalDisplayInfoClassInfo.yDpi, info.ydpi); + env->SetBooleanField(infoObj, gPhysicalDisplayInfoClassInfo.secure, info.secure); return JNI_TRUE; } @@ -907,6 +909,7 @@ int register_android_view_Surface(JNIEnv* env) gPhysicalDisplayInfoClassInfo.density = env->GetFieldID(clazz, "density", "F"); gPhysicalDisplayInfoClassInfo.xDpi = env->GetFieldID(clazz, "xDpi", "F"); gPhysicalDisplayInfoClassInfo.yDpi = env->GetFieldID(clazz, "yDpi", "F"); + gPhysicalDisplayInfoClassInfo.secure = env->GetFieldID(clazz, "secure", "Z"); return err; } |