/frameworks/native/services/surfaceflinger/tests/ |
D | LayerTransactionTest.h | 131 uint32_t bufferWidth, uint32_t bufferHeight) { in fillBufferQueueLayerColor() argument 135 Rect(0, 0, bufferWidth, bufferHeight), in fillBufferQueueLayerColor() 141 int32_t bufferWidth, int32_t bufferHeight) { in fillBufferLayerColor() argument 143 sp<GraphicBuffer>::make(static_cast<uint32_t>(bufferWidth), in fillBufferLayerColor() 150 TransactionUtils::fillGraphicBufferColor(buffer, Rect(0, 0, bufferWidth, bufferHeight), in fillBufferLayerColor() 156 uint32_t bufferWidth, uint32_t bufferHeight) { in fillLayerColor() argument 159 fillBufferQueueLayerColor(layer, color, bufferWidth, bufferHeight); in fillLayerColor() 162 fillBufferLayerColor(layer, color, bufferWidth, bufferHeight); in fillLayerColor() 170 int32_t bufferWidth, int32_t bufferHeight, const Color& topLeft, in fillLayerQuadrant() argument 175 fillBufferQueueLayerQuadrant(layer, bufferWidth, bufferHeight, topLeft, topRight, in fillLayerQuadrant() [all …]
|
D | TransactionTestHarnesses.h | 154 void fillLayerColor(const sp<SurfaceControl>& layer, const Color& color, uint32_t bufferWidth, in fillLayerColor() argument 157 bufferWidth, bufferHeight)); in fillLayerColor() 160 void fillLayerQuadrant(const sp<SurfaceControl>& layer, uint32_t bufferWidth, in fillLayerQuadrant() argument 164 bufferWidth, bufferHeight, in fillLayerQuadrant()
|
D | LayerTypeAndRenderTypeTransaction_test.cpp | 314 const uint32_t bufferWidth = 1500; in TEST_P() local 322 ASSERT_NO_FATAL_FAILURE(layer = createLayer("test", bufferWidth, bufferHeight)); in TEST_P() 323 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layer, Color::RED, bufferWidth, bufferHeight)); in TEST_P() 371 const uint32_t bufferWidth = 150 * 2; in TEST_P() local 381 ASSERT_NO_FATAL_FAILURE(layer = createLayer("test", bufferWidth, bufferHeight)); in TEST_P() 382 ASSERT_NO_FATAL_FAILURE(fillLayerQuadrant(layer, bufferWidth, bufferHeight, Color::RED, in TEST_P() 441 const uint32_t bufferWidth = 1500; in TEST_P() local 449 ASSERT_NO_FATAL_FAILURE(layer = createLayer("test", bufferWidth, bufferHeight)); in TEST_P() 450 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layer, Color::BLUE, bufferWidth, bufferHeight)); in TEST_P() 453 ASSERT_NO_FATAL_FAILURE(child = createLayer("child", bufferWidth, bufferHeight)); in TEST_P() [all …]
|
D | ScreenCapture_test.cpp | 746 const uint32_t bufferWidth = 60; in TEST_F() local 750 createLayer(String8("Colored surface"), bufferWidth, bufferHeight, in TEST_F() 778 sc.expectColor(Rect(0, 0, bufferWidth, bufferHeight), Color::BLACK); in TEST_F()
|
/frameworks/native/libs/gui/ |
D | GLConsumerUtils.cpp | 34 void GLConsumer::computeTransformMatrix(float outTransform[16], float bufferWidth, in computeTransformMatrix() argument 100 if (cropRect.width() < bufferWidth) { in computeTransformMatrix() 101 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; in computeTransformMatrix() 103 bufferWidth; in computeTransformMatrix()
|
D | GLConsumer.cpp | 748 Rect GLConsumer::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { in scaleDownCrop() argument 754 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop() 755 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop() 757 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop() 758 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
|
/frameworks/native/libs/nativedisplay/surfacetexture/ |
D | SurfaceTexture.cpp | 298 float bufferWidth = buf->getWidth(); in computeTransformMatrix() local 330 if (cropRect.width() < bufferWidth) { in computeTransformMatrix() 331 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; in computeTransformMatrix() 332 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / bufferWidth; in computeTransformMatrix() 352 Rect SurfaceTexture::scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight) { in scaleDownCrop() argument 358 if (newWidth * bufferHeight > newHeight * bufferWidth) { in scaleDownCrop() 359 newWidth = newHeight * bufferWidth / bufferHeight; in scaleDownCrop() 361 } else if (newWidth * bufferHeight < newHeight * bufferWidth) { in scaleDownCrop() 362 newHeight = newWidth * bufferHeight / bufferWidth; in scaleDownCrop()
|
/frameworks/native/services/surfaceflinger/ |
D | HdrSdrRatioOverlay.cpp | 47 const int32_t bufferWidth = kBufferWidth; in draw() local 56 ringBuffer = sp<GraphicBuffer>::make(static_cast<uint32_t>(bufferWidth), in draw() 71 canvasTransform.setRotate(270.f, bufferWidth / 2.f, bufferWidth / 2.f); in draw() 82 SkSurfaces::Raster(SkImageInfo::MakeN32Premul(bufferWidth, bufferHeight)); in draw()
|
D | LayerFE.cpp | 303 float bufferWidth = static_cast<float>(mSnapshot->bufferSize.getWidth()); in prepareBufferStateClientComposition() local 310 bufferWidth = float(win.right) - float(win.left); in prepareBufferStateClientComposition() 315 const float scaleWidth = (float(win.right) - float(win.left)) / bufferWidth; in prepareBufferStateClientComposition() 317 const float translateX = float(win.left) / bufferWidth; in prepareBufferStateClientComposition()
|
D | RefreshRateOverlay.cpp | 43 const auto [bufferWidth, bufferHeight] = [&]() -> std::pair<int, int> { in draw() 60 sp<GraphicBuffer> buffer = sp<GraphicBuffer>::make(static_cast<uint32_t>(bufferWidth), in draw() 70 SkImageInfo::MakeN32Premul(bufferWidth, bufferHeight)); in draw()
|
D | Layer.cpp | 3062 uint32_t bufferWidth = mDrawingState.buffer->getWidth(); in updateGeometry() local 3066 std::swap(bufferWidth, bufferHeight); in updateGeometry() 3071 std::swap(bufferWidth, bufferHeight); in updateGeometry() 3075 float sx = destW / static_cast<float>(bufferWidth); in updateGeometry()
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | TransactionUtils.h | 110 int32_t bufferWidth = int32_t(outBuffer->getWidth()); in expectBufferColor() local 112 if (x + width > bufferWidth) { in expectBufferColor() 113 x = std::min(x, bufferWidth); in expectBufferColor() 114 width = bufferWidth - x; in expectBufferColor()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | LayerDrawable.cpp | 80 static void adjustCropForYUV(uint32_t format, int bufferWidth, int bufferHeight, SkRect* cropRect) { in adjustCropForYUV() argument 97 if (cropRect->width() > 1 && cropRect->width() < bufferWidth) { in adjustCropForYUV()
|
/frameworks/native/services/surfaceflinger/tests/tracing/ |
D | TransactionTraceTestSuite.cpp | 104 uint32_t bufferWidth; member 110 return std::make_tuple(lh.id, lh.name, lh.parent, lh.z, lh.curr_frame, lh.bufferWidth, in operator ==() 112 std::make_tuple(rh.id, rh.name, rh.parent, rh.z, rh.curr_frame, rh.bufferWidth, in operator ==() 123 << " y=" << info.y << " bufferWidth=" << info.bufferWidth in PrintTo()
|
/frameworks/native/libs/gui/include/gui/ |
D | GLConsumer.h | 141 static void computeTransformMatrix(float outTransform[16], float bufferWidth, 147 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth,
|
/frameworks/native/services/surfaceflinger/FrontEnd/ |
D | RequestedLayerState.cpp | 350 uint32_t bufferWidth = externalTexture->getWidth(); in getUnrotatedBufferSize() local 354 std::swap(bufferWidth, bufferHeight); in getUnrotatedBufferSize() 358 std::swap(bufferWidth, bufferHeight); in getUnrotatedBufferSize() 361 return {bufferWidth, bufferHeight}; in getUnrotatedBufferSize()
|
/frameworks/av/media/ndk/ |
D | NdkImageReader.cpp | 440 const int bufferWidth = getBufferWidth(buffer); in acquireImageLocked() local 462 ALOGV_IF(readerWidth != bufferWidth || readerHeight != bufferHeight, in acquireImageLocked() 464 __FUNCTION__, bufferWidth, bufferHeight, readerWidth, readerHeight); in acquireImageLocked() 498 bufferWidth, bufferHeight, mNumPlanes); in acquireImageLocked()
|
/frameworks/native/libs/nativedisplay/include/surfacetexture/ |
D | SurfaceTexture.h | 160 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight);
|
/frameworks/av/camera/ndk/ndk_vendor/tests/ |
D | AImageReaderVendorTest.cpp | 580 int32_t bufferWidth = static_cast<int32_t>(outDesc.width); in HandleImageAvailable() local 600 if (bufferWidth != mWidth || bufferHeight != mHeight) { in HandleImageAvailable() 602 mHeight, bufferWidth, bufferHeight); in HandleImageAvailable()
|