diff options
author | Jamie Gennis <jgennis@google.com> | 2012-10-23 15:24:29 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-23 15:24:29 -0700 |
commit | 39c68da57b443c869378263b8063da6e821a1b6d (patch) | |
tree | bd558e62d730cfd8d0c29264b65f3fd30e762777 /core/jni | |
parent | 30fd55cf986077cb21fd7c86e365e1e6f096cffb (diff) | |
parent | cd79b35c3828e0ebf4c9e68da75f9d857ccf01db (diff) | |
download | frameworks_base-39c68da57b443c869378263b8063da6e821a1b6d.zip frameworks_base-39c68da57b443c869378263b8063da6e821a1b6d.tar.gz frameworks_base-39c68da57b443c869378263b8063da6e821a1b6d.tar.bz2 |
am cd79b35c: Merge "Surface: add the PhysicalDisplayInfo#secure field" into jb-mr1-dev
* commit 'cd79b35c3828e0ebf4c9e68da75f9d857ccf01db':
Surface: add the PhysicalDisplayInfo#secure field
Diffstat (limited to 'core/jni')
-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; } |