Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 69) 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/DevCamera/src/com/android/devcamera/
DNormalizedFace.java29 public RectF bounds; field in NormalizedFace
51 bounds = new RectF(); in NormalizedFace()
52 bounds.left = (float) (face.getBounds().left - offX) / dX; in NormalizedFace()
53 bounds.top = (float) (face.getBounds().top - offY) / dY; in NormalizedFace()
54 bounds.right = (float) (face.getBounds().right - offX) / dX; in NormalizedFace()
55 bounds.bottom = (float) (face.getBounds().bottom - offY) / dY; in NormalizedFace()
69 float oldLeft = bounds.left; in mirrorInX()
70 bounds.left = 1f - bounds.right; in mirrorInX()
71 bounds.right = 1f - oldLeft; in mirrorInX()
87 float oldTop = bounds.top; in mirrorInY()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DAbstractAvatarDrawable.java91 final Rect bounds = getBounds(); in draw() local
92 if (!isVisible() || bounds.isEmpty()) { in draw()
112 final Rect bounds = getBounds(); in drawBitmap() local
119 final float boundsWidth = (float) bounds.width(); in drawBitmap()
120 final float boundsHeight = (float) bounds.height(); in drawBitmap()
125 mMatrix.postTranslate(bounds.left, bounds.top); in drawBitmap()
129 drawCircle(canvas, bounds, mBitmapPaint); in drawBitmap()
132 final float radius = bounds.width() / 2f - mBorderWidth / 2; in drawBitmap()
133 canvas.drawCircle(bounds.centerX(), bounds.centerY(), radius, mBorderPaint); in drawBitmap()
143 protected static void drawCircle(Canvas canvas, Rect bounds, Paint paint) { in drawCircle() argument
[all …]
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()
DContactDrawable.java89 final Rect bounds = getBounds(); in drawLetterTile() local
96 drawCircle(canvas, bounds, sPaint); in drawLetterTile()
107 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(), in drawLetterTile()
108 bounds.centerY() + sRect.height() / 2, sPaint); in drawLetterTile()
/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/services/Car/car-support-lib/src/android/support/car/ui/
DCircleBitmapDrawable.java51 public void onBoundsChange(Rect bounds) { in onBoundsChange() argument
52 super.onBoundsChange(bounds); in onBoundsChange()
53 int width = bounds.right - bounds.left; in onBoundsChange()
54 int height = bounds.bottom - bounds.top; in onBoundsChange()
71 mDrawable.setBounds(bounds); in onBoundsChange()
121 Rect bounds = getBounds(); in toBitmap() local
124 setBounds(bounds); in toBitmap()
/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.java99 final Rect bounds = getBounds(); in draw() local
100 if (!isVisible() || bounds.isEmpty()) { in draw()
135 final Rect bounds = getBounds(); in drawLetterTile() local
136 final int minDimension = Math.min(bounds.width(), bounds.height()); in drawLetterTile()
139 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile()
141 canvas.drawRect(bounds, sPaint); in drawLetterTile()
158 canvas.drawText(sFirstChar, 0, 1, bounds.centerX(), in drawLetterTile()
159 bounds.centerY() + mOffset * bounds.height() - sRect.exactCenterY(), in drawLetterTile()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsBackgroundDrawable.java61 public void updateBounds(Rect bounds) { in updateBounds() argument
64 int left = bounds.left + (int) (mXPercent * bounds.width()); in updateBounds()
65 int top = bounds.top + (int) (mYPercent * bounds.height()); in updateBounds()
156 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
157 super.onBoundsChange(bounds); in onBoundsChange()
158 mHand.updateBounds(bounds); in onBoundsChange()
160 mIcons[i].updateBounds(bounds); in onBoundsChange()
/packages/apps/Launcher3/src/com/android/launcher3/
DPreloadIconDrawable.java73 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
74 mIcon.setBounds(bounds); in onBoundsChange()
76 sTempRect.set(bounds); in onBoundsChange()
93 Rect bounds = d.getBounds(); in initIndicatorRect() local
97 float paddingScaleX = ((float) bounds.width()) / d.getIntrinsicWidth(); in initIndicatorRect()
98 float paddingScaleY = ((float) bounds.height()) / d.getIntrinsicHeight(); in initIndicatorRect()
100 bounds.left + sTempRect.left * paddingScaleX, in initIndicatorRect()
101 bounds.top + sTempRect.top * paddingScaleY, in initIndicatorRect()
102 bounds.right - sTempRect.right * paddingScaleX, in initIndicatorRect()
103 bounds.bottom - sTempRect.bottom * paddingScaleY); in initIndicatorRect()
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()
DHotseat.java122 Rect bounds = d.getBounds(); in resetLayout() local
123 d.setBounds(bounds.left, bounds.top + scaleDownPx / 2, bounds.right - scaleDownPx, in resetLayout()
124 bounds.bottom - scaleDownPx / 2); in resetLayout()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DLogoUtils.java93 BitmapFactory.Options bounds = new BitmapFactory.Options(); in getBitmapPartiallyResized() local
95 bounds.inJustDecodeBounds = true; in getBitmapPartiallyResized()
96 BitmapFactory.decodeFile(filePath, bounds); in getBitmapPartiallyResized()
97 int streamWidth = bounds.outWidth; in getBitmapPartiallyResized()
98 int streamHeight = bounds.outHeight; in getBitmapPartiallyResized()
104 bounds.inSampleSize = ratio; in getBitmapPartiallyResized()
106 bounds.inJustDecodeBounds = false; in getBitmapPartiallyResized()
108 return BitmapFactory.decodeFile(filePath, bounds); in getBitmapPartiallyResized()
/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/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/TV/usbtuner/src/com/google/android/exoplayer/text/
DSubtitleView.java261 final RectF bounds = mLineBounds; in onDraw() local
271 bounds.left = layout.getLineLeft(i) - innerPaddingX; in onDraw()
272 bounds.right = layout.getLineRight(i) + innerPaddingX; in onDraw()
273 bounds.top = previousBottom; in onDraw()
274 bounds.bottom = layout.getLineBottom(i); in onDraw()
275 previousBottom = bounds.bottom; in onDraw()
277 c.drawRoundRect(bounds, cornerRadius, cornerRadius, paint); in onDraw()
/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/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/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/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/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
DBitmapCropTask.java216 Point bounds = getImageBounds(); in cropBitmap() local
224 if (bounds == null) { in cropBitmap()
230 float[] rotatedBounds = new float[] { bounds.x, bounds.y }; in cropBitmap()
237 mCropBounds.offset(bounds.x/2, bounds.y/2); in cropBitmap()
295 scaleDownSampleSize = bounds.x / fullSize.getWidth(); in cropBitmap()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DDrawableTileSource.java95 Rect bounds = new Rect(0, 0, getImageWidth(), getImageHeight()); in getTile() local
96 bounds.offset(-x, -y); in getTile()
97 mDrawable.setBounds(bounds); in getTile()

123