Searched defs:rect (Results 1 - 25 of 107) sorted by relevance

12345

/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/graphics/java/android/graphics/drawable/shapes/
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/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);
H A DAnimatedDrawables.h47 SkRect rect = SkRect::MakeLTRB(mLeft->value, mTop->value, mRight->value, mBottom->value); variable
48 canvas->drawRoundRect(rect, mRx->value, mRy->value, mPaint->value);
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
H A Dparcelable_composer_layer.cpp94 for (auto& rect: layer_.visible_regions) {
95 ret = parcel->writeInt32(rect.left);
96 ret = parcel->writeInt32(rect.top);
97 ret = parcel->writeInt32(rect.right);
98 ret = parcel->writeInt32(rect.bottom);
105 for (auto& rect: layer_.damaged_regions) {
106 ret = parcel->writeInt32(rect.left);
107 ret = parcel->writeInt32(rect.top);
108 ret = parcel->writeInt32(rect.right);
109 ret = parcel->writeInt32(rect
200 hwc_rect_t rect; local
220 hwc_rect_t rect; local
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DRectUtils.java47 // Then translate so that the upper left corner of the rotated full rect is at (0,0).
59 public static void rotateRect(final int degrees, final int px, final int py, final Rect rect) { argument
60 final RectF rectF = new RectF(rect);
64 rect.set((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom);
/frameworks/base/core/java/com/android/internal/widget/
H A DNotificationExpandButton.java60 private void extendRectToMinTouchSize(Rect rect) { argument
62 rect.left = rect.centerX() - touchTargetSize / 2;
63 rect.right = rect.left + touchTargetSize;
64 rect.top = rect.centerY() - touchTargetSize / 2;
65 rect.bottom = rect.top + touchTargetSize;
/frameworks/native/libs/gui/tests/
H A DFillBuffer.cpp55 const android_native_rect_t& rect) {
64 bool inside = rect.left <= x && x < rect.right &&
65 rect.top <= y && y < rect.bottom;
68 bool inside = rect.left <= 2*x && 2*x < rect.right &&
69 rect.top <= 2*y && 2*y < rect.bottom;
54 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument
/frameworks/support/design/src/android/support/design/widget/
H A DViewGroupUtils.java34 * will be the bounding rect of the real transformed rect.
36 * @param descendant view defining the original coordinate system of rect
37 * @param rect (in/out) the rect to offset from descendant to this view's coordinate system
39 static void offsetDescendantRect(ViewGroup parent, View descendant, Rect rect) { argument
55 rectF.set(rect);
57 rect.set((int) (rectF.left + 0.5f), (int) (rectF.top + 0.5f),
62 * Retrieve the transformed bounding rect of an arbitrary descendant view.
66 * @param out rect t
[all...]
/frameworks/av/media/libeffects/loudness/dsp/core/
H A Ddynamic_range_compression.cpp83 const float rect = std::max(overshoot, 0.0f); local
85 const float cv = rect * slope_;
112 const float rect = std::max(overshoot, 0.0f); local
114 const float cv = rect * slope_;
/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/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 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...]
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...]
/frameworks/minikin/tests/unittest/
H A DLayoutTest.cpp68 MinikinRect rect; local
83 layout.getBounds(&rect);
84 EXPECT_EQ(0.0f, rect.mLeft);
85 EXPECT_EQ(0.0f, rect.mTop);
86 EXPECT_EQ(70.0f, rect.mRight);
87 EXPECT_EQ(10.0f, rect.mBottom);
102 layout.getBounds(&rect);
103 EXPECT_EQ(0.0f, rect.mLeft);
104 EXPECT_EQ(0.0f, rect.mTop);
105 EXPECT_EQ(90.0f, rect
157 MinikinRect rect; local
256 MinikinRect rect; local
[all...]
/frameworks/base/core/java/android/hardware/camera2/params/
H A DMeteringRectangle.java128 * @param rect a non-{@code null} rectangle with all x,y,w,h dimensions >= 0
134 public MeteringRectangle(Rect rect, int meteringWeight) { argument
135 checkNotNull(rect, "rect must not be null");
137 mX = checkArgumentNonnegative(rect.left, "rect.left must be nonnegative");
138 mY = checkArgumentNonnegative(rect.top, "rect.top must be nonnegative");
139 mWidth = checkArgumentNonnegative(rect.width(), "rect
[all...]
/frameworks/base/libs/hwui/
H A DCanvasState.h136 const Rect& rect, float radius, bool highPriority = true) {
137 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority);
135 setClippingRoundRect(LinearAllocator& allocator, const Rect& rect, float radius, bool highPriority = true) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewTransform.java62 // This is a window-space rect used for positioning the task in the stack and freeform workspace
63 public RectF rect = new RectF(); field in class:TaskViewTransform
75 rect.set(tv.getLeft(), tv.getTop(), tv.getRight(), tv.getBottom());
88 rect.set(other.rect);
100 && rect.equals(other.rect);
113 rect.setEmpty();
130 return ((int) rect.left != v.getLeft()) || ((int) rect
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DExpandableOutlineView.java87 protected void setOutlineRect(RectF rect) { argument
88 if (rect != null) {
89 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DWindowFrameTests.java108 public void assertRect(Rect rect, int left, int top, int right, int bottom) { argument
109 assertEquals(left, rect.left);
110 assertEquals(top, rect.top);
111 assertEquals(right, rect.right);
112 assertEquals(bottom, rect.bottom);
/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp73 static inline Gralloc2::IMapper::Rect asGralloc2Rect(const Rect& rect) { argument
75 outRect.left = rect.left;
76 outRect.top = rect.top;
77 outRect.width = rect.width();
78 outRect.height = rect.height();
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestLayers.cpp275 const auto rect = aboveOpaqueLayers.begin(); local
276 if (rect->left != 0 || rect->top != 0 || rect->right != mDisplayArea.width
277 || rect->bottom != mDisplayArea.height)
/frameworks/support/design/lollipop/android/support/design/widget/
H A DFloatingActionButtonLollipop.java200 void getPadding(Rect rect) { argument
208 rect.set(hPadding, vPadding, hPadding, vPadding);
210 rect.set(0, 0, 0, 0);
/frameworks/support/design/tests/src/android/support/design/widget/
H A DCoordinatorLayoutTest.java439 public boolean getInsetDodgeRect(CoordinatorLayout parent, View child, Rect rect) {
440 // Any non-empty rect is fine here.
441 rect.set(0, 0, 10, 10);
737 public boolean getInsetDodgeRect(CoordinatorLayout parent, View child, Rect rect) { argument
738 rect.set(child.getLeft(), child.getTop(), child.getRight(), child.getBottom());

Completed in 3056 milliseconds

12345