/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 144 static_cast<uint32_t>(bufferHeight), PIXEL_FORMAT_RGBA_8888, 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 | 155 uint32_t bufferHeight) { in fillLayerColor() argument 157 bufferWidth, bufferHeight)); in fillLayerColor() 161 uint32_t bufferHeight, const Color& topLeft, const Color& topRight, in fillLayerQuadrant() argument 164 bufferWidth, bufferHeight, in fillLayerQuadrant()
|
D | LayerTypeAndRenderTypeTransaction_test.cpp | 315 const uint32_t bufferHeight = 300; 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() 372 const uint32_t bufferHeight = 750 * 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() 442 const uint32_t bufferHeight = 300; 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 | 747 const uint32_t bufferHeight = 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 | 35 float bufferHeight, PixelFormat pixelFormat, in computeTransformMatrix() argument 105 if (cropRect.height() < bufferHeight) { in computeTransformMatrix() 106 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / in computeTransformMatrix() 107 bufferHeight; in computeTransformMatrix() 109 bufferHeight; 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 | 299 float bufferHeight = buf->getHeight(); in computeTransformMatrix() local 334 if (cropRect.height() < bufferHeight) { in computeTransformMatrix() 335 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / bufferHeight; in computeTransformMatrix() 336 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / bufferHeight; 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 | 48 const int32_t bufferHeight = kBufferWidth; in draw() local 57 static_cast<uint32_t>(bufferHeight), in draw() 67 canvasTransform.setTranslate(bufferHeight, 0); in draw() 82 SkSurfaces::Raster(SkImageInfo::MakeN32Premul(bufferWidth, bufferHeight)); in draw()
|
D | LayerFE.cpp | 304 float bufferHeight = static_cast<float>(mSnapshot->bufferSize.getHeight()); in prepareBufferStateClientComposition() local 311 bufferHeight = float(win.bottom) - float(win.top); in prepareBufferStateClientComposition() 314 const float scaleHeight = (float(win.bottom) - float(win.top)) / bufferHeight; in prepareBufferStateClientComposition() 316 const float translateY = float(win.top) / bufferHeight; in prepareBufferStateClientComposition()
|
D | RefreshRateOverlay.cpp | 43 const auto [bufferWidth, bufferHeight] = [&]() -> std::pair<int, int> { in draw() 61 static_cast<uint32_t>(bufferHeight), in draw() 70 SkImageInfo::MakeN32Premul(bufferWidth, bufferHeight)); in draw()
|
D | Layer.cpp | 3063 uint32_t bufferHeight = mDrawingState.buffer->getHeight(); in updateGeometry() local 3066 std::swap(bufferWidth, bufferHeight); in updateGeometry() 3071 std::swap(bufferWidth, bufferHeight); in updateGeometry() 3076 float sy = destH / static_cast<float>(bufferHeight); in updateGeometry()
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | TransactionUtils.h | 111 int32_t bufferHeight = int32_t(outBuffer->getHeight()); in expectBufferColor() local 116 if (y + height > bufferHeight) { in expectBufferColor() 117 y = std::min(y, bufferHeight); in expectBufferColor() 118 height = bufferHeight - y; 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 101 if (cropRect->height() > 1 && cropRect->height() < bufferHeight) { in adjustCropForYUV()
|
/frameworks/native/services/surfaceflinger/tests/tracing/ |
D | TransactionTraceTestSuite.cpp | 105 uint32_t bufferHeight; member 111 lh.bufferHeight, lh.touchableRegionBounds) == in operator ==() 113 rh.bufferHeight, rh.touchableRegionBounds); in operator ==() 124 << " bufferHeight=" << info.bufferHeight << "touchableRegionBounds={" in PrintTo()
|
/frameworks/native/libs/gui/include/gui/ |
D | GLConsumer.h | 142 float bufferHeight, PixelFormat pixelFormat, 148 uint32_t bufferHeight);
|
/frameworks/native/services/surfaceflinger/FrontEnd/ |
D | RequestedLayerState.cpp | 351 uint32_t bufferHeight = externalTexture->getHeight(); 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 | 441 const int bufferHeight = getBufferHeight(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 | 581 int32_t bufferHeight = static_cast<int32_t>(outDesc.height); in HandleImageAvailable() local 600 if (bufferWidth != mWidth || bufferHeight != mHeight) { in HandleImageAvailable() 602 mHeight, bufferWidth, bufferHeight); in HandleImageAvailable()
|