Searched refs:rect (Results 1 - 25 of 130) sorted by last modified time

123456

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGridLayoutManager.java2019 public boolean requestChildRectangleOnScreen(RecyclerView parent, View view, Rect rect, argument
2021 if (DEBUG) Log.v(getTag(), "requestChildRectangleOnScreen " + view + " " + rect);
/frameworks/support/v4/java/android/support/v4/widget/
H A DDrawerLayout.java1882 final Rect rect = mTmpRect;
1884 src.getBoundsInParent(rect);
1885 dest.setBoundsInParent(rect);
1887 src.getBoundsInScreen(rect);
1888 dest.setBoundsInScreen(rect);
H A DSlidingPaneLayout.java1597 final Rect rect = mTmpRect;
1599 src.getBoundsInParent(rect);
1600 dest.setBoundsInParent(rect);
1602 src.getBoundsInScreen(rect);
1603 dest.setBoundsInScreen(rect);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DRecyclerView.java1326 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) { argument
1327 return mLayout.requestChildRectangleOnScreen(this, child, rect, immediate);
5734 * to bring the given rect into view, within the padded area of the RecyclerView.</p>
5737 * @param rect The rectangle in the child's coordinates the child
5743 public boolean requestChildRectangleOnScreen(RecyclerView parent, View child, Rect rect, argument
5749 final int childLeft = child.getLeft() + rect.left;
5750 final int childTop = child.getTop() + rect.top;
5751 final int childRight = childLeft + rect.right;
5752 final int childBottom = childTop + rect.bottom;
5760 // of a large rect int
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DStaggeredGridLayoutManagerTest.java612 for (Rect rect : itemRectMap.values()) {
613 usedLayoutBounds.union(rect);
1175 // offset rect
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/action/
H A DScrollToAction.java59 Rect rect = new Rect();
60 view.getDrawingRect(rect);
61 if (!view.requestRectangleOnScreen(rect, true /* immediate */)) {
/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/webview/chromium/java/com/android/webview/chromium/
H A DWebViewChromium.java1979 public boolean requestChildRectangleOnScreen(final View child, final Rect rect, argument
1986 return requestChildRectangleOnScreen(child, rect, immediate);
1991 return mAwContents.requestChildRectangleOnScreen(child, rect, immediate);
/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/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java2991 Rect rect = mChip.getBounds();
2992 shadowSize.set(rect.width(), rect.height());
2993 shadowTouchPoint.set(rect.centerX(), rect.centerY());
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DMonthView.java512 * @param startX The left boundary of the day number rect
513 * @param stopX The right boundary of the day number rect
514 * @param startY The top boundary of the day number rect
515 * @param stopY The bottom boundary of the day number rect
772 * @param rect The rectangle in which to store the bounds
774 protected void getItemBounds(int day, Rect rect) { argument
785 rect.set(x, y, (x + cellWidth), (y + cellHeight));
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java290 Rect rectangle = source.rect;
572 // Round the rect corners towards the nearest integer values
/frameworks/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java2714 Rect rect = new Rect(0, 9, mWidth, 11);
2715 canvas.drawRect(rect, getPaint());
/frameworks/minikin/include/minikin/
H A DLayout.h101 void getBounds(MinikinRect* rect);
/frameworks/native/include/android/
H A Dnative_activity.h211 void (*onContentRectChanged)(ANativeActivity* activity, const ARect* rect);
H A Dnative_window.h20 #include <android/rect.h>
/frameworks/native/include/gui/
H A DSurface.h170 virtual int setCrop(Rect const* rect);
/frameworks/native/include/media/editor/
H A DII420ColorConverter.h22 #include <android/rect.h>
/frameworks/native/include/private/ui/
H A DRegionHelper.h64 virtual void operator()(const RECT& rect) = 0;
/frameworks/native/include/ui/
H A DGraphicBuffer.h98 status_t lock(uint32_t usage, const Rect& rect, void** vaddr);
101 status_t lockYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr);
104 status_t lockAsync(uint32_t usage, const Rect& rect, void** vaddr, int fenceFd);
106 status_t lockAsyncYCbCr(uint32_t usage, const Rect& rect, android_ycbcr *ycbcr, int fenceFd);
H A DRect.h24 #include <android/rect.h>
70 // an empty rect has a zero width or height, or is invalid
99 // the following 4 functions return the 4 corners of the rect as Point
/frameworks/native/libs/gui/
H A DSurface.cpp474 android_native_rect_t const* rect = va_arg(args, android_native_rect_t*); local
475 return setCrop(reinterpret_cast<Rect const*>(rect));
606 int Surface::setCrop(Rect const* rect) argument
611 if (rect == NULL || rect->isEmpty()) {
614 realRect = *rect;
617 ALOGV("Surface::setCrop rect=[%d %d %d %d]",
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp448 const android_native_rect_t& rect);
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

Completed in 589 milliseconds

123456