/frameworks/base/libs/input/ |
D | SpriteIcon.cpp | 30 ANativeWindow_Buffer outBuffer; in draw() local 31 status_t status = surface->lock(&outBuffer, NULL); in draw() 38 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in draw() 39 surfaceBitmap.installPixels(SkImageInfo::MakeN32Premul(outBuffer.width, outBuffer.height), in draw() 40 outBuffer.bits, bpr); in draw() 48 if (outBuffer.width > width()) { in draw() 50 surfaceCanvas.drawRect(SkRect::MakeLTRB(width(), 0, outBuffer.width, height()), paint); in draw() 52 if (outBuffer.height > height()) { in draw() 54 surfaceCanvas.drawRect(SkRect::MakeLTRB(0, height(), outBuffer.width, outBuffer.height), in draw()
|
/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 | 54 status_t BufferQueueConsumer::acquireBuffer(BufferItem* outBuffer, in acquireBuffer() argument 213 outBuffer->mGraphicBuffer = mSlots[slot].mGraphicBuffer; in acquireBuffer() 214 outBuffer->mFence = Fence::NO_FENCE; in acquireBuffer() 215 outBuffer->mFenceTime = FenceTime::NO_FENCE; in acquireBuffer() 216 outBuffer->mCrop = mCore->mSharedBufferCache.crop; in acquireBuffer() 217 outBuffer->mTransform = mCore->mSharedBufferCache.transform & in acquireBuffer() 220 outBuffer->mScalingMode = mCore->mSharedBufferCache.scalingMode; in acquireBuffer() 221 outBuffer->mDataSpace = mCore->mSharedBufferCache.dataspace; in acquireBuffer() 222 outBuffer->mFrameNumber = mCore->mFrameCounter; in acquireBuffer() 223 outBuffer->mSlot = slot; in acquireBuffer() [all …]
|
/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()
|
D | RSFilter.cpp | 88 const sp<MediaCodecBuffer> &srcBuffer, const sp<MediaCodecBuffer> &outBuffer) { in processBuffers() argument 91 mAllocOut->copy1DRangeTo(0, mWidth * mHeight, outBuffer->data()); in processBuffers()
|
D | IntrinsicBlurFilter.cpp | 91 const sp<MediaCodecBuffer> &srcBuffer, const sp<MediaCodecBuffer> &outBuffer) { in processBuffers() argument 94 mAllocOut->copy1DRangeTo(0, mWidth * mHeight, outBuffer->data()); 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 | 222 typedef bool (*AParcel_int32ArrayAllocator)(void* arrayData, int32_t length, int32_t** outBuffer); 241 typedef bool (*AParcel_uint32ArrayAllocator)(void* arrayData, int32_t length, uint32_t** outBuffer); 260 typedef bool (*AParcel_int64ArrayAllocator)(void* arrayData, int32_t length, int64_t** outBuffer); 279 typedef bool (*AParcel_uint64ArrayAllocator)(void* arrayData, int32_t length, uint64_t** outBuffer); 298 typedef bool (*AParcel_floatArrayAllocator)(void* arrayData, int32_t length, float** outBuffer); 317 typedef bool (*AParcel_doubleArrayAllocator)(void* arrayData, int32_t length, double** outBuffer); 372 typedef bool (*AParcel_charArrayAllocator)(void* arrayData, int32_t length, char16_t** outBuffer); 391 typedef bool (*AParcel_byteArrayAllocator)(void* arrayData, int32_t length, int8_t** outBuffer);
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | HwcBufferCache.cpp | 28 sp<GraphicBuffer>* outBuffer) { in getHwcBuffer() argument 41 *outBuffer = nullptr; in getHwcBuffer() 43 *outBuffer = buffer; in getHwcBuffer()
|
/frameworks/native/libs/gui/include/gui/ |
D | ISurfaceComposer.h | 217 virtual status_t captureScreen(const sp<IBinder>& display, sp<GraphicBuffer>* outBuffer, 244 virtual status_t captureScreen(const sp<IBinder>& display, sp<GraphicBuffer>* outBuffer, 248 return captureScreen(display, outBuffer, outIgnored, ui::Dataspace::V0_SRGB, 254 sp<GraphicBuffer>* outBuffer) = 0; 269 const sp<IBinder>& layerHandleBinder, sp<GraphicBuffer>* outBuffer, 279 status_t captureLayers(const sp<IBinder>& layerHandleBinder, sp<GraphicBuffer>* outBuffer, 282 return captureLayers(layerHandleBinder, outBuffer, ui::Dataspace::V0_SRGB,
|
/frameworks/base/core/jni/ |
D | android_view_Surface.cpp | 248 ANativeWindow_Buffer outBuffer; in nativeLockCanvas() local 249 status_t err = surface->lock(&outBuffer, dirtyRectPtr); in nativeLockCanvas() 258 SkImageInfo info = SkImageInfo::Make(outBuffer.width, outBuffer.height, in nativeLockCanvas() 259 convertPixelFormat(outBuffer.format), in nativeLockCanvas() 260 outBuffer.format == PIXEL_FORMAT_RGBX_8888 in nativeLockCanvas() 264 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in nativeLockCanvas() 266 if (outBuffer.width > 0 && outBuffer.height > 0) { in nativeLockCanvas() 267 bitmap.setPixels(outBuffer.bits); in nativeLockCanvas()
|
/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/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/native/services/surfaceflinger/DisplayHardware/ |
D | FramebufferSurface.cpp | 107 sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence, in nextBuffer() argument 114 mHwcBufferCache.getHwcBuffer(mCurrentBufferSlot, mCurrentBuffer, &outSlot, &outBuffer); in nextBuffer() 140 mHwcBufferCache.getHwcBuffer(mCurrentBufferSlot, mCurrentBuffer, &outSlot, &outBuffer); in nextBuffer() 142 status_t result = mHwc.setClientTarget(mDisplayId, outSlot, outFence, outBuffer, outDataspace); in nextBuffer()
|
/frameworks/native/libs/gui/tests/ |
D | RegionSampling_test.cpp | 216 ANativeWindow_Buffer outBuffer; in fill_render() local 217 status_t status = surface->lock(&outBuffer, NULL); in fill_render() 219 auto b = reinterpret_cast<uint32_t*>(outBuffer.bits); in fill_render() 220 for (auto i = 0; i < outBuffer.height; i++) { in fill_render() 221 for (auto j = 0; j < outBuffer.width; j++) { in fill_render() 224 b += outBuffer.stride; in fill_render()
|
/frameworks/native/services/surfaceflinger/ |
D | MonitoredProducer.cpp | 70 status_t MonitoredProducer::detachNextBuffer(sp<GraphicBuffer>* outBuffer, in detachNextBuffer() argument 72 return mProducer->detachNextBuffer(outBuffer, outFence); in detachNextBuffer() 139 status_t MonitoredProducer::getLastQueuedBuffer(sp<GraphicBuffer>* outBuffer, in getLastQueuedBuffer() argument 141 return mProducer->getLastQueuedBuffer(outBuffer, outFence, in getLastQueuedBuffer()
|
/frameworks/native/services/surfaceflinger/tests/ |
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 | Credentials_test.cpp | 262 sp<GraphicBuffer> outBuffer; in TEST_F() local 265 0 /*reqHeight*/, false, ROTATION, &outBuffer); in TEST_F() 272 sp<GraphicBuffer> outBuffer; in TEST_F() local 274 sp<GraphicBuffer> outBuffer; in TEST_F() local 277 Rect(), FRAME_SCALE, &outBuffer); in TEST_F()
|
D | BufferGenerator.cpp | 321 status_t BufferGenerator::get(sp<GraphicBuffer>* outBuffer, sp<Fence>* outFence) { in get() argument 327 if (outBuffer) { in get() 328 *outBuffer = nullptr; in get() 357 if (outBuffer) { in get() 358 *outBuffer = mGraphicBuffer; in get()
|
/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/libeffects/downmix/ |
D | EffectDownmix.c | 310 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument 321 outBuffer == NULL || outBuffer->raw == NULL || in Downmix_Process() 322 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process() 337 pDst = outBuffer->s16; in Downmix_Process() 338 size_t numFrames = outBuffer->frameCount; in Downmix_Process() 409 audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { in Downmix_Process() argument 420 outBuffer == NULL || outBuffer->raw == NULL || in Downmix_Process() 421 inBuffer->frameCount != outBuffer->frameCount) { in Downmix_Process() 436 pDst = (LVM_FLOAT *) outBuffer->s16; in Downmix_Process() 437 size_t numFrames = outBuffer->frameCount; in Downmix_Process()
|