Home
last modified time | relevance | path

Searched refs:program (Results 1 – 25 of 176) sorted by relevance

12345678

/frameworks/base/media/mca/filterfw/jni/
Djni_native_program.cpp39 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_nativeInit() local
40 return ToJBool(program && program->CallInit()); in Java_android_filterfw_core_NativeProgram_nativeInit()
46 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_openNativeLibrary() local
47 return ToJBool(program && lib_name && program->OpenLibrary(ToCppString(env, lib_name))); in Java_android_filterfw_core_NativeProgram_openNativeLibrary()
53 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_bindInitFunction() local
54 return ToJBool(program && func_name && program->BindInitFunction(ToCppString(env, func_name))); in Java_android_filterfw_core_NativeProgram_bindInitFunction()
60 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_bindSetValueFunction() local
61 return ToJBool(program && in Java_android_filterfw_core_NativeProgram_bindSetValueFunction()
63 program->BindSetValueFunction(ToCppString(env, func_name))); in Java_android_filterfw_core_NativeProgram_bindSetValueFunction()
69 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_bindGetValueFunction() local
[all …]
Djni_shader_program.cpp71 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_compileAndLink() local
72 return program ? ToJBool(program->CompileAndLink()) : JNI_FALSE; in Java_android_filterfw_core_ShaderProgram_compileAndLink()
79 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_setUniformValue() local
83 return ToJBool(program && program->SetUniformValue(c_key, c_value)); in Java_android_filterfw_core_ShaderProgram_setUniformValue()
93 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_getUniformValue() local
95 return program ? ToJObject(env, program->GetUniformValue(c_key)) : JNI_NULL; in Java_android_filterfw_core_ShaderProgram_getUniformValue()
102 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_shaderProcess() local
104 if (program && inputs && output) { in Java_android_filterfw_core_ShaderProgram_shaderProcess()
125 if (!program->Process(input_frames, output_frame)) { in Java_android_filterfw_core_ShaderProgram_shaderProcess()
139 ShaderProgram* program = gl_env_ptr ? ShaderProgram::CreateIdentity(gl_env_ptr) : NULL; in Java_android_filterfw_core_ShaderProgram_nativeCreateIdentity() local
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLES31.java257 int program, in glGetProgramInterfaceiv() argument
267 int program, in glGetProgramInterfaceiv() argument
276 int program, in glGetProgramResourceIndex() argument
284 int program, in glGetProgramResourceName() argument
292 int program, in glGetProgramResourceiv() argument
308 int program, in glGetProgramResourceiv() argument
321 int program, in glGetProgramResourceLocation() argument
331 int program in glUseProgramStages() argument
338 int program in glActiveShaderProgram() argument
410 int program, in glProgramUniform1i() argument
[all …]
DGLES20.java345 int program, in glAttachShader() argument
352 int program, in glBindAttribLocation() argument
592 int program in glDeleteProgram() argument
653 int program, in glDetachShader() argument
811 int program, in glGetActiveAttrib() argument
828 int program, in glGetActiveAttrib() argument
840 int program, in glGetActiveAttrib() argument
851 int program, in glGetActiveAttrib() argument
859 int program, in glGetActiveUniform() argument
876 int program, in glGetActiveUniform() argument
[all …]
DGLES30.java870 int program, in glTransformFeedbackVaryings() argument
878 int program, in glGetTransformFeedbackVarying() argument
897 int program, in glGetTransformFeedbackVarying() argument
909 int program, in glGetTransformFeedbackVarying() argument
921 int program, in glGetTransformFeedbackVarying() argument
932 int program, in glGetTransformFeedbackVarying() argument
1063 int program, in glGetUniformuiv() argument
1072 int program, in glGetUniformuiv() argument
1080 int program, in glGetFragDataLocation() argument
1266 int program, in glGetUniformIndices() argument
[all …]
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES31.spec7 void glGetProgramInterfaceiv ( GLuint program, GLenum programInterface, GLenum pname, GLint *params…
8 GLuint glGetProgramResourceIndex ( GLuint program, GLenum programInterface, const GLchar *name )
9 void glGetProgramResourceName ( GLuint program, GLenum programInterface, GLuint index, GLsizei bufS…
10 void glGetProgramResourceiv ( GLuint program, GLenum programInterface, GLuint index, GLsizei propCo…
11 GLint glGetProgramResourceLocation ( GLuint program, GLenum programInterface, const GLchar *name )
12 void glUseProgramStages ( GLuint pipeline, GLbitfield stages, GLuint program )
13 void glActiveShaderProgram ( GLuint pipeline, GLuint program )
20 void glProgramUniform1i ( GLuint program, GLint location, GLint v0 )
21 void glProgramUniform2i ( GLuint program, GLint location, GLint v0, GLint v1 )
22 void glProgramUniform3i ( GLuint program, GLint location, GLint v0, GLint v1, GLint v2 )
[all …]
DGLES20.spec2 void glAttachShader ( GLuint program, GLuint shader )
3 void glBindAttribLocation ( GLuint program, GLuint index, const char *name )
31 void glDeleteProgram ( GLuint program )
38 void glDetachShader ( GLuint program, GLuint shader )
56 void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *siz…
57 void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *si…
58 void glGetAttachedShaders ( GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders )
59 GLint glGetAttribLocation ( GLuint program, const char *name )
66 void glGetProgramiv ( GLuint program, GLenum pname, GLint *params )
67 void glGetProgramInfoLog ( GLuint program, GLsizei bufsize, GLsizei *length, char *infolog )
[all …]
/frameworks/av/cmds/screenrecord/
DProgram.cpp77 GLuint program; in setup() local
79 err = createProgram(&program, kVertexShader, kFragmentShader); in setup()
81 err = createProgram(&program, kVertexShader, kExtFragmentShader); in setup()
86 assert(program != 0); in setup()
88 maPositionLoc = glGetAttribLocation(program, "aPosition"); in setup()
89 maTextureCoordLoc = glGetAttribLocation(program, "aTextureCoord"); in setup()
90 muMVPMatrixLoc = glGetUniformLocation(program, "uMVPMatrix"); in setup()
91 muGLCMatrixLoc = glGetUniformLocation(program, "uGLCMatrix"); in setup()
92 muTextureLoc = glGetUniformLocation(program, "uTexture"); in setup()
96 glDeleteProgram(program); in setup()
[all …]
/frameworks/base/services/tests/servicestests/src/android/net/apf/
DApfTest.java102 private void assertVerdict(int expected, byte[] program, byte[] packet, int filterAge) { in assertVerdict() argument
103 assertReturnCodesEqual(expected, apfSimulate(program, packet, filterAge)); in assertVerdict()
106 private void assertVerdict(int expected, byte[] program, byte[] packet) { in assertVerdict() argument
107 assertReturnCodesEqual(expected, apfSimulate(program, packet, 0)); in assertVerdict()
110 private void assertPass(byte[] program, byte[] packet, int filterAge) { in assertPass() argument
111 assertVerdict(PASS, program, packet, filterAge); in assertPass()
114 private void assertPass(byte[] program, byte[] packet) { in assertPass() argument
115 assertVerdict(PASS, program, packet); in assertPass()
118 private void assertDrop(byte[] program, byte[] packet, int filterAge) { in assertDrop() argument
119 assertVerdict(DROP, program, packet, filterAge); in assertDrop()
[all …]
/frameworks/native/opengl/libs/GLES2/
Dgl2_api.in4 void API_ENTRY(glAttachShader)(GLuint program, GLuint shader) {
5 CALL_GL_API(glAttachShader, program, shader);
7 void API_ENTRY(glBindAttribLocation)(GLuint program, GLuint index, const GLchar *name) {
8 CALL_GL_API(glBindAttribLocation, program, index, name);
91 void API_ENTRY(glDeleteProgram)(GLuint program) {
92 CALL_GL_API(glDeleteProgram, program);
112 void API_ENTRY(glDetachShader)(GLuint program, GLuint shader) {
113 CALL_GL_API(glDetachShader, program, shader);
163 void API_ENTRY(glGetActiveAttrib)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, G…
164 CALL_GL_API(glGetActiveAttrib, program, index, bufSize, length, size, type, name);
[all …]
Dgl2ext_api.in43 void API_ENTRY(glGetnUniformfvKHR)(GLuint program, GLint location, GLsizei bufSize, GLfloat *params…
44 CALL_GL_API(glGetnUniformfvKHR, program, location, bufSize, params);
46 void API_ENTRY(glGetnUniformivKHR)(GLuint program, GLint location, GLsizei bufSize, GLint *params) {
47 CALL_GL_API(glGetnUniformivKHR, program, location, bufSize, params);
49 void API_ENTRY(glGetnUniformuivKHR)(GLuint program, GLint location, GLsizei bufSize, GLuint *params…
50 CALL_GL_API(glGetnUniformuivKHR, program, location, bufSize, params);
100 void API_ENTRY(glGetProgramBinaryOES)(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *bin…
101 CALL_GL_API(glGetProgramBinaryOES, program, bufSize, length, binaryFormat, binary);
103 void API_ENTRY(glProgramBinaryOES)(GLuint program, GLenum binaryFormat, const void *binary, GLint l…
104 CALL_GL_API(glProgramBinaryOES, program, binaryFormat, binary, length);
[all …]
/frameworks/native/opengl/tests/gl2_jni/jni/
Dgl_code.cpp74 GLuint program = glCreateProgram(); in createProgram() local
75 if (program) { in createProgram()
76 glAttachShader(program, vertexShader); in createProgram()
78 glAttachShader(program, pixelShader); in createProgram()
80 glLinkProgram(program); in createProgram()
82 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in createProgram()
85 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); in createProgram()
89 glGetProgramInfoLog(program, bufLength, NULL, buf); in createProgram()
94 glDeleteProgram(program); in createProgram()
95 program = 0; in createProgram()
[all …]
/frameworks/native/opengl/tests/gldual/jni/
Dgl_code.cpp74 GLuint program = glCreateProgram(); in createProgram() local
75 if (program) { in createProgram()
76 glAttachShader(program, vertexShader); in createProgram()
78 glAttachShader(program, pixelShader); in createProgram()
80 glLinkProgram(program); in createProgram()
82 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in createProgram()
85 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); in createProgram()
89 glGetProgramInfoLog(program, bufLength, NULL, buf); in createProgram()
94 glDeleteProgram(program); in createProgram()
95 program = 0; in createProgram()
[all …]
/frameworks/native/opengl/tests/gl_perf/
Dfill_common.cpp76 GLuint program = glCreateProgram(); in createProgram() local
77 if (program) { in createProgram()
78 glAttachShader(program, vertexShader); in createProgram()
80 glAttachShader(program, pixelShader); in createProgram()
83 glBindAttribLocation(program, A_POS, "a_pos"); in createProgram()
84 glBindAttribLocation(program, A_COLOR, "a_color"); in createProgram()
85 glBindAttribLocation(program, A_TEX0, "a_tex0"); in createProgram()
86 glBindAttribLocation(program, A_TEX1, "a_tex1"); in createProgram()
87 glLinkProgram(program); in createProgram()
89 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in createProgram()
[all …]
/frameworks/native/services/surfaceflinger/RenderEngine/
DProgramCache.cpp106 Program* program = mCache.valueFor(shaderKey); in primeCache() local
107 if (program == NULL) { in primeCache()
108 program = generateProgram(shaderKey); in primeCache()
109 mCache.add(shaderKey, program); in primeCache()
221 Program* program = new Program(needs, vs.string(), fs.string()); in generateProgram() local
222 return program; in generateProgram()
231 Program* program = mCache.valueFor(needs); in useProgram() local
232 if (program == NULL) { in useProgram()
235 program = generateProgram(needs); in useProgram()
236 mCache.add(needs, program); in useProgram()
[all …]
/frameworks/native/opengl/include/GLES3/
Dgl31.h386 typedef void (GL_APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
387 typedef void (GL_APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar…
415 typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
422 typedef void (GL_APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
439 typedef void (GL_APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize…
440 typedef void (GL_APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSiz…
441 typedef void (GL_APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei …
442 typedef GLint (GL_APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
449 typedef void (GL_APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
450 typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *l…
[all …]
Dgl32.h386 typedef void (GL_APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
387 typedef void (GL_APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar…
415 typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
422 typedef void (GL_APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
439 typedef void (GL_APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize…
440 typedef void (GL_APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSiz…
441 typedef void (GL_APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei …
442 typedef GLint (GL_APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
449 typedef void (GL_APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
450 typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *l…
[all …]
/frameworks/native/opengl/tests/gl2_java/src/com/android/gl2java/
DGL2JavaView.java123 int program = GLES20.glCreateProgram(); in createProgram() local
124 if (program != 0) { in createProgram()
125 GLES20.glAttachShader(program, vertexShader); in createProgram()
127 GLES20.glAttachShader(program, pixelShader); in createProgram()
129 GLES20.glLinkProgram(program); in createProgram()
131 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); in createProgram()
134 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); in createProgram()
135 GLES20.glDeleteProgram(program); in createProgram()
136 program = 0; in createProgram()
139 return program; in createProgram()
/frameworks/base/core/jni/
Dandroid_opengl_GLES31.cpp573 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint pname, jintArray params_re… in android_glGetProgramInterfaceiv__III_3II() argument
599 (GLuint)program, in android_glGetProgramInterfaceiv__III_3II()
618 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint pname, jobject params_buf)… in android_glGetProgramInterfaceiv__IIILjava_nio_IntBuffer_2() argument
630 (GLuint)program, in android_glGetProgramInterfaceiv__IIILjava_nio_IntBuffer_2()
643 (JNIEnv *_env, jobject _this, jint program, jint programInterface, jstring name) { in android_glGetProgramResourceIndex__IILjava_lang_String_2() argument
659 (GLuint)program, in android_glGetProgramResourceIndex__IILjava_lang_String_2()
678 (JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index) { in android_glGetProgramResourceName() argument
686 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index, jint propCount, jin… in android_glGetProgramResourceiv__IIII_3III_3II_3II() argument
748 (GLuint)program, in android_glGetProgramResourceiv__IIII_3III_3II_3II()
779 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index, jint propCount, job… in android_glGetProgramResourceiv__IIIILjava_nio_IntBuffer_2ILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2() argument
[all …]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
DglGetTransformFeedbackVarying.java4 int program, in glGetTransformFeedbackVarying() argument
23 int program, in glGetTransformFeedbackVarying() argument
35 int program, in glGetTransformFeedbackVarying() argument
47 int program, in glGetTransformFeedbackVarying() argument
58 int program, in glGetTransformFeedbackVarying() argument
DglGetActiveAttrib.java4 int program, in glGetActiveAttrib() argument
21 int program, in glGetActiveAttrib() argument
33 int program, in glGetActiveAttrib() argument
44 int program, in glGetActiveAttrib() argument
DglGetActiveUniform.java4 int program, in glGetActiveUniform() argument
21 int program, in glGetActiveUniform() argument
32 int program, in glGetActiveUniform() argument
43 int program, in glGetActiveUniform() argument
DglGetActiveUniformBlockName.cpp4 …(JNIEnv* _env, jobject _this, jint program, jint uniformBlockIndex, int bufSize, jintArray length_… in android_glGetActiveUniformBlockName_III_3II_3BI() argument
46 (GLuint)program, in android_glGetActiveUniformBlockName_III_3II_3BI()
70 …(JNIEnv* _env, jobject _this, jint program, jint uniformBlockIndex, jobject length_buf, jobject un… in android_glGetActiveUniformBlockName_IILjava_nio_Buffer_2Ljava_nio_Buffer_2() argument
96 (GLuint)program, in android_glGetActiveUniformBlockName_IILjava_nio_Buffer_2Ljava_nio_Buffer_2()
112 (JNIEnv *_env, jobject _this, jint program, jint uniformBlockIndex) { in android_glGetActiveUniformBlockName_II() argument
114 glGetActiveUniformBlockiv((GLuint)program, (GLuint)uniformBlockIndex, in android_glGetActiveUniformBlockName_II()
117 glGetActiveUniformBlockName((GLuint)program, (GLuint)uniformBlockIndex, in android_glGetActiveUniformBlockName_II()
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
DTestLatencyView.java197 int program = GLES20.glCreateProgram(); in createProgram() local
198 if (program != 0) { in createProgram()
199 GLES20.glAttachShader(program, vertexShader); in createProgram()
201 GLES20.glAttachShader(program, pixelShader); in createProgram()
203 GLES20.glLinkProgram(program); in createProgram()
205 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0); in createProgram()
208 Log.e(TAG, GLES20.glGetProgramInfoLog(program)); in createProgram()
209 GLES20.glDeleteProgram(program); in createProgram()
210 program = 0; in createProgram()
213 return program; in createProgram()
/frameworks/native/opengl/tests/gl2_basic/
Dgl2_basic.cpp113 GLuint program = glCreateProgram(); in createProgram() local
114 if (program) { in createProgram()
115 glAttachShader(program, vertexShader); in createProgram()
117 glAttachShader(program, pixelShader); in createProgram()
119 glLinkProgram(program); in createProgram()
121 glGetProgramiv(program, GL_LINK_STATUS, &linkStatus); in createProgram()
124 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufLength); in createProgram()
128 glGetProgramInfoLog(program, bufLength, NULL, buf); in createProgram()
133 glDeleteProgram(program); in createProgram()
134 program = 0; in createProgram()
[all …]

12345678