/packages/apps/Gallery2/jni/filters/ |
D | redEyeMath.c | 36 int ih __unused, short *rect) { in findPossible() argument 37 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; in findPossible() 57 short *rect) { in findReds() argument 58 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; in findReds() 74 unsigned char *mask, unsigned char *out, short *rect) { in dialateMaskIfRed() argument 75 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; in dialateMaskIfRed() 112 void filterRedEye(unsigned char *src, unsigned char *dest, int iw, int ih, short *rect) { in filterRedEye() argument 113 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; in filterRedEye() 118 rect[0] = MAX(rect[0],0); in filterRedEye() 119 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/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/ |
D | LeanbackKeyboardContainer.java | 201 final Rect rect; field in LeanbackKeyboardContainer.KeyFocus 226 rect = new Rect(); in KeyFocus() 236 .append(", rect: ").append(rect) in toString() 246 rect.set(focus.rect); in set() 272 if (!rect.equals(keyFocus.rect)) { in equals() 281 int result = rect.hashCode(); in hashCode() 943 private void offsetRect(Rect rect, View view) { in offsetRect() argument 944 rect.left = 0; in offsetRect() 945 rect.top = 0; in offsetRect() 946 rect.right = view.getWidth(); in offsetRect() [all …]
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | DebugBoundsRenderer.java | 32 public static void drawBounds(Canvas canvas, Paint paint, float size, Rect rect) { in drawBounds() argument 33 drawBounds(canvas, paint, size, rect.left, rect.top, rect.right, rect.bottom); in drawBounds() 40 public static void drawBounds(Canvas canvas, Paint paint, float size, RectF rect) { in drawBounds() argument 41 drawBounds(canvas, paint, size, rect.left, rect.top, rect.right, rect.bottom); in drawBounds()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | FrameLayoutWithShadows.java | 133 private final 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/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/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/Launcher3/src/com/android/launcher3/views/ |
D | ClipIconView.java | 149 public void update(RectF rect, float progress, float shapeProgressStart, float cornerRadius, in update() argument 155 ? rect.left - (dp.widthPx - lp.getMarginStart() - lp.width) in update() 156 : rect.left - lp.getMarginStart(); in update() 157 float dY = rect.top - lp.topMargin; in update() 162 float scaleX = rect.width() / minSize; in update() 163 float scaleY = rect.height() / minSize; in update() 171 update(rect, progress, shapeProgressStart, cornerRadius, fgIconAlpha, isOpening, scale, in update() 182 private void update(RectF rect, float progress, float shapeProgressStart, float cornerRadius, in update() argument 186 ? rect.left - (dp.widthPx - parentLp.getMarginStart() - parentLp.width) in update() 187 : rect.left - parentLp.getMarginStart(); in update() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | StreamableAsset.java | 48 public static Rect scaleRect(Rect rect, float scale) { in scaleRect() argument 50 Math.round((float) rect.left * scale), in scaleRect() 51 Math.round((float) rect.top * scale), in scaleRect() 52 Math.round((float) rect.right * scale), in scaleRect() 53 Math.round((float) rect.bottom * scale)); in scaleRect() 89 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument 91 runDecodeBitmapRegionTask(rect, targetWidth, targetHeight, shouldAdjustForRtl, receiver); in decodeBitmapRegion() 144 public AsyncTask runDecodeBitmapRegionTask(Rect rect, int targetWidth, int targetHeight, in runDecodeBitmapRegionTask() argument 147 new DecodeBitmapRegionAsyncTask(rect, targetWidth, targetHeight, isRtl, receiver); in runDecodeBitmapRegionTask() 309 public DecodeBitmapRegionAsyncTask(Rect rect, int targetWidth, int targetHeight, in DecodeBitmapRegionAsyncTask() argument [all …]
|
D | BitmapUtils.java | 93 public static float calculateHorizontalAlignment(Point dimensions, Rect rect) { in calculateHorizontalAlignment() argument 94 int paddingLeft = rect.left; in calculateHorizontalAlignment() 95 int paddingRight = dimensions.x - rect.right; in calculateHorizontalAlignment() 110 public static float calculateVerticalAlignment(Point dimensions, Rect rect) { in calculateVerticalAlignment() argument 111 int paddingTop = rect.top; in calculateVerticalAlignment() 112 int paddingBottom = dimensions.y - rect.bottom; in calculateVerticalAlignment()
|
D | BitmapCachingAsset.java | 51 CacheKey(Asset asset, int width, int height, boolean rtl, Rect rect) { in CacheKey() argument 56 mRect = rect; in CacheKey() 115 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument 119 mOriginalAsset.decodeBitmapRegion(rect, targetWidth, targetHeight, shouldAdjustForRtl, in decodeBitmapRegion() 124 rect); in decodeBitmapRegion() 129 mOriginalAsset.decodeBitmapRegion(rect, targetWidth, targetHeight, shouldAdjustForRtl, in decodeBitmapRegion()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | NotificationService.java | 503 Rect rect = new Rect(); 508 rect.bottom = result.getHeight() - mLogoPaddingBottom; 509 rect.top = rect.bottom - scaledLogo.getHeight(); 512 rect.bottom = result.getHeight() - mLogoPaddingBottom; 513 rect.top = rect.bottom - scaledLogo.getHeight(); 517 rect.bottom = result.getHeight() - mLogoPaddingBottom; 518 rect.top = rect.bottom - scaledLogo.getHeight(); 521 rect.left = startPadding; 522 rect.right = startPadding + scaledLogo.getWidth(); 524 rect.right = result.getWidth() - startPadding; [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
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/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/TV/src/com/android/tv/util/images/ |
D | BitmapUtils.java | 61 Rect rect = calculateNewSize(bm, maxWidth, maxHeight); in scaleBitmap() local 62 return Bitmap.createScaledBitmap(bm, rect.right, rect.bottom, false); in scaleBitmap() 75 Rect rect = new Rect(); in calculateNewSize() local 77 rect.right = maxWidth; in calculateNewSize() 78 rect.bottom = Math.round((float) bm.getHeight() * maxWidth / bm.getWidth()); in calculateNewSize() 80 rect.right = Math.round((float) bm.getWidth() * maxHeight / bm.getHeight()); in calculateNewSize() 81 rect.bottom = maxHeight; in calculateNewSize() 83 return rect; in calculateNewSize()
|
/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/Dialer/java/com/android/contacts/common/ |
D | MoreContactUtils.java | 186 final Rect rect = new Rect(); in getTargetRectFromView() local 187 rect.left = pos[0]; in getTargetRectFromView() 188 rect.top = pos[1]; in getTargetRectFromView() 189 rect.right = pos[0] + view.getWidth(); in getTargetRectFromView() 190 rect.bottom = pos[1] + view.getHeight(); in getTargetRectFromView() 191 return rect; in getTargetRectFromView()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | FocusOverlayManager.java | 235 focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, focusArea.get(0).rect); in initializeFocusAreas() 249 focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight, meteringArea.get(0).rect); in initializeMeteringAreas() 416 Rect rect) { in calculateTapArea() argument 426 rectFToRect(rectF, rect); in calculateTapArea() 470 private void rectFToRect(RectF rectF, Rect rect) { in rectFToRect() argument 471 rect.left = Math.round(rectF.left); in rectFToRect() 472 rect.top = Math.round(rectF.top); in rectFToRect() 473 rect.right = Math.round(rectF.right); in rectFToRect() 474 rect.bottom = Math.round(rectF.bottom); in rectFToRect()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | FocusOverlayManager.java | 314 ((Area) mFocusArea.get(0)).rect); in initializeFocusAreas() 328 ((Area) mMeteringArea.get(0)).rect); in initializeMeteringAreas() 492 int x, int y, int previewWidth, int previewHeight, Rect rect) { in calculateTapArea() argument 500 rectFToRect(rectF, rect); in calculateTapArea() 583 public static void rectFToRect(RectF rectF, Rect rect) { in rectFToRect() argument 584 rect.left = Math.round(rectF.left); in rectFToRect() 585 rect.top = Math.round(rectF.top); in rectFToRect() 586 rect.right = Math.round(rectF.right); in rectFToRect() 587 rect.bottom = Math.round(rectF.bottom); in rectFToRect()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | LandscapePagedViewHandler.java | 130 public float getPrimarySize(RectF rect) { in getPrimarySize() argument 131 return rect.height(); in getPrimarySize() 135 public float getStart(RectF rect) { in getStart() argument 136 return rect.top; in getStart() 140 public float getEnd(RectF rect) { in getEnd() argument 141 return rect.bottom; in getEnd() 343 public int getDistanceToBottomOfRect(DeviceProfile dp, Rect rect) { in getDistanceToBottomOfRect() argument 344 return rect.left; in getDistanceToBottomOfRect()
|
D | PortraitPagedViewHandler.java | 126 public float getPrimarySize(RectF rect) { in getPrimarySize() argument 127 return rect.width(); in getPrimarySize() 131 public float getStart(RectF rect) { in getStart() argument 132 return rect.left; in getStart() 136 public float getEnd(RectF rect) { in getEnd() argument 137 return rect.right; in getEnd() 364 public int getDistanceToBottomOfRect(DeviceProfile dp, Rect rect) { in getDistanceToBottomOfRect() argument 365 return dp.heightPx - rect.bottom; in getDistanceToBottomOfRect()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | MoreContactUtils.java | 185 final Rect rect = new Rect(); in getTargetRectFromView() local 186 rect.left = pos[0]; in getTargetRectFromView() 187 rect.top = pos[1]; in getTargetRectFromView() 188 rect.right = pos[0] + view.getWidth(); in getTargetRectFromView() 189 rect.bottom = pos[1] + view.getHeight(); in getTargetRectFromView() 190 return rect; in getTargetRectFromView()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | MenuLayoutManager.java | 140 Rect rect = layouts.get(i); in layout() local 141 if (rect != null) { in layout() 143 currentView.layout(rect.left, rect.top, rect.right, rect.bottom); in layout() 685 Rect rect = layouts.get(i); in setSelectedPositionSmooth() local 686 animators.add(createTranslationYAnimator(view, 0, rect.top - view.getTop())); in setSelectedPositionSmooth() 852 Rect rect = layouts.get(position); in onMenuRowUpdated() local 855 view.layout(rect.left, rect.top, rect.right, rect.bottom); in onMenuRowUpdated() 861 rect.right - rect.left - view.getPaddingRight() - params.rightMargin, in onMenuRowUpdated() 862 rect.bottom - rect.top - view.getPaddingBottom() - params.bottomMargin); in onMenuRowUpdated()
|
/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 …]
|