Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 58) sorted by relevance

123

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java30 public static void drawRuleOfThird(Canvas canvas, RectF bounds) { in drawRuleOfThird() argument
35 float stepX = bounds.width() / 3.0f; in drawRuleOfThird()
36 float stepY = bounds.height() / 3.0f; in drawRuleOfThird()
37 float x = bounds.left + stepX; in drawRuleOfThird()
38 float y = bounds.top + stepY; in drawRuleOfThird()
40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p); in drawRuleOfThird()
44 canvas.drawLine(bounds.left, y, bounds.right, y, p); in drawRuleOfThird()
49 public static void drawCropRect(Canvas canvas, RectF bounds) { in drawCropRect() argument
54 canvas.drawRect(bounds, p); in drawCropRect()
57 public static void drawShade(Canvas canvas, RectF bounds) { in drawShade() argument
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DContactDrawable.java121 final Rect bounds = getBounds(); in draw() local
122 if (!isVisible() || bounds.isEmpty()) { in draw()
140 final Rect bounds = getBounds(); in drawBitmap() local
147 final float boundsWidth = (float) bounds.width(); in drawBitmap()
148 final float boundsHeight = (float) bounds.height(); in drawBitmap()
153 mMatrix.postTranslate(bounds.left, bounds.top); in drawBitmap()
157 drawCircle(canvas, bounds, mBitmapPaint); in drawBitmap()
160 final float radius = bounds.width() / 2f - mBorderWidth / 2; in drawBitmap()
161 canvas.drawCircle(bounds.centerX(), bounds.centerY(), radius, mBorderPaint); in drawBitmap()
169 final Rect bounds = getBounds(); in drawLetterTile() local
[all …]
DAccountAvatarDrawable.java81 final Rect bounds = getBounds(); in draw() local
82 if (!isVisible() || bounds.isEmpty()) { in draw()
101 final Rect bounds = getBounds(); in drawBitmap() local
107 final float boundsWidth = (float) bounds.width(); in drawBitmap()
108 final float boundsHeight = (float) bounds.height(); in drawBitmap()
113 mMatrix.postTranslate(bounds.left, bounds.top); in drawBitmap()
117 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, mBitmapPaint); in drawBitmap()
120 final float radius = bounds.width() / 2f - mBorderWidth / 2; in drawBitmap()
121 canvas.drawCircle(bounds.centerX(), bounds.centerY(), radius, mBorderPaint); in drawBitmap()
DFlipDrawable.java120 protected void onBoundsChange(final Rect bounds) { in onBoundsChange() argument
121 super.onBoundsChange(bounds); in onBoundsChange()
122 if (bounds.isEmpty()) { in onBoundsChange()
126 mFront.setBounds(bounds); in onBoundsChange()
127 mBack.setBounds(bounds); in onBoundsChange()
133 final Rect bounds = getBounds(); in draw() local
134 if (!isVisible() || bounds.isEmpty()) { in draw()
161 canvas.scale(scaleX, 1, bounds.exactCenterX(), bounds.exactCenterY()); in draw()
DCheckableContactFlipDrawable.java160 final Rect bounds = getBounds(); in draw() local
161 if (!isVisible() || bounds.isEmpty()) { in draw()
165 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, mPaint); in draw()
171 sMatrix.postTranslate(bounds.centerX() - CHECKMARK.getWidth() / 2, in draw()
172 bounds.centerY() - CHECKMARK.getHeight() / 2); in draw()
/packages/apps/Gallery2/src/com/android/photos/shims/
DBitmapJobDrawable.java78 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
79 super.onBoundsChange(bounds); in onBoundsChange()
85 Rect bounds = getBounds(); in draw() local
88 canvas.clipRect(bounds); in draw()
90 canvas.rotate(mRotation, bounds.centerX(), bounds.centerY()); in draw()
95 canvas.drawRect(bounds, mPaint); in draw()
100 Rect bounds = getBounds(); in updateDrawMatrix() local
101 if (mBitmap == null || bounds.isEmpty()) { in updateDrawMatrix()
111 int vwidth = bounds.width(); in updateDrawMatrix()
112 int vheight = bounds.height(); in updateDrawMatrix()
/packages/apps/Gallery2/jni/filters/
Dwbalance.c107 int bounds = 5; in estmateWhiteBox() local
108 if (x<0) x = bounds; in estmateWhiteBox()
109 if (y<0) y = bounds; in estmateWhiteBox()
110 if (x>=(iw-bounds)) x = (iw-bounds-1); in estmateWhiteBox()
111 if (y>=(ih-bounds)) y = (ih-bounds-1); in estmateWhiteBox()
112 int startx = x - bounds; in estmateWhiteBox()
113 int starty = y - bounds; in estmateWhiteBox()
114 int endx = x + bounds; in estmateWhiteBox()
115 int endy = y + bounds; in estmateWhiteBox()
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
DLetterTileDrawable.java100 final Rect bounds = getBounds(); in draw() local
101 if (!isVisible() || bounds.isEmpty()) { in draw()
136 final Rect bounds = getBounds(); in drawLetterTile() local
137 final int minDimension = Math.min(bounds.width(), bounds.height()); in drawLetterTile()
140 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile()
142 canvas.drawRect(bounds, sPaint); in drawLetterTile()
158 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(), in drawLetterTile()
159 bounds.centerY() + mOffset * bounds.height() + sRect.height() / 2, in drawLetterTile()
/packages/apps/Launcher3/src/com/android/launcher3/
DPreloadIconDrawable.java74 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
75 mIcon.setBounds(bounds); in onBoundsChange()
77 sTempRect.set(bounds); in onBoundsChange()
94 Rect bounds = d.getBounds(); in initIndicatorRect() local
98 float paddingScaleX = ((float) bounds.width()) / d.getIntrinsicWidth(); in initIndicatorRect()
99 float paddingScaleY = ((float) bounds.height()) / d.getIntrinsicHeight(); in initIndicatorRect()
101 bounds.left + sTempRect.left * paddingScaleX, in initIndicatorRect()
102 bounds.top + sTempRect.top * paddingScaleY, in initIndicatorRect()
103 bounds.right - sTempRect.right * paddingScaleX, in initIndicatorRect()
104 bounds.bottom - sTempRect.bottom * paddingScaleY); in initIndicatorRect()
DFolder.java1015 Rect bounds = new Rect(); in centerAboutIcon() local
1016 parent.getDescendantRectRelativeToSelf(boundingLayout, bounds); in centerAboutIcon()
1021 int left = Math.min(Math.max(bounds.left, centeredLeft), in centerAboutIcon()
1022 bounds.left + bounds.width() - width); in centerAboutIcon()
1023 int top = Math.min(Math.max(bounds.top, centeredTop), in centerAboutIcon()
1024 bounds.top + bounds.height() - height); in centerAboutIcon()
1028 } else if (width >= bounds.width()) { in centerAboutIcon()
1030 left = bounds.left + (bounds.width() - width) / 2; in centerAboutIcon()
1032 if (height >= bounds.height()) { in centerAboutIcon()
1033 top = bounds.top + (bounds.height() - height) / 2; in centerAboutIcon()
DBorderCropDrawable.java57 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
59 bounds.left + mBoundsShift.left, in onBoundsChange()
60 bounds.top + mBoundsShift.top, in onBoundsChange()
61 bounds.right + mBoundsShift.right, in onBoundsChange()
62 bounds.bottom + mBoundsShift.bottom); in onBoundsChange()
DWorkspace.java1987 Rect bounds = new Rect(); in getDrawableBounds() local
1988 d.copyBounds(bounds); in getDrawableBounds()
1989 if (bounds.width() == 0 || bounds.height() == 0) { in getDrawableBounds()
1990 bounds.set(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight()); in getDrawableBounds()
1992 bounds.offsetTo(0, 0); in getDrawableBounds()
1996 bounds.inset(inset, inset); in getDrawableBounds()
1998 return bounds; in getDrawableBounds()
2013 Rect bounds = getDrawableBounds(d); in onExternalDragStartedWithItem() local
2014 bmpWidth = bounds.width(); in onExternalDragStartedWithItem()
2015 bmpHeight = bounds.height(); in onExternalDragStartedWithItem()
[all …]
DDeviceProfile.java536 Rect bounds = new Rect(); in getSearchBarBounds() local
540 bounds.set(availableWidthPx - searchBarSpaceHeightPx, edgeMarginPx, in getSearchBarBounds()
543 bounds.set(0, edgeMarginPx, searchBarSpaceHeightPx, in getSearchBarBounds()
557 bounds.set(edgeMarginPx + gap, getSearchBarTopOffset(), in getSearchBarBounds()
561 bounds.set(desiredWorkspaceLeftRightMarginPx - defaultWidgetPadding.left, in getSearchBarBounds()
567 return bounds; in getSearchBarBounds()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java256 Rect bounds) { in loadRegionBitmap() argument
269 Rect imageBounds = new Rect(bounds); in loadRegionBitmap()
273 bounds.left = imageBounds.left; in loadRegionBitmap()
274 bounds.top = imageBounds.top; in loadRegionBitmap()
290 + bounds.left + "," + bounds.top + " - " in loadRegionBitmap()
291 + bounds.width() + "x" + bounds.height() + " exc: " + e); in loadRegionBitmap()
417 Uri uri, Rect bounds, in getScaleOneImageForPreset() argument
423 if (bounds.width() > thresholdWidth) { in getScaleOneImageForPreset()
425 int w = bounds.width(); in getScaleOneImageForPreset()
433 return loadRegionBitmap(context, cache, uri, options, bounds); in getScaleOneImageForPreset()
/packages/apps/Launcher2/src/com/android/launcher2/
DFolder.java816 Rect bounds = new Rect(); in centerAboutIcon() local
817 parent.getDescendantRectRelativeToSelf(boundingLayout, bounds); in centerAboutIcon()
822 int left = Math.min(Math.max(bounds.left, centeredLeft), in centerAboutIcon()
823 bounds.left + bounds.width() - width); in centerAboutIcon()
824 int top = Math.min(Math.max(bounds.top, centeredTop), in centerAboutIcon()
825 bounds.top + bounds.height() - height); in centerAboutIcon()
827 if (width >= bounds.width()) { in centerAboutIcon()
828 left = bounds.left + (bounds.width() - width) / 2; in centerAboutIcon()
830 if (height >= bounds.height()) { in centerAboutIcon()
831 top = bounds.top + (bounds.height() - height) / 2; in centerAboutIcon()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DRenderingRequest.java56 RenderingRequestCaller caller, Rect bounds, Rect destination) { in post() argument
84 request.setBounds(bounds); in post()
86 passedPreset.setPartialRendering(true, bounds); in post()
170 public void setBounds(Rect bounds) { in setBounds() argument
171 mBounds = bounds; in setBounds()
190 public void setIconBounds(Rect bounds) { in setIconBounds() argument
191 mIconBounds = bounds; in setIconBounds()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DWallpaperCropActivity.java315 final Point bounds = cropTask.getImageBounds(); in setWallpaper() local
318 updateWallpaperDimensions(bounds.x, bounds.y); in setWallpaper()
609 Point bounds = getImageBounds();
617 if (bounds == null) {
623 float[] rotatedBounds = new float[] { bounds.x, bounds.y };
630 mCropBounds.offset(bounds.x/2, bounds.y/2);
689 scaleDownSampleSize = bounds.x / fullSize.getWidth();
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DRotateImageView.java96 Rect bounds = drawable.getBounds(); in onDraw()
97 int w = bounds.right - bounds.left; in onDraw()
98 int h = bounds.bottom - bounds.top; in onDraw()
/packages/apps/Camera/src/com/android/camera/ui/
DRotateImageView.java98 Rect bounds = drawable.getBounds(); in onDraw()
99 int w = bounds.right - bounds.left; in onDraw()
100 int h = bounds.bottom - bounds.top; in onDraw()
/packages/apps/Camera2/src/com/android/camera/ui/
DRotateImageView.java100 Rect bounds = drawable.getBounds(); in onDraw()
101 int w = bounds.right - bounds.left; in onDraw()
102 int h = bounds.bottom - bounds.top; in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterVignette.java100 Rect bounds = MasterImage.getImage().getOriginalBounds(); in runFilter() local
101 c[0] = bounds.right * mParameters.getCenterX(); in runFilter()
102 c[1] = bounds.bottom * mParameters.getCenterY(); in runFilter()
106 c[0] = bounds.right * mParameters.getRadiusX(); in runFilter()
107 c[1] = bounds.bottom * mParameters.getRadiusY(); in runFilter()
DFilterRedEyeRepresentation.java50 public void addRect(RectF rect, RectF bounds) { in addRect() argument
61 bounds.union(r.mBounds); in addRect()
64 addCandidate(new RedEyeCandidate(rect, bounds)); in addRect()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java187 public Rect bounds() { in bounds() method in GLView
412 Rect bounds = view.mBounds; in getBoundsOf()
413 xoffset += bounds.left; in getBoundsOf()
414 yoffset += bounds.top; in getBoundsOf()
/packages/apps/Calendar/src/com/android/calendar/
DDayOfMonthDrawable.java53 Rect bounds = getBounds(); in draw() local
54 canvas.drawText(mDayOfMonth, bounds.right / 2, ((float) bounds.bottom + textHeight + 1) / 2, in draw()
/packages/apps/Camera/src/com/android/camera/drawable/
DTextDrawable.java54 Rect bounds = getBounds(); in draw() local
56 bounds.centerX(), bounds.centerY(), mPaint); in draw()

123