/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/Launcher3/src/com/android/launcher3/util/ |
D | RotationUtils.java | 34 public static void rotateRect(Rect rect, int rotation) { in rotateRect() argument 39 rect.set(rect.top, rect.right, rect.bottom, rect.left); in rotateRect() 42 rect.set(rect.right, rect.bottom, rect.left, rect.top); in rotateRect() 45 rect.set(rect.bottom, rect.left, rect.top, rect.right); in rotateRect()
|
/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/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/Launcher3/tests/src/com/android/launcher3/celllayout/ |
D | CellLayoutBoard.java | 48 private boolean overlapsWithIgnored(Set<Rect> ignoredRectangles, Rect rect) { in overlapsWithIgnored() argument 51 if (intersects(ignoredRect, rect)) { in overlapsWithIgnored() 64 for (WidgetRect rect : mWidgetsRects) { in compareTo() 65 if (rect.shouldIgnore()) { in compareTo() 66 ignoredRectangles.add(rect.mBounds); in compareTo() 68 widgetsSet.add(rect.mBounds); in compareTo() 71 for (WidgetRect rect : cellLayoutBoard.mWidgetsRects) { in compareTo() 73 if (overlapsWithIgnored(ignoredRectangles, rect.mBounds)) { in compareTo() 76 if (!widgetsSet.contains(rect.mBounds)) { in compareTo() 79 widgetsSet.remove(rect.mBounds); in compareTo() [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/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/ |
D | MultipageCellLayout.java | 120 Rect rect = mBackground.getBounds(); in onLayout() local 121 mLeftBackground.setBounds(rect.left, rect.top, rect.right / 2 - 20, rect.bottom); in onLayout() 122 mRightBackground.setBounds(rect.right / 2 + 20, rect.top, rect.right, rect.bottom); in onLayout()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
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 | StreamableAsset.java | 52 public static Rect scaleRect(Rect rect, float scale) { in scaleRect() argument 54 Math.round((float) rect.left * scale), in scaleRect() 55 Math.round((float) rect.top * scale), in scaleRect() 56 Math.round((float) rect.right * scale), in scaleRect() 57 Math.round((float) rect.bottom * scale)); in scaleRect() 134 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument 136 runDecodeBitmapRegionTask(rect, targetWidth, targetHeight, shouldAdjustForRtl, receiver); in decodeBitmapRegion() 183 public void runDecodeBitmapRegionTask(Rect rect, int targetWidth, int targetHeight, in runDecodeBitmapRegionTask() argument 188 Rect cropRect = rect; in runDecodeBitmapRegionTask()
|
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/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/apps/TV/src/com/android/tv/recommendation/ |
D | NotificationService.java | 504 Rect rect = new Rect(); 509 rect.bottom = result.getHeight() - mLogoPaddingBottom; 510 rect.top = rect.bottom - scaledLogo.getHeight(); 513 rect.bottom = result.getHeight() - mLogoPaddingBottom; 514 rect.top = rect.bottom - scaledLogo.getHeight(); 518 rect.bottom = result.getHeight() - mLogoPaddingBottom; 519 rect.top = rect.bottom - scaledLogo.getHeight(); 522 rect.left = startPadding; 523 rect.right = startPadding + scaledLogo.getWidth(); 525 rect.right = result.getWidth() - startPadding; [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/Launcher3/src/com/android/launcher3/views/ |
D | ClipIconView.java | 99 public void update(RectF rect, float progress, float shapeProgressStart, float cornerRadius, in update() argument 104 ? rect.left - (dp.widthPx - lp.getMarginStart() - lp.width) in update() 105 : rect.left - lp.getMarginStart(); in update() 106 float dY = rect.top - lp.topMargin; in update() 111 float scaleX = rect.width() / minSize; in update() 112 float scaleY = rect.height() / minSize; in update() 120 update(rect, progress, shapeProgressStart, cornerRadius, isOpening, scale, minSize, dp); in update() 130 private void update(RectF rect, float progress, float shapeProgressStart, float cornerRadius, in update() argument 139 mOutline.right = (int) (rect.width() / scale); in update() 141 mOutline.bottom = (int) (rect.height() / scale); in update()
|
/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/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/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/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/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/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/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | BitmapProcessor.java | 43 Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); in createLowResBitmap() local 44 WallpaperCropUtils.fitToSize(rect, outWidth / DOWNSAMPLE, outHeight / DOWNSAMPLE); in createLowResBitmap() 46 return Bitmap.createScaledBitmap(bitmap, rect.width(), rect.height(), in createLowResBitmap()
|