/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/ |
H A D | ISystemUiProxy.aidl | 30 GraphicBufferCompat screenshot(in Rect sourceCrop, int width, int height, int minLayer,
|
/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/base/core/java/android/view/ |
H A D | SurfaceControl.java | 73 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, 76 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, 79 Rect sourceCrop, int width, int height, int minLayer, int maxLayer, 82 Rect sourceCrop, float frameScale); 1210 * @param sourceCrop The portion of the screen to capture into the Bitmap; 1232 public static Bitmap screenshot(Rect sourceCrop, int width, int height, argument 1238 return nativeScreenshot(displayToken, sourceCrop, width, height, 1246 public static GraphicBuffer screenshotToBuffer(Rect sourceCrop, int width, int height, argument 1251 return nativeScreenshotToBuffer(displayToken, sourceCrop, width, height, 1260 * @param sourceCrop Th 72 nativeScreenshot(IBinder displayToken, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform, int rotation) argument 75 nativeScreenshotToBuffer(IBinder displayToken, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform, int rotation) argument 78 nativeScreenshot(IBinder displayToken, Surface consumer, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform) argument 81 nativeCaptureLayers(IBinder layerHandleToken, Rect sourceCrop, float frameScale) argument 1275 screenshot(Rect sourceCrop, int width, int height, int rotation) argument 1288 screenshot(IBinder display, Surface consumer, Rect sourceCrop, int width, int height, int minLayer, int maxLayer, boolean allLayers, boolean useIdentityTransform) argument 1323 captureLayers(IBinder layerHandleToken, Rect sourceCrop, float frameScale) argument [all...] |
/frameworks/native/include/gui/ |
H A D | ISurfaceComposer.h | 178 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 186 sp<GraphicBuffer>* outBuffer, const Rect& sourceCrop,
|
H A D | SurfaceComposerClient.h | 312 static status_t capture(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, 316 static status_t captureLayers(const sp<IBinder>& layerHandle, Rect sourceCrop, float frameScale, 318 static status_t captureChildLayers(const sp<IBinder>& layerHandle, Rect sourceCrop,
|
/frameworks/native/libs/gui/include/gui/ |
H A D | ISurfaceComposer.h | 178 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 186 sp<GraphicBuffer>* outBuffer, const Rect& sourceCrop,
|
H A D | SurfaceComposerClient.h | 312 static status_t capture(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, 316 static status_t captureLayers(const sp<IBinder>& layerHandle, Rect sourceCrop, float frameScale, 318 static status_t captureChildLayers(const sp<IBinder>& layerHandle, Rect sourceCrop,
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | GLES20RenderEngine.cpp | 169 void GLES20RenderEngine::setViewportAndProjection(size_t vpw, size_t vph, Rect sourceCrop, argument 172 int32_t l = sourceCrop.left; 173 int32_t r = sourceCrop.right; 176 int32_t t = hwh - sourceCrop.top; 177 int32_t b = hwh - sourceCrop.bottom;
|
H A D | GLES20RenderEngine.h | 69 virtual void setViewportAndProjection(size_t vpw, size_t vph, Rect sourceCrop, size_t hwh,
|
H A D | RenderEngine.h | 107 virtual void setViewportAndProjection(size_t vpw, size_t vph, Rect sourceCrop, size_t hwh,
|
/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 | 146 void setDependent(Hwc2TestSourceCrop* sourceCrop);
|
/frameworks/native/libs/gui/ |
H A D | ISurfaceComposer.cpp | 106 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 112 data.write(sourceCrop); 136 sp<GraphicBuffer>* outBuffer, const Rect& sourceCrop, 141 data.write(sourceCrop); 610 Rect sourceCrop(Rect::EMPTY_RECT); 611 data.read(sourceCrop); 619 status_t res = captureScreen(display, &outBuffer, sourceCrop, reqWidth, reqHeight, 632 Rect sourceCrop(Rect::EMPTY_RECT); 633 data.read(sourceCrop); 637 status_t res = captureLayers(layerHandleBinder, &outBuffer, sourceCrop, frameScal 105 captureScreen(const sp<IBinder>& display, sp<GraphicBuffer>* outBuffer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, ISurfaceComposer::Rotation rotation) argument 135 captureLayers(const sp<IBinder>& layerHandleBinder, sp<GraphicBuffer>* outBuffer, const Rect& sourceCrop, float frameScale, bool childrenOnly) argument [all...] |
H A D | SurfaceComposerClient.cpp | 764 status_t ScreenshotClient::capture(const sp<IBinder>& display, Rect sourceCrop, uint32_t reqWidth, argument 770 status_t ret = s->captureScreen(display, outBuffer, sourceCrop, reqWidth, reqHeight, minLayerZ, 779 status_t ScreenshotClient::captureLayers(const sp<IBinder>& layerHandle, Rect sourceCrop, argument 783 status_t ret = s->captureLayers(layerHandle, outBuffer, sourceCrop, frameScale, 788 status_t ScreenshotClient::captureChildLayers(const sp<IBinder>& layerHandle, Rect sourceCrop, argument 792 status_t ret = s->captureLayers(layerHandle, outBuffer, sourceCrop, frameScale,
|
/frameworks/base/core/jni/ |
H A D | android_view_SurfaceControl.cpp | 168 Rect sourceCrop = rectFromObj(env, sourceCropObj); local 175 sourceCrop, width, height, minLayer, maxLayer, useIdentityTransform, 199 Rect sourceCrop = rectFromObj(env, sourceCropObj); local 209 res = ScreenshotClient::capture(displayToken, sourceCrop, width, height, 267 Rect sourceCrop; local 269 sourceCrop = rectFromObj(env, sourceCropObj); 278 ScreenshotClient::capture(displayToken, sourceCrop, width, height, minLayer, maxLayer, 292 Rect sourceCrop; local 294 sourceCrop = rectFromObj(env, sourceCropObj); 298 status_t res = ScreenshotClient::captureChildLayers(layerHandle, sourceCrop, frameScal [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DisplayDevice.h | 343 DisplayRenderArea(const sp<const DisplayDevice> device, Rect sourceCrop, uint32_t reqHeight, argument 346 mSourceCrop(sourceCrop) {}
|
H A D | SurfaceFlinger.cpp | 4709 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, 4720 DisplayRenderArea renderArea(device, sourceCrop, reqHeight, reqWidth, rotation); 4728 sp<GraphicBuffer>* outBuffer, const Rect& sourceCrop, 4812 Rect crop(sourceCrop); 4813 if (sourceCrop.width() <= 0) { 4818 if (sourceCrop.height() <= 0) { 4929 Rect sourceCrop = renderArea.getSourceCrop(); local 4940 // if a default or invalid sourceCrop is passed in, set reasonable values 4941 if (sourceCrop.width() == 0 || sourceCrop 4708 captureScreen(const sp<IBinder>& display, sp<GraphicBuffer>* outBuffer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, int32_t minLayerZ, int32_t maxLayerZ, bool useIdentityTransform, ISurfaceComposer::Rotation rotation) argument 4727 captureLayers(const sp<IBinder>& layerHandleBinder, sp<GraphicBuffer>* outBuffer, const Rect& sourceCrop, float frameScale, bool childrenOnly) argument [all...] |
H A D | Layer.cpp | 564 FloatRect sourceCrop = computeCrop(displayDevice); local 565 error = hwcLayer->setSourceCrop(sourceCrop); 569 mName.string(), sourceCrop.left, sourceCrop.top, sourceCrop.right, sourceCrop.bottom, 572 hwcInfo.sourceCrop = sourceCrop; 1484 const FloatRect& crop = hwcInfo.sourceCrop; 1987 const FloatRect& crop = hwcInfo.sourceCrop; [all...] |
H A D | Layer.h | 87 FloatRect sourceCrop; member in struct:android::CompositionInfo::__anon1872 127 FloatRect sourceCrop; member in struct:android::LayerBE::HWCInfo
|
H A D | DisplayDevice.cpp | 392 Rect sourceCrop(0, 0, w, h); 393 mFlinger->getRenderEngine().setViewportAndProjection(w, h, sourceCrop, h,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | OverviewProxyService.java | 87 public GraphicBufferCompat screenshot(Rect sourceCrop, int width, int height, int minLayer, 91 return new GraphicBufferCompat(SurfaceControl.screenshotToBuffer(sourceCrop, width,
|