/packages/apps/Gallery2/jni/filters/ |
D | redEyeMath.c | 34 short *rect) { in findPossible() argument 35 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; in findPossible() 55 short *rect) { in findReds() argument 56 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; in findReds() 72 unsigned char *out, short *rect) { in dialateMaskIfRed() argument 73 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; in dialateMaskIfRed() 110 void filterRedEye(unsigned char *src, unsigned char *dest, int iw, int ih, short *rect) { in filterRedEye() argument 111 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; in filterRedEye() 117 rect[0] = MAX(rect[0],0); in filterRedEye() 118 rect[1] = MAX(rect[1],0); in filterRedEye() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | EclipseControl.java | 231 RectF rect = new RectF(cx - rx, cy - ry, cx + rx, cy + ry); in paintRadius() local 236 paintOvallines(canvas, rect, paint, cx, cy, rx, ry); in paintRadius() 240 paintOvallines(canvas, rect, paint, cx, cy, rx, ry); in paintRadius() 244 Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) { in paintOvallines() argument 245 canvas.drawOval(rect, paint); in paintOvallines() 254 rect.left = cx - dx; in paintOvallines() 255 rect.top = cy - dy; in paintOvallines() 256 rect.right = cx + dx; in paintOvallines() 257 rect.bottom = cy + dy; in paintOvallines() 258 canvas.drawArc(rect, i - da, arclen, false, paint); in paintOvallines() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | TransitionImage.java | 109 public void setRect(Rect rect) { in setRect() argument 110 mRect.set(rect); in setRect() 141 public void setUnclippedRect(RectF rect) { in setUnclippedRect() argument 142 mUnclippedRect.set(rect); in setUnclippedRect() 149 public void setClippedRect(RectF rect) { in setClippedRect() argument 150 mClippedRect.set(rect); in setClippedRect() 224 Rect rect = null; in readFromBundle() local 227 rect = Rect.unflattenFromString(bitmapRectStr); in readFromBundle() 229 if (rect == null) { in readFromBundle() 230 rect = intentSourceBounds; in readFromBundle() [all …]
|
D | WindowLocationUtil.java | 95 public static void getLocationsInWindow(View view, RectF rect) { in getLocationsInWindow() argument 96 sTmpFloat4[0] = rect.left; in getLocationsInWindow() 97 sTmpFloat4[1] = rect.top; in getLocationsInWindow() 98 sTmpFloat4[2] = rect.right; in getLocationsInWindow() 99 sTmpFloat4[3] = rect.bottom; in getLocationsInWindow() 101 rect.left = sTmpFloat4[0]; in getLocationsInWindow() 102 rect.top = sTmpFloat4[1]; in getLocationsInWindow() 103 rect.right = sTmpFloat4[2]; in getLocationsInWindow() 104 rect.bottom = sTmpFloat4[3]; in getLocationsInWindow()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SlotView.java | 111 Rect rect = mLayout.getSlotRect(index, mTempRect); in setCenterIndex() local 113 ? (rect.left + rect.right - getWidth()) / 2 in setCenterIndex() 114 : (rect.top + rect.bottom - getHeight()) / 2; in setCenterIndex() 119 Rect rect = mLayout.getSlotRect(index, mTempRect); in makeSlotVisible() local 123 int slotBegin = WIDE ? rect.left : rect.top; in makeSlotVisible() 124 int slotEnd = WIDE ? rect.right : rect.bottom; in makeSlotVisible() 316 Rect rect = mLayout.getSlotRect(index, mTempRect); in renderItem() local 318 canvas.multiplyMatrix(mPaper.getTransform(rect, mScrollX), 0); in renderItem() 320 canvas.translate(rect.left, rect.top, 0); in renderItem() 323 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()
|
/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/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | FrameLayoutWithShadows.java | 133 private Rect rect = new Rect(); field in FrameLayoutWithShadows 247 rect.set(drawable.getBounds()); in layoutShadows() 248 rectf.set(rect); in layoutShadows() 258 rect.left = (int) (rectf.left + 0.5f); in layoutShadows() 259 rect.top = (int) (rectf.top + 0.5f); in layoutShadows() 260 rect.right = (int) (rectf.right + 0.5f); in layoutShadows() 261 rect.bottom = (int) (rectf.bottom + 0.5f); in layoutShadows() 265 rect.left = view.getPaddingLeft() - shadow.getPaddingLeft(); in layoutShadows() 266 rect.top = view.getPaddingTop() - shadow.getPaddingTop(); in layoutShadows() 267 rect.right = view.getWidth() + view.getPaddingRight() in layoutShadows() [all …]
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
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/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 …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | InputView.java | 70 final Rect rect = mInputViewRect; in onInterceptTouchEvent() local 71 getGlobalVisibleRect(rect); in onInterceptTouchEvent() 73 final int x = (int)me.getX(index) + rect.left; in onInterceptTouchEvent() 74 final int y = (int)me.getY(index) + rect.top; in onInterceptTouchEvent() 100 final Rect rect = mInputViewRect; in onTouchEvent() local 101 getGlobalVisibleRect(rect); in onTouchEvent() 103 final int x = (int)me.getX(index) + rect.left; in onTouchEvent() 104 final int y = (int)me.getY(index) + rect.top; in onTouchEvent()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorRectView.java | 163 RectF rect = new RectF(); in onDraw() local 164 rect.left = mBorder; in onDraw() 165 rect.right = mWidth - mBorder; in onDraw() 166 rect.top = mBorder; in onDraw() 167 rect.bottom = mHeight - mBorder; in onDraw() 169 canvas.drawRect(rect, mWheelPaint1); in onDraw() 170 canvas.drawRect(rect, mWheelPaint3); in onDraw() 171 canvas.drawRect(rect, mWheelPaint2); in onDraw()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterGradRepresentation.java | 188 public int addBand(Rect rect) { in addBand() argument 189 mBands.add(0, mCurrentBand = new Band(rect.centerX(), rect.centerY())); in addBand() 193 double addDelta = ADD_MIN_DIST * Math.max(rect.width(), rect.height()); in addBand() 228 if (mCurrentBand.yPos1 > rect.bottom) { in addBand() 229 mCurrentBand.yPos1 = (int) (rect.top + addDelta); in addBand() 231 if (mCurrentBand.xPos1 > rect.right) { in addBand() 232 mCurrentBand.xPos1 = (int) (rect.left + addDelta); in addBand()
|
D | ImageFilterRedEye.java | 62 short[] rect = new short[4]; in apply() local 70 rect[0] = (short) r.left; in apply() 71 rect[1] = (short) r.top; in apply() 72 rect[2] = (short) r.width(); in apply() 73 rect[3] = (short) r.height(); in apply() 74 nativeApplyFilter(bitmap, w, h, rect); in apply()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 732 public static void dumpRect(RectF rect, String msg) { in dumpRect() argument 733 Log.v(TAG, msg + "=(" + rect.left + "," + rect.top in dumpRect() 734 + "," + rect.right + "," + rect.bottom + ")"); in dumpRect() 737 public static void rectFToRect(RectF rectF, Rect rect) { in rectFToRect() argument 738 rect.left = Math.round(rectF.left); in rectFToRect() 739 rect.top = Math.round(rectF.top); in rectFToRect() 740 rect.right = Math.round(rectF.right); in rectFToRect() 741 rect.bottom = Math.round(rectF.bottom); in rectFToRect() 745 Rect rect = new Rect(); in rectFToRect() local 746 rectFToRect(rectF, rect); in rectFToRect() [all …]
|
/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()
|
/packages/apps/Camera/src/com/android/camera/ |
D | Util.java | 629 public static void dumpRect(RectF rect, String msg) { in dumpRect() argument 630 Log.v(TAG, msg + "=(" + rect.left + "," + rect.top in dumpRect() 631 + "," + rect.right + "," + rect.bottom + ")"); in dumpRect() 634 public static void rectFToRect(RectF rectF, Rect rect) { in rectFToRect() argument 635 rect.left = Math.round(rectF.left); in rectFToRect() 636 rect.top = Math.round(rectF.top); in rectFToRect() 637 rect.right = Math.round(rectF.right); in rectFToRect() 638 rect.bottom = Math.round(rectF.bottom); in rectFToRect()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 369 public static void round(RectF rect) { in round() argument 370 if (rect == null) { in round() 373 float left = Math.round(rect.left); in round() 374 float top = Math.round(rect.top); in round() 375 float right = Math.round(rect.right); in round() 376 float bottom = Math.round(rect.bottom); in round() 377 rect.set(left, top, right, bottom); in round()
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | ContactDetailPhotoSetter.java | 75 final Rect rect = new Rect(); in onClick() local 76 rect.left = (int) (pos[0] * appScale + 0.5f); in onClick() 77 rect.top = (int) (pos[1] * appScale + 0.5f); in onClick() 78 rect.right = (int) ((pos[0] + v.getWidth()) * appScale + 0.5f); in onClick() 79 rect.bottom = (int) ((pos[1] + v.getHeight()) * appScale + 0.5f); in onClick() 86 photoUri, mPhotoBitmap, mPhotoBytes, rect, delta, mContactData.isUserProfile(), in onClick()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
D | StaggeredGridView.java | 1942 if (viewRectPair != null && viewRectPair.rect != null) { 1951 final Rect oldRect = viewRectPair.rect; 2497 Rect rect; 2503 rect = new Rect(childLeft, childTop, childRight, childBottom); 2504 mChildRectsForAnimation.put(lp.id /* item id */, new ViewRectPair(child, rect)); 3356 private boolean scrollToChildRect(Rect rect, boolean immediate) { 3357 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect); 3572 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { 3584 if (rect.top > 0) { 3589 if (rect.bottom < getHeight()) { [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
D | MoreContactUtils.java | 177 final Rect rect = new Rect(); in getTargetRectFromView() local 178 rect.left = pos[0]; in getTargetRectFromView() 179 rect.top = pos[1]; in getTargetRectFromView() 180 rect.right = pos[0] + view.getWidth(); in getTargetRectFromView() 181 rect.bottom = pos[1] + view.getHeight(); in getTargetRectFromView() 182 return rect; in getTargetRectFromView()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | SearchDropTargetBar.java | 227 final Rect rect = new Rect(); in getSearchBarBounds() local 228 rect.left = pos[0]; in getSearchBarBounds() 229 rect.top = pos[1]; in getSearchBarBounds() 230 rect.right = pos[0] + mQSBSearchBar.getWidth(); in getSearchBarBounds() 231 rect.bottom = pos[1] + mQSBSearchBar.getHeight(); in getSearchBarBounds() 232 return rect; in getSearchBarBounds()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | SearchDropTargetBar.java | 233 final Rect rect = new Rect(); in getSearchBarBounds() local 234 rect.left = pos[0]; in getSearchBarBounds() 235 rect.top = pos[1]; in getSearchBarBounds() 236 rect.right = pos[0] + mQSBSearchBar.getWidth(); in getSearchBarBounds() 237 rect.bottom = pos[1] + mQSBSearchBar.getHeight(); in getSearchBarBounds() 238 return rect; in getSearchBarBounds()
|