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

123

/packages/apps/Camera2/src/com/android/camera/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/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/UnifiedEmail/src/com/android/mail/bitmap/
H A DTileDrawable.java51 protected void onBoundsChange(Rect bounds) { argument
52 super.onBoundsChange(bounds);
54 if (bounds.isEmpty()) {
57 final int l = bounds.left + (bounds.width() / 2) - (mInnerWidth / 2);
58 final int t = bounds.top + (bounds.height() / 2) - (mInnerHeight / 2);
H A DAttachmentDrawable.java133 final Rect bounds = getBounds();
134 if (bounds.isEmpty()) {
135 throw new IllegalStateException("AttachmentDrawable must have bounds set before bind");
137 setImage(new ImageAttachmentRequest(context, lookupUri, rendition, bounds.width()));
198 final Rect bounds = getBounds();
199 if (bounds.isEmpty()) {
206 bounds.width(), bounds.height(),
219 // We may need to rotate the canvas, so we also have to rotate the bounds.
220 final Rect rotatedBounds = new Rect(bounds);
263 onBoundsChange(Rect bounds) argument
[all...]
H A DCompositeDrawable.java41 // zero out the composite bounds, which will propagate to the division drawables
42 // this invalidates any old division bounds, which may change with the count
62 // Make sure drawables created after the bounds were already set have their bounds
71 protected void onBoundsChange(Rect bounds) { argument
72 final int w = bounds.width();
73 final int h = bounds.height();
/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/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/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.java98 Rect bounds = drawable.getBounds();
99 int w = bounds.right - bounds.left;
100 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
H A DProcessingService.java108 Rect bounds, Rect destination,
117 request.setBounds(bounds);
119 passedPreset.setPartialRendering(true, bounds);
107 postFullresRenderingRequest(ImagePreset preset, float scaleFactor, Rect bounds, Rect destination, RenderingRequestCaller caller) 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.java234 * Returns the bitmap for the rectangular region given by "bounds"
240 Rect bounds) {
253 Rect imageBounds = new Rect(bounds);
254 // return null if bounds are not entirely within the bitmap
257 bounds.left = imageBounds.left;
258 bounds.top = imageBounds.top;
273 Log.e(LOGTAG, "exc, image decoded " + w + " x " + h + " bounds: "
274 + bounds.left + "," + bounds.top + " - "
275 + bounds
238 loadRegionBitmap(Context context, BitmapCache cache, Uri uri, BitmapFactory.Options options, Rect bounds) argument
399 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();
/packages/apps/Launcher2/src/com/android/launcher2/
H A DFolder.java808 // the folders bounds.
813 Rect bounds = new Rect();
814 parent.getDescendantRectRelativeToSelf(boundingLayout, bounds);
819 int left = Math.min(Math.max(bounds.left, centeredLeft),
820 bounds.left + bounds.width() - width);
821 int top = Math.min(Math.max(bounds.top, centeredTop),
822 bounds.top + bounds.height() - height);
823 // If the folder doesn't fit within the bounds, cente
[all...]
/packages/apps/Gallery2/src/com/android/photos/drawables/
H A DAutoThumbnailDrawable.java94 protected void onBoundsChange(Rect bounds) { argument
95 super.onBoundsChange(bounds);
97 mBounds.set(bounds);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DFolder.java893 // the folders bounds.
898 Rect bounds = new Rect();
899 parent.getDescendantRectRelativeToSelf(boundingLayout, bounds);
904 int left = Math.min(Math.max(bounds.left, centeredLeft),
905 bounds.left + bounds.width() - width);
906 int top = Math.min(Math.max(bounds.top, centeredTop),
907 bounds.top + bounds.height() - height);
911 } else if (width >= bounds
[all...]

Completed in 957 milliseconds

123