Home
last modified time | relevance | path

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

123456

/frameworks/base/media/mca/filterfw/jni/
Djni_native_program.cpp31 std::unique_ptr<NativeProgram> program(new NativeProgram()); in Java_android_filterfw_core_NativeProgram_allocate() local
32 return ToJBool(WrapOwnedObjectInJava(std::move(program), env, thiz, true)); in Java_android_filterfw_core_NativeProgram_allocate()
40 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_nativeInit() local
41 return ToJBool(program && program->CallInit()); in Java_android_filterfw_core_NativeProgram_nativeInit()
47 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_openNativeLibrary() local
48 return ToJBool(program && lib_name && program->OpenLibrary(ToCppString(env, lib_name))); in Java_android_filterfw_core_NativeProgram_openNativeLibrary()
54 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_bindInitFunction() local
55 return ToJBool(program && func_name && program->BindInitFunction(ToCppString(env, func_name))); in Java_android_filterfw_core_NativeProgram_bindInitFunction()
61 NativeProgram* program = ConvertFromJava<NativeProgram>(env, thiz); in Java_android_filterfw_core_NativeProgram_bindSetValueFunction() local
62 return ToJBool(program && in Java_android_filterfw_core_NativeProgram_bindSetValueFunction()
[all …]
Djni_shader_program.cpp64 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_compileAndLink() local
65 return program ? ToJBool(program->CompileAndLink()) : JNI_FALSE; in Java_android_filterfw_core_ShaderProgram_compileAndLink()
72 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_setUniformValue() local
76 return ToJBool(program && program->SetUniformValue(c_key, c_value)); in Java_android_filterfw_core_ShaderProgram_setUniformValue()
86 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_getUniformValue() local
88 return program ? ToJObject(env, program->GetUniformValue(c_key)) : JNI_NULL; in Java_android_filterfw_core_ShaderProgram_getUniformValue()
95 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_shaderProcess() local
97 if (program && inputs && output) { in Java_android_filterfw_core_ShaderProgram_shaderProcess()
118 if (!program->Process(input_frames, output_frame)) { in Java_android_filterfw_core_ShaderProgram_shaderProcess()
132 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 …]
/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 …]
/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/tests/net/java/android/net/apf/
DApfTest.java110 private void assertVerdict(int expected, byte[] program, byte[] packet, int filterAge) { in assertVerdict() argument
111 assertReturnCodesEqual(expected, apfSimulate(program, packet, filterAge)); in assertVerdict()
114 private void assertVerdict(int expected, byte[] program, byte[] packet) { in assertVerdict() argument
115 assertReturnCodesEqual(expected, apfSimulate(program, packet, 0)); in assertVerdict()
118 private void assertPass(byte[] program, byte[] packet, int filterAge) { in assertPass() argument
119 assertVerdict(PASS, program, packet, filterAge); in assertPass()
122 private void assertPass(byte[] program, byte[] packet) { in assertPass() argument
123 assertVerdict(PASS, program, packet); in assertPass()
126 private void assertDrop(byte[] program, byte[] packet, int filterAge) { in assertDrop() argument
127 assertVerdict(DROP, program, packet, filterAge); in assertDrop()
[all …]
/frameworks/base/libs/hwui/debug/
Dgles_stubs.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 …]
Dgles_decls.in2 GL_ENTRY(void, glAttachShader, GLuint program, GLuint shader)
3 GL_ENTRY(void, glBindAttribLocation, GLuint program, GLuint index, const GLchar *name)
31 GL_ENTRY(void, glDeleteProgram, GLuint program)
38 GL_ENTRY(void, glDetachShader, GLuint program, GLuint shader)
55 GL_ENTRY(void, glGetActiveAttrib, GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, G…
56 GL_ENTRY(void, glGetActiveUniform, GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, …
57 GL_ENTRY(void, glGetAttachedShaders, GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shad…
58 GL_ENTRY(GLint, glGetAttribLocation, GLuint program, const GLchar *name)
65 GL_ENTRY(void, glGetProgramiv, GLuint program, GLenum pname, GLint *params)
66 GL_ENTRY(void, glGetProgramInfoLog, GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoL…
[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()
269 Program* program = new Program(needs, vs.string(), fs.string()); in generateProgram() local
270 return program; in generateProgram()
279 Program* program = mCache.valueFor(needs); in useProgram() local
280 if (program == NULL) { in useProgram()
283 program = generateProgram(needs); in useProgram()
284 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/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
/frameworks/base/core/jni/
Dandroid_opengl_GLES31.cpp600 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint pname, jintArray params_re… in android_glGetProgramInterfaceiv__III_3II() argument
626 (GLuint)program, in android_glGetProgramInterfaceiv__III_3II()
645 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint pname, jobject params_buf)… in android_glGetProgramInterfaceiv__IIILjava_nio_IntBuffer_2() argument
666 (GLuint)program, in android_glGetProgramInterfaceiv__IIILjava_nio_IntBuffer_2()
684 (JNIEnv *_env, jobject _this, jint program, jint programInterface, jstring name) { in android_glGetProgramResourceIndex__IILjava_lang_String_2() argument
700 (GLuint)program, in android_glGetProgramResourceIndex__IILjava_lang_String_2()
719 (JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index) { in android_glGetProgramResourceName() argument
727 …(JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index, jint propCount, jin… in android_glGetProgramResourceiv__IIII_3III_3II_3II() argument
789 (GLuint)program, in android_glGetProgramResourceiv__IIII_3III_3II_3II()
820 …(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/support/room/runtime/src/test/java/android/arch/persistence/room/
DRoomSQLiteQueryTest.java81 SupportSQLiteProgram program = mock(SupportSQLiteProgram.class); in bindings() local
82 query.bindTo(program); in bindings()
84 verify(program).bindBlob(1, myBlob); in bindings()
85 verify(program).bindLong(2, myLong); in bindings()
86 verify(program).bindNull(3); in bindings()
87 verify(program).bindDouble(4, myDouble); in bindings()
88 verify(program).bindString(5, myString); in bindings()
89 verify(program).bindNull(6); in bindings()
/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/base/libs/hwui/renderstate/
DRenderState.cpp277 mCaches->setProgram(fill.program); in render()
280 fill.program->setColor(fill.color); in render()
283 fill.program->set(orthoMatrix, in render()
291 glUniform4f(mCaches->program().getUniform("colorBlend"), in render()
294 glUniformMatrix4fv(mCaches->program().getUniform("colorMatrix"), 1, GL_FALSE, in render()
296 glUniform4fv(mCaches->program().getUniform("colorMatrixVector"), 1, in render()
311 glUniform4f(fill.program->getUniform("roundRectInnerRectLTWH"), in render()
316 glUniformMatrix4fv(fill.program->getUniform("roundRectInvTransform"), in render()
319 glUniform1f(fill.program->getUniform("roundRectRadius"), in render()
350 glUniformMatrix4fv(fill.program->getUniform("mainTextureTransform"), 1, in render()
[all …]

123456