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

12345678

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGridLayoutManager.java2420 public boolean requestChildRectangleOnScreen(RecyclerView parent, View view, Rect rect, argument
2422 if (DEBUG) Log.v(getTag(), "requestChildRectangleOnScreen " + view + " " + rect);
/frameworks/support/v4/api21/android/support/v4/view/
H A DViewCompatLollipop.java259 Rect rect = sThreadLocalRect.get();
260 if (rect == null) {
261 rect = new Rect();
262 sThreadLocalRect.set(rect);
264 rect.setEmpty();
265 return rect;
/frameworks/support/v4/java/android/support/v4/widget/
H A DDrawerLayout.java2350 final Rect rect = mTmpRect;
2352 src.getBoundsInParent(rect);
2353 dest.setBoundsInParent(rect);
2355 src.getBoundsInScreen(rect);
2356 dest.setBoundsInScreen(rect);
H A DNestedScrollView.java1466 * If rect is off screen, scroll just enough to get it (or at least the
1469 * @param rect The rectangle.
1473 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument
1474 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1491 * @param rect The rect.
1494 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument
1503 // leave room for top fading edge as long as rect isn't at very top
1504 if (rect.top > 0) {
1508 // leave room for bottom fading edge as long as rect is
[all...]
H A DSlidingPaneLayout.java1613 final Rect rect = mTmpRect;
1615 src.getBoundsInParent(rect);
1616 dest.setBoundsInParent(rect);
1618 src.getBoundsInScreen(rect);
1619 dest.setBoundsInScreen(rect);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DSearchView.java886 private void getChildBoundsWithinSearchView(View view, Rect rect) { argument
891 rect.set(left, top, left + view.getWidth(), top + view.getHeight());
1780 * view. This rect is used for initial hit testing.
1786 * view. This rect is used for event coordinate mapping.
1791 * mTargetBounds inflated to include some slop. This rect is to track whether the motion events
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
H A DListPopupWindowTest.java133 final Rect rect = new Rect();
138 mListPopupWindow.getBackground().getPadding(rect);
142 popupOnScreenXY[1] + rect.top);
182 final Rect rect = new Rect();
184 mListPopupWindow.getBackground().getPadding(rect);
186 int emulatedTapX = popupOnScreenXY[0] - rect.left - 20;
188 rect.top + rect.bottom + 20;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DRecyclerView.java2265 public boolean requestChildRectangleOnScreen(View child, Rect rect, boolean immediate) { argument
2266 return mLayout.requestChildRectangleOnScreen(this, child, rect, immediate);
8062 * @param outBounds A rect that will receive the bounds of the element including its
8257 * to bring the given rect into view, within the padded area of the RecyclerView.</p>
8260 * @param rect The rectangle in the child's coordinates the child
8266 public boolean requestChildRectangleOnScreen(RecyclerView parent, View child, Rect rect, argument
8272 final int childLeft = child.getLeft() + rect.left - child.getScrollX();
8273 final int childTop = child.getTop() + rect.top - child.getScrollY();
8274 final int childRight = childLeft + rect.width();
8275 final int childBottom = childTop + rect
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseWrapContentTest.java226 for (Rect rect : expected) {
227 boundingBox.union(rect);
463 Rect rect = new Rect(layoutManager.getDecoratedLeft(child) - lp.leftMargin,
468 rect.offset(mOffsetX, mOffsetY);
470 return rect;
H A DRecyclerViewLayoutTest.java358 Rect rect = new Rect();
359 mRecyclerView.getLayoutManager().getTransformedBoundingBox(child, true, rect);
360 return rect;
H A DStaggeredGridLayoutManagerBaseConfigSetTest.java436 for (Rect rect : itemRectMap.values()) {
437 usedLayoutBounds.union(rect);
693 // offset rect
H A DTestResizingRelayoutWithAutoMeasure.java116 Rect rect = endPositions.get(entry.getKey());
117 assertThat("view for position " + entry.getKey() + " at" + entry.getValue(), rect,
119 assertThat("rect for position " + entry.getKey(), entry.getValue(), is(rect));
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DFindRegion.java166 RectF rect = new RectF();
167 rect.set(minx, miny, maxx, maxy);
168 return rect;
H A Dfind_region.rs83 void calcBounds(rs_allocation xy, rs_allocation rect) {
85 rsSetElementAt_float2(rect, r.xy, 0);
86 rsSetElementAt_float2(rect, r.zw, 1);
/frameworks/support/design/base/android/support/design/widget/
H A DCircularBorderDrawable.java182 final Rect rect = mRect;
183 copyBounds(rect);
185 final float borderRatio = mBorderWidth / rect.height();
206 0, rect.top,
207 0, rect.bottom,
H A DFloatingActionButtonImpl.java109 Rect rect = mTmpRect;
110 getPadding(rect);
111 onPaddingUpdated(rect);
112 mShadowViewDelegate.setShadowPadding(rect.left, rect.top, rect.right, rect.bottom);
115 abstract void getPadding(Rect rect); argument
/frameworks/support/design/eclair-mr1/android/support/design/widget/
H A DFloatingActionButtonEclairMr1.java220 void getPadding(Rect rect) { argument
221 mShadowDrawable.getPadding(rect);
/frameworks/support/design/honeycomb/android/support/design/widget/
H A DViewGroupUtilsHoneycomb.java31 public static void offsetDescendantRect(ViewGroup group, View child, Rect rect) { argument
46 rectF.set(rect);
48 rect.set((int) (rectF.left + 0.5f), (int) (rectF.top + 0.5f),
/frameworks/support/design/lollipop/android/support/design/widget/
H A DFloatingActionButtonLollipop.java159 void getPadding(Rect rect) { argument
167 rect.set(hPadding, vPadding, hPadding, vPadding);
169 rect.set(0, 0, 0, 0);
/frameworks/support/design/src/android/support/design/widget/
H A DFloatingActionButton.java463 * Return in {@code rect} the bounds of the actual floating action button content in view-local
466 * @return true if this view actually has been laid out and has a content rect, else false.
468 public boolean getContentRect(@NonNull Rect rect) { argument
470 rect.set(0, 0, getWidth(), getHeight());
471 rect.left += mShadowPadding.left;
472 rect.top += mShadowPadding.top;
473 rect.right -= mShadowPadding.right;
474 rect.bottom -= mShadowPadding.bottom;
608 // First, let's get the visible rect of the dependency
609 final Rect rect
[all...]
H A DViewGroupUtils.java27 void offsetDescendantRect(ViewGroup parent, View child, Rect rect); argument
32 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument
33 parent.offsetDescendantRectToMyCoords(child, rect);
35 // We need to reverse it here so that we get the rect of the view itself rather
37 rect.offset(child.getScrollX(), child.getScrollY());
43 public void offsetDescendantRect(ViewGroup parent, View child, Rect rect) { argument
44 ViewGroupUtilsHoneycomb.offsetDescendantRect(parent, child, rect);
63 * will be the bounding rect of the real transformed rect.
65 * @param descendant view defining the original coordinate system of rect
68 offsetDescendantRect(ViewGroup parent, View descendant, Rect rect) argument
[all...]
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
H A DVectorDrawableTest.java339 Rect rect = vectorDrawable.getBounds();
340 assertEquals("Bounds should be same value for setBound(int ...)", rect, expectedRect);
343 rect = vectorDrawable.getBounds();
344 assertEquals("Bounds should be same value for setBound(Rect)", rect, expectedRect);
346 vectorDrawable.copyBounds(rect);
347 assertEquals("Bounds should be same value for copyBounds", rect, expectedRect);
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java3176 Rect rect = mChip.getBounds();
3177 shadowSize.set(rect.width(), rect.height());
3178 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/native/include/android/
H A Dnative_activity.h222 void (*onContentRectChanged)(ANativeActivity* activity, const ARect* rect);

Completed in 977 milliseconds

12345678