Searched refs:bounds (Results 1 - 25 of 55) sorted by relevance

123

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
H A DCropDrawingUtils.java30 public static void drawRuleOfThird(Canvas canvas, RectF bounds) { argument
35 float stepX = bounds.width() / 3.0f;
36 float stepY = bounds.height() / 3.0f;
37 float x = bounds.left + stepX;
38 float y = bounds.top + stepY;
40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p);
44 canvas.drawLine(bounds.left, y, bounds.right, y, p);
49 public static void drawCropRect(Canvas canvas, RectF bounds) { argument
57 drawShade(Canvas canvas, RectF bounds) argument
83 drawIndicators(Canvas canvas, Drawable cropIndicator, int indicatorSize, RectF bounds, boolean fixedAspect, int selection) argument
[all...]
/packages/apps/Gallery2/src/com/android/photos/shims/
H A DBitmapJobDrawable.java78 protected void onBoundsChange(Rect bounds) { argument
79 super.onBoundsChange(bounds);
85 Rect bounds = getBounds();
88 canvas.clipRect(bounds);
90 canvas.rotate(mRotation, bounds.centerX(), bounds.centerY());
95 canvas.drawRect(bounds, mPaint);
100 Rect bounds = getBounds();
101 if (mBitmap == null || bounds.isEmpty()) {
111 int vwidth = bounds
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DBorderCropDrawable.java57 protected void onBoundsChange(Rect bounds) { argument
59 bounds.left + mBoundsShift.left,
60 bounds.top + mBoundsShift.top,
61 bounds.right + mBoundsShift.right,
62 bounds.bottom + mBoundsShift.bottom);
H A DPreloadIconDrawable.java74 protected void onBoundsChange(Rect bounds) { argument
75 mIcon.setBounds(bounds);
77 sTempRect.set(bounds);
94 Rect bounds = d.getBounds();
98 float paddingScaleX = ((float) bounds.width()) / d.getIntrinsicWidth();
99 float paddingScaleY = ((float) bounds.height()) / d.getIntrinsicHeight();
101 bounds.left + sTempRect.left * paddingScaleX,
102 bounds.top + sTempRect.top * paddingScaleY,
103 bounds.right - sTempRect.right * paddingScaleX,
104 bounds
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
H A DContactDrawable.java121 final Rect bounds = getBounds();
122 if (!isVisible() || bounds.isEmpty()) {
136 * Draw the bitmap onto the canvas at the current bounds taking into account the current scale.
140 final Rect bounds = getBounds();
146 // Fit bitmap to bounds.
147 final float boundsWidth = (float) bounds.width();
148 final float boundsHeight = (float) bounds.height();
152 // Translate bitmap to dst bounds.
153 mMatrix.postTranslate(bounds.left, bounds
201 drawCircle(Canvas canvas, Rect bounds, Paint paint) argument
[all...]
H A DFlipDrawable.java120 protected void onBoundsChange(final Rect bounds) { argument
121 super.onBoundsChange(bounds);
122 if (bounds.isEmpty()) {
126 mFront.setBounds(bounds);
127 mBack.setBounds(bounds);
133 final Rect bounds = getBounds();
134 if (!isVisible() || bounds.isEmpty()) {
161 canvas.scale(scaleX, 1, bounds.exactCenterX(), bounds.exactCenterY());
H A DAccountAvatarDrawable.java81 final Rect bounds = getBounds();
82 if (!isVisible() || bounds.isEmpty()) {
97 * Draw the bitmap onto the canvas at the current bounds taking into account the current scale.
101 final Rect bounds = getBounds();
106 // Fit bitmap to bounds.
107 final float boundsWidth = (float) bounds.width();
108 final float boundsHeight = (float) bounds.height();
112 // Translate bitmap to dst bounds.
113 mMatrix.postTranslate(bounds.left, bounds
[all...]
H A DCheckableContactFlipDrawable.java160 final Rect bounds = getBounds();
161 if (!isVisible() || bounds.isEmpty()) {
165 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, mPaint);
171 sMatrix.postTranslate(bounds.centerX() - CHECKMARK.getWidth() / 2,
172 bounds.centerY() - CHECKMARK.getHeight() / 2);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DRedEyeCandidate.java30 public RedEyeCandidate(RectF rect, RectF bounds) { argument
32 mBounds.set(bounds);
H A DFilterRedEyeRepresentation.java50 public void addRect(RectF rect, RectF bounds) { argument
61 bounds.union(r.mBounds);
64 addCandidate(new RedEyeCandidate(rect, bounds));
H A DImageFilterBorder.java57 Rect bounds = new Rect(0, 0, (int) (w * scale1), (int) (h * scale1));
61 drawable.setBounds(bounds);
H A DImageFilterVignette.java100 Rect bounds = MasterImage.getImage().getOriginalBounds();
101 c[0] = bounds.right * mParameters.getCenterX();
102 c[1] = bounds.bottom * mParameters.getCenterY();
106 c[0] = bounds.right * mParameters.getRadiusX();
107 c[1] = bounds.bottom * mParameters.getRadiusY();
/packages/apps/Calendar/src/com/android/calendar/
H A DDayOfMonthDrawable.java53 Rect bounds = getBounds();
54 canvas.drawText(mDayOfMonth, bounds.right / 2, ((float) bounds.bottom + textHeight + 1) / 2,
/packages/apps/Camera/src/com/android/camera/drawable/
H A DTextDrawable.java54 Rect bounds = getBounds();
56 bounds.centerX(), bounds.centerY(), mPaint);
/packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
H A DLetterTileDrawable.java100 final Rect bounds = getBounds();
101 if (!isVisible() || bounds.isEmpty()) {
109 * Draw the bitmap onto the canvas at the current bounds taking into account the current scale.
117 // Crop the destination bounds into a square, scaled and offset as appropriate
125 // Source rectangle remains the entire bounds of the source bitmap.
136 final Rect bounds = getBounds();
137 final int minDimension = Math.min(bounds.width(), bounds.height());
140 canvas.drawCircle(bounds.centerX(), bounds
[all...]
/packages/apps/Gallery2/jni/filters/
H A Dwbalance.c107 int bounds = 5; local
108 if (x<0) x = bounds;
109 if (y<0) y = bounds;
110 if (x>=(iw-bounds)) x = (iw-bounds-1);
111 if (y>=(ih-bounds)) y = (ih-bounds-1);
112 int startx = x - bounds;
113 int starty = y - bounds;
114 int endx = x + bounds;
[all...]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
H A DDrawableTileSource.java95 Rect bounds = new Rect(0, 0, getImageWidth(), getImageHeight());
96 bounds.offset(-x, -y);
97 mDrawable.setBounds(bounds);
/packages/apps/Camera/src/com/android/camera/ui/
H A DRotateImageView.java98 Rect bounds = drawable.getBounds();
99 int w = bounds.right - bounds.left;
100 int h = bounds.bottom - bounds.top;
/packages/apps/Camera2/src/com/android/camera/ui/
H A DRotateImageView.java100 Rect bounds = drawable.getBounds();
101 int w = bounds.right - bounds.left;
102 int h = bounds.bottom - bounds.top;
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DRotateImageView.java96 Rect bounds = drawable.getBounds();
97 int w = bounds.right - bounds.left;
98 int h = bounds.bottom - bounds.top;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
H A DRenderingRequest.java56 RenderingRequestCaller caller, Rect bounds, Rect destination) {
84 request.setBounds(bounds);
86 passedPreset.setPartialRendering(true, bounds);
170 public void setBounds(Rect bounds) { argument
171 mBounds = bounds;
190 public void setIconBounds(Rect bounds) { argument
191 mIconBounds = bounds;
55 post(Context context, Bitmap source, ImagePreset preset, int type, RenderingRequestCaller caller, Rect bounds, Rect destination) argument
/packages/apps/Camera2/src/com/android/camera/drawable/
H A DTextDrawable.java85 Rect bounds = getBounds();
87 bounds.centerX(), bounds.centerY(), mPaint);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
H A DImageLoader.java250 * Returns the bitmap for the rectangular region given by "bounds"
256 Rect bounds) {
269 Rect imageBounds = new Rect(bounds);
270 // return null if bounds are not entirely within the bitmap
273 bounds.left = imageBounds.left;
274 bounds.top = imageBounds.top;
289 Log.e(LOGTAG, "exc, image decoded " + w + " x " + h + " bounds: "
290 + bounds.left + "," + bounds.top + " - "
291 + bounds
254 loadRegionBitmap(Context context, BitmapCache cache, Uri uri, BitmapFactory.Options options, Rect bounds) argument
415 getScaleOneImageForPreset(Context context, BitmapCache cache, Uri uri, Rect bounds, Rect destination) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
H A DFramedTextButton.java128 Rect bounds = new Rect();
129 gPaint.getTextBounds(mText, 0, mText.length(), bounds);
131 int y = (h + bounds.height()) / 2;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DScrollBarView.java93 Rect b = bounds();

Completed in 579 milliseconds

123