Lines Matching refs:sourceCrop
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 is inside screen
4383 if (sourceCrop.left < 0) {
4384 ALOGE("Invalid crop rect: l = %d (< 0)", sourceCrop.left);
4386 if (sourceCrop.right > hw_w) {
4387 ALOGE("Invalid crop rect: r = %d (> %d)", sourceCrop.right, hw_w);
4389 if (sourceCrop.top < 0) {
4390 ALOGE("Invalid crop rect: t = %d (< 0)", sourceCrop.top);
4392 if (sourceCrop.bottom > hw_h) {
4393 ALOGE("Invalid crop rect: b = %d (> %d)", sourceCrop.bottom, hw_h);
4406 reqWidth, reqHeight, sourceCrop, hw_h, yswap, rotation);
4456 ANativeWindowBuffer* buffer, Rect sourceCrop,
4507 hw, sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, true,