/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_CameraGpuCtsActivity.cpp | 99 if (mProgram) { in ~CameraFrameRenderer() 100 glDeleteProgram(mProgram); in ~CameraFrameRenderer() 101 mProgram = 0; in ~CameraFrameRenderer() 136 mProgram = glCreateProgram(); in initRenderer() 145 mProgram = glCreateProgram(); in initRenderer() 146 glAttachShader(mProgram, vertShader); in initRenderer() 148 glAttachShader(mProgram, fragShader); in initRenderer() 151 glLinkProgram(mProgram); in initRenderer() 153 glGetProgramiv(mProgram, GL_LINK_STATUS, &success); in initRenderer() 156 glGetProgramInfoLog(mProgram, 512, nullptr, infoLog); in initRenderer() [all …]
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | RendererThreeShaderTest.java | 47 GLES20.glUseProgram(mProgram); in doOnDrawFrame() 55 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in doOnDrawFrame() 65 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 67 GLES20.glAttachShader(mProgram, vertexShaderOne); in onSurfaceCreated() 68 GLES20.glAttachShader(mProgram, vertexShaderTwo); in onSurfaceCreated() 70 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated() 71 GLES20.glLinkProgram(mProgram); in onSurfaceCreated() 73 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0); in onSurfaceCreated()
|
D | RendererOneShaderTest.java | 48 GLES20.glUseProgram(mProgram); in doOnDrawFrame() 56 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in doOnDrawFrame() 65 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 66 GLES20.glAttachShader(mProgram, vertexShaderOne); in onSurfaceCreated() 67 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated() 68 GLES20.glLinkProgram(mProgram); in onSurfaceCreated() 70 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0); in onSurfaceCreated()
|
D | RendererSixShaderTest.java | 33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 36 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated() 37 GLES20.glAttachShader(mProgram, shaderTwo); in onSurfaceCreated() 40 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in onSurfaceCreated()
|
D | RendererFiveShaderTest.java | 35 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 38 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated() 39 GLES20.glAttachShader(mProgram, shaderTwo); in onSurfaceCreated() 42 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in onSurfaceCreated()
|
D | RendererElevenShaderTest.java | 33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 35 GLES20.glAttachShader(mProgram, vertexShader); in onSurfaceCreated() 36 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
|
D | RendererTenShaderTest.java | 34 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 36 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated() 37 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
|
D | RendererFourShaderTest.java | 35 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 39 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in onSurfaceCreated() 44 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
|
D | RendererSevenShaderTest.java | 33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 36 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated() 37 GLES20.glAttachShader(mProgram, shaderTwo); in onSurfaceCreated()
|
D | CompressedTextureSurfaceView.java | 95 private int mProgram; field in CompressedTextureSurfaceView.CompressedTextureRender 143 GLES20.glUseProgram(mProgram); in renderQuad() 217 if (mProgram == 0) { in onDrawFrame() 292 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated() 293 if (mProgram == 0) { in onSurfaceCreated() 296 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated() 301 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated() 307 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated()
|
D | RendererNineShaderTest.java | 33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 37 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated()
|
D | RendererEightShaderTest.java | 33 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 36 GLES20.glAttachShader(mProgram, shaderOne); in onSurfaceCreated()
|
D | RendererOneProgramTest.java | 34 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 36 GLES20.glAttachShader(mProgram, mProgramTwo); in onSurfaceCreated()
|
D | RendererTwelveShaderTest.java | 36 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated() 37 GLES20.glLinkProgram(mProgram); in onSurfaceCreated()
|
D | EglConfigGLSurfaceView.java | 131 private int mProgram; field in EglConfigGLSurfaceView.Renderer20 138 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated() 139 if (mProgram == 0) { in onSurfaceCreated() 143 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated() 220 GLES20.glUseProgram(mProgram); in onDrawFrame()
|
D | RendererTwoShaderTest.java | 45 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 47 GLES20.glAttachShader(mProgram, vertexShaderOne); in onSurfaceCreated()
|
/cts/tests/vr/src/android/vr/cts/ |
D | RendererBasicTest.java | 44 int mProgram; field in RendererBasicTest 82 GLES20.glUseProgram(mProgram); in doOnDrawFrame() 90 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); in doOnDrawFrame() 99 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 100 GLES20.glAttachShader(mProgram, vertexShaderOne); in onSurfaceCreated() 101 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated() 102 GLES20.glLinkProgram(mProgram); in onSurfaceCreated() 104 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0); in onSurfaceCreated()
|
D | RendererProtectedTexturesTest.java | 55 mProgram = GLES20.glCreateProgram(); in onSurfaceCreated() 56 GLES20.glAttachShader(mProgram, vertexShader); in onSurfaceCreated() 57 GLES20.glAttachShader(mProgram, fragmentShader); in onSurfaceCreated() 58 GLES20.glLinkProgram(mProgram); in onSurfaceCreated() 60 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0); in onSurfaceCreated() 71 int loc = GLES20.glGetUniformLocation(mProgram, "protectedTexture"); in onSurfaceCreated()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | CtsMediaTextureRender.java | 81 private int mProgram; field in CtsMediaTextureRender 108 GLES20.glUseProgram(mProgram); in drawFrame() 141 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER); in surfaceCreated() 142 if (mProgram == 0) { in surfaceCreated() 145 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in surfaceCreated() 150 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in surfaceCreated() 156 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in surfaceCreated() 162 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in surfaceCreated() 191 GLES20.glDeleteProgram(mProgram); in changeFragmentShader() 192 mProgram = createProgram(VERTEX_SHADER, fragmentShader); in changeFragmentShader() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | TextureRender.java | 77 private int mProgram; field in TextureRender 104 GLES20.glUseProgram(mProgram); in drawFrame() 137 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER); in surfaceCreated() 138 if (mProgram == 0) { in surfaceCreated() 141 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in surfaceCreated() 146 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in surfaceCreated() 152 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in surfaceCreated() 158 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in surfaceCreated() 187 GLES20.glDeleteProgram(mProgram); in changeFragmentShader() 188 mProgram = createProgram(VERTEX_SHADER, fragmentShader); in changeFragmentShader() [all …]
|
/cts/tests/openglperf2/jni/primitive/fullpipeline/ |
D | FullPipelineRenderer.cpp | 95 Renderer(window, offscreen), mProgram(NULL), mSceneGraph(NULL), in FullPipelineRenderer() 110 mProgram = new PerspectiveProgram(mProgramId); in setUp() 155 mSceneGraph = new ProgramNode(*mProgram); in setUp() 185 delete mProgram; in tearDown() 186 mProgram = NULL; in tearDown()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | SurfaceTextureRenderer.java | 79 private int mProgram; field in SurfaceTextureRenderer 116 GLES20.glUseProgram(mProgram); in onDrawFrame() 165 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated() 166 if (mProgram == 0) { in onSurfaceCreated() 169 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated() 174 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated() 180 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated() 186 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in onSurfaceCreated()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | PlanetsRenderer.java | 78 private int mProgram; // shader program field in PlanetsRenderer 136 mProgram = createProgram(getVertexShader(), getFragmentShader()); in onSurfaceCreated() 137 if (mProgram == 0) { in onSurfaceCreated() 141 mMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated() 142 mOffsetHandle = GLES20.glGetUniformLocation(mProgram, "uOffset"); in onSurfaceCreated() 143 mPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition"); in onSurfaceCreated() 144 mTexCoord0Handle = GLES20.glGetAttribLocation(mProgram, "vTexCoord0"); in onSurfaceCreated() 145 mTextureHandle = GLES20.glGetUniformLocation(mProgram, "sTexture"); in onSurfaceCreated() 164 GLES20.glUseProgram(mProgram); in onDrawFrame()
|
/cts/tests/openglperf2/jni/graphics/ |
D | ProgramNode.cpp | 18 mProgram(program) { in ProgramNode() 30 SceneGraphNode::draw(mProgram, model, view, projection); in drawProgram()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraGLTest.java | 703 GLES20.glUseProgram(mProgram); in onDrawFrame() 749 mProgram = createProgram(mVertexShader, mFragmentShader); in onSurfaceCreated() 750 if (mProgram == 0) { in onSurfaceCreated() 753 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); in onSurfaceCreated() 758 maTextureHandle = GLES20.glGetAttribLocation(mProgram, "aTextureCoord"); in onSurfaceCreated() 764 muMVPMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uMVPMatrix"); in onSurfaceCreated() 770 muSTMatrixHandle = GLES20.glGetUniformLocation(mProgram, "uSTMatrix"); in onSurfaceCreated() 776 muCRatioHandle = GLES20.glGetUniformLocation(mProgram, "uCRatio"); in onSurfaceCreated() 908 private int mProgram; field in CameraGLTest.Renderer
|