/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
WallpaperCropActivity.java | 372 RectF cropRect = mCropView.getCrop(); 377 float cropScale = mCropView.getWidth() / (float) cropRect.width(); 388 cropRect.left = Math.max(0, cropRect.left); 389 cropRect.right = Math.min(rotatedInSize[0], cropRect.right); 390 cropRect.top = Math.max(0, cropRect.top); 391 cropRect.bottom = Math.min(rotatedInSize[1], cropRect.bottom) [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
WallpaperCropActivity.java | 376 RectF cropRect = mCropView.getCrop(); 381 float cropScale = mCropView.getWidth() / (float) cropRect.width(); 394 cropRect.left = Math.max(0, cropRect.left); 395 cropRect.right = Math.min(rotatedInSize[0], cropRect.right); 396 cropRect.top = Math.max(0, cropRect.top); 397 cropRect.bottom = Math.min(rotatedInSize[1], cropRect.bottom) [all...] |
/external/chromium_org/third_party/skia/include/effects/ |
SkLightingImageFilter.h | 50 SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 53 SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 57 SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 60 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 63 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL) [all...] |
SkMatrixConvolutionImageFilter.h | 52 @param cropRect The rectangle to which the output processing will be limited. 62 const CropRect* cropRect = NULL) { 65 input, cropRect)); 79 const CropRect* cropRect);
|
/external/skia/include/effects/ |
SkLightingImageFilter.h | 50 SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 53 SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 57 SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 60 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL); 63 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL) [all...] |
SkMatrixConvolutionImageFilter.h | 52 @param cropRect The rectangle to which the output processing will be limited. 62 const CropRect* cropRect = NULL) { 65 input, cropRect)); 79 const CropRect* cropRect);
|
/external/chromium_org/third_party/skia/gm/ |
imagefilterscropped.cpp | 86 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); 88 c.drawRect(SkRect::Make(cropRect), paint); 133 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), SkImageFilter::CropRect::kHasAll_CropEdge); 134 SkImageFilter::CropRect bogusRect(SkRect::Make(SkIRect::MakeXYWH(-100, -100, 10, 10)), SkImageFilter::CropRect::kHasAll_CropEdge); 143 SkColorFilterImageFilter::Create(cf.get(), NULL, &cropRect), 144 SkBlurImageFilter::Create(1.0f, 1.0f, NULL, &cropRect), 145 SkBlurImageFilter::Create(8.0f, 0.0f, NULL, &cropRect), [all...] |
displacement.cpp | 129 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(30, 30, 40, 40)); 133 0.0f, displ, NULL, &cropRect))->unref(); 138 16.0f, displ, NULL, &cropRect))->unref(); 143 32.0f, displ, NULL, &cropRect))->unref(); 148 48.0f, displ, NULL, &cropRect))->unref(); 153 64.0f, displ, NULL, &cropRect))->unref(); 159 40.0f, displ, NULL, &cropRect))->unref(); 164 40.0f, displ, NULL, &cropRect))->unref(); 169 40.0f, displ, NULL, &cropRect))->unref() [all...] |
morphology.cpp | 71 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(25, 20, 100, 80)); 75 const SkImageFilter::CropRect* cr = j & 0x02 ? &cropRect : NULL;
|
/external/skia/gm/ |
imagefilterscropped.cpp | 86 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); 88 c.drawRect(SkRect::Make(cropRect), paint); 133 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), SkImageFilter::CropRect::kHasAll_CropEdge); 134 SkImageFilter::CropRect bogusRect(SkRect::Make(SkIRect::MakeXYWH(-100, -100, 10, 10)), SkImageFilter::CropRect::kHasAll_CropEdge); 143 SkColorFilterImageFilter::Create(cf.get(), NULL, &cropRect), 144 SkBlurImageFilter::Create(1.0f, 1.0f, NULL, &cropRect), 145 SkBlurImageFilter::Create(8.0f, 0.0f, NULL, &cropRect), [all...] |
displacement.cpp | 129 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(30, 30, 40, 40)); 133 0.0f, displ, NULL, &cropRect))->unref(); 138 16.0f, displ, NULL, &cropRect))->unref(); 143 32.0f, displ, NULL, &cropRect))->unref(); 148 48.0f, displ, NULL, &cropRect))->unref(); 153 64.0f, displ, NULL, &cropRect))->unref(); 159 40.0f, displ, NULL, &cropRect))->unref(); 164 40.0f, displ, NULL, &cropRect))->unref(); 169 40.0f, displ, NULL, &cropRect))->unref() [all...] |
morphology.cpp | 71 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(25, 20, 100, 80)); 75 const SkImageFilter::CropRect* cr = j & 0x02 ? &cropRect : NULL;
|
/external/chromium_org/third_party/skia/src/effects/ |
SkColorFilterImageFilter.cpp | 61 SkImageFilter* input, const CropRect* cropRect) { 73 return SkNEW_ARGS(SkColorFilterImageFilter, (newCF, input->getInput(0), cropRect)); 76 return SkNEW_ARGS(SkColorFilterImageFilter, (cf, input, cropRect)); 80 SkImageFilter* input, const CropRect* cropRect) 81 : INHERITED(input, cropRect), fColorFilter(cf) {
|
SkMergeImageFilter.cpp | 45 const CropRect* cropRect) : INHERITED(first, second, cropRect) { 56 const CropRect* cropRect) : INHERITED(count, filters, cropRect) {
|
/external/skia/src/effects/ |
SkColorFilterImageFilter.cpp | 61 SkImageFilter* input, const CropRect* cropRect) { 73 return SkNEW_ARGS(SkColorFilterImageFilter, (newCF, input->getInput(0), cropRect)); 76 return SkNEW_ARGS(SkColorFilterImageFilter, (cf, input, cropRect)); 80 SkImageFilter* input, const CropRect* cropRect) 81 : INHERITED(input, cropRect), fColorFilter(cf) {
|
SkMergeImageFilter.cpp | 45 const CropRect* cropRect) : INHERITED(first, second, cropRect) { 56 const CropRect* cropRect) : INHERITED(count, filters, cropRect) {
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
FEOffset.cpp | 99 SkImageFilter::CropRect cropRect = getCropRect(builder->cropOffset()); 100 return adoptRef(SkOffsetImageFilter::Create(SkFloatToScalar(filter->applyHorizontalScale(m_dx)), SkFloatToScalar(filter->applyVerticalScale(m_dy)), input.get(), &cropRect));
|
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
SmartClip.cpp | 79 SmartClipData SmartClip::dataForRect(const IntRect& cropRect) 81 IntRect resizedCropRect = applyScaleWithoutCollapsingToZero(cropRect, 1 / pageScaleFactor()); 162 Node* SmartClip::findBestOverlappingNode(Node* rootNode, const IntRect& cropRect) 167 IntRect resizedCropRect = rootNode->document().view()->windowToContents(cropRect); 221 void SmartClip::collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRect, WillBeHeapVector<RawPtrWillBeMember<Node> >& hitNodes) 225 IntRect resizedCropRect = parentNode->document().view()->windowToContents(cropRect);
|
/external/chromium_org/third_party/skia/src/core/ |
SkImageFilter.cpp | 25 SkImageFilter::SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRect) 28 fCropRect(cropRect ? *cropRect : CropRect(SkRect(), 0x0)) { 35 SkImageFilter::SkImageFilter(SkImageFilter* input, const CropRect* cropRect) 38 fCropRect(cropRect ? *cropRect : CropRect(SkRect(), 0x0)) [all...] |
/external/skia/src/core/ |
SkImageFilter.cpp | 25 SkImageFilter::SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRect) 28 fCropRect(cropRect ? *cropRect : CropRect(SkRect(), 0x0)) { 35 SkImageFilter::SkImageFilter(SkImageFilter* input, const CropRect* cropRect) 38 fCropRect(cropRect ? *cropRect : CropRect(SkRect(), 0x0)) [all...] |
/frameworks/base/core/java/android/app/ |
WallpaperManager.java | 510 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); 512 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); 531 RectF cropRect = new RectF(); 534 cropRect.top = 0; 535 cropRect.bottom = inHeight; 537 cropRect.left = (inWidth - cropWidth) * horizontalAlignment; 538 cropRect.right = cropRect.left + cropWidth; 540 cropRect.left = 0; 541 cropRect.right = inWidth [all...] |
/external/chromium_org/third_party/skia/tests/ |
ImageFilterTest.cpp | 120 static SkImageFilter* make_grayscale(SkImageFilter* input = NULL, const SkImageFilter::CropRect* cropRect = NULL) { 128 return SkColorFilterImageFilter::Create(filter, input, cropRect); 156 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(0, 0, 100, 100)); 157 SkAutoTUnref<SkImageFilter> grayWithCrop(make_grayscale(NULL, &cropRect)); 242 SkImageFilter::CropRect inputCropRect(SkRect::MakeXYWH(8, 13, 80, 80)); 243 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(20, 30, 60, 60)); 258 SkColorFilterImageFilter::Create(cf.get(), input.get(), &cropRect), [all...] |
/external/skia/tests/ |
ImageFilterTest.cpp | 120 static SkImageFilter* make_grayscale(SkImageFilter* input = NULL, const SkImageFilter::CropRect* cropRect = NULL) { 128 return SkColorFilterImageFilter::Create(filter, input, cropRect); 156 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(0, 0, 100, 100)); 157 SkAutoTUnref<SkImageFilter> grayWithCrop(make_grayscale(NULL, &cropRect)); 242 SkImageFilter::CropRect inputCropRect(SkRect::MakeXYWH(8, 13, 80, 80)); 243 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(20, 30, 60, 60)); 258 SkColorFilterImageFilter::Create(cf.get(), input.get(), &cropRect), [all...] |
/external/chromium_org/third_party/skia/include/core/ |
SkImageFilter.h | 33 class CropRect { 42 CropRect() {} 43 explicit CropRect(const SkRect& rect, uint32_t flags = kHasAll_CropEdge) : fRect(rect), fFlags(flags) {} 201 SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRect = NULL); 204 explicit SkImageFilter(SkImageFilter* input, const CropRect* cropRect = NULL); 207 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const CropRect* cropRect = NULL); 293 CropRect fCropRect [all...] |
/external/skia/include/core/ |
SkImageFilter.h | 33 class CropRect { 42 CropRect() {} 43 explicit CropRect(const SkRect& rect, uint32_t flags = kHasAll_CropEdge) : fRect(rect), fFlags(flags) {} 201 SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRect = NULL); 204 explicit SkImageFilter(SkImageFilter* input, const CropRect* cropRect = NULL); 207 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const CropRect* cropRect = NULL); 293 CropRect fCropRect [all...] |