/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGLToGL_test.cpp | 56 sp<GraphicBuffer> buf = mST->getCurrentBuffer(); local 58 ASSERT_EQ(texWidth, buf->getHeight()); 59 ASSERT_EQ(texHeight, buf->getWidth()); 61 ASSERT_EQ(texWidth, buf->getWidth()); 62 ASSERT_EQ(texHeight, buf->getHeight()); 74 buf = mST->getCurrentBuffer(); 76 ASSERT_EQ(texWidth, buf->getWidth()); 77 ASSERT_EQ(texHeight, buf->getHeight());
|
H A D | SurfaceTextureGL_test.cpp | 45 sp<GraphicBuffer> buf(new GraphicBuffer(anb, false)); 49 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 50 fillYV12Buffer(img, texWidth, texHeight, buf->getStride()); 51 buf->unlock(); 52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), 95 sp<GraphicBuffer> buf(new GraphicBuffer(anb, false)); 99 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 100 fillYV12Buffer(img, texWidth, texHeight, buf->getStride()); 101 buf->unlock(); 102 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf [all...] |
H A D | Surface_test.cpp | 111 ANativeWindowBuffer* buf = 0; local 113 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf); 120 &buf)); 123 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf, -1)); 128 &buf)); 129 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf, -1));
|
/frameworks/native/libs/input/tests/ |
H A D | TestHelpers.h | 55 char buf[1]; local 56 ssize_t nRead = ::read(receiveFd, buf, 1);
|
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 297 int32_t* buf = static_cast<int32_t*>(buffer); 298 buf[0] = 'GBFR'; 299 buf[1] = width; 300 buf[2] = height; 301 buf[3] = stride; 302 buf[4] = format; 303 buf[5] = usage; 304 buf[6] = static_cast<int32_t>(mId >> 32); 305 buf[7] = static_cast<int32_t>(mId & 0xFFFFFFFFull); 306 buf[ 333 int const* buf = static_cast<int const*>(buffer); local [all...] |
/frameworks/native/opengl/include/GLES2/ |
H A D | gl2ext.h | 134 typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTKHRPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); 146 GL_APICALL void GL_APIENTRY glDebugMessageInsertKHR (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); 306 typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONIOESPROC) (GLuint buf, GLenum mode); 307 typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEIOESPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); 308 typedef void (GL_APIENTRYP PFNGLBLENDFUNCIOESPROC) (GLuint buf, GLenum src, GLenum dst); 309 typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEIOESPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 315 GL_APICALL void GL_APIENTRY glBlendEquationiOES (GLuint buf, GLenum mode); 316 GL_APICALL void GL_APIENTRY glBlendEquationSeparateiOES (GLuint buf, GLenum modeRGB, GLenum modeAlpha); 317 GL_APICALL void GL_APIENTRY glBlendFunciOES (GLuint buf, GLenum src, GLenum dst); 318 GL_APICALL void GL_APIENTRY glBlendFuncSeparateiOES (GLuint buf, GLenu [all...] |
/frameworks/native/opengl/include/GLES3/ |
H A D | gl32.h | 1736 typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); 1748 typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode); 1749 typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); 1750 typedef void (GL_APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst); 1751 typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 1781 GL_APICALL void GL_APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); 1793 GL_APICALL void GL_APIENTRY glBlendEquationi (GLuint buf, GLenum mode); 1794 GL_APICALL void GL_APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha); 1795 GL_APICALL void GL_APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst); 1796 GL_APICALL void GL_APIENTRY glBlendFuncSeparatei (GLuint buf, GLenu [all...] |
/frameworks/native/opengl/libagl/ |
H A D | egl.cpp | 240 status_t lock(ANativeWindowBuffer* buf, int usage, void** vaddr); 241 status_t unlock(ANativeWindowBuffer* buf); 441 ANativeWindowBuffer* buf, int usage, void** vaddr) 445 err = module->lock(module, buf->handle, 446 usage, 0, 0, buf->width, buf->height, vaddr); 451 status_t egl_window_surface_v2_t::unlock(ANativeWindowBuffer* buf) argument 453 if (!buf) return BAD_VALUE; 456 err = module->unlock(module, buf->handle); 440 lock( ANativeWindowBuffer* buf, int usage, void** vaddr) argument
|
H A D | primitives.cpp | 864 vertex_t* buf = buffer; local 915 c->arrays.clipEye(c, buf, t, p, s); 916 *output++ = buf++; 926 c->arrays.clipEye(c, buf, t, s, p); 927 *output++ = buf++; 980 c->arrays.clipVertex(c, buf, t, p, s); 981 *output++ = buf++; 991 c->arrays.clipVertex(c, buf, t, s, p); 992 *output++ = buf++;
|
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_cache.cpp | 202 static uint32_t crc32c(const uint8_t* buf, size_t len) { argument 206 r ^= buf[i]; 248 uint8_t* buf = new uint8_t [fileSize]; local 249 if (!buf) { 257 status_t err = mBlobCache->flatten(buf + headerSize, cacheSize); 261 delete [] buf; 268 memcpy(buf, cacheFileMagic, 4); 269 uint32_t* crc = reinterpret_cast<uint32_t*>(buf + 4); 270 *crc = crc32c(buf + headerSize, cacheSize); 272 if (write(fd, buf, fileSiz 316 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(NULL, fileSize, local [all...] |
/frameworks/native/opengl/tests/EGLTest/ |
H A D | egl_cache_test.cpp | 44 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 46 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); 47 ASSERT_EQ(0xee, buf[0]); 48 ASSERT_EQ(0xee, buf[1]); 49 ASSERT_EQ(0xee, buf[2]); 50 ASSERT_EQ(0xee, buf[3]); 54 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 57 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); 58 ASSERT_EQ('e', buf[0]); 59 ASSERT_EQ('f', buf[ 65 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 97 uint8_t buf[4] = { 0xee, 0xee, 0xee, 0xee }; local [all...] |
/frameworks/native/opengl/tests/gl2_basic/ |
H A D | gl2_basic.cpp | 87 char* buf = (char*) malloc(infoLen); local 88 if (buf) { 89 glGetShaderInfoLog(shader, infoLen, NULL, buf); 91 shaderType, buf); 92 free(buf); 126 char* buf = (char*) malloc(bufLength); local 127 if (buf) { 128 glGetProgramInfoLog(program, bufLength, NULL, buf); 129 fprintf(stderr, "Could not link program:\n%s\n", buf); 130 free(buf); [all...] |
/frameworks/native/opengl/tests/gl2_copyTexImage/ |
H A D | gl2_copyTexImage.cpp | 87 char* buf = (char*) malloc(infoLen); local 88 if (buf) { 89 glGetShaderInfoLog(shader, infoLen, NULL, buf); 91 shaderType, buf); 92 free(buf); 126 char* buf = (char*) malloc(bufLength); local 127 if (buf) { 128 glGetProgramInfoLog(program, bufLength, NULL, buf); 129 fprintf(stderr, "Could not link program:\n%s\n", buf); 130 free(buf); [all...] |
/frameworks/native/opengl/tests/gl2_jni/jni/ |
H A D | gl_code.cpp | 48 char* buf = (char*) malloc(infoLen); local 49 if (buf) { 50 glGetShaderInfoLog(shader, infoLen, NULL, buf); 52 shaderType, buf); 53 free(buf); 87 char* buf = (char*) malloc(bufLength); local 88 if (buf) { 89 glGetProgramInfoLog(program, bufLength, NULL, buf); 90 ALOGE("Could not link program:\n%s\n", buf); 91 free(buf); [all...] |
/frameworks/native/opengl/tests/gl2_yuvtex/ |
H A D | gl2_yuvtex.cpp | 94 char* buf = (char*) malloc(infoLen); local 95 if (buf) { 96 glGetShaderInfoLog(shader, infoLen, NULL, buf); 98 shaderType, buf); 99 free(buf); 103 char* buf = (char*) malloc(0x1000); local 104 if (buf) { 105 glGetShaderInfoLog(shader, 0x1000, NULL, buf); 107 shaderType, buf); 108 free(buf); 142 char* buf = (char*) malloc(bufLength); local 203 char* buf = NULL; local [all...] |
/frameworks/native/opengl/tests/gl_perf/ |
H A D | fill_common.cpp | 44 char* buf = (char*) malloc(infoLen); local 45 if (buf) { 46 glGetShaderInfoLog(shader, infoLen, NULL, buf); 47 ALOGE("Could not compile shader %d:\n%s\n", shaderType, buf); 48 free(buf); 94 char* buf = (char*) malloc(bufLength); local 95 if (buf) { 96 glGetProgramInfoLog(program, bufLength, NULL, buf); 97 ALOGE("Could not link program:\n%s\n", buf); 98 free(buf); [all...] |
/frameworks/native/opengl/tests/gl_yuvtex/ |
H A D | gl_yuvtex.cpp | 98 char* buf = NULL; local 99 status_t err = yuvTexBuffer->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); 109 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; 111 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; 113 buf[yuvTexOffsetV + (y * yuvTexStrideV) + x] = intensity; 115 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 0] = 116 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 1] = 117 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 0] = 118 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] = intensity;
|
/frameworks/native/opengl/tests/gldual/jni/ |
H A D | gl_code.cpp | 48 char* buf = (char*) malloc(infoLen); local 49 if (buf) { 50 glGetShaderInfoLog(shader, infoLen, NULL, buf); 52 shaderType, buf); 53 free(buf); 87 char* buf = (char*) malloc(bufLength); local 88 if (buf) { 89 glGetProgramInfoLog(program, bufLength, NULL, buf); 90 ALOGE("Could not link program:\n%s\n", buf); 91 free(buf); [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 604 void hwcTestSetPixel(GraphicBuffer *gBuf, unsigned char *buf, argument 628 *(buf + yPlaneOffset + y * yPlaneStride + x) = pixel & 0xff; 629 *(buf + uPlaneOffset + (y / 2) * uPlaneStride + (x / 2)) 631 *(buf + vPlaneOffset + (y / 2) * vPlaneStride + (x / 2)) 648 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) 655 unsigned char* buf = NULL; local 661 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); 669 hwcTestSetPixel(gBuf, buf, x, y, (x < gBuf->getWidth()) 693 unsigned char* buf = NULL; local 698 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); [all...] |
H A D | hwcTestLib.h | 122 void hwcTestSetPixel(android::GraphicBuffer *gBuf, unsigned char *buf,
|
/frameworks/native/opengl/tools/glgen/specs/gles11/ |
H A D | GLES31Ext.spec | 3 void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 18 void glBlendEquationiEXT ( GLuint buf, GLenum mode ) 19 void glBlendEquationSeparateiEXT ( GLuint buf, GLenum modeRGB, GLenum modeAlpha ) 20 void glBlendFunciEXT ( GLuint buf, GLenum src, GLenum dst ) 21 void glBlendFuncSeparateiEXT ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha )
|
H A D | GLES32.spec | 4 void glDebugMessageInsert ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 16 void glBlendEquationi ( GLuint buf, GLenum mode ) 17 void glBlendEquationSeparatei ( GLuint buf, GLenum modeRGB, GLenum modeAlpha ) 18 void glBlendFunci ( GLuint buf, GLenum src, GLenum dst ) 19 void glBlendFuncSeparatei ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha )
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | common.cpp | 222 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local 223 if (buf) { 226 buf += position << elementSizeShift; 231 return (void*) buf;
|
H A D | glDebugMessageInsertKHR.cpp | 1 /* void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) */ 4 (JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) { 11 if (!buf) { 14 _exceptionMessage = "buf == null"; 17 _nativebuf = _env->GetStringUTFChars(buf, 0); 18 _length = _env->GetStringUTFLength(buf); 31 _env->ReleaseStringUTFChars(buf, _nativebuf); 3 android_glDebugMessageInsertKHR__IIIILjava_lang_String_2(JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) argument
|
H A D | glDebugMessageInsertKHR.java | 1 // C function void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 8 String buf
|