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

123456

/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java36 canvas.drawOval(rect(), paint);
41 final RectF rect = rect();
42 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
43 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
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
H A DRoundRectShape.java42 * Specifies an outer (round)rect and an optional inner (round)rect.
50 * rect to each side of the outer rect.
98 final RectF rect = rect();
99 outline.setRoundRect((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
100 (int) Math.floor(rect.right), (int) Math.floor(rect
[all...]
H A DArcShape.java47 canvas.drawArc(rect(), mStart, mSweep, true, paint);
/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 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...]
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...]
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp298 Rectangle rect = parseRect(rectDesc); local
301 rectangle.push_back(rect);
369 Rectangle rect; local
383 rect.format = format->format;
386 rect.displayFrame = hwcTestParseHwcRect(in, error);
395 rect.sourceDim = HwcTestDim(rect.displayFrame.right
396 - rect.displayFrame.left,
397 rect.displayFrame.bottom
398 - rect
[all...]
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java239 Rect rect = getVisibleBounds();
240 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2)
242 return getInteractionController().swipe(rect.centerX(),
243 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT,
267 Rect rect = getVisibleBounds();
268 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2)
270 return getInteractionController().swipe(rect.centerX(),
271 rect
[all...]
H A DUiScrollable.java418 Rect rect = new Rect();
419 node.getBoundsInScreen(rect);
429 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage());
431 downX = rect.centerX();
432 downY = rect.bottom - swipeAreaAdjust;
433 upX = rect.centerX();
434 upY = rect.top + swipeAreaAdjust;
436 int swipeAreaAdjust = (int)(rect.width() * getSwipeDeadZonePercentage());
439 downX = rect.right - swipeAreaAdjust;
440 downY = rect
[all...]
/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);
H A DRequestRectangleVisibleWithInternalScroll.java65 // the rect we want to make visible is offset to match
67 Rect rect = new Rect();
68 rect.set(0, 0, 0, mTextBlob.getHeight());
69 rect.offset(0, mTextBlob.getScrollY());
70 mTextBlob.requestRectangleOnScreen(rect);
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListItemRequestRectAboveThinFirstItemTest.java51 // having the second item call requestRectangleOnScreen with a rect above
60 final Rect rect = new Rect();
61 second.getDrawingRect(rect);
62 rect.offset(0, -2 * second.getBottom());
64 getActivity().requestRectangleOnScreen(1, rect);
85 final Rect rect = new Rect();
86 secondToLast.getDrawingRect(rect);
87 rect.offset(0,
91 getActivity().requestRectangleOnScreen(secondToLastIndex, rect);
/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/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/libs/ui/
H A DGraphicBuffer.cpp172 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) argument
174 if (rect.left < 0 || rect.right > this->width ||
175 rect.top < 0 || rect.bottom > this->height) {
177 rect.left, rect.top, rect.right, rect.bottom,
181 status_t res = getBufferMapper().lock(handle, usage, rect, vadd
192 lockYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr) argument
219 lockAsync(uint32_t usage, const Rect& rect, void** vaddr, int fenceFd) argument
239 lockAsyncYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr, int fenceFd) argument
[all...]
/frameworks/base/cmds/wm/src/com/android/commands/wm/
H A DWm.java173 Rect rect = new Rect();
176 rect.set(0, 0, 0, 0);
185 rect.left = Integer.parseInt(matcher.group(1));
186 rect.top = Integer.parseInt(matcher.group(2));
187 rect.right = Integer.parseInt(matcher.group(3));
188 rect.bottom = Integer.parseInt(matcher.group(4));
192 mWm.setOverscan(Display.DEFAULT_DISPLAY, rect.left, rect.top, rect.right, rect
[all...]
/frameworks/base/core/jni/
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...]
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...]
/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
H A DFillBuffer.h30 const android_native_rect_t& rect);
/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/native/include/media/editor/
H A DII420ColorConverter.h22 #include <android/rect.h>
/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);

Completed in 2490 milliseconds

123456