Searched refs:rect (Results 1 - 25 of 30) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/widget/
H A DPieChartView.java161 final RectF rect = new RectF(0, 0, width, height);
163 rectSide.set(rect);
168 mPathOutline.addOval(rect, Direction.CW);
181 slice.path.moveTo(rect.centerX(), rect.centerY());
182 slice.path.arcTo(rect, startAngle, sweepAngle);
183 slice.path.lineTo(rect.centerX(), rect.centerY());
193 slice.pathSide.moveTo(rect.centerX(), rect
[all...]
H A DChartSweepView.java584 final Rect rect = buildClampRect(parentContent, mValidAfter, mValidBefore, 0f);
588 if (!rect.intersect(dynamicRect)) {
589 rect.setEmpty();
591 return rect;
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DImageViewTouchBase.java251 * @param rect The input/output rectangle
253 public void mapRect(RectF rect) { argument
254 mSuppMatrix.mapRect(rect);
483 final RectF rect = new RectF(0, 0, mBitmapDisplayed.getWidth(),
486 m.mapRect(rect);
488 final float height = rect.height();
489 final float width = rect.width();
495 deltaY = (viewHeight - height) / 2 - rect.top;
496 } else if (rect.top > 0) {
497 deltaY = -rect
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DInputView.java62 final Rect rect = mInputViewRect;
63 this.getGlobalVisibleRect(rect);
64 final int x = (int)me.getX() + rect.left;
65 final int y = (int)me.getY() + rect.top;
/packages/apps/Gallery/src/com/android/camera/
H A DActionMenuButton.java76 final RectF rect = mRect;
80 rect.set(left + layout.getLineLeft(0) - PADDING_H,
85 canvas.drawRoundRect(rect, CORNER_RADIUS, CORNER_RADIUS, mPaint);
H A DImageViewTouchBase.java193 RectF rect = new RectF(0, 0,
197 m.mapRect(rect);
199 float height = rect.height();
200 float width = rect.width();
207 deltaY = (viewHeight - height) / 2 - rect.top;
208 } else if (rect.top > 0) {
209 deltaY = -rect.top;
210 } else if (rect.bottom < viewHeight) {
211 deltaY = getHeight() - rect.bottom;
218 deltaX = (viewWidth - width) / 2 - rect
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DFace.java30 public Face(String name, String personId, String rect) { argument
33 Utils.assertTrue(mName != null && mPersonId != null && rect != null);
34 StringTokenizer tokenizer = new StringTokenizer(rect);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DCropImage.java102 public static final String KEY_CROPPED_RECT = "cropped-rect";
246 Rect rect = new Rect(
251 result.putExtra(KEY_CROPPED_RECT, rect);
259 cropped = getCroppedImage(rect);
265 if (cropped == null) cropped = getCroppedImage(rect);
271 if (cropped == null) cropped = getCroppedImage(rect);
277 if (cropped == null) cropped = getCroppedImage(rect);
544 private Bitmap getCroppedImage(Rect rect) { argument
545 Utils.assertTrue(rect.width() > 0 && rect
645 rotateRectangle( Rect rect, int width, int height, int rotation) argument
677 drawInTiles(Canvas canvas, BitmapRegionDecoder decoder, Rect rect, Rect dest, int sample) argument
[all...]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DBlend.h107 int DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation);
108 void ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, int site_idx);
109 void ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx);
H A DBlend.cpp163 // Compute clipping for this frame's rect
165 // Clip global rect using this frame's rect
375 int width, int height, YUVinfo &imgMos, MosaicRect &rect,
382 m_pMosaicYPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevs,(unsigned short)rect.Width(),(unsigned short)rect.Height(),BORDER);
383 m_pMosaicUPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect.Height(),BORDER);
384 m_pMosaicVPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect
374 DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation) argument
800 ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, int site_idx) argument
870 ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DContactsUtils.java236 final Rect rect = new Rect();
237 rect.left = (int) (pos[0] * appScale + 0.5f);
238 rect.top = (int) (pos[1] * appScale + 0.5f);
239 rect.right = (int) ((pos[0] + view.getWidth()) * appScale + 0.5f);
240 rect.bottom = (int) ((pos[1] + view.getHeight()) * appScale + 0.5f);
241 return rect;
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
H A DBitmapUtils.java74 RectF rect = new RectF(0, 0, width, height);
75 m.mapRect(rect);
77 Math.round(rect.width()), Math.round(rect.height()), source.getConfig());
79 canvas.translate(-rect.left, -rect.top);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DSearchDropTargetBar.java241 final Rect rect = new Rect();
242 rect.left = (int) (pos[0] * appScale + 0.5f);
243 rect.top = (int) (pos[1] * appScale + 0.5f);
244 rect.right = (int) ((pos[0] + mQSBSearchBar.getWidth()) * appScale + 0.5f);
245 rect.bottom = (int) ((pos[1] + mQSBSearchBar.getHeight()) * appScale + 0.5f);
246 return rect;
/packages/apps/Browser/src/com/android/browser/view/
H A DScrollerView.java1489 * If rect is off screen, scroll just enough to get it (or at least the
1492 * @param rect The rectangle.
1496 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument
1497 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1522 * @param rect The rect.
1525 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument
1527 return computeScrollDeltaToGetChildRectOnScreenHorizontal(rect);
1529 return computeScrollDeltaToGetChildRectOnScreenVertical(rect);
1533 private int computeScrollDeltaToGetChildRectOnScreenVertical(Rect rect) { argument
1591 computeScrollDeltaToGetChildRectOnScreenHorizontal(Rect rect) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAlbumSetView.java110 Rect rect = getSlotRect(slotIndex);
115 int x = (rect.left + rect.right) / 2;
116 int y = (rect.top + rect.bottom) / 2;
H A DAlbumView.java89 Rect rect = getSlotRect(slotIndex);
91 (rect.left + rect.right) / 2, (rect.top + rect.bottom) / 2, 0);
H A DPositionController.java625 RectF rect = mTempRect;
626 rect.set(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY,
635 if (x < rect.left) rect.left = x;
636 if (x > rect.right) rect.right = x;
637 if (y < rect.top) rect.top = y;
638 if (y > rect.bottom) rect
[all...]
H A DSlotView.java103 Rect rect = mLayout.getSlotRect(index);
105 ? (rect.left + rect.right - getWidth()) / 2
106 : (rect.top + rect.bottom - getHeight()) / 2;
111 Rect rect = mLayout.getSlotRect(index);
115 int slotBegin = WIDE ? rect.left : rect.top;
116 int slotEnd = WIDE ? rect.right : rect
[all...]
H A DGLView.java255 Rect rect = component.mBounds;
256 int left = rect.left;
257 int top = rect.top;
258 if (!checkBounds || rect.contains(x, y)) {
H A DGLCanvasImpl.java357 // draw the rect from bottom-left to top-right
890 Rect rect = mRect;
891 canvas.mClipRect.set(rect);
893 rect.left, rect.top, rect.width(), rect.height());
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
H A DPolarClockWallpaper.java493 final RectF rect = mRect;
494 rect.set(-size, -size, size, size);
509 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint);
514 rect.set(-size, -size, size, size);
523 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint);
527 rect.set(-size, -size, size, size);
536 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint);
540 rect.set(-size, -size, size, size);
550 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint);
554 rect
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DUtil.java564 public static void dumpRect(RectF rect, String msg) { argument
565 Log.v(TAG, msg + "=(" + rect.left + "," + rect.top
566 + "," + rect.right + "," + rect.bottom + ")");
569 public static void rectFToRect(RectF rectF, Rect rect) { argument
570 rect.left = Math.round(rectF.left);
571 rect.top = Math.round(rectF.top);
572 rect.right = Math.round(rectF.right);
573 rect
[all...]
H A DFocusManager.java271 mFocusArea.get(0).rect);
273 mMeteringArea.get(0).rect);
448 int x, int y, int previewWidth, int previewHeight, Rect rect) {
456 Util.rectFToRect(rectF, rect);
447 calculateTapArea(int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
/packages/apps/Browser/src/com/android/browser/
H A DBookmarkUtils.java162 // Paint used for scaling the bitmap and drawing the rounded rect.
167 // Construct a path from a round rect. This will allow drawing with
168 // an inverse fill so we can punch a hole using the round rect.
171 RectF rect = new RectF(iconBounds);
172 rect.inset(1, 1);
173 path.addRoundRect(rect, 8f, 8f, Path.Direction.CW);
/packages/apps/Camera/src/com/android/camera/ui/
H A DFaceView.java133 mRect.set(mFaces[i].rect);
134 if (LOGV) Util.dumpRect(mRect, "Original rect");
136 if (LOGV) Util.dumpRect(mRect, "Transformed rect");

Completed in 1214 milliseconds

12