/packages/apps/Camera2/src/com/android/camera/crop/ |
H A D | CropDrawingUtils.java | 30 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 D | CropDrawingUtils.java | 30 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 D | BitmapJobDrawable.java | 78 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 D | TileDrawable.java | 51 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 D | AttachmentDrawable.java | 133 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 D | CompositeDrawable.java | 41 // 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 D | RedEyeCandidate.java | 30 public RedEyeCandidate(RectF rect, RectF bounds) { argument 32 mBounds.set(bounds);
|
H A D | FilterRedEyeRepresentation.java | 50 public void addRect(RectF rect, RectF bounds) { argument 61 bounds.union(r.mBounds); 64 addCandidate(new RedEyeCandidate(rect, bounds));
|
H A D | ImageFilterBorder.java | 57 Rect bounds = new Rect(0, 0, (int) (w * scale1), (int) (h * scale1)); 61 drawable.setBounds(bounds);
|
H A D | ImageFilterVignette.java | 100 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 D | DayOfMonthDrawable.java | 53 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 D | TextDrawable.java | 54 Rect bounds = getBounds(); 56 bounds.centerX(), bounds.centerY(), mPaint);
|
/packages/apps/Gallery2/jni/filters/ |
H A D | wbalance.c | 107 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 D | RotateImageView.java | 98 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 D | RotateImageView.java | 98 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 D | RotateImageView.java | 96 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 D | RenderingRequest.java | 56 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 D | ProcessingService.java | 108 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 D | TextDrawable.java | 85 Rect bounds = getBounds(); 87 bounds.centerX(), bounds.centerY(), mPaint);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
H A D | ImageLoader.java | 250 * 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 D | FramedTextButton.java | 128 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 D | ScrollBarView.java | 93 Rect b = bounds();
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Folder.java | 808 // 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 D | AutoThumbnailDrawable.java | 94 protected void onBoundsChange(Rect bounds) { argument 95 super.onBoundsChange(bounds); 97 mBounds.set(bounds);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | Folder.java | 893 // 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...] |