Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 25 of 98) sorted by relevance

1234

/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp299 Rectangle rect = parseRect(rectDesc); in main() local
302 rectangle.push_back(rect); in main()
370 Rectangle rect; in parseRect() local
384 rect.format = format->format; in parseRect()
387 rect.displayFrame = hwcTestParseHwcRect(in, error); in parseRect()
396 rect.sourceDim = HwcTestDim(rect.displayFrame.right in parseRect()
397 - rect.displayFrame.left, in parseRect()
398 rect.displayFrame.bottom in parseRect()
399 - rect.displayFrame.top); in parseRect()
400 rect.sourceCrop.left = 0; in parseRect()
[all …]
DhwcTestLib.cpp182 hwc_rect rect; in operator hwc_rect() local
184 rect.left = rect.top = 0; in operator hwc_rect()
186 rect.right = this->_w; in operator hwc_rect()
187 rect.bottom = this->_h; in operator hwc_rect()
189 return rect; in operator hwc_rect()
193 string hwcTestRect2str(const struct hwc_rect& rect) in hwcTestRect2str() argument
198 out << rect.left << ", "; in hwcTestRect2str()
199 out << rect.top << ", "; in hwcTestRect2str()
200 out << rect.right << ", "; in hwcTestRect2str()
201 out << rect.bottom; in hwcTestRect2str()
[all …]
DhwcCommit.cpp453 Rectangle rect(format->format, startDim); in main() local
455 rectList.push_back(rect); in main()
652 Rectangle rect(format, startDim, startDim); in maxOverlays() local
653 rect.displayFrame.left = x; in maxOverlays()
654 rect.displayFrame.top = y; in maxOverlays()
655 rect.displayFrame.right = x + startDim.width(); in maxOverlays()
656 rect.displayFrame.bottom = y + startDim.height(); in maxOverlays()
658 rectList.push_back(rect); in maxOverlays()
678 Rectangle rect(format, startDim); in supportedTransforms() local
684 rect.transform = id; in supportedTransforms()
[all …]
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java236 Rect rect = getVisibleBounds(); in swipeUp() local
237 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) in swipeUp()
239 return getInteractionController().swipe(rect.centerX(), in swipeUp()
240 rect.bottom - SWIPE_MARGIN_LIMIT, rect.centerX(), rect.top + SWIPE_MARGIN_LIMIT, in swipeUp()
260 Rect rect = getVisibleBounds(); in swipeDown() local
261 if(rect.height() <= SWIPE_MARGIN_LIMIT * 2) in swipeDown()
263 return getInteractionController().swipe(rect.centerX(), in swipeDown()
264 rect.top + SWIPE_MARGIN_LIMIT, rect.centerX(), in swipeDown()
265 rect.bottom - SWIPE_MARGIN_LIMIT, steps); in swipeDown()
284 Rect rect = getVisibleBounds(); in swipeLeft() local
[all …]
DUiScrollable.java393 Rect rect = new Rect(); in scrollForward() local
394 node.getBoundsInScreen(rect); in scrollForward()
404 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); in scrollForward()
406 downX = rect.centerX(); in scrollForward()
407 downY = rect.bottom - swipeAreaAdjust; in scrollForward()
408 upX = rect.centerX(); in scrollForward()
409 upY = rect.top + swipeAreaAdjust; in scrollForward()
411 int swipeAreaAdjust = (int)(rect.width() * getSwipeDeadZonePercentage()); in scrollForward()
414 downX = rect.right - swipeAreaAdjust; in scrollForward()
415 downY = rect.centerY(); in scrollForward()
[all …]
/frameworks/base/graphics/java/android/graphics/
DLargeBitmap.java62 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { in decodeRegion() argument
64 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight()) in decodeRegion()
66 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top, in decodeRegion()
67 rect.right - rect.left, rect.bottom - rect.top, options); in decodeRegion()
DYuvImage.java214 private void adjustRectangle(Rect rect) { in adjustRectangle() argument
215 int width = rect.width(); in adjustRectangle()
216 int height = rect.height(); in adjustRectangle()
221 rect.left &= ~1; in adjustRectangle()
222 rect.top &= ~1; in adjustRectangle()
223 rect.right = rect.left + width; in adjustRectangle()
224 rect.bottom = rect.top + height; in adjustRectangle()
230 rect.left &= ~1; in adjustRectangle()
231 rect.right = rect.left + width; in adjustRectangle()
DBitmapRegionDecoder.java184 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { in decodeRegion() argument
187 if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth() in decodeRegion()
188 || rect.top >= getHeight()) in decodeRegion()
190 return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top, in decodeRegion()
191 rect.right - rect.left, rect.bottom - rect.top, options); in decodeRegion()
DPath.java185 public boolean isRect(RectF rect) { in isRect() argument
186 return native_isRect(mNativePath, rect); in isRect()
408 public void addRect(RectF rect, Direction dir) { in addRect() argument
409 if (rect == null) { in addRect()
412 detectSimplePath(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
413 native_addRect(mNativePath, rect, dir.nativeInt); in addRect()
480 public void addRoundRect(RectF rect, float rx, float ry, Direction dir) { in addRoundRect() argument
481 if (rect == null) { in addRoundRect()
485 native_addRoundRect(mNativePath, rect, rx, ry, dir.nativeInt); in addRoundRect()
497 public void addRoundRect(RectF rect, float[] radii, Direction dir) { in addRoundRect() argument
[all …]
DCanvas.java552 public boolean clipRect(RectF rect, Region.Op op) { in clipRect() argument
553 return native_clipRect(mNativeCanvas, rect.left, rect.top, rect.right, rect.bottom, in clipRect()
565 public boolean clipRect(Rect rect, Region.Op op) { in clipRect() argument
566 return native_clipRect(mNativeCanvas, rect.left, rect.top, rect.right, rect.bottom, in clipRect()
577 public native boolean clipRect(RectF rect); in clipRect() argument
586 public native boolean clipRect(Rect rect); in clipRect() argument
735 public boolean quickReject(RectF rect, EdgeType type) { in quickReject() argument
736 return native_quickReject(mNativeCanvas, rect); in quickReject()
939 public void drawRect(RectF rect, Paint paint) { in drawRect() argument
940 native_drawRect(mNativeCanvas, rect, paint.mNativePaint); in drawRect()
[all …]
/frameworks/native/libs/ui/
DGraphicBuffer.cpp164 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) in lock() argument
166 if (rect.left < 0 || rect.right > this->width || in lock()
167 rect.top < 0 || rect.bottom > this->height) { in lock()
169 rect.left, rect.top, rect.right, rect.bottom, in lock()
173 status_t res = getBufferMapper().lock(handle, usage, rect, vaddr); in lock()
184 status_t GraphicBuffer::lockYCbCr(uint32_t usage, const Rect& rect, in lockYCbCr() argument
187 if (rect.left < 0 || rect.right > this->width || in lockYCbCr()
188 rect.top < 0 || rect.bottom > this->height) { in lockYCbCr()
190 rect.left, rect.top, rect.right, rect.bottom, in lockYCbCr()
194 status_t res = getBufferMapper().lockYCbCr(handle, usage, rect, ycbcr); in lockYCbCr()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DRequestRectangleVisible.java43 final Rect rect = new Rect(); in onCreate() local
61 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); in onCreate()
62 childToMakeVisible.requestRectangleOnScreen(rect, true); in onCreate()
69 rect.set(0, 0, topBlob.getWidth(), topBlob.getHeight()); in onCreate()
70 topBlob.requestRectangleOnScreen(rect, true); in onCreate()
77 rect.set(0, 0, childToMakeVisible.getLeft(), childToMakeVisible.getHeight()); in onCreate()
78 childToMakeVisible.requestRectangleOnScreen(rect, true); in onCreate()
85 rect.set(0, 0, bottomBlob.getWidth(), bottomBlob.getHeight()); in onCreate()
86 bottomBlob.requestRectangleOnScreen(rect, true); in onCreate()
DRequestRectangleVisibleWithInternalScroll.java67 Rect rect = new Rect(); in onCreate()
68 rect.set(0, 0, 0, mTextBlob.getHeight()); in onCreate()
69 rect.offset(0, mTextBlob.getScrollY()); in onCreate()
70 mTextBlob.requestRectangleOnScreen(rect); in onCreate()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListItemRequestRectAboveThinFirstItemTest.java60 final Rect rect = new Rect(); in testSecondItemRequestRectAboveTop() local
61 second.getDrawingRect(rect); in testSecondItemRequestRectAboveTop()
62 rect.offset(0, -2 * second.getBottom()); in testSecondItemRequestRectAboveTop()
64 getActivity().requestRectangleOnScreen(1, rect); in testSecondItemRequestRectAboveTop()
85 final Rect rect = new Rect(); in testSecondToLastItemRequestRectBelowBottom() local
86 secondToLast.getDrawingRect(rect); in testSecondToLastItemRequestRectBelowBottom()
87 rect.offset(0, in testSecondToLastItemRequestRectBelowBottom()
91 getActivity().requestRectangleOnScreen(secondToLastIndex, rect); in testSecondToLastItemRequestRectBelowBottom()
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp146 Rect rect; in android_view_TextureView_lockCanvas() local
148 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); in android_view_TextureView_lockCanvas()
149 rect.top = GET_INT(dirtyRect, gRectClassInfo.top); in android_view_TextureView_lockCanvas()
150 rect.right = GET_INT(dirtyRect, gRectClassInfo.right); in android_view_TextureView_lockCanvas()
151 rect.bottom = GET_INT(dirtyRect, gRectClassInfo.bottom); in android_view_TextureView_lockCanvas()
153 rect.set(Rect(0x3FFF, 0x3FFF)); in android_view_TextureView_lockCanvas()
157 native_window_lock(window.get(), &buffer, &rect); in android_view_TextureView_lockCanvas()
180 clipRect.set(rect.left, rect.top, rect.right, rect.bottom); in android_view_TextureView_lockCanvas()
185 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom)); in android_view_TextureView_lockCanvas()
/frameworks/base/cmds/wm/src/com/android/commands/wm/
DWm.java173 Rect rect = new Rect(); in runDisplayOverscan() local
176 rect.set(0, 0, 0, 0); in runDisplayOverscan()
185 rect.left = Integer.parseInt(matcher.group(1)); in runDisplayOverscan()
186 rect.top = Integer.parseInt(matcher.group(2)); in runDisplayOverscan()
187 rect.right = Integer.parseInt(matcher.group(3)); in runDisplayOverscan()
188 rect.bottom = Integer.parseInt(matcher.group(4)); in runDisplayOverscan()
192 mWm.setOverscan(Display.DEFAULT_DISPLAY, rect.left, rect.top, rect.right, rect.bottom); in runDisplayOverscan()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPath_Delegate.java175 /*package*/ static boolean native_isRect(int nPath, RectF rect) { in native_isRect() argument
184 if (rect != null) { in native_isRect()
185 pathDelegate.fillBounds(rect); in native_isRect()
314 /*package*/ static void native_addRect(int nPath, RectF rect, int dir) { in native_addRect() argument
320 pathDelegate.addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in native_addRect()
373 int nPath, RectF rect, float rx, float ry, int dir) { in native_addRoundRect() argument
381 rect.left, rect.top, rect.width(), rect.height(), rx * 2, ry * 2), false); in native_addRoundRect()
385 /*package*/ static void native_addRoundRect(int nPath, RectF rect, float[] radii, int dir) { in native_addRoundRect() argument
388 native_addRoundRect(nPath, rect, radii[0], radii[1], dir); in native_addRoundRect()
558 Rectangle2D rect = mPath.getBounds2D(); in fillBounds() local
[all …]
DCanvas_Delegate.java195 /*package*/ static boolean clipRect(Canvas thisCanvas, RectF rect) { in clipRect() argument
196 return clipRect(thisCanvas, rect.left, rect.top, rect.right, rect.bottom); in clipRect()
200 /*package*/ static boolean clipRect(Canvas thisCanvas, Rect rect) { in clipRect() argument
201 return clipRect(thisCanvas, (float) rect.left, (float) rect.top, in clipRect()
202 (float) rect.right, (float) rect.bottom); in clipRect()
543 Rectangle rect = canvasDelegate.getSnapshot().getClip().getBounds(); in native_getClipBounds() local
544 if (rect != null && rect.isEmpty() == false) { in native_getClipBounds()
545 bounds.left = rect.x; in native_getClipBounds()
546 bounds.top = rect.y; in native_getClipBounds()
547 bounds.right = rect.x + rect.width; in native_getClipBounds()
[all …]
DRegion_Delegate.java330 /*package*/ static boolean nativeGetBounds(int native_region, Rect rect) { in nativeGetBounds() argument
338 rect.left = rect.top = rect.right = rect.bottom = 0; in nativeGetBounds()
342 rect.left = bounds.x; in nativeGetBounds()
343 rect.top = bounds.y; in nativeGetBounds()
344 rect.right = bounds.x + bounds.width; in nativeGetBounds()
345 rect.bottom = bounds.y + bounds.height; in nativeGetBounds()
390 /*package*/ static boolean nativeOp(int native_dst, Rect rect, int native_region, int op) { in nativeOp() argument
397 new Rectangle2D.Float(rect.left, rect.top, rect.width(), rect.height()), op); in nativeOp()
/frameworks/av/media/libstagefright/yuv/
DYUVCanvas.cpp42 void YUVCanvas::FillYUVRectangle(const Rect& rect, in FillYUVRectangle() argument
44 for (int32_t y = rect.top; y < rect.bottom; ++y) { in FillYUVRectangle()
45 for (int32_t x = rect.left; x < rect.right; ++x) { in FillYUVRectangle()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGLFrame.java281 public void setViewport(Rect rect) { in setViewport() argument
283 setNativeViewport(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top); in setViewport()
/frameworks/base/core/java/android/view/
DGLES20Canvas.java459 public boolean clipRect(Rect rect) { in clipRect() argument
460 return nClipRect(mRenderer, rect.left, rect.top, rect.right, rect.bottom, in clipRect()
465 public boolean clipRect(Rect rect, Region.Op op) { in clipRect() argument
466 return nClipRect(mRenderer, rect.left, rect.top, rect.right, rect.bottom, op.nativeInt); in clipRect()
470 public boolean clipRect(RectF rect) { in clipRect() argument
471 return nClipRect(mRenderer, rect.left, rect.top, rect.right, rect.bottom, in clipRect()
476 public boolean clipRect(RectF rect, Region.Op op) { in clipRect() argument
477 return nClipRect(mRenderer, rect.left, rect.top, rect.right, rect.bottom, op.nativeInt); in clipRect()
515 public boolean quickReject(RectF rect, EdgeType type) { in quickReject() argument
516 return nQuickReject(mRenderer, rect.left, rect.top, rect.right, rect.bottom); in quickReject()
[all …]
/frameworks/base/core/java/android/hardware/
DCamera.java1387 public Rect rect; field in Camera.Face
1601 public Area(Rect rect, int weight) { in Area() argument
1602 this.rect = rect; in Area()
1618 if (rect == null) { in equals()
1619 if (a.rect != null) return false; in equals()
1621 if (!rect.equals(a.rect)) return false; in equals()
1636 public Rect rect; field in Camera.Area
2101 Rect rect = area.rect; in set() local
2103 buffer.append(rect.left); in set()
2105 buffer.append(rect.top); in set()
[all …]
/frameworks/base/core/java/android/text/style/
DDynamicDrawableSpan.java81 Rect rect = d.getBounds(); in getSize() local
84 fm.ascent = -rect.bottom; in getSize()
91 return rect.right; in getSize()
/frameworks/base/core/tests/coretests/src/android/view/
DFocusFinderTest.java100 final Rect rect = new Rect(0, 0, 20, 20); in testSameRectBeamsOverlap() local
102 assertBeamsOverlap(View.FOCUS_LEFT, rect, rect); in testSameRectBeamsOverlap()
103 assertBeamsOverlap(View.FOCUS_RIGHT, rect, rect); in testSameRectBeamsOverlap()
104 assertBeamsOverlap(View.FOCUS_UP, rect, rect); in testSameRectBeamsOverlap()
105 assertBeamsOverlap(View.FOCUS_DOWN, rect, rect); in testSameRectBeamsOverlap()

1234