/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | HwcBufferCacheTest.cpp | 28 sp<GraphicBuffer>* outBuffer) { in getHwcBuffer() argument 29 HwcBufferCache::getHwcBuffer(slot, buffer, outSlot, outBuffer); in getHwcBuffer() 39 sp<GraphicBuffer> outBuffer; in testSlot() local 42 mCache.getHwcBuffer(inSlot, mBuffer1, &outSlot, &outBuffer); in testSlot() 44 EXPECT_EQ(mBuffer1, outBuffer); in testSlot() 47 mCache.getHwcBuffer(inSlot, mBuffer1, &outSlot, &outBuffer); in testSlot() 49 EXPECT_EQ(nullptr, outBuffer.get()); in testSlot() 52 mCache.getHwcBuffer(inSlot, mBuffer2, &outSlot, &outBuffer); in testSlot() 54 EXPECT_EQ(mBuffer2, outBuffer); in testSlot() 57 mCache.getHwcBuffer(inSlot, mBuffer2, &outSlot, &outBuffer); in testSlot() [all …]
|
/frameworks/native/libs/gui/ |
D | CpuConsumer.cpp | 90 status_t CpuConsumer::lockBufferItem(const BufferItem& item, LockedBuffer* outBuffer) const { in lockBufferItem() 111 outBuffer->data = reinterpret_cast<uint8_t*>(ycbcr.y); in lockBufferItem() 112 outBuffer->stride = static_cast<uint32_t>(ycbcr.ystride); in lockBufferItem() 113 outBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in lockBufferItem() 114 outBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockBufferItem() 115 outBuffer->chromaStride = static_cast<uint32_t>(ycbcr.cstride); in lockBufferItem() 116 outBuffer->chromaStep = static_cast<uint32_t>(ycbcr.chroma_step); in lockBufferItem() 128 outBuffer->data = reinterpret_cast<uint8_t*>(bufferPointer); in lockBufferItem() 129 outBuffer->stride = item.mGraphicBuffer->getStride(); in lockBufferItem() 130 outBuffer->dataCb = nullptr; in lockBufferItem() [all …]
|
D | BufferQueueConsumer.cpp | 78 status_t BufferQueueConsumer::acquireBuffer(BufferItem* outBuffer, in acquireBuffer() argument 237 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer() 238 outBuffer->mFence = Fence::NO_FENCE; in acquireBuffer() 239 outBuffer->mFenceTime = FenceTime::NO_FENCE; in acquireBuffer() 240 outBuffer->mCrop = mCore->mSharedBufferCache.crop; in acquireBuffer() 241 outBuffer->mTransform = mCore->mSharedBufferCache.transform & in acquireBuffer() 244 outBuffer->mScalingMode = mCore->mSharedBufferCache.scalingMode; in acquireBuffer() 245 outBuffer->mDataSpace = mCore->mSharedBufferCache.dataspace; in acquireBuffer() 246 outBuffer->mFrameNumber = mCore->mFrameCounter; in acquireBuffer() 247 outBuffer->mSlot = slot; in acquireBuffer() [all …]
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | ScreenshotUtils.h | 38 sp<GraphicBuffer> outBuffer; in captureScreen() local 39 ASSERT_EQ(NO_ERROR, sf->captureScreen(displayToken, &outBuffer, Rect(), 0, 0, false)); in captureScreen() 40 *sc = std::make_unique<ScreenCapture>(outBuffer); in captureScreen() 48 sp<GraphicBuffer> outBuffer; variable 49 ASSERT_EQ(NO_ERROR, sf->captureLayers(parentHandle, &outBuffer, crop, frameScale)); 50 *sc = std::make_unique<ScreenCapture>(outBuffer); 58 sp<GraphicBuffer> outBuffer; variable 59 ASSERT_EQ(NO_ERROR, sf->captureLayers(parentHandle, &outBuffer, crop, frameScale, true)); 60 *sc = std::make_unique<ScreenCapture>(outBuffer); 69 sp<GraphicBuffer> outBuffer; in captureChildLayersExcluding() local [all …]
|
D | TransactionUtils.h | 99 static void expectBufferColor(const sp<GraphicBuffer>& outBuffer, uint8_t* pixels, in expectBufferColor() argument 106 int32_t bufferWidth = int32_t(outBuffer->getWidth()); in expectBufferColor() 107 int32_t bufferHeight = int32_t(outBuffer->getHeight()); in expectBufferColor() 122 const uint8_t* src = pixels + (outBuffer->getStride() * (y + j) + x) * 4; in expectBufferColor() 142 ANativeWindow_Buffer outBuffer; variable 145 ASSERT_EQ(NO_ERROR, s->lock(&outBuffer, nullptr)); 146 uint8_t* img = reinterpret_cast<uint8_t*>(outBuffer.bits); 147 for (int y = 0; y < outBuffer.height; y++) { 148 for (int x = 0; x < outBuffer.width; x++) { 149 uint8_t* pixel = img + (4 * (y * outBuffer.stride + x));
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | BufferQueueScheduler.cpp | 81 ANativeWindow_Buffer outBuffer; in fillSurface() local 84 status_t status = s->lock(&outBuffer, nullptr); in fillSurface() 93 auto img = reinterpret_cast<uint8_t*>(outBuffer.bits); in fillSurface() 94 for (int y = 0; y < outBuffer.height; y++) { in fillSurface() 95 for (int x = 0; x < outBuffer.width; x++) { in fillSurface() 96 uint8_t* pixel = img + (4 * (y * outBuffer.stride + x)); in fillSurface()
|
/frameworks/av/media/libstagefright/filters/ |
D | ZeroFilter.cpp | 41 const sp<MediaCodecBuffer> &srcBuffer, const sp<MediaCodecBuffer> &outBuffer) { in processBuffers() argument 45 uint32_t* dest = (uint32_t*)outBuffer->data(); in processBuffers() 50 memcpy(outBuffer->data(), srcBuffer->data(), srcBuffer->size()); in processBuffers() 52 outBuffer->setRange(0, srcBuffer->size()); in processBuffers()
|
/frameworks/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 283 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in LE_process() argument 292 outBuffer == NULL || outBuffer->raw == NULL || in LE_process() 293 inBuffer->frameCount != outBuffer->frameCount || in LE_process() 325 if (inBuffer->raw != outBuffer->raw) { in LE_process() 328 for (size_t i = 0; i < outBuffer->frameCount*2; i++) { in LE_process() 329 outBuffer->f32[i] += inBuffer->f32[i]; in LE_process() 332 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(float)); in LE_process() 336 for (size_t i = 0; i < outBuffer->frameCount*2; i++) { in LE_process() 337 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in LE_process() 340 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in LE_process()
|
/frameworks/base/cmds/screencap/ |
D | screencap.cpp | 206 sp<GraphicBuffer> outBuffer; in main() local 208 status_t result = ScreenshotClient::capture(*displayId, &outDataspace, &outBuffer); in main() 214 result = outBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, &base); in main() 228 w = outBuffer->getWidth(); in main() 229 h = outBuffer->getHeight(); in main() 230 s = outBuffer->getStride(); in main() 231 f = outBuffer->getPixelFormat(); in main()
|
/frameworks/native/libs/binder/ndk/include_ndk/android/ |
D | binder_parcel.h | 221 typedef bool (*AParcel_int32ArrayAllocator)(void* arrayData, int32_t length, int32_t** outBuffer); 240 typedef bool (*AParcel_uint32ArrayAllocator)(void* arrayData, int32_t length, uint32_t** outBuffer); 259 typedef bool (*AParcel_int64ArrayAllocator)(void* arrayData, int32_t length, int64_t** outBuffer); 278 typedef bool (*AParcel_uint64ArrayAllocator)(void* arrayData, int32_t length, uint64_t** outBuffer); 297 typedef bool (*AParcel_floatArrayAllocator)(void* arrayData, int32_t length, float** outBuffer); 316 typedef bool (*AParcel_doubleArrayAllocator)(void* arrayData, int32_t length, double** outBuffer); 371 typedef bool (*AParcel_charArrayAllocator)(void* arrayData, int32_t length, char16_t** outBuffer); 390 typedef bool (*AParcel_byteArrayAllocator)(void* arrayData, int32_t length, int8_t** outBuffer);
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | HwcBufferCache.cpp | 36 sp<GraphicBuffer>* outBuffer) { in getHwcBuffer() argument 49 *outBuffer = nullptr; in getHwcBuffer() 51 *outBuffer = buffer; in getHwcBuffer()
|
/frameworks/base/native/graphics/jni/ |
D | bitmap.cpp | 83 int AndroidBitmap_getHardwareBuffer(JNIEnv* env, jobject jbitmap, AHardwareBuffer** outBuffer) { in AndroidBitmap_getHardwareBuffer() argument 84 if (NULL == env || NULL == jbitmap || NULL == outBuffer) { in AndroidBitmap_getHardwareBuffer() 94 *outBuffer = bitmap.getHardwareBuffer(); in AndroidBitmap_getHardwareBuffer() 95 return *outBuffer == NULL ? ANDROID_BITMAP_RESULT_BAD_PARAMETER : ANDROID_BITMAP_RESULT_SUCCESS; in AndroidBitmap_getHardwareBuffer()
|
/frameworks/base/core/jni/ |
D | android_view_TextureView.cpp | 74 static int32_t native_window_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in native_window_lock() argument 76 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); in native_window_lock() 122 ANativeWindow_Buffer outBuffer; in android_view_TextureView_lockCanvas() local 124 int32_t status = native_window_lock(window.get(), &outBuffer, &rect); in android_view_TextureView_lockCanvas() 128 canvas.setBuffer(&outBuffer, ANativeWindow_getBuffersDataSpace(window.get())); in android_view_TextureView_lockCanvas()
|
/frameworks/native/libs/gui/include/gui/ |
D | ISurfaceComposer.h | 269 virtual status_t captureScreen(const sp<IBinder>& display, sp<GraphicBuffer>* outBuffer, 296 virtual status_t captureScreen(const sp<IBinder>& display, sp<GraphicBuffer>* outBuffer, 301 return captureScreen(display, outBuffer, outIgnored, ui::Dataspace::V0_SRGB, 307 sp<GraphicBuffer>* outBuffer) = 0; 322 const sp<IBinder>& layerHandleBinder, sp<GraphicBuffer>* outBuffer, 331 status_t captureLayers(const sp<IBinder>& layerHandleBinder, sp<GraphicBuffer>* outBuffer, 334 return captureLayers(layerHandleBinder, outBuffer, ui::Dataspace::V0_SRGB,
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 43 int AHardwareBuffer_allocate(const AHardwareBuffer_Desc* desc, AHardwareBuffer** outBuffer) { in AHardwareBuffer_allocate() argument 44 if (!outBuffer || !desc) return BAD_VALUE; in AHardwareBuffer_allocate() 63 *outBuffer = AHardwareBuffer_from_GraphicBuffer(gbuffer.get()); in AHardwareBuffer_allocate() 66 AHardwareBuffer_acquire(*outBuffer); in AHardwareBuffer_allocate() 297 int AHardwareBuffer_recvHandleFromUnixSocket(int socketFd, AHardwareBuffer** outBuffer) { in AHardwareBuffer_recvHandleFromUnixSocket() argument 298 if (!outBuffer) return BAD_VALUE; in AHardwareBuffer_recvHandleFromUnixSocket() 361 *outBuffer = AHardwareBuffer_from_GraphicBuffer(gBuffer); in AHardwareBuffer_recvHandleFromUnixSocket() 363 AHardwareBuffer_acquire(*outBuffer); in AHardwareBuffer_recvHandleFromUnixSocket() 414 AHardwareBuffer** outBuffer) { in AHardwareBuffer_createFromHandle() argument 420 if (!desc || !handle || !outBuffer) return BAD_VALUE; in AHardwareBuffer_createFromHandle() [all …]
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 322 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in Visualizer_process() argument 331 outBuffer == NULL || outBuffer->raw == NULL || in Visualizer_process() 332 inBuffer->frameCount != outBuffer->frameCount || in Visualizer_process() 459 if (inBuffer->raw != outBuffer->raw) { in Visualizer_process() 463 outBuffer->f32[i] += inBuffer->f32[i]; in Visualizer_process() 466 memcpy(outBuffer->raw, inBuffer->raw, sampleLen * sizeof(float)); in Visualizer_process() 470 for (size_t i = 0; i < outBuffer->frameCount*2; i++) { in Visualizer_process() 471 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in Visualizer_process() 474 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in Visualizer_process()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerTransaction_test.cpp | 35 sp<GraphicBuffer> outBuffer; in TEST_F() local 40 composer->captureScreen(mDisplay, &outBuffer, Rect(), 0, 0, false)); in TEST_F() 46 ASSERT_EQ(NO_ERROR, composer->captureScreen(mDisplay, &outBuffer, Rect(), 0, 0, false)); in TEST_F() 58 composer->captureScreen(mDisplay, &outBuffer, outCapturedSecureLayers, in TEST_F() 62 ScreenCapture sc(outBuffer); in TEST_F()
|
D | InvalidHandles_test.cpp | 60 sp<GraphicBuffer> outBuffer; in TEST_F() local 63 sf->captureLayers(mNotSc->getHandle(), &outBuffer, Rect::EMPTY_RECT, 1.0f)); in TEST_F()
|
D | BufferGenerator.cpp | 325 status_t BufferGenerator::get(sp<GraphicBuffer>* outBuffer, sp<Fence>* outFence) { in get() argument 331 if (outBuffer) { in get() 332 *outBuffer = nullptr; in get() 361 if (outBuffer) { in get() 362 *outBuffer = mGraphicBuffer; in get()
|
/frameworks/native/services/surfaceflinger/ |
D | MonitoredProducer.cpp | 68 status_t MonitoredProducer::detachNextBuffer(sp<GraphicBuffer>* outBuffer, in detachNextBuffer() argument 70 return mProducer->detachNextBuffer(outBuffer, outFence); in detachNextBuffer() 137 status_t MonitoredProducer::getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer, in getLastQueuedBuffer() argument 139 return mProducer->getLastQueuedBuffer(outBuffer, outFence, in getLastQueuedBuffer()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | FramebufferSurface.cpp | 116 sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence, in nextBuffer() argument 123 mHwcBufferCache.getHwcBuffer(mCurrentBufferSlot, mCurrentBuffer, &outSlot, &outBuffer); in nextBuffer() 149 mHwcBufferCache.getHwcBuffer(mCurrentBufferSlot, mCurrentBuffer, &outSlot, &outBuffer); in nextBuffer() 151 status_t result = mHwc.setClientTarget(mDisplayId, outSlot, outFence, outBuffer, outDataspace); in nextBuffer()
|
/frameworks/base/libs/input/ |
D | SpriteController.cpp | 197 ANativeWindow_Buffer outBuffer; in doUpdateSprites() local 198 status_t status = surface->lock(&outBuffer, NULL); in doUpdateSprites() 205 graphics::Canvas canvas(outBuffer, (int32_t) surface->getBuffersDataSpace()); in doUpdateSprites() 211 if (outBuffer.width > iconWidth) { in doUpdateSprites() 213 canvas.drawRect({iconWidth, 0, outBuffer.width, iconHeight}, paint); in doUpdateSprites() 215 if (outBuffer.height > iconHeight) { in doUpdateSprites() 217 canvas.drawRect({0, iconHeight, outBuffer.width, outBuffer.height}, paint); in doUpdateSprites()
|
/frameworks/ml/nn/common/operations/ |
D | LSHProjection.cpp | 190 const RunTimeOperandInfo* weight, int32_t* outBuffer); 193 const RunTimeOperandInfo* weight, int32_t* outBuffer); 197 const RunTimeOperandInfo* weight, int32_t* outBuffer); 200 const RunTimeOperandInfo* weight, int32_t* outBuffer);
|
D | LSHProjection.h | 70 int32_t* outBuffer); 74 const RunTimeOperandInfo* weight, int32_t* outBuffer);
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | FrameCaptureProcessor.h | 56 const Rect &sourceCrop, const sp<GraphicBuffer> &outBuffer); 91 const Rect &sourceCrop, const sp<GraphicBuffer> &outBuffer);
|