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

123

/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DRectShape.java42 final RectF rect = rect();
43 outline.setRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
44 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
55 protected final RectF rect() { method in class:RectShape
/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/packages/SystemUI/src/com/android/systemui/statusbar/
H A DExpandableOutlineView.java64 protected void setOutlineRect(RectF rect) { argument
65 if (rect != null) {
66 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
/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/av/media/libeffects/loudness/dsp/core/
H A Ddynamic_range_compression.cpp84 const float rect = std::max(overshoot, 0.0f); local
86 const float cv = rect * slope_;
113 const float rect = std::max(overshoot, 0.0f); local
115 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.
182 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument
185 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth()
186 || rect.top >= getHeight())
188 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top,
189 rect
[all...]
H A DOutline.java84 * or round rect support clipping.
139 * Sets the Outline to the rounded rect defined by the input rect, and
149 public void setRect(@NonNull Rect rect) { argument
150 setRect(rect.left, rect.top, rect.right, rect.bottom);
154 * Sets the Outline to the rounded rect defined by the input rect, an
173 setRoundRect(@onNull Rect rect, float radius) argument
201 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/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DSpaceNode.java34 public void onSpaceNodeMeasured(SpaceNode node, Rect rect); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewTransform.java35 public Rect rect = new Rect(); field in class:TaskViewTransform
49 rect.set(o.rect);
61 rect.setEmpty();
147 " scale: " + scale + " alpha: " + alpha + " visible: " + visible + " rect: " + rect +
/frameworks/av/media/libstagefright/yuv/
H A DYUVCanvas.cpp42 void YUVCanvas::FillYUVRectangle(const Rect& rect, argument
44 for (int32_t y = rect.top; y < rect.bottom; ++y) {
45 for (int32_t x = rect.left; x < rect.right; ++x) {
/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/core/java/android/view/
H A DFocusFinder.java119 // fill in interesting rect from focused
125 // make up a rect at top left or bottom right of root
271 * direction from a source rect? This is the core routine that determines
314 * exclusively in the beam of the source rect.
365 * Includes an edge case for an empty rect (which is used in some cases when
479 * @param source The source rect.
480 * @param dest The destination rect.
655 private void getRect(View view, Rect rect) { argument
656 view.getDrawingRect(rect);
657 mRoot.offsetDescendantRectToMyCoords(view, rect);
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_GraphicBuffer.cpp169 Rect rect; local
171 rect.left = GET_INT(dirtyRect, gRectClassInfo.left);
172 rect.top = GET_INT(dirtyRect, gRectClassInfo.top);
173 rect.right = GET_INT(dirtyRect, gRectClassInfo.right);
174 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom);
176 rect.set(Rect(buffer->getWidth(), buffer->getHeight()));
180 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits);
206 clipRect.set(rect.left, rect.top, rect
[all...]
H A Dandroid_view_TextureView.cpp145 Rect rect; local
147 rect.left = GET_INT(dirtyRect, gRectClassInfo.left);
148 rect.top = GET_INT(dirtyRect, gRectClassInfo.top);
149 rect.right = GET_INT(dirtyRect, gRectClassInfo.right);
150 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom);
152 rect.set(Rect(0x3FFF, 0x3FFF));
156 int32_t status = native_window_lock(window.get(), &buffer, &rect);
174 clipRect.set(rect.left, rect.top, rect
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DInternalSelectionView.java156 // draw background rect
160 // draw forground rect
196 public void getRectForRow(Rect rect, int row) { argument
199 rect.set(mPaddingLeft,
255 // set the row that is closest to the rect
/frameworks/base/libs/hwui/
H A DDamageAccumulator.cpp40 // When this frame is pop'd, this rect is mapped through the above transform
167 SkRect* rect = &frame->pendingDirty; local
170 mapRect(frame->renderNode->properties(), *rect, rect);
172 mapRect(frame->matrix4, *rect, rect);
223 // Root node never has a transform, so this is the fully mapped dirty rect
H A DRect.h74 inline Rect(const SkRect& rect): argument
75 left(rect.fLeft),
76 top(rect.fTop),
77 right(rect.fRight),
78 bottom(rect.fBottom) {
200 * This function should be used whenever estimating the damage rect of geometry already mapped
221 * with top left at (0.5, 0.5)) will err on the side of a larger damage rect.
H A DStatefulBaseRenderer.cpp204 // TODO: consider storing this rect separately, so that this can't be replaced with clip ops
213 const Rect& rect, float radius, bool highPriority) {
214 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority);
249 // clip is required if geometry intersects clip rect
254 // round rect clip is required if RR clip exists, and geometry intersects its corners
265 * Makes the decision conservatively, by rounding out the mapped rect before comparing with the
212 setClippingRoundRect(LinearAllocator& allocator, const Rect& rect, float radius, bool highPriority) argument
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputWindowHandle.cpp135 const SkIRect& rect = it.rect(); local
136 mInfo->addTouchableRegion(Rect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom));
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java57 * @param rect a RectF instance.
60 public static Quad fromRect(RectF rect) { argument
61 return new Quad(new PointF(rect.left, rect.top),
62 new PointF(rect.right, rect.top),
63 new PointF(rect.left, rect.bottom),
64 new PointF(rect.right, rect
112 fromRotatedRect(RectF rect, float angle) argument
125 fromTransformedRect(RectF rect, Matrix matrix) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java329 /*package*/ static boolean nativeGetBounds(long native_region, Rect rect) { argument
337 rect.left = rect.top = rect.right = rect.bottom = 0;
341 rect.left = bounds.x;
342 rect.top = bounds.y;
343 rect.right = bounds.x + bounds.width;
344 rect.bottom = bounds.y + bounds.height;
389 /*package*/ static boolean nativeOp(long native_dst, Rect rect, lon argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeWindow.java50 public void resized(Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5, boolean b, argument

Completed in 355 milliseconds

123