Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 25 of 130) sorted by relevance

123456

/packages/apps/Gallery2/jni/filters/
DredEyeMath.c36 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/
DRotationUtils.java34 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/providers/MediaProvider/pdf/framework/libs/pdfClient/
Dannotation.cc41 Rectangle_f rect = bounds[bound_index]; in updateExistingBounds() local
42 FS_QUADPOINTSF quad_points = {rect.left, rect.top, rect.right, rect.top, in updateExistingBounds()
43 rect.left, rect.bottom, rect.right, rect.bottom}; in updateExistingBounds()
102 FS_RECTF rect; in CreatePdfiumInstance() local
103 rect.left = annotation_bounds.left; in CreatePdfiumInstance()
104 rect.bottom = annotation_bounds.bottom; in CreatePdfiumInstance()
105 rect.right = annotation_bounds.right; in CreatePdfiumInstance()
106 rect.top = annotation_bounds.top; in CreatePdfiumInstance()
108 if (!FPDFAnnot_SetRect(scoped_annot.get(), &rect)) { in CreatePdfiumInstance()
140 FS_RECTF rect; in UpdatePdfiumInstance() local
[all …]
Dform_filler.cc337 Rectangle_i rect = GetAnnotationRect(annotation); in GetFormFieldType() local
338 double mid_height = rect.top - ((rect.top - rect.bottom) / 2); in GetFormFieldType()
339 double mid_width = rect.right - ((rect.right - rect.left) / 2); in GetFormFieldType()
344 FS_RECTF rect; in GetAnnotationRect() local
345 FPDF_BOOL success = FPDFAnnot_GetRect(annotation, &rect); in GetAnnotationRect()
352 static_cast<int>(std::floor(rect.left)), static_cast<int>(std::ceil(rect.top)), in GetAnnotationRect()
353 static_cast<int>(std::ceil(rect.right)), static_cast<int>(std::floor(rect.bottom))}; in GetAnnotationRect()
442 Rectangle_i rect = GetAnnotationRect(annotation); in SetFormFocus() local
443 double mid_height = rect.top - ((rect.top - rect.bottom) / 2); in SetFormFocus()
444 double mid_width = rect.right - ((rect.right - rect.left) / 2); in SetFormFocus()
[all …]
Dpage.cc228 Rectangle_d rect = DoubleRect(0, 0, 0, 0); in GetTextBounds() local
234 if (IsEmpty(rect)) { in GetTextBounds()
235 rect = DoubleRect(x1, y1, x2, y2); in GetTextBounds()
237 rect = Union(rect, DoubleRect(x1, y1, x2, y2)); in GetTextBounds()
242 if (!IsEmpty(rect)) { in GetTextBounds()
244 rects->push_back(ApplyPageTransform(rect)); in GetTextBounds()
246 rect = DoubleRect(0, 0, 0, 0); in GetTextBounds()
250 if (!IsEmpty(rect)) { in GetTextBounds()
252 rects->push_back(ApplyPageTransform(rect)); in GetTextBounds()
304 Rectangle_i rect = GetRect(link); in GetGotoLinks() local
[all …]
Drect.h116 inline bool IsEmpty(const Rectangle_i& rect) { in IsEmpty() argument
117 return rect.Width() <= 0 || rect.Height() <= 0; in IsEmpty()
120 inline bool IsEmpty(const Rectangle_d& rect) { in IsEmpty() argument
121 return rect.Width() <= 0 || rect.Height() <= 0; in IsEmpty()
/packages/apps/Camera2/src/com/android/camera/util/
DDebugBoundsRenderer.java32 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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DEclipseControl.java231 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/Gallery/src/com/android/camera/
DImageViewTouchBase.java193 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/TvSettings/Settings/src/com/android/tv/settings/widget/
DFrameLayoutWithShadows.java133 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/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/
DLeanbackKeyboardContainer.java201 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/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java111 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 …]
DPaper.java68 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/tests/multivalentTests/src/com/android/launcher3/celllayout/board/
DCellLayoutBoard.java79 public boolean pointInsideRect(int x, int y, WidgetRect rect) { in pointInsideRect() argument
80 Boolean isXInRect = x >= rect.getCellX() && x < rect.getCellX() + rect.getSpanX(); in pointInsideRect()
81 Boolean isYInRect = y >= rect.getCellY() && y < rect.getCellY() + rect.getSpanY(); in pointInsideRect()
127 private void removeOverlappingItems(Rect rect) { in removeOverlappingItems() argument
130 if (rect.intersect(widget.getBounds())) { in removeOverlappingItems()
140 if (rect.contains(x, y)) { in removeOverlappingItems()
151 if (rect.contains(x, y)) { in removeOverlappingItems()
216 Rect rect = new Rect(x, y + spanY - 1, x + spanX - 1, y); in addWidget() local
217 removeOverlappingItems(rect); in addWidget()
218 WidgetRect widgetRect = new WidgetRect(type, rect); in addWidget()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterRedEye.java62 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/Car/systemlibs/car-scalable-ui-lib/test/unit/src/com/android/car/scalableui/model/
DBoundsTest.java33 Rect rect = bounds.getRect(); in testBoundsCreation() local
34 assertThat(rect.left).isEqualTo(10); in testBoundsCreation()
35 assertThat(rect.top).isEqualTo(20); in testBoundsCreation()
36 assertThat(rect.right).isEqualTo(30); in testBoundsCreation()
37 assertThat(rect.bottom).isEqualTo(40); in testBoundsCreation()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapUtils.java99 public static float calculateHorizontalAlignment(Point dimensions, Rect rect) { in calculateHorizontalAlignment() argument
100 int paddingLeft = rect.left; in calculateHorizontalAlignment()
101 int paddingRight = dimensions.x - rect.right; in calculateHorizontalAlignment()
116 public static float calculateVerticalAlignment(Point dimensions, Rect rect) { in calculateVerticalAlignment() argument
117 int paddingTop = rect.top; in calculateVerticalAlignment()
118 int paddingBottom = dimensions.y - rect.bottom; in calculateVerticalAlignment()
DStreamableAsset.java52 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()
167 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
169 runDecodeBitmapRegionTask(rect, targetWidth, targetHeight, shouldAdjustForRtl, receiver); in decodeBitmapRegion()
216 public void runDecodeBitmapRegionTask(Rect rect, int targetWidth, int targetHeight, in runDecodeBitmapRegionTask() argument
221 Rect cropRect = rect; in runDecodeBitmapRegionTask()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/
DUserPickerItemSpacingDecorationTest.java87 Rect rect = new Rect(); in testHasBottomSpacing() local
88 mSpacingDecoration.getItemOffsets(rect, mViews.get(i), mMockRecyclerView, in testHasBottomSpacing()
90 assertThat(rect.bottom).isEqualTo(TEST_VERTICAL_SPACING); in testHasBottomSpacing()
98 Rect rect = new Rect(); in testHasEqualHorizontalSpacing() local
99 mSpacingDecoration.getItemOffsets(rect, view, mMockRecyclerView, in testHasEqualHorizontalSpacing()
101 sizeSums.add((rect.left + rect.right)); in testHasEqualHorizontalSpacing()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DInputView.java70 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/recommendation/
DNotificationService.java504 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/apps/Dialer/java/com/android/contacts/common/
DMoreContactUtils.java186 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/Launcher3/src/com/android/launcher3/
DMultipageCellLayout.java195 Rect rect = mBackground.getBounds(); in onLayout() local
196 int middlePointInPixels = rect.centerX(); in onLayout()
197 mLeftBackground.setBounds(rect.left, rect.top, middlePointInPixels, rect.bottom); in onLayout()
198 mRightBackground.setBounds(middlePointInPixels, rect.top, rect.right, rect.bottom); in onLayout()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/
DUtilitiesTest.kt371 var rect = Rect(20, 70, 60, 80) in rotateBounds() variable
372 Utilities.rotateBounds(rect, 100, 100, 0) in rotateBounds()
373 assertEquals(Rect(20, 70, 60, 80), rect) in rotateBounds()
375 rect = Rect(20, 70, 60, 80) in rotateBounds()
376 Utilities.rotateBounds(rect, 100, 100, 1) in rotateBounds()
377 assertEquals(Rect(70, 40, 80, 80), rect) in rotateBounds()
384 rect = Rect(20, 70, 60, 80) in rotateBounds()
385 Utilities.rotateBounds(rect, 100, 100, 3) in rotateBounds()
386 assertEquals(Rect(20, 20, 30, 60), rect) in rotateBounds()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DClipIconView.java114 public void update(RectF rect, float progress, float shapeProgressStart, float cornerRadius, in update() argument
116 update(rect, progress, shapeProgressStart, cornerRadius, isOpening, container, dp, 255); in update()
123 public void update(RectF rect, float progress, float shapeProgressStart, float cornerRadius, in update() argument
128 ? rect.left - (dp.widthPx - lp.getMarginStart() - lp.width) in update()
129 : rect.left - lp.getMarginStart(); in update()
130 float dY = rect.top - lp.topMargin; in update()
135 float scaleX = rect.width() / minSize; in update()
136 float scaleY = rect.height() / minSize; in update()
152 update(rect, progress, shapeProgressStart, cornerRadius, isOpening, scale, minSize, dp); in update()
162 private void update(RectF rect, float progress, float shapeProgressStart, float cornerRadius, in update() argument
[all …]

123456