diff options
author | Jamie Gennis <jgennis@google.com> | 2012-10-22 15:30:42 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2012-10-23 15:07:22 -0700 |
commit | 95429c3d1b8113c23b0aad3b74d724dccfad7fa9 (patch) | |
tree | a19df31393246ef80b5629033112aa6820ac4f61 /core/jni | |
parent | 5be59670c26edf27bfdfdf0430b535dda718bd9d (diff) | |
download | frameworks_base-95429c3d1b8113c23b0aad3b74d724dccfad7fa9.zip frameworks_base-95429c3d1b8113c23b0aad3b74d724dccfad7fa9.tar.gz frameworks_base-95429c3d1b8113c23b0aad3b74d724dccfad7fa9.tar.bz2 |
Surface: add the PhysicalDisplayInfo#secure field
Bug: 7368436
Change-Id: I38bf7bbfca354380c30da7516f628cf40416d350
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; } |