Searched refs:rect (Results 1 - 25 of 272) sorted by relevance

1234567891011

/frameworks/base/graphics/java/android/graphics/
H A DLargeBitmap.java44 * Decodes a rectangle region in the image specified by rect.
46 * @param rect The rectangle that specified the region to be decode.
52 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument
54 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight())
56 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top,
57 rect
[all...]
H A DYuvImage.java214 private void adjustRectangle(Rect rect) { argument
215 int width = rect.width();
216 int height = rect.height();
221 rect.left &= ~1;
222 rect.top &= ~1;
223 rect.right = rect.left + width;
224 rect.bottom = rect.top + height;
230 rect
[all...]
H A DBitmapRegionDecoder.java174 * Decodes a rectangle region in the image specified by rect.
176 * @param rect The rectangle that specified the region to be decode.
187 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument
191 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth()
192 || rect.top >= getHeight())
194 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top,
195 rect
[all...]
H A DOutline.java120 * or round rect support clipping.
170 * Sets the Outline to the rounded rect defined by the input rect, and
180 public void setRect(@NonNull Rect rect) { argument
181 setRect(rect.left, rect.top, rect.right, rect.bottom);
185 * Sets the Outline to the rounded rect defined by the input rect, an
207 setRoundRect(@onNull Rect rect, float radius) argument
269 setOval(@onNull Rect rect) argument
[all...]
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DMinTouchTargetHelper.java84 Rect rect = new Rect();
85 mSubjectView.getHitRect(rect);
88 int hitWidth = Math.abs(rect.right - rect.left);
91 rect.left -= amountToIncrease;
92 rect.right += amountToIncrease;
95 int hitHeight = Math.abs(rect.top - rect.bottom);
98 rect.top -= amountToIncrease;
99 rect
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java37 canvas.drawOval(rect(), paint);
42 final RectF rect = rect();
43 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
H A DRectShape.java43 final RectF rect = rect();
44 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
45 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
56 protected final RectF rect() { method in class:RectShape
/frameworks/base/core/java/com/android/internal/widget/
H A DNotificationExpandButton.java59 private void extendRectToMinTouchSize(Rect rect) { argument
61 rect.left = rect.centerX() - touchTargetSize / 2;
62 rect.right = rect.left + touchTargetSize;
63 rect.top = rect.centerY() - touchTargetSize / 2;
64 rect.bottom = rect.top + touchTargetSize;
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp297 Rectangle rect = parseRect(rectDesc); local
300 rectangle.push_back(rect);
368 Rectangle rect; local
381 rect.format = format->format;
384 rect.displayFrame = hwcTestParseHwcRect(in, error);
393 rect.sourceDim = HwcTestDim(rect.displayFrame.right
394 - rect.displayFrame.left,
395 rect.displayFrame.bottom
396 - rect
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DSnapshotTests.cpp33 ClipRect rect(Rect(0, 0, 75, 75));
36 child->serializeIntersectedClip(allocator, &rect, Matrix4::identity());
38 EXPECT_EQ(Rect(50, 50, 75, 75), intersectWithChild->rect) << "Expect intersect with child";
41 rect.intersectWithRoot = true;
44 child->serializeIntersectedClip(allocator, &rect, Matrix4::identity());
46 EXPECT_EQ(Rect(10, 10, 75, 75), intersectWithRoot->rect) << "Expect intersect with root";
55 ClipRect rect(Rect(0, 0, 75, 75));
59 child->applyClip(&rect, Matrix4::identity());
66 rect.intersectWithRoot = true;
69 child->applyClip(&rect, Matrix
[all...]
/frameworks/native/services/surfaceflinger/
H A DLayerProtoHelper.cpp33 void LayerProtoHelper::writeToProto(const Rect& rect, RectProto* rectProto) { argument
34 rectProto->set_left(rect.left);
35 rectProto->set_top(rect.top);
36 rectProto->set_bottom(rect.bottom);
37 rectProto->set_right(rect.right);
40 void LayerProtoHelper::writeToProto(const FloatRect& rect, FloatRectProto* rectProto) { argument
41 rectProto->set_left(rect.left);
42 rectProto->set_top(rect.top);
43 rectProto->set_bottom(rect.bottom);
44 rectProto->set_right(rect
[all...]
H A DLayerProtoHelper.h31 static void writeToProto(const Rect& rect, RectProto* rectProto);
32 static void writeToProto(const FloatRect& rect, FloatRectProto* rectProto);
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/
H A DBoundsRule.java113 * @param rect Represents the current bounds.
116 public void calculateBounds(Rect rect, Rect result) { argument
118 result.left = rect.left;
120 result.left = doCalculate(rect.left, left, rect.width());
124 result.right = rect.right;
126 result.right = doCalculate(rect.left, right, rect.width());
130 result.top = rect.top;
132 result.top = doCalculate(rect
[all...]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java242 Rect rect = getVisibleBounds();
243 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2)
245 return getInteractionController().swipe(rect.centerX(),
246 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT,
270 Rect rect = getVisibleBounds();
271 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2)
273 return getInteractionController().swipe(rect.centerX(),
274 rect
[all...]
H A DUiScrollable.java421 Rect rect = new Rect();
422 node.getBoundsInScreen(rect);
432 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage());
434 downX = rect.centerX();
435 downY = rect.bottom - swipeAreaAdjust;
436 upX = rect.centerX();
437 upY = rect.top + swipeAreaAdjust;
439 int swipeAreaAdjust = (int)(rect.width() * getSwipeDeadZonePercentage());
442 downX = rect.right - swipeAreaAdjust;
443 downY = rect
[all...]
/frameworks/base/core/java/android/view/
H A DAppTransitionAnimationSpec.java19 public final Rect rect; field in class:AppTransitionAnimationSpec
21 public AppTransitionAnimationSpec(int taskId, GraphicBuffer buffer, Rect rect) { argument
23 this.rect = rect;
29 rect = in.readParcelable(null);
41 dest.writeParcelable(rect, 0 /* flags */);
58 return "{taskId: " + taskId + ", buffer: " + buffer + ", rect: " + rect + "}";
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DRequestRectangleVisible.java43 final Rect rect = new Rect();
61 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight());
62 childToMakeVisible.requestRectangleOnScreen(rect, true);
69 rect.set(0, 0, topBlob.getWidth(), topBlob.getHeight());
70 topBlob.requestRectangleOnScreen(rect, true);
77 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight());
78 childToMakeVisible.requestRectangleOnScreen(rect, true);
85 rect.set(0, 0, bottomBlob.getWidth(), bottomBlob.getHeight());
86 bottomBlob.requestRectangleOnScreen(rect, true);
/frameworks/support/heifwriter/src/main/java/androidx/heifwriter/
H A DEglRectBlt.java106 * Draws a viewport-filling rect, texturing it with the specified texture object and rect.
117 void setTexRect(Rect rect) { argument
118 mTexCoords[0] = rect.left / (float)mTexWidth;
119 mTexCoords[1] = 1.0f - rect.bottom / (float)mTexHeight;
120 mTexCoords[2] = rect.right / (float)mTexWidth;
121 mTexCoords[3] = 1.0f - rect.bottom / (float)mTexHeight;
122 mTexCoords[4] = rect.left / (float)mTexWidth;
123 mTexCoords[5] = 1.0f - rect.top / (float)mTexHeight;
124 mTexCoords[6] = rect
[all...]
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaProfileRenderer.cpp24 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); local
25 mCanvas->drawRect(rect, paint);
30 SkRect rect = SkRect::MakeLTRB(rects[index + 0], rects[index + 1], rects[index + 2], local
32 mCanvas->drawRect(rect, paint);
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListItemRequestRectAboveThinFirstItemTest.java53 // having the second item call requestRectangleOnScreen with a rect above
62 final Rect rect = new Rect();
63 second.getDrawingRect(rect);
64 rect.offset(0, -2 * second.getBottom());
66 getActivity().requestRectangleOnScreen(1, rect);
87 final Rect rect = new Rect();
88 secondToLast.getDrawingRect(rect);
89 rect.offset(0,
93 getActivity().requestRectangleOnScreen(secondToLastIndex, rect);
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DWindowAnimationSpecTest.java63 argThat(rect -> rect.equals(windowCrop)));
74 argThat(rect -> rect.equals(mStackBounds)));
87 argThat(rect -> rect.left == 20 && rect.top == 40 && rect.right == 30
88 && rect.bottom == 50));
99 argThat(rect
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DParamsUtils.java58 * @param size a non-{@code null} rect
62 * @throws NullPointerException if {@code rect} was {@code null}
64 public static Rect createRect(RectF rect) { argument
65 checkNotNull(rect, "rect must not be null");
68 rect.roundOut(r);
74 * Map the rectangle in {@code rect} with the transform in {@code transform} into
81 * @param rect a non-{@code null} rectangle
86 public static Rect mapRect(Matrix transform, Rect rect) { argument
88 checkNotNull(rect, "rec
105 createSize(Rect rect) argument
[all...]
/frameworks/native/services/surfaceflinger/tests/fakehwc/
H A DFakeComposerUtils.h31 inline ::std::ostream& operator<<(::std::ostream& os, const hwc_rect_t& rect) { argument
32 return os << "(" << rect.left << ","
33 << rect.top << ","
34 << rect.right << ","
35 << rect.bottom << ")";
38 inline ::std::ostream& operator<<(::std::ostream& os, const hwc_frect_t& rect) { argument
39 return os << "(" << rect.left << ","
40 << rect.top << ","
41 << rect.right << ","
42 << rect
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DTapExcludeRegionHolder.java51 final Rect rect = mTapExcludeRects.valueAt(i);
52 rect.intersect(boundingRegion);
53 region.union(rect);
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
H A DAppTransitionAnimationSpecCompat.java31 public AppTransitionAnimationSpecCompat(int taskId, Bitmap buffer, Rect rect) { argument
34 mRect = rect;

Completed in 759 milliseconds

1234567891011