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

12345

/frameworks/base/graphics/java/android/graphics/
H A DLargeBitmap.java54 * Decodes a rectangle region in the image specified by rect.
56 * @param rect The rectangle that specified the region to be decode.
62 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { argument
64 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight())
66 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top,
67 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.
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 DPath.java266 * Returns true if the path specifies a rectangle. If so, and if rect is
267 * not null, set rect to the bounds of the path. If the path does not
268 * specify a rectangle, return false and ignore rect.
270 * @param rect If not null, returns the bounds of the path if it specifies
274 public boolean isRect(RectF rect) { argument
275 return native_isRect(mNativePath, rect);
494 * @param rect The rectangle to add as a closed contour to the path
497 public void addRect(RectF rect, Direction dir) { argument
498 if (rect == null) {
499 throw new NullPointerException("need rect paramete
569 addRoundRect(RectF rect, float rx, float ry, Direction dir) argument
586 addRoundRect(RectF rect, float[] radii, Direction dir) argument
714 native_isRect(int nPath, RectF rect) argument
732 native_addRect(int nPath, RectF rect, int dir) argument
739 native_addRoundRect(int nPath, RectF rect, float rx, float ry, int dir) argument
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp299 Rectangle rect = parseRect(rectDesc); local
302 rectangle.push_back(rect);
370 Rectangle rect; local
384 rect.format = format->format;
387 rect.displayFrame = hwcTestParseHwcRect(in, error);
396 rect.sourceDim = HwcTestDim(rect.displayFrame.right
397 - rect.displayFrame.left,
398 rect.displayFrame.bottom
399 - rect
[all...]
H A DhwcTestLib.cpp182 hwc_rect rect; local
184 rect.left = rect.top = 0;
186 rect.right = this->_w;
187 rect.bottom = this->_h;
189 return rect;
193 string hwcTestRect2str(const struct hwc_rect& rect) argument
198 out << rect.left << ", ";
199 out << rect.top << ", ";
200 out << rect
210 struct hwc_rect rect; local
[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/uiautomator/core/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/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java37 canvas.drawOval(rect(), paint);
H A DArcShape.java48 canvas.drawArc(rect(), mStart, mSweep, true, paint);
H A DRectShape.java50 protected final RectF rect() { method in class:RectShape
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDirectoryView.java41 final Rect rect = new Rect();
42 background.getPadding(rect);
43 final InsetDrawable inset = new InsetDrawable(background, -rect.left, 0, -rect.right, 0);
/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/native/libs/ui/
H A DGraphicBuffer.cpp163 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) argument
165 if (rect.left < 0 || rect.right > this->width ||
166 rect.top < 0 || rect.bottom > this->height) {
168 rect.left, rect.top, rect.right, rect.bottom,
172 status_t res = getBufferMapper().lock(handle, usage, rect, vadd
183 lockYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_TextureView.cpp139 Rect rect; local
141 rect.left = GET_INT(dirtyRect, gRectClassInfo.left);
142 rect.top = GET_INT(dirtyRect, gRectClassInfo.top);
143 rect.right = GET_INT(dirtyRect, gRectClassInfo.right);
144 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom);
146 rect.set(Rect(0x3FFF, 0x3FFF));
150 int32_t status = native_window_lock(window.get(), &buffer, &rect);
174 clipRect.set(rect.left, rect.top, rect
[all...]
H A Dandroid_view_GraphicBuffer.cpp171 Rect rect; local
173 rect.left = GET_INT(dirtyRect, gRectClassInfo.left);
174 rect.top = GET_INT(dirtyRect, gRectClassInfo.top);
175 rect.right = GET_INT(dirtyRect, gRectClassInfo.right);
176 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom);
178 rect.set(Rect(buffer->getWidth(), buffer->getHeight()));
182 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits);
208 clipRect.set(rect.left, rect.top, rect
[all...]
/frameworks/native/include/media/editor/
H A DII420ColorConverter.h22 #include <android/rect.h>
/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/core/java/android/text/style/
H A DDynamicDrawableSpan.java81 Rect rect = d.getBounds();
84 fm.ascent = -rect.bottom;
91 return rect.right;
/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_;

Completed in 432 milliseconds

12345