/frameworks/native/opengl/tests/finish/ |
D | finish.cpp | 106 GLint crop[4] = { 0, 512, 512, -512 }; in main() local 107 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 120 GLint crop[4] = { 0, 1, 1, -1 }; in main() local 121 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 134 GLint crop[4] = { 0, 512, 512, -512 }; in main() local 135 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 149 GLint crop[4] = { 0, 1, 1, -1 }; in main() local 150 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() 166 GLint crop[4] = { 0, 512, 512, -512 }; in main() local 167 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SurfaceControlWithBackground.java | 143 public void setWindowCrop(Rect crop) { in setWindowCrop() argument 144 super.setWindowCrop(crop); in setWindowCrop() 149 calculateBgCrop(crop); in setWindowCrop() 156 public void setFinalCrop(Rect crop) { in setFinalCrop() argument 157 super.setFinalCrop(crop); in setFinalCrop() 170 private void calculateBgCrop(Rect crop) { in calculateBgCrop() argument 173 float d = contentInsets.top == 0 ? 0 : (float) crop.top / contentInsets.top; in calculateBgCrop() 202 backgroundHeight = crop.height(); in calculateBgCrop() 203 offsetX += crop.left - backgroundWidth; in calculateBgCrop() 204 offsetY += crop.top; in calculateBgCrop() [all …]
|
D | RemoteSurfaceTrace.java | 86 public void setWindowCrop(Rect crop) { in setWindowCrop() argument 87 writeRectEvent("Crop", crop); in setWindowCrop() 88 super.setWindowCrop(crop); in setWindowCrop() 92 public void setFinalCrop(Rect crop) { in setFinalCrop() argument 93 writeRectEvent("FinalCrop", crop); in setFinalCrop() 94 super.setFinalCrop(crop); in setFinalCrop()
|
D | WindowSurfaceController.java | 661 public void setWindowCrop(Rect crop) { in setWindowCrop() argument 662 if (crop != null) { in setWindowCrop() 663 if (!crop.equals(mWindowCrop)) { in setWindowCrop() 665 + crop.toShortString() + "): OLD:" + this + ". Called by " in setWindowCrop() 667 mWindowCrop.set(crop); in setWindowCrop() 670 super.setWindowCrop(crop); in setWindowCrop() 674 public void setFinalCrop(Rect crop) { in setFinalCrop() argument 675 if (crop != null) { in setFinalCrop() 676 if (!crop.equals(mFinalCrop)) { in setFinalCrop() 678 + crop.toShortString() + "): OLD:" + this + ". Called by " in setFinalCrop() [all …]
|
D | TaskSnapshotSurface.java | 314 final Rect crop = calculateSnapshotCrop(); in drawSizeMismatchSnapshot() local 315 final Rect frame = calculateSnapshotFrame(crop); in drawSizeMismatchSnapshot() 321 mChildSurfaceControl.setWindowCrop(crop); in drawSizeMismatchSnapshot() 365 Rect calculateSnapshotFrame(Rect crop) { in calculateSnapshotFrame() argument 366 final Rect frame = new Rect(crop); in calculateSnapshotFrame() 373 frame.offsetTo((int) (-crop.left / scale), (int) (-crop.top / scale)); in calculateSnapshotFrame()
|
D | DisplayContent.java | 3098 Rect crop = new Rect(frame); in screenshotApplications() local 3101 crop.right = crop.left + cropWidth; in screenshotApplications() 3104 crop.bottom = crop.top + cropHeight; in screenshotApplications() 3116 convertCropForSurfaceFlinger(crop, rot, dw, dh); in screenshotApplications() 3142 bitmap = screenshoter.screenshot(crop, width, height, minLayer, maxLayer, in screenshotApplications() 3154 private static void convertCropForSurfaceFlinger(Rect crop, int rot, int dw, int dh) { in convertCropForSurfaceFlinger() argument 3156 final int tmp = crop.top; in convertCropForSurfaceFlinger() 3157 crop.top = dw - crop.right; in convertCropForSurfaceFlinger() 3158 crop.right = crop.bottom; in convertCropForSurfaceFlinger() 3159 crop.bottom = dw - crop.left; in convertCropForSurfaceFlinger() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | LayerRejecter.cpp | 80 if (mFront.crop != mFront.requestedCrop) { in reject() 81 mFront.crop = mFront.requestedCrop; in reject() 82 mCurrent.crop = mFront.requestedCrop; in reject() 98 mFront.active.h, mFront.crop.left, mFront.crop.top, mFront.crop.right, in reject() 99 mFront.crop.bottom, mFront.crop.getWidth(), mFront.crop.getHeight(), in reject()
|
D | Layer.cpp | 134 mCurrentState.crop.makeInvalid(); in Layer() 137 mCurrentState.requestedCrop = mCurrentState.crop; in Layer() 426 Rect crop; in getContentCrop() local 429 crop = mCurrentCrop; in getContentCrop() 432 crop = mActiveBuffer->getBounds(); in getContentCrop() 435 crop.makeInvalid(); in getContentCrop() 437 return crop; in getContentCrop() 454 if (!s.crop.isEmpty()) { in computeScreenBounds() 455 win.intersect(s.crop, &win); in computeScreenBounds() 497 if (!s.crop.isEmpty()) { in computeBounds() [all …]
|
/frameworks/native/services/vr/hardware_composer/tests/ |
D | vr_composer_test.cpp | 135 .crop = {0.0f, 0.0f, 600.0f, 400.0f}, in TEST_F() 161 ASSERT_EQ(frame.layers[0].crop.left, received_frame.layers[0].crop.left); in TEST_F() 162 ASSERT_EQ(frame.layers[0].crop.top, received_frame.layers[0].crop.top); in TEST_F() 163 ASSERT_EQ(frame.layers[0].crop.right, received_frame.layers[0].crop.right); in TEST_F() 164 ASSERT_EQ(frame.layers[0].crop.bottom, received_frame.layers[0].crop.bottom); in TEST_F()
|
/frameworks/base/media/java/android/media/ |
D | ImageWriter.java | 372 Rect crop = image.getCropRect(); in queueInputImage() local 373 nativeQueueInputImage(mNativeContext, image, image.getTimestamp(), crop.left, crop.top, in queueInputImage() 374 crop.right, crop.bottom); in queueInputImage() 558 Rect crop = image.getCropRect(); in attachAndQueueInputImage() local 560 image.getTimestamp(), crop.left, crop.top, crop.right, crop.bottom); in attachAndQueueInputImage()
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/ |
D | SoftAVC.cpp | 226 const CropParams& crop = decInfo.cropParams; in handleCropParams() local 227 if (mCropLeft == crop.cropLeftOffset && in handleCropParams() 228 mCropTop == crop.cropTopOffset && in handleCropParams() 229 mCropWidth == crop.cropOutWidth && in handleCropParams() 230 mCropHeight == crop.cropOutHeight) { in handleCropParams() 234 mCropLeft = crop.cropLeftOffset; in handleCropParams() 235 mCropTop = crop.cropTopOffset; in handleCropParams() 236 mCropWidth = crop.cropOutWidth; in handleCropParams() 237 mCropHeight = crop.cropOutHeight; in handleCropParams()
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | SoftwareRenderer.cpp | 172 android_native_rect_t crop; in resetFormatIfChanged() local 173 crop.left = mCropLeft; in resetFormatIfChanged() 174 crop.top = mCropTop; in resetFormatIfChanged() 175 crop.right = mCropRight + 1; in resetFormatIfChanged() 176 crop.bottom = mCropBottom + 1; in resetFormatIfChanged() 178 crop.left, crop.top, crop.right, crop.bottom, bufWidth, bufHeight); in resetFormatIfChanged() 180 CHECK_EQ(0, native_window_set_crop(mNativeWindow.get(), &crop)); in resetFormatIfChanged()
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 553 public void setWindowCrop(Rect crop) { in setWindowCrop() argument 555 if (crop != null) { in setWindowCrop() 557 crop.left, crop.top, crop.right, crop.bottom); in setWindowCrop() 563 public void setFinalCrop(Rect crop) { in setFinalCrop() argument 565 if (crop != null) { in setFinalCrop() 567 crop.left, crop.top, crop.right, crop.bottom); in setFinalCrop()
|
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
D | parcelable_composer_layer.cpp | 45 ret = parcel->writeFloat(layer_.crop.left); in writeToParcel() 48 ret = parcel->writeFloat(layer_.crop.top); in writeToParcel() 51 ret = parcel->writeFloat(layer_.crop.right); in writeToParcel() 54 ret = parcel->writeFloat(layer_.crop.bottom); in writeToParcel() 148 ret = parcel->readFloat(&layer_.crop.left); in readFromParcel() 151 ret = parcel->readFloat(&layer_.crop.top); in readFromParcel() 154 ret = parcel->readFloat(&layer_.crop.right); in readFromParcel() 157 ret = parcel->readFloat(&layer_.crop.bottom); in readFromParcel()
|
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/ |
D | trace_creator.py | 119 change.crop.rectangle.left, change.crop.rectangle.top, \ 120 change.crop.rectangle.right, change.crop.rectangle.bottom = crop() 216 def crop(): function
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | WallpaperCropActivity.java | 336 RectF crop = getMaxCropRect( in cropImageAndSetWallpaper() local 347 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop); in cropImageAndSetWallpaper() 656 Bitmap crop = null; local 663 crop = decoder.decodeRegion(roundedTrueCrop, options); 667 if (crop == null) { 712 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, 718 if (crop == null) { 724 float[] dimsAfter = new float[] { crop.getWidth(), crop.getHeight() }; 742 m1.setTranslate(-crop.getWidth() / 2f, -crop.getHeight() / 2f); 763 c.drawBitmap(crop, m, p); [all …]
|
/frameworks/native/libs/vr/libbufferhubqueue/ |
D | buffer_hub_queue_producer.cpp | 265 Rect crop(Rect::EMPTY_RECT); in queueBuffer() local 270 input.deflate(×tamp, &is_auto_timestamp, &dataspace, &crop, in queueBuffer() 323 crop.intersect(buffer_rect, &cropped_rect); in queueBuffer() 324 if (cropped_rect != crop) { in queueBuffer() 335 meta_data.crop_left = crop.left; in queueBuffer() 336 meta_data.crop_top = crop.top; in queueBuffer() 337 meta_data.crop_right = crop.right; in queueBuffer() 338 meta_data.crop_bottom = crop.bottom; in queueBuffer()
|
/frameworks/native/libs/gui/include/gui/ |
D | CpuConsumer.h | 53 Rect crop; member 78 crop(Rect::EMPTY_RECT), in LockedBuffer()
|
D | SurfaceControl.h | 94 status_t setCrop(const Rect& crop); 95 status_t setFinalCrop(const Rect& crop);
|
D | IGraphicBufferProducer.h | 322 dataSpace(_dataSpace), crop(_crop), scalingMode(_scalingMode), in timestamp() 335 *outCrop = crop; 361 Rect crop; member
|
/frameworks/native/libs/gui/ |
D | SurfaceControl.cpp | 163 status_t SurfaceControl::setCrop(const Rect& crop) { in setCrop() argument 166 return mClient->setCrop(mHandle, crop); in setCrop() 168 status_t SurfaceControl::setFinalCrop(const Rect& crop) { in setFinalCrop() argument 171 return mClient->setFinalCrop(mHandle, crop); in setFinalCrop()
|
D | GLConsumer.cpp | 149 static bool isEglImageCroppable(const Rect& crop) { in isEglImageCroppable() argument 150 return hasEglAndroidImageCrop() && (crop.left == 0 && crop.top == 0); in isEglImageCroppable() 896 float crop[16] = { in computeTransformMatrix() local 903 mtxMul(mtxBeforeFlipV, crop, xform); in computeTransformMatrix() 1239 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop) { in createImage() argument 1247 EGL_IMAGE_CROP_LEFT_ANDROID, crop.left, in createImage() 1248 EGL_IMAGE_CROP_TOP_ANDROID, crop.top, in createImage() 1249 EGL_IMAGE_CROP_RIGHT_ANDROID, crop.right, in createImage() 1250 EGL_IMAGE_CROP_BOTTOM_ANDROID, crop.bottom, in createImage() 1255 if (!crop.isValid()) { in createImage() [all …]
|
/frameworks/native/opengl/tests/textures/ |
D | textures.cpp | 66 GLint crop[4] = { 0, 4, 4, -4 }; in main() local 68 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in main()
|
/frameworks/native/libs/gui/include/private/gui/ |
D | LayerState.h | 69 reserved(0), crop(Rect::INVALID_RECT), in layer_state_t() 99 Rect crop; member
|
/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 683 Bitmap crop = null; in getBuiltInDrawable() local 690 crop = decoder.decodeRegion(roundedTrueCrop, options); in getBuiltInDrawable() 694 if (crop == null) { in getBuiltInDrawable() 705 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, in getBuiltInDrawable() 711 if (crop == null) { in getBuiltInDrawable() 718 (crop.getWidth() != outWidth || crop.getHeight() != outHeight)) { in getBuiltInDrawable() 720 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); in getBuiltInDrawable() 729 c.drawBitmap(crop, m, p); in getBuiltInDrawable() 730 crop = tmp; in getBuiltInDrawable() 734 return new BitmapDrawable(resources, crop); in getBuiltInDrawable()
|