Home
last modified time | relevance | path

Searched refs:_env (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/core/jni/
Dcom_google_android_gles_jni_EGLImpl.cpp72 static void nativeClassInit(JNIEnv *_env, jclass eglImplClass) in nativeClassInit() argument
74 jclass config_class = _env->FindClass("com/google/android/gles_jni/EGLConfigImpl"); in nativeClassInit()
75 gConfig_class = (jclass) _env->NewGlobalRef(config_class); in nativeClassInit()
76 gConfig_ctorID = _env->GetMethodID(gConfig_class, "<init>", "(J)V"); in nativeClassInit()
77 gConfig_EGLConfigFieldID = _env->GetFieldID(gConfig_class, "mEGLConfig", "J"); in nativeClassInit()
79 jclass display_class = _env->FindClass("com/google/android/gles_jni/EGLDisplayImpl"); in nativeClassInit()
80 gDisplay_EGLDisplayFieldID = _env->GetFieldID(display_class, "mEGLDisplay", "J"); in nativeClassInit()
82 jclass context_class = _env->FindClass("com/google/android/gles_jni/EGLContextImpl"); in nativeClassInit()
83 gContext_EGLContextFieldID = _env->GetFieldID(context_class, "mEGLContext", "J"); in nativeClassInit()
85 jclass surface_class = _env->FindClass("com/google/android/gles_jni/EGLSurfaceImpl"); in nativeClassInit()
[all …]
Dandroid_opengl_EGLExt.cpp62 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
64 jclass egldisplayClassLocal = _env->FindClass("android/opengl/EGLDisplay"); in nativeClassInit()
65 egldisplayClass = (jclass) _env->NewGlobalRef(egldisplayClassLocal); in nativeClassInit()
66 jclass eglcontextClassLocal = _env->FindClass("android/opengl/EGLContext"); in nativeClassInit()
67 eglcontextClass = (jclass) _env->NewGlobalRef(eglcontextClassLocal); in nativeClassInit()
68 jclass eglsurfaceClassLocal = _env->FindClass("android/opengl/EGLSurface"); in nativeClassInit()
69 eglsurfaceClass = (jclass) _env->NewGlobalRef(eglsurfaceClassLocal); in nativeClassInit()
70 jclass eglconfigClassLocal = _env->FindClass("android/opengl/EGLConfig"); in nativeClassInit()
71 eglconfigClass = (jclass) _env->NewGlobalRef(eglconfigClassLocal); in nativeClassInit()
73 egldisplayGetHandleID = _env->GetMethodID(egldisplayClass, "getNativeHandle", "()J"); in nativeClassInit()
[all …]
Dandroid_opengl_EGL14.cpp61 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
63 jclass egldisplayClassLocal = _env->FindClass("android/opengl/EGLDisplay"); in nativeClassInit()
64 egldisplayClass = (jclass) _env->NewGlobalRef(egldisplayClassLocal); in nativeClassInit()
65 jclass eglcontextClassLocal = _env->FindClass("android/opengl/EGLContext"); in nativeClassInit()
66 eglcontextClass = (jclass) _env->NewGlobalRef(eglcontextClassLocal); in nativeClassInit()
67 jclass eglsurfaceClassLocal = _env->FindClass("android/opengl/EGLSurface"); in nativeClassInit()
68 eglsurfaceClass = (jclass) _env->NewGlobalRef(eglsurfaceClassLocal); in nativeClassInit()
69 jclass eglconfigClassLocal = _env->FindClass("android/opengl/EGLConfig"); in nativeClassInit()
70 eglconfigClass = (jclass) _env->NewGlobalRef(eglconfigClassLocal); in nativeClassInit()
72 egldisplayGetHandleID = _env->GetMethodID(egldisplayClass, "getNativeHandle", "()J"); in nativeClassInit()
[all …]
Dandroid_opengl_GLES11Ext.cpp77 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
79 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
80 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
82 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
83 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
85 getBasePointerID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
87 getBaseArrayID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
89 getBaseArrayOffsetID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
92 positionID = _env->GetFieldID(bufferClass, "position", "I"); in nativeClassInit()
93 limitID = _env->GetFieldID(bufferClass, "limit", "I"); in nativeClassInit()
[all …]
Dcom_google_android_gles_jni_GLImpl.cpp86 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
88 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
89 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
91 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
92 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
94 jclass g11impClassLocal = _env->FindClass("com/google/android/gles_jni/GLImpl"); in nativeClassInit()
95 G11ImplClass = (jclass) _env->NewGlobalRef(g11impClassLocal); in nativeClassInit()
96 haveCheckedExtensionsID = _env->GetFieldID(G11ImplClass, "haveCheckedExtensions", "Z"); in nativeClassInit()
97 …have_OES_blend_equation_separateID = _env->GetFieldID(G11ImplClass, "have_OES_blend_equation_sepa… in nativeClassInit()
98 have_OES_blend_subtractID = _env->GetFieldID(G11ImplClass, "have_OES_blend_subtract", "Z"); in nativeClassInit()
[all …]
Dandroid_opengl_GLES30.cpp77 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
79 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
80 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
82 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
83 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
85 getBasePointerID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
87 getBaseArrayID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
89 getBaseArrayOffsetID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
92 positionID = _env->GetFieldID(bufferClass, "position", "I"); in nativeClassInit()
93 limitID = _env->GetFieldID(bufferClass, "limit", "I"); in nativeClassInit()
[all …]
Dandroid_opengl_GLES20.cpp77 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
79 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
80 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
82 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
83 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
85 getBasePointerID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
87 getBaseArrayID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
89 getBaseArrayOffsetID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
92 positionID = _env->GetFieldID(bufferClass, "position", "I"); in nativeClassInit()
93 limitID = _env->GetFieldID(bufferClass, "limit", "I"); in nativeClassInit()
[all …]
Dandroid_opengl_GLES31Ext.cpp76 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
78 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
79 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
81 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
82 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
84 getBasePointerID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
86 getBaseArrayID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
88 getBaseArrayOffsetID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
91 positionID = _env->GetFieldID(bufferClass, "position", "I"); in nativeClassInit()
92 limitID = _env->GetFieldID(bufferClass, "limit", "I"); in nativeClassInit()
[all …]
Dandroid_opengl_GLES31.cpp75 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
77 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
78 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
80 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
81 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
83 getBasePointerID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
85 getBaseArrayID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
87 getBaseArrayOffsetID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
90 positionID = _env->GetFieldID(bufferClass, "position", "I"); in nativeClassInit()
91 limitID = _env->GetFieldID(bufferClass, "limit", "I"); in nativeClassInit()
[all …]
Dandroid_opengl_GLES11.cpp77 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
79 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
80 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
82 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
83 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
85 getBasePointerID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
87 getBaseArrayID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
89 getBaseArrayOffsetID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
92 positionID = _env->GetFieldID(bufferClass, "position", "I"); in nativeClassInit()
93 limitID = _env->GetFieldID(bufferClass, "limit", "I"); in nativeClassInit()
[all …]
Dandroid_opengl_GLES10.cpp77 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
79 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
80 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
82 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
83 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
85 getBasePointerID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
87 getBaseArrayID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
89 getBaseArrayOffsetID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
92 positionID = _env->GetFieldID(bufferClass, "position", "I"); in nativeClassInit()
93 limitID = _env->GetFieldID(bufferClass, "limit", "I"); in nativeClassInit()
[all …]
Dandroid_opengl_GLES10Ext.cpp77 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
79 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
80 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
82 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
83 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
85 getBasePointerID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
87 getBaseArrayID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
89 getBaseArrayOffsetID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
92 positionID = _env->GetFieldID(bufferClass, "position", "I"); in nativeClassInit()
93 limitID = _env->GetFieldID(bufferClass, "limit", "I"); in nativeClassInit()
[all …]
/frameworks/native/opengl/tools/glgen/stubs/egl/
DEGL14cHeader.cpp61 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
63 jclass egldisplayClassLocal = _env->FindClass("android/opengl/EGLDisplay"); in nativeClassInit()
64 egldisplayClass = (jclass) _env->NewGlobalRef(egldisplayClassLocal); in nativeClassInit()
65 jclass eglcontextClassLocal = _env->FindClass("android/opengl/EGLContext"); in nativeClassInit()
66 eglcontextClass = (jclass) _env->NewGlobalRef(eglcontextClassLocal); in nativeClassInit()
67 jclass eglsurfaceClassLocal = _env->FindClass("android/opengl/EGLSurface"); in nativeClassInit()
68 eglsurfaceClass = (jclass) _env->NewGlobalRef(eglsurfaceClassLocal); in nativeClassInit()
69 jclass eglconfigClassLocal = _env->FindClass("android/opengl/EGLConfig"); in nativeClassInit()
70 eglconfigClass = (jclass) _env->NewGlobalRef(eglconfigClassLocal); in nativeClassInit()
72 egldisplayGetHandleID = _env->GetMethodID(egldisplayClass, "getNativeHandle", "()J"); in nativeClassInit()
[all …]
DEGLExtcHeader.cpp62 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
64 jclass egldisplayClassLocal = _env->FindClass("android/opengl/EGLDisplay"); in nativeClassInit()
65 egldisplayClass = (jclass) _env->NewGlobalRef(egldisplayClassLocal); in nativeClassInit()
66 jclass eglcontextClassLocal = _env->FindClass("android/opengl/EGLContext"); in nativeClassInit()
67 eglcontextClass = (jclass) _env->NewGlobalRef(eglcontextClassLocal); in nativeClassInit()
68 jclass eglsurfaceClassLocal = _env->FindClass("android/opengl/EGLSurface"); in nativeClassInit()
69 eglsurfaceClass = (jclass) _env->NewGlobalRef(eglsurfaceClassLocal); in nativeClassInit()
70 jclass eglconfigClassLocal = _env->FindClass("android/opengl/EGLConfig"); in nativeClassInit()
71 eglconfigClass = (jclass) _env->NewGlobalRef(eglconfigClassLocal); in nativeClassInit()
73 egldisplayGetHandleID = _env->GetMethodID(egldisplayClass, "getNativeHandle", "()J"); in nativeClassInit()
[all …]
DeglCreateWindowSurface.cpp4 …(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref,… in android_eglCreateWindowSurface() argument
9 EGLDisplay dpy_native = (EGLDisplay) fromEGLHandle(_env, egldisplayGetHandleID, dpy); in android_eglCreateWindowSurface()
10 EGLConfig config_native = (EGLConfig) fromEGLHandle(_env, eglconfigGetHandleID, config); in android_eglCreateWindowSurface()
37 window = android::android_view_Surface_getNativeWindow(_env, win); in android_eglCreateWindowSurface()
42 _remaining = _env->GetArrayLength(attrib_list_ref) - offset; in android_eglCreateWindowSurface()
44 _env->GetPrimitiveArrayCritical(attrib_list_ref, (jboolean *)0); in android_eglCreateWindowSurface()
69 _env->ReleasePrimitiveArrayCritical(attrib_list_ref, attrib_list_base, in android_eglCreateWindowSurface()
73 jniThrowException(_env, _exceptionType, _exceptionMessage); in android_eglCreateWindowSurface()
75 return toEGLHandle(_env, eglsurfaceClass, eglsurfaceConstructor, _returnValue); in android_eglCreateWindowSurface()
81 …(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref,… in android_eglCreateWindowSurfaceTexture() argument
[all …]
/frameworks/native/opengl/tools/glgen/stubs/jsr239/
DGLCHeader.cpp85 nativeClassInit(JNIEnv *_env, jclass glImplClass)
87 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess");
88 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal);
90 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer");
91 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal);
93 jclass g11impClassLocal = _env->FindClass("com/google/android/gles_jni/GLImpl");
94 G11ImplClass = (jclass) _env->NewGlobalRef(g11impClassLocal);
95 haveCheckedExtensionsID = _env->GetFieldID(G11ImplClass, "haveCheckedExtensions", "Z");
96 …have_OES_blend_equation_separateID = _env->GetFieldID(G11ImplClass, "have_OES_blend_equation_sepa…
97 have_OES_blend_subtractID = _env->GetFieldID(G11ImplClass, "have_OES_blend_subtract", "Z");
[all …]
/frameworks/support/v8/renderscript/jni/
Dandroid_renderscript_RenderScript.cpp93 nContextFinish(JNIEnv *_env, jobject _this, RsContext con) in nContextFinish() argument
100 nObjDestroy(JNIEnv *_env, jobject _this, RsContext con, jint obj) in nObjDestroy() argument
109 nDeviceCreate(JNIEnv *_env, jobject _this) in nDeviceCreate() argument
116 nDeviceDestroy(JNIEnv *_env, jobject _this, jint dev) in nDeviceDestroy() argument
123 nDeviceSetConfig(JNIEnv *_env, jobject _this, jint dev, jint p, jint value) in nDeviceSetConfig() argument
130 nContextCreate(JNIEnv *_env, jobject _this, jint dev, jint ver, jint sdkVer, jint ct) in nContextCreate() argument
138 nContextSetPriority(JNIEnv *_env, jobject _this, RsContext con, jint p) in nContextSetPriority() argument
147 nContextDestroy(JNIEnv *_env, jobject _this, RsContext con) in nContextDestroy() argument
154 nContextDump(JNIEnv *_env, jobject _this, RsContext con, jint bits) in nContextDump() argument
162 nContextGetErrorMessage(JNIEnv *_env, jobject _this, RsContext con) in nContextGetErrorMessage() argument
[all …]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
DglGetTransformFeedbackVarying.cpp4 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint l… in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI() argument
33 _lengthRemaining = _env->GetArrayLength(length_ref) - lengthOffset; in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
35 _env->GetPrimitiveArrayCritical(length_ref, (jboolean *)0); in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
50 _sizeRemaining = _env->GetArrayLength(size_ref) - sizeOffset; in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
52 _env->GetPrimitiveArrayCritical(size_ref, (jboolean *)0); in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
67 _typeRemaining = _env->GetArrayLength(type_ref) - typeOffset; in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
69 _env->GetPrimitiveArrayCritical(type_ref, (jboolean *)0); in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
84 _nameRemaining = _env->GetArrayLength(name_ref) - nameOffset; in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
86 _env->GetPrimitiveArrayCritical(name_ref, (jboolean *)0); in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
101 _env->ReleasePrimitiveArrayCritical(name_ref, name_base, in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
[all …]
DglGetActiveUniform.cpp4 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint l… in android_glGetActiveUniform__III_3II_3II_3II_3BI() argument
33 _lengthRemaining = _env->GetArrayLength(length_ref) - lengthOffset; in android_glGetActiveUniform__III_3II_3II_3II_3BI()
35 _env->GetPrimitiveArrayCritical(length_ref, (jboolean *)0); in android_glGetActiveUniform__III_3II_3II_3II_3BI()
50 _sizeRemaining = _env->GetArrayLength(size_ref) - sizeOffset; in android_glGetActiveUniform__III_3II_3II_3II_3BI()
52 _env->GetPrimitiveArrayCritical(size_ref, (jboolean *)0); in android_glGetActiveUniform__III_3II_3II_3II_3BI()
67 _typeRemaining = _env->GetArrayLength(type_ref) - typeOffset; in android_glGetActiveUniform__III_3II_3II_3II_3BI()
69 _env->GetPrimitiveArrayCritical(type_ref, (jboolean *)0); in android_glGetActiveUniform__III_3II_3II_3II_3BI()
84 _nameRemaining = _env->GetArrayLength(name_ref) - nameOffset; in android_glGetActiveUniform__III_3II_3II_3II_3BI()
86 _env->GetPrimitiveArrayCritical(name_ref, (jboolean *)0); in android_glGetActiveUniform__III_3II_3II_3II_3BI()
101 _env->ReleasePrimitiveArrayCritical(name_ref, name_base, in android_glGetActiveUniform__III_3II_3II_3II_3BI()
[all …]
DglGetActiveAttrib.cpp4 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint l… in android_glGetActiveAttrib__III_3II_3II_3II_3BI() argument
33 _lengthRemaining = _env->GetArrayLength(length_ref) - lengthOffset; in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
35 _env->GetPrimitiveArrayCritical(length_ref, (jboolean *)0); in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
50 _sizeRemaining = _env->GetArrayLength(size_ref) - sizeOffset; in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
52 _env->GetPrimitiveArrayCritical(size_ref, (jboolean *)0); in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
67 _typeRemaining = _env->GetArrayLength(type_ref) - typeOffset; in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
69 _env->GetPrimitiveArrayCritical(type_ref, (jboolean *)0); in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
84 _nameRemaining = _env->GetArrayLength(name_ref) - nameOffset; in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
86 _env->GetPrimitiveArrayCritical(name_ref, (jboolean *)0); in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
101 _env->ReleasePrimitiveArrayCritical(name_ref, name_base, in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
[all …]
Dcommon.cpp55 nativeClassInit(JNIEnv *_env, jclass glImplClass) in nativeClassInit() argument
57 jclass nioAccessClassLocal = _env->FindClass("java/nio/NIOAccess"); in nativeClassInit()
58 nioAccessClass = (jclass) _env->NewGlobalRef(nioAccessClassLocal); in nativeClassInit()
60 jclass bufferClassLocal = _env->FindClass("java/nio/Buffer"); in nativeClassInit()
61 bufferClass = (jclass) _env->NewGlobalRef(bufferClassLocal); in nativeClassInit()
63 getBasePointerID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
65 getBaseArrayID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
67 getBaseArrayOffsetID = _env->GetStaticMethodID(nioAccessClass, in nativeClassInit()
70 positionID = _env->GetFieldID(bufferClass, "position", "I"); in nativeClassInit()
71 limitID = _env->GetFieldID(bufferClass, "limit", "I"); in nativeClassInit()
[all …]
DglGetUniformIndices.cpp5 …(JNIEnv *_env, jobject _this, jint program, jobjectArray uniformNames_ref, jintArray uniformIndice… in android_glGetUniformIndices_array() argument
21 _count = _env->GetArrayLength(uniformNames_ref); in android_glGetUniformIndices_array()
24 jstring _name = (jstring)_env->GetObjectArrayElement(uniformNames_ref, _i); in android_glGetUniformIndices_array()
31 _names[_i] = _env->GetStringUTFChars(_name, 0); in android_glGetUniformIndices_array()
46 if (_env->GetArrayLength(uniformIndices_ref) - uniformIndicesOffset < _count) { in android_glGetUniformIndices_array()
52 _indices_base = (GLuint*)_env->GetPrimitiveArrayCritical( in android_glGetUniformIndices_array()
60 _env->ReleasePrimitiveArrayCritical(uniformIndices_ref, _indices_base, in android_glGetUniformIndices_array()
65 jstring _name = (jstring)_env->GetObjectArrayElement(uniformNames_ref, _i); in android_glGetUniformIndices_array()
67 _env->ReleaseStringUTFChars(_name, _names[_i]); in android_glGetUniformIndices_array()
73 jniThrowException(_env, _exceptionType, _exceptionMessage); in android_glGetUniformIndices_array()
[all …]
DglGetShaderSource.cpp4 …(JNIEnv *_env, jobject _this, jint shader, jint bufsize, jintArray length_ref, jint lengthOffset, … in android_glGetShaderSource__II_3II_3BI() argument
27 _lengthRemaining = _env->GetArrayLength(length_ref) - lengthOffset; in android_glGetShaderSource__II_3II_3BI()
29 _env->GetPrimitiveArrayCritical(length_ref, (jboolean *)0); in android_glGetShaderSource__II_3II_3BI()
44 _sourceRemaining = _env->GetArrayLength(source_ref) - sourceOffset; in android_glGetShaderSource__II_3II_3BI()
46 _env->GetPrimitiveArrayCritical(source_ref, (jboolean *)0); in android_glGetShaderSource__II_3II_3BI()
58 _env->ReleasePrimitiveArrayCritical(source_ref, source_base, in android_glGetShaderSource__II_3II_3BI()
62 _env->ReleasePrimitiveArrayCritical(length_ref, length_base, in android_glGetShaderSource__II_3II_3BI()
66 jniThrowException(_env, _exceptionType, _exceptionMessage); in android_glGetShaderSource__II_3II_3BI()
73 (JNIEnv *_env, jobject _this, jint shader, jint bufsize, jobject length_buf, jbyte source) { in android_glGetShaderSource__IILjava_nio_IntBuffer_2B() argument
79 length = (GLsizei *)getPointer(_env, length_buf, &_array, &_remaining, &_bufferOffset); in android_glGetShaderSource__IILjava_nio_IntBuffer_2B()
[all …]
DglGetActiveUniformBlockName.cpp4 …(JNIEnv* _env, jobject _this, jint program, jint uniformBlockIndex, int bufSize, jintArray length_… in android_glGetActiveUniformBlockName_III_3II_3BI() argument
27 _lengthRemaining = _env->GetArrayLength(length_ref) - lengthOffset; in android_glGetActiveUniformBlockName_III_3II_3BI()
28 _length_base = (GLsizei*)_env->GetPrimitiveArrayCritical( in android_glGetActiveUniformBlockName_III_3II_3BI()
44 _nameRemaining = _env->GetArrayLength(name_ref) - nameOffset; in android_glGetActiveUniformBlockName_III_3II_3BI()
45 _name_base = (GLchar*)_env->GetPrimitiveArrayCritical( in android_glGetActiveUniformBlockName_III_3II_3BI()
59 _env->ReleasePrimitiveArrayCritical(name_ref, _name_base, in android_glGetActiveUniformBlockName_III_3II_3BI()
63 _env->ReleasePrimitiveArrayCritical(length_ref, _length_base, in android_glGetActiveUniformBlockName_III_3II_3BI()
67 jniThrowException(_env, _exceptionType, _exceptionMessage); in android_glGetActiveUniformBlockName_III_3II_3BI()
74 …(JNIEnv* _env, jobject _this, jint program, jint uniformBlockIndex, jobject length_buf, jobject un… in android_glGetActiveUniformBlockName_IILjava_nio_Buffer_2Ljava_nio_Buffer_2() argument
87 …_length = (GLsizei*)getPointer(_env, length_buf, &_lengthArray, &_lengthRemaining, &_lengthBufferO… in android_glGetActiveUniformBlockName_IILjava_nio_Buffer_2Ljava_nio_Buffer_2()
[all …]
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp61 len = _env->GetArrayLength((jfloatArray)data); \
62 ptr = _env->GetFloatArrayElements((jfloatArray)data, flag); \
65 _env->ReleaseFloatArrayElements((jfloatArray)data, (jfloat *)ptr, relFlag); \
68 len = _env->GetArrayLength((jdoubleArray)data); \
69 ptr = _env->GetDoubleArrayElements((jdoubleArray)data, flag); \
72 _env->ReleaseDoubleArrayElements((jdoubleArray)data, (jdouble *)ptr, relFlag); \
76 len = _env->GetArrayLength((jbyteArray)data); \
77 ptr = _env->GetByteArrayElements((jbyteArray)data, flag); \
80 _env->ReleaseByteArrayElements((jbyteArray)data, (jbyte*)ptr, relFlag); \
84 len = _env->GetArrayLength((jshortArray)data); \
[all …]

123