/frameworks/native/opengl/tests/hwc/ |
H A D | hwcRects.cpp | 45 * sourceCrop: [left, top, right, bottom] 55 * sourceDim: [50, 60] sourceCrop: [5, 8, 12, 15] 148 sourceCrop(defaultSourceCrop), 157 struct hwc_rect sourceCrop; member in class:Rectangle 321 layer->sourceCrop = it->sourceCrop; 390 // Set default sourceDim and sourceCrop based on size of display frame. 397 rect.sourceCrop.left = 0; 398 rect.sourceCrop.top = 0; 399 rect.sourceCrop [all...] |
H A D | hwcStress.cpp | 441 layer->sourceCrop.left = testRandMod(gBuf->getWidth()); 442 layer->sourceCrop.top = testRandMod(gBuf->getHeight()); 443 layer->sourceCrop.right = layer->sourceCrop.left 444 + testRandMod(gBuf->getWidth() - layer->sourceCrop.left) + 1; 445 layer->sourceCrop.bottom = layer->sourceCrop.top 446 + testRandMod(gBuf->getHeight() - layer->sourceCrop.top) + 1; 455 // the sourceCrop to displayFrame occurs. This is the 462 int sourceWidth = layer->sourceCrop [all...] |
H A D | hwcColorEquiv.cpp | 356 layer->sourceCrop.left = 0; 357 layer->sourceCrop.top = 0; 358 layer->sourceCrop.right = width; 359 layer->sourceCrop.bottom = refHeight; 370 layer->sourceCrop.left = 0; 371 layer->sourceCrop.top = 0; 372 layer->sourceCrop.right = width; 373 layer->sourceCrop.bottom = equivHeight;
|
H A D | hwcCommit.cpp | 129 HwcTestDim sourceCrop; member in struct:searchLimits 175 struct hwc_rect sourceCrop; member in class:Rectangle 254 struct sourceCrop { struct in struct:meas 508 == searchLimits.sourceCrop.width()) ? ">= " : "", 513 == searchLimits.sourceCrop.height()) ? ">= " : "", 521 >= searchLimits.sourceCrop.width()) 523 searchLimits.sourceCrop.height())) ? ">= " : "", 533 >= Rational(searchLimits.sourceCrop.width(), 548 >= Rational(searchLimits.sourceCrop.height(), 952 for (w = searchLimits.sourceCrop [all...] |
H A D | hwcTestLib.cpp | 477 testPrintI(" sourceCrop: %s", 478 hwcTestRect2str(list->hwLayers[layer].sourceCrop).c_str()); 482 (float) (list->hwLayers[layer].sourceCrop.right 483 - list->hwLayers[layer].sourceCrop.left) 486 (float) (list->hwLayers[layer].sourceCrop.bottom 487 - list->hwLayers[layer].sourceCrop.top)
|
/frameworks/native/include/gui/ |
H A D | SurfaceComposerClient.h | 222 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 227 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 246 Rect sourceCrop, bool useIdentityTransform); 248 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 251 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 255 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
|
H A D | ISurfaceComposer.h | 171 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
|
/frameworks/native/libs/gui/include/gui/ |
H A D | SurfaceComposerClient.h | 222 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 227 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 246 Rect sourceCrop, bool useIdentityTransform); 248 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 251 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 255 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
|
H A D | ISurfaceComposer.h | 171 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
|
/frameworks/base/core/java/android/view/ |
H A D | SurfaceControl.java | 47 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, 50 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, 53 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, 854 * @param sourceCrop The portion of the screen to capture into the Bitmap; 876 public static Bitmap screenshot(Rect sourceCrop, int width, int height, argument 882 return nativeScreenshot(displayToken, sourceCrop, width, height, 890 public static GraphicBuffer screenshotToBuffer(Rect sourceCrop, int width, int height, argument 895 return nativeScreenshotToBuffer(displayToken, sourceCrop, width, height, 919 private static void screenshot(IBinder display, Surface consumer, Rect sourceCrop, argument 928 nativeScreenshot(display, consumer, sourceCrop, widt 46 nativeScreenshot(IBinder displayToken, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform, int rotation) argument 49 nativeScreenshotToBuffer(IBinder displayToken, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform, int rotation) argument 52 nativeScreenshot(IBinder displayToken, Surface consumer, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform) argument [all...] |
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | GLES20RenderEngine.h | 69 Rect sourceCrop, size_t hwh, bool yswap,
|
H A D | GLES20RenderEngine.cpp | 166 size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, 169 size_t l = sourceCrop.left; 170 size_t r = sourceCrop.right; 173 size_t t = hwh - sourceCrop.top; 174 size_t b = hwh - sourceCrop.bottom; 165 setViewportAndProjection( size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) argument
|
H A D | RenderEngine.h | 100 Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
H A D | Hwc2TestProperties.cpp | 58 void Hwc2TestBufferArea::setDependent(Hwc2TestSourceCrop* sourceCrop) argument 60 mSourceCrop = sourceCrop; 479 const hwc_frect_t& sourceCrop = get(); local 480 dmp << "\tsource crop: left " << sourceCrop.left << ", top " 481 << sourceCrop.top << ", right " << sourceCrop.right << ", bottom " 482 << sourceCrop.bottom << "\n";
|
H A D | Hwc2TestProperties.h | 145 void setDependent(Hwc2TestSourceCrop* sourceCrop);
|
/frameworks/native/libs/gui/ |
H A D | SurfaceComposerClient.cpp | 946 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 950 return s->captureScreen(display, producer, sourceCrop, 955 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 969 status_t ret = s->captureScreen(display, producer, sourceCrop, reqWidth, reqHeight, 1001 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 1014 status_t err = s->captureScreen(display, mProducer, sourceCrop, 1028 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 1032 return ScreenshotClient::update(display, sourceCrop, reqWidth, reqHeight, 1036 status_t ScreenshotClient::update(const sp<IBinder>& display, Rect sourceCrop, argument 1038 return ScreenshotClient::update(display, sourceCrop, 943 capture( const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform) argument 954 captureToBuffer(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, uint32_t rotation, sp<GraphicBuffer>* outBuffer) argument 1000 update(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, uint32_t rotation) argument 1027 update(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform) argument 1043 update(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, bool useIdentityTransform) argument [all...] |
H A D | ISurfaceComposer.cpp | 105 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 114 data.write(sourceCrop); 545 Rect sourceCrop(Rect::EMPTY_RECT); 546 data.read(sourceCrop); 555 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, 103 captureScreen(const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, ISurfaceComposer::Rotation rotation) argument
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.h | 296 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 448 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 454 ANativeWindowBuffer* buffer, Rect sourceCrop, 463 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
|
H A D | SurfaceFlinger_hwc1.cpp | 3703 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 3743 Rect sourceCrop; member in class:MessageCaptureScreen 3754 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 3760 sourceCrop(sourceCrop), reqWidth(reqWidth), reqHeight(reqHeight), 3774 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, 3790 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, 3803 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 3816 // if a default or invalid sourceCrop is passed in, set reasonable values 3817 if (sourceCrop 3701 captureScreen(const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, ISurfaceComposer::Rotation rotation) argument 3751 MessageCaptureScreen(SurfaceFlinger* flinger, const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, Transform::orientation_flags rotation, bool isLocalScreenshot) argument 3801 renderScreenImplLocked( const sp<const DisplayDevice>& hw, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool yswap, bool useIdentityTransform, Transform::orientation_flags rotation) argument 3874 captureScreenImplLocked( const sp<const DisplayDevice>& hw, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, Transform::orientation_flags rotation, bool isLocalScreenshot) argument [all...] |
H A D | SurfaceFlinger.cpp | 4230 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 4324 result = captureScreenImplLocked(device, buffer, sourceCrop, reqWidth, reqHeight, 4362 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 4375 // if a default or invalid sourceCrop is passed in, set reasonable values 4376 if (sourceCrop.width() == 0 || sourceCrop.height() == 0 || 4377 !sourceCrop.isValid()) { 4378 sourceCrop.setLeftTop(Point(0, 0)); 4379 sourceCrop.setRightBottom(Point(hw_w, hw_h)); 4382 // ensure that sourceCrop i 4228 captureScreen(const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, ISurfaceComposer::Rotation rotation) argument 4360 renderScreenImplLocked( const sp<const DisplayDevice>& hw, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool yswap, bool useIdentityTransform, Transform::orientation_flags rotation) argument 4455 captureScreenImplLocked(const sp<const DisplayDevice>& hw, ANativeWindowBuffer* buffer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, Transform::orientation_flags rotation, bool isLocalScreenshot, int* outSyncFd) argument [all...] |
H A D | Layer.cpp | 748 FloatRect sourceCrop = computeCrop(displayDevice); local 749 error = hwcLayer->setSourceCrop(sourceCrop); 752 "%s (%d)", mName.string(), sourceCrop.left, sourceCrop.top, 753 sourceCrop.right, sourceCrop.bottom, to_string(error).c_str(), 756 hwcInfo.sourceCrop = sourceCrop; 2527 const FloatRect& crop = hwcInfo.sourceCrop;
|
H A D | DisplayDevice.cpp | 385 Rect sourceCrop(0, 0, w, h); 386 mFlinger->getRenderEngine().setViewportAndProjection(w, h, sourceCrop, h,
|
H A D | Layer.h | 765 FloatRect sourceCrop; member in struct:android::Layer::HWCInfo
|
/frameworks/base/core/jni/ |
H A D | android_view_SurfaceControl.cpp | 152 Rect sourceCrop = rectFromObj(env, sourceCropObj); local 159 sourceCrop, width, height, minLayer, maxLayer, useIdentityTransform, 183 Rect sourceCrop = rectFromObj(env, sourceCropObj); local 192 res = screenshot->update(displayToken, sourceCrop, width, height, 267 Rect sourceCrop(left, top, right, bottom); 274 consumer->getIGraphicBufferProducer(), sourceCrop,
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer_hwc1.cpp | 620 disp.framebufferTarget->sourceCrop = r; 1045 hwc_rect_t& r = getLayer()->sourceCrop; 1255 l.sourceCrop.left, l.sourceCrop.top, l.sourceCrop.right, l.sourceCrop.bottom,
|