Searched defs:bounds (Results 1 - 24 of 24) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
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 DRedEyeCandidate.java30 public RedEyeCandidate(RectF rect, RectF bounds) { argument
32 mBounds.set(bounds);
/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...]
H A DCropActivity.java197 private void doneLoadBitmap(Bitmap bitmap, RectF bounds, int orientation) { argument
201 mOriginalBounds = bounds;
422 // Set extra for crop bounds
461 // Find crop bounds (scaled to original image size)
/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...]
H A DCropActivity.java200 private void doneLoadBitmap(Bitmap bitmap, RectF bounds, int orientation) { argument
204 mOriginalBounds = bounds;
425 // Set extra for crop bounds
464 // Find crop bounds (scaled to original image size)
/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 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();
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...]
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DTextFieldsEditorView.java300 * Populates the bound rectangle with the bounds of the last editor field inside this view.
302 public void acquireEditorBounds(Rect bounds) { argument
307 bounds.set(editText.getLeft(), editText.getTop(), editText.getRight(),
/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/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/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 DImagePreset.java603 public void setPartialRendering(boolean partialRendering, Rect bounds) { argument
605 mPartialRenderingBounds = bounds;
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/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/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java206 * Gets the bounds given by x, y, width, and height as well as the internal
208 * It only considers the lower-left and upper-right corners as the bounds.
210 * @param bounds The output bounds to write to.
216 public abstract void getBounds(Rect bounds, int x, int y, int width, int height); argument
H A DGLES11Canvas.java989 public void getBounds(Rect bounds, int x, int y, int width, int height) { argument
H A DGLES20Canvas.java993 public void getBounds(Rect bounds, int x, int y, int width, int height) { argument
998 bounds.left = Math.round(mTempMatrix[MATRIX_SIZE]);
999 bounds.right = Math.round(mTempMatrix[MATRIX_SIZE + 4]);
1000 bounds.top = Math.round(mTempMatrix[MATRIX_SIZE + 1]);
1001 bounds.bottom = Math.round(mTempMatrix[MATRIX_SIZE + 5]);
1002 bounds.sort();
/packages/apps/Launcher3/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java206 * Gets the bounds given by x, y, width, and height as well as the internal
208 * It only considers the lower-left and upper-right corners as the bounds.
210 * @param bounds The output bounds to write to.
216 public abstract void getBounds(Rect bounds, int x, int y, int width, int height); argument
H A DGLES20Canvas.java993 public void getBounds(Rect bounds, int x, int y, int width, int height) { argument
998 bounds.left = Math.round(mTempMatrix[MATRIX_SIZE]);
999 bounds.right = Math.round(mTempMatrix[MATRIX_SIZE + 4]);
1000 bounds.top = Math.round(mTempMatrix[MATRIX_SIZE + 1]);
1001 bounds.bottom = Math.round(mTempMatrix[MATRIX_SIZE + 5]);
1002 bounds.sort();
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLView.java187 public Rect bounds() { method in class:GLView
404 * Gets the bounds of the given descendant that relative to this view.
412 Rect bounds = view.mBounds;
413 xoffset += bounds.left;
414 yoffset += bounds.top;
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactListItemView.java497 // Determine the vertical bounds by laying out the header first.
683 public void adjustListItemSelectionBounds(Rect bounds) { argument
684 bounds.top += mBoundsWithoutHeader.top;
685 bounds.bottom = bounds.top + mBoundsWithoutHeader.height();
686 bounds.left += mSelectionBoundsMarginLeft;
687 bounds.right -= mSelectionBoundsMarginRight;
1512 * Specifies left and right margin for selection bounds. See also

Completed in 311 milliseconds