/frameworks/native/include/binder/ |
H A D | Debug.h | 37 void printHexData(int32_t indent, const void *buf, size_t length,
|
H A D | TextOutput.h | 102 HexDump(const void *buf, size_t size, size_t bytesPerLine=16);
|
/frameworks/native/include/gui/ |
H A D | BufferQueueConsumer.h | 146 virtual status_t releaseBuffer(int buf, uint64_t frameNumber, argument 149 return releaseBuffer(buf, frameNumber, releaseFence, display, fence);
|
H A D | BufferQueueProducer.h | 40 virtual status_t requestBuffer(int slot, sp<GraphicBuffer>* buf); 50 // location pointed to by the buf argument and a status of OK is returned. 51 // If no slot is available then a status of -EBUSY is returned and buf is 77 // returned in buf.
|
H A D | GLConsumer.h | 138 const sp<GraphicBuffer>& buf, const Rect& cropRect,
|
H A D | IGraphicBufferConsumer.h | 145 virtual status_t releaseBuffer(int buf, uint64_t frameNumber,
|
H A D | IGraphicBufferProducer.h | 82 virtual status_t requestBuffer(int slot, sp<GraphicBuffer>* buf) = 0;
|
/frameworks/native/libs/binder/ |
H A D | IPCThreadState.cpp | 229 const int32_t buf = *cmd++; local 230 out << ": buffer=" << (void*)(long)buf;
|
H A D | Parcel.cpp | 1287 void* const buf = this->writeInplace(pad_size(len)); local 1288 if (buf == NULL) 1300 err = val.flatten(buf, len, fds, fd_count); 2063 void const* const buf = this->readInplace(pad_size(len)); local 2064 if (buf == NULL) 2087 err = val.unflatten(buf, len, fds, fd_count);
|
H A D | TextOutput.cpp | 49 char buf[16]; local 50 sprintf(buf, "%d", val); 51 to.print(buf, strlen(buf)); 57 char buf[16]; local 58 sprintf(buf, "%ld", val); 59 to.print(buf, strlen(buf)); 65 char buf[16]; local 66 sprintf(buf, " 73 char buf[16]; local 81 char buf[32]; local 89 char buf[32]; local 97 char buf[64]; local 119 char buf[32]; local 148 HexDump(const void *buf, size_t size, size_t bytesPerLine) argument [all...] |
/frameworks/native/libs/binder/tests/ |
H A D | binderLibTest.cpp | 612 uint8_t buf[1] = { 0 }; local 635 ret = read(pipefd[0], buf, sizeof(buf)); 636 EXPECT_EQ(sizeof(buf), ret); 637 EXPECT_EQ(write_value, buf[0]); 641 ret = read(pipefd[0], buf, sizeof(buf)); 723 uint8_t buf[1] = { 0 }; local 843 const void *buf; local 854 buf [all...] |
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 58 status_t BufferQueueProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { argument 84 *buf = mSlots[slot].mGraphicBuffer; 544 BQ_LOGV("dequeueBuffer: returning slot=%d/%" PRIu64 " buf=%p flags=%#x",
|
H A D | CpuConsumer.cpp | 233 int buf = mAcquiredBuffers[lockedIdx].mSlot; 238 mSlots[buf].mGraphicBuffer, 246 mSlots[buf].mGraphicBuffer)) { 248 buf, mAcquiredBuffers[lockedIdx].mGraphicBuffer,
|
H A D | GLConsumer.cpp | 291 int buf = mCurrentTexture; local 292 if (buf != BufferQueue::INVALID_BUFFER_SLOT) { 294 GLC_LOGV("releaseTexImage: (slot=%d, mAttached=%d)", buf, mAttached); 300 GLC_LOGE("syncForReleaseLocked failed (slot=%d), err=%d", buf, err); 308 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); 386 status_t GLConsumer::releaseBufferLocked(int buf, argument 394 buf, graphicBuffer, display, eglFence); 395 mEglSlots[buf].mEglFence = EGL_NO_SYNC_KHR; 450 GLC_LOGV("updateAndRelease: (slot=%d buf 801 sp<GraphicBuffer> buf = (mCurrentTextureImage == nullptr) ? local 812 computeTransformMatrix(float outTransform[16], const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, bool filtering) argument [all...] |
H A D | IGraphicBufferConsumer.cpp | 110 virtual status_t releaseBuffer(int buf, uint64_t frameNumber, argument 115 data.writeInt32(buf); 315 int buf = data.readInt32(); local 320 status_t result = releaseBuffer(buf, frameNumber,
|
H A D | IGraphicBufferProducer.cpp | 71 virtual status_t requestBuffer(int bufferIdx, sp<GraphicBuffer>* buf) { argument 81 *buf = new GraphicBuffer(); 82 result = reply.read(**buf); 84 (*buf).clear(); 120 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, argument 132 *buf = reply.readInt32(); 198 virtual status_t queueBuffer(int buf, argument 202 data.writeInt32(buf); 213 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument 216 data.writeInt32(buf); 487 int buf = 0; local 536 int buf = data.readInt32(); local 548 int buf = data.readInt32(); local [all...] |
H A D | Surface.cpp | 162 ANativeWindowBuffer* buf; local 164 int result = c->dequeueBuffer(&buf, &fenceFd); 173 c->cancelBuffer(buf, -1); 176 *buffer = buf; 260 int buf = -1; local 262 status_t result = mGraphicBufferProducer->dequeueBuffer(&buf, &fence, 274 sp<GraphicBuffer>& gbuf(mSlots[buf].buffer); 277 ALOGE_IF(fence == NULL, "Surface::dequeueBuffer: received null Fence! buf=%d", buf); 284 result = mGraphicBufferProducer->requestBuffer(buf, [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | BufferQueue_test.cpp | 173 sp<GraphicBuffer> buf; local 183 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); 191 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); 224 sp<GraphicBuffer> buf; local 234 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); 261 sp<GraphicBuffer> buf; local 270 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); 280 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf));
|
H A D | CpuConsumer_test.cpp | 165 void checkPixel(const CpuConsumer::LockedBuffer &buf, argument 168 switch(buf.format) { 171 uint16_t *bPtr = (uint16_t*)buf.data; 172 bPtr += y * buf.stride + x; 190 uint8_t *bPtr = (uint8_t*)buf.data; 191 bPtr += y * buf.stride + x; 198 uint16_t *bPtr = ((uint16_t*)buf.data) + y * buf.stride + x; 205 uint8_t *bPtr = (uint8_t*)buf.data; 206 bPtr += (y * buf 225 fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) argument 254 fillRgba8888Buffer(uint8_t* buf, int w, int h, int stride) argument 281 fillBayerRawBuffer(uint8_t* buf, int w, int h, int stride) argument 307 checkGreyscaleBuffer(const CpuConsumer::LockedBuffer &buf) argument 346 checkRgba8888Buffer(const CpuConsumer::LockedBuffer &buf) argument 389 checkBayerRawBuffer(const CpuConsumer::LockedBuffer &buf) argument 430 checkAnyBuffer(const CpuConsumer::LockedBuffer &buf, int format) argument [all...] |
H A D | FillBuffer.cpp | 25 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride) { argument 39 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; 41 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; 43 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 0] = 44 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 1] = 45 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 0] = 46 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] = 54 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, argument 66 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = inside ? 240 : 64; 70 buf[yuvTexOffset [all...] |
H A D | FillBuffer.h | 26 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride); 29 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, 32 void fillRGBA8Buffer(uint8_t* buf, int w, int h, int stride);
|
H A D | GLTest.cpp | 269 char* buf = (char*) malloc(infoLen); local 270 if (buf) { 271 glGetShaderInfoLog(shader, infoLen, NULL, buf); 272 printf("Shader compile log:\n%s\n", buf); 273 free(buf); 277 char* buf = (char*) malloc(0x1000); local 278 if (buf) { 279 glGetShaderInfoLog(shader, 0x1000, NULL, buf); 280 printf("Shader compile log:\n%s\n", buf); 281 free(buf); 321 char* buf = (char*) malloc(bufLength); local [all...] |
H A D | SurfaceTextureClient_test.cpp | 220 ANativeWindowBuffer* buf; local 221 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); 222 EXPECT_EQ(1, buf->width); 223 EXPECT_EQ(1, buf->height); 224 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); 225 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); 230 ANativeWindowBuffer* buf; local 233 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); 234 EXPECT_EQ(16, buf->width); 235 EXPECT_EQ(8, buf 242 ANativeWindowBuffer* buf; local 254 ANativeWindowBuffer* buf; local 266 ANativeWindowBuffer* buf; local 285 ANativeWindowBuffer* buf; local 304 ANativeWindowBuffer* buf; local 314 ANativeWindowBuffer* buf[2]; local 335 ANativeWindowBuffer* buf[2]; local 362 android_native_buffer_t* buf[3]; local 386 android_native_buffer_t* buf[3]; local 407 android_native_buffer_t* buf[3]; local 428 android_native_buffer_t* buf[3]; local 452 android_native_buffer_t* buf[3]; local 473 android_native_buffer_t* buf[3]; local 506 android_native_buffer_t* buf; local 554 android_native_buffer_t* buf[3]; local 577 android_native_buffer_t* buf[3]; local 608 android_native_buffer_t* buf[3]; local [all...] |
H A D | SurfaceTextureFBO.h | 59 void fillRGBA8BufferSolid(uint8_t* buf, int w, int h, int stride, argument 65 buf[offset + 0] = r; 66 buf[offset + 1] = g; 67 buf[offset + 2] = b; 68 buf[offset + 3] = a;
|
H A D | SurfaceTextureFBO_test.cpp | 44 sp<GraphicBuffer> buf(new GraphicBuffer(anb, false)); 48 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 49 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 0, 255, 51 buf->unlock(); 52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), 68 buf = new GraphicBuffer(anb, false); 71 ASSERT_EQ(NO_ERROR, buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, 73 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 255, 0, 75 ASSERT_EQ(NO_ERROR, buf->unlock()); 77 buf [all...] |