/packages/apps/Settings/src/com/android/settings/widget/ |
D | PieChartView.java | 161 final RectF rect = new RectF(0, 0, width, height); in generatePath() local 163 rectSide.set(rect); in generatePath() 168 mPathOutline.addOval(rect, Direction.CW); in generatePath() 181 slice.path.moveTo(rect.centerX(), rect.centerY()); in generatePath() 182 slice.path.arcTo(rect, startAngle, sweepAngle); in generatePath() 183 slice.path.lineTo(rect.centerX(), rect.centerY()); in generatePath() 193 slice.pathSide.moveTo(rect.centerX(), rect.centerY()); in generatePath() 194 slice.pathSide.arcTo(rect, startAngleSide, 0); in generatePath() 198 slice.pathSide.arcTo(rect, endAngleSide, -sweepAngleSide); in generatePath() 202 slice.pathOutline.moveTo(rect.centerX(), rect.centerY()); in generatePath() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | CropImage.java | 256 Rect rect = new Rect( in run() local 261 result.putExtra(KEY_CROPPED_RECT, rect); in run() 269 cropped = getCroppedImage(rect); in run() 275 if (cropped == null) cropped = getCroppedImage(rect); in run() 281 if (cropped == null) cropped = getCroppedImage(rect); in run() 287 if (cropped == null) cropped = getCroppedImage(rect); in run() 554 private Bitmap getCroppedImage(Rect rect) { in getCroppedImage() argument 555 Utils.assertTrue(rect.width() > 0 && rect.height() > 0); in getCroppedImage() 559 int outputX = rect.width(); in getCroppedImage() 560 int outputY = rect.height(); in getCroppedImage() [all …]
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | ImageViewTouchBase.java | 253 public void mapRect(RectF rect) { in mapRect() argument 254 mSuppMatrix.mapRect(rect); in mapRect() 483 final RectF rect = new RectF(0, 0, mBitmapDisplayed.getWidth(), in center() local 486 m.mapRect(rect); in center() 488 final float height = rect.height(); in center() 489 final float width = rect.width(); in center() 495 deltaY = (viewHeight - height) / 2 - rect.top; in center() 496 } else if (rect.top > 0) { in center() 497 deltaY = -rect.top; in center() 498 } else if (rect.bottom < viewHeight) { in center() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 193 RectF rect = new RectF(0, 0, in center() local 197 m.mapRect(rect); in center() 199 float height = rect.height(); in center() 200 float width = rect.width(); in center() 207 deltaY = (viewHeight - height) / 2 - rect.top; in center() 208 } else if (rect.top > 0) { in center() 209 deltaY = -rect.top; in center() 210 } else if (rect.bottom < viewHeight) { in center() 211 deltaY = getHeight() - rect.bottom; in center() 218 deltaX = (viewWidth - width) / 2 - rect.left; in center() [all …]
|
D | ActionMenuButton.java | 76 final RectF rect = mRect; in draw() local 80 rect.set(left + layout.getLineLeft(0) - PADDING_H, in draw() 85 canvas.drawRoundRect(rect, CORNER_RADIUS, CORNER_RADIUS, mPaint); in draw()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SlotView.java | 112 Rect rect = mLayout.getSlotRect(index, mTempRect); in setCenterIndex() local 114 ? (rect.left + rect.right - getWidth()) / 2 in setCenterIndex() 115 : (rect.top + rect.bottom - getHeight()) / 2; in setCenterIndex() 120 Rect rect = mLayout.getSlotRect(index, mTempRect); in makeSlotVisible() local 124 int slotBegin = WIDE ? rect.left : rect.top; in makeSlotVisible() 125 int slotEnd = WIDE ? rect.right : rect.bottom; in makeSlotVisible() 317 Rect rect = mLayout.getSlotRect(index, mTempRect); in renderItem() local 319 canvas.multiplyMatrix(mPaper.getTransform(rect, mScrollX), 0); in renderItem() 321 canvas.translate(rect.left, rect.top, 0); in renderItem() 324 mAnimation.apply(canvas, index, rect); in renderItem() [all …]
|
D | Paper.java | 68 public float[] getTransform(Rect rect, float scrollX) { in getTransform() argument 71 float screenX = rect.centerX() - scrollX; in getTransform() 84 Matrix.translateM(mMatrix, 0, mMatrix, 0, rect.centerX(), rect.centerY(), 0); in getTransform() 86 Matrix.translateM(mMatrix, 0, mMatrix, 0, -rect.width() / 2, -rect.height() / 2, 0); in getTransform()
|
D | GLView.java | 259 Rect rect = component.mBounds; in dispatchTouchEvent() local 260 int left = rect.left; in dispatchTouchEvent() 261 int top = rect.top; in dispatchTouchEvent() 262 if (!checkBounds || rect.contains(x, y)) { in dispatchTouchEvent()
|
D | PhotoFallbackEffect.java | 66 public void addEntry(Path path, Rect rect, RawTexture texture) { in addEntry() argument 67 mList.add(new Entry(path, rect, texture)); in addEntry()
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | ContactDetailPhotoSetter.java | 76 final Rect rect = new Rect(); in onClick() local 77 rect.left = (int) (pos[0] * appScale + 0.5f); in onClick() 78 rect.top = (int) (pos[1] * appScale + 0.5f); in onClick() 79 rect.right = (int) ((pos[0] + v.getWidth()) * appScale + 0.5f); in onClick() 80 rect.bottom = (int) ((pos[1] + v.getHeight()) * appScale + 0.5f); in onClick() 87 photoUri, mPhotoBitmap, mPhotoBytes, rect, delta, mContactData.isUserProfile(), in onClick()
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | ScrollerView.java | 1496 private boolean scrollToChildRect(Rect rect, boolean immediate) { in scrollToChildRect() argument 1497 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect); in scrollToChildRect() 1525 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { in computeScrollDeltaToGetChildRectOnScreen() argument 1527 return computeScrollDeltaToGetChildRectOnScreenHorizontal(rect); in computeScrollDeltaToGetChildRectOnScreen() 1529 return computeScrollDeltaToGetChildRectOnScreenVertical(rect); in computeScrollDeltaToGetChildRectOnScreen() 1533 private int computeScrollDeltaToGetChildRectOnScreenVertical(Rect rect) { in computeScrollDeltaToGetChildRectOnScreenVertical() argument 1543 if (rect.top > 0) { in computeScrollDeltaToGetChildRectOnScreenVertical() 1548 if (rect.bottom < getChildAt(0).getHeight()) { in computeScrollDeltaToGetChildRectOnScreenVertical() 1554 if (rect.bottom > screenBottom && rect.top > screenTop) { in computeScrollDeltaToGetChildRectOnScreenVertical() 1559 if (rect.height() > height) { in computeScrollDeltaToGetChildRectOnScreenVertical() [all …]
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Blend.h | 107 …**frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &croppi… 108 …void ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &img… 109 …rThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, d… 125 void RoundingCroppingSizeToMultipleOf8(MosaicRect& rect);
|
D | Blend.cpp | 375 int width, int height, YUVinfo &imgMos, MosaicRect &rect, in DoMergeAndBlend() argument 382 …amidShort::allocatePyramidPacked(m_wb.nlevs,(unsigned short)rect.Width(),(unsigned short)rect.Heig… in DoMergeAndBlend() 383 …midShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect.Heig… in DoMergeAndBlend() 384 …midShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect.Heig… in DoMergeAndBlend() 413 ComputeMask(csite, mb->vcrect, mb->brect, rect, imgMos, site_idx); in DoMergeAndBlend() 571 ProcessPyramidForThisFrame(csite, mb->vcrect, mb->brect, rect, imgMos, mb->trs, site_idx); in DoMergeAndBlend() 810 void Blend::RoundingCroppingSizeToMultipleOf8(MosaicRect &rect) { in RoundingCroppingSizeToMultipleOf8() argument 811 int height = rect.bottom - rect.top + 1; in RoundingCroppingSizeToMultipleOf8() 813 rect.bottom -= residue; in RoundingCroppingSizeToMultipleOf8() 815 int width = rect.right - rect.left + 1; in RoundingCroppingSizeToMultipleOf8() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | InputView.java | 62 final Rect rect = mInputViewRect; in forwardTouchEvent() local 63 this.getGlobalVisibleRect(rect); in forwardTouchEvent() 64 final int x = (int)me.getX() + rect.left; in forwardTouchEvent() 65 final int y = (int)me.getY() + rect.top; in forwardTouchEvent()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | SearchDropTargetBar.java | 232 final Rect rect = new Rect(); in getSearchBarBounds() local 233 rect.left = (int) (pos[0] * appScale + 0.5f); in getSearchBarBounds() 234 rect.top = (int) (pos[1] * appScale + 0.5f); in getSearchBarBounds() 235 rect.right = (int) ((pos[0] + mQSBSearchBar.getWidth()) * appScale + 0.5f); in getSearchBarBounds() 236 rect.bottom = (int) ((pos[1] + mQSBSearchBar.getHeight()) * appScale + 0.5f); in getSearchBarBounds() 237 return rect; in getSearchBarBounds()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | Face.java | 30 public Face(String name, String personId, String rect) { in Face() argument 33 Utils.assertTrue(mName != null && mPersonId != null && rect != null); in Face() 34 StringTokenizer tokenizer = new StringTokenizer(rect); in Face()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/ |
D | PolarClockWallpaper.java | 493 final RectF rect = mRect; in drawFrame() local 494 rect.set(-size, -size, size, size); in drawFrame() 509 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); in drawFrame() 514 rect.set(-size, -size, size, size); in drawFrame() 523 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); in drawFrame() 527 rect.set(-size, -size, size, size); in drawFrame() 536 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); in drawFrame() 540 rect.set(-size, -size, size, size); in drawFrame() 550 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint); in drawFrame() 554 rect.set(-size, -size, size, size); in drawFrame() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Blend.h | 107 …**frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &croppi… 108 …void ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &img… 109 …rThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, d…
|
D | Blend.cpp | 375 int width, int height, YUVinfo &imgMos, MosaicRect &rect, in DoMergeAndBlend() argument 382 …amidShort::allocatePyramidPacked(m_wb.nlevs,(unsigned short)rect.Width(),(unsigned short)rect.Heig… in DoMergeAndBlend() 383 …midShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect.Heig… in DoMergeAndBlend() 384 …midShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect.Heig… in DoMergeAndBlend() 413 ComputeMask(csite, mb->vcrect, mb->brect, rect, imgMos, site_idx); in DoMergeAndBlend() 571 ProcessPyramidForThisFrame(csite, mb->vcrect, mb->brect, rect, imgMos, mb->trs, site_idx); in DoMergeAndBlend() 800 void Blend::ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinf… in ComputeMask() argument 805 int l = (int) ((vcrect.lft - rect.left)); in ComputeMask() 806 int b = (int) ((vcrect.bot - rect.top)); in ComputeMask() 807 int r = (int) ((vcrect.rgt - rect.left)); in ComputeMask() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactsUtils.java | 307 final Rect rect = new Rect(); in getTargetRectFromView() local 308 rect.left = (int) (pos[0] * appScale + 0.5f); in getTargetRectFromView() 309 rect.top = (int) (pos[1] * appScale + 0.5f); in getTargetRectFromView() 310 rect.right = (int) ((pos[0] + view.getWidth()) * appScale + 0.5f); in getTargetRectFromView() 311 rect.bottom = (int) ((pos[1] + view.getHeight()) * appScale + 0.5f); in getTargetRectFromView() 312 return rect; in getTargetRectFromView()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 564 public static void dumpRect(RectF rect, String msg) { in dumpRect() argument 565 Log.v(TAG, msg + "=(" + rect.left + "," + rect.top in dumpRect() 566 + "," + rect.right + "," + rect.bottom + ")"); in dumpRect() 569 public static void rectFToRect(RectF rectF, Rect rect) { in rectFToRect() argument 570 rect.left = Math.round(rectF.left); in rectFToRect() 571 rect.top = Math.round(rectF.top); in rectFToRect() 572 rect.right = Math.round(rectF.right); in rectFToRect() 573 rect.bottom = Math.round(rectF.bottom); in rectFToRect()
|
D | FocusManager.java | 271 mFocusArea.get(0).rect); in onTouch() 273 mMeteringArea.get(0).rect); in onTouch() 448 int x, int y, int previewWidth, int previewHeight, Rect rect) { in calculateTapArea() argument 456 Util.rectFToRect(rectF, rect); in calculateTapArea()
|
/packages/apps/Camera/src/com/android/camera/ |
D | Util.java | 556 public static void dumpRect(RectF rect, String msg) { in dumpRect() argument 557 Log.v(TAG, msg + "=(" + rect.left + "," + rect.top in dumpRect() 558 + "," + rect.right + "," + rect.bottom + ")"); in dumpRect() 561 public static void rectFToRect(RectF rectF, Rect rect) { in rectFToRect() argument 562 rect.left = Math.round(rectF.left); in rectFToRect() 563 rect.top = Math.round(rectF.top); in rectFToRect() 564 rect.right = Math.round(rectF.right); in rectFToRect() 565 rect.bottom = Math.round(rectF.bottom); in rectFToRect()
|
D | FocusManager.java | 335 mFocusArea.get(0).rect); in onSingleTapUp() 337 mMeteringArea.get(0).rect); in onSingleTapUp() 502 int x, int y, int previewWidth, int previewHeight, Rect rect) { in calculateTapArea() argument 510 Util.rectFToRect(rectF, rect); in calculateTapArea()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BookmarkUtils.java | 171 RectF rect = new RectF(iconBounds); in drawTouchIconToCanvas() local 172 rect.inset(1, 1); in drawTouchIconToCanvas() 173 path.addRoundRect(rect, 8f, 8f, Path.Direction.CW); in drawTouchIconToCanvas()
|