/frameworks/base/core/java/android/view/ |
D | Gravity.java | 138 public static void apply(int gravity, int w, int h, Rect container, Rect outRect) { in apply() argument 139 apply(gravity, w, h, container, 0, 0, outRect); in apply() 160 Rect outRect, int layoutDirection) { in apply() argument 162 apply(absGravity, w, h, container, 0, 0, outRect); in apply() 187 int xAdj, int yAdj, Rect outRect) { in apply() argument 190 outRect.left = container.left in apply() 192 outRect.right = outRect.left + w; in apply() 195 if (outRect.left < container.left) { in apply() 196 outRect.left = container.left; in apply() 198 if (outRect.right > container.right) { in apply() [all …]
|
D | ActionMode.java | 364 public void onGetContentRect(ActionMode mode, View view, Rect outRect) { in onGetContentRect() argument 366 outRect.set(0, 0, view.getWidth(), view.getHeight()); in onGetContentRect() 368 outRect.set(0, 0, 0, 0); in onGetContentRect()
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | BitmapUtils.java | 60 final Rect outRect) { in calculateCroppedSrcRect() argument 80 outRect.left = (int) (horizSliceFrac * (srcW - srcCroppedW)); in calculateCroppedSrcRect() 81 outRect.right = outRect.left + srcCroppedW; in calculateCroppedSrcRect() 93 outRect.top = centerV - srcCroppedH / 2; in calculateCroppedSrcRect() 94 outRect.bottom = outRect.top + srcCroppedH; in calculateCroppedSrcRect() 105 Rect outRect) { in calculateCroppedSrcRect() argument 106 calculateCroppedSrcRect(srcW, srcH, dstW, dstH, Integer.MAX_VALUE, outRect); in calculateCroppedSrcRect() 110 int sampleSize, Rect outRect) { in calculateCroppedSrcRect() argument 123 outRect.left = (srcW - srcCroppedW) / 2; in calculateCroppedSrcRect() 124 outRect.right = outRect.left + srcCroppedW; in calculateCroppedSrcRect() [all …]
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | DrawableLayoutDirectionHelperTest.java | 62 Rect outRect = new Rect(); in testCreateRelativeInsetDrawableLtr() local 63 insetDrawable.getPadding(outRect); in testCreateRelativeInsetDrawableLtr() 64 assertEquals("InsetDrawable padding should be same as inset", new Rect(1, 2, 3, 4), outRect); in testCreateRelativeInsetDrawableLtr() 85 Rect outRect = new Rect(); in testCreateRelativeInsetDrawableRtl() local 86 insetDrawable.getPadding(outRect); in testCreateRelativeInsetDrawableRtl() 87 assertEquals("InsetDrawable padding should be same as inset", new Rect(3, 2, 1, 4), outRect); in testCreateRelativeInsetDrawableRtl() 103 Rect outRect = new Rect(); in testCreateRelativeInsetDrawableViewRtl() local 104 insetDrawable.getPadding(outRect); in testCreateRelativeInsetDrawableViewRtl() 106 assertEquals("InsetDrawable padding should be same as inset", new Rect(3, 2, 1, 4), outRect); in testCreateRelativeInsetDrawableViewRtl() 108 assertEquals("InsetDrawable padding should be same as inset", new Rect(1, 2, 3, 4), outRect); in testCreateRelativeInsetDrawableViewRtl() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | FooterViewButton.java | 55 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument 56 super.getDrawingRect(outRect); in getDrawingRect() 59 outRect.left += translationX; in getDrawingRect() 60 outRect.right += translationX; in getDrawingRect() 61 outRect.top += translationY; in getDrawingRect() 62 outRect.bottom += translationY; in getDrawingRect()
|
D | ExpandableView.java | 360 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument 361 super.getDrawingRect(outRect); in getDrawingRect() 362 outRect.left += getTranslationX(); in getDrawingRect() 363 outRect.right += getTranslationX(); in getDrawingRect() 364 outRect.bottom = (int) (outRect.top + getTranslationY() + getActualHeight()); in getDrawingRect() 365 outRect.top += getTranslationY() + getClipTopAmount(); in getDrawingRect() 369 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { in getBoundsOnScreen() argument 370 super.getBoundsOnScreen(outRect, clipToParent); in getBoundsOnScreen() 373 outRect.top += getTop() + getTranslationY(); in getBoundsOnScreen() 375 outRect.bottom = outRect.top + getActualHeight(); in getBoundsOnScreen() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DockedDividerUtils.java | 34 public static void calculateBoundsForPosition(int position, int dockSide, Rect outRect, in calculateBoundsForPosition() argument 36 outRect.set(0, 0, displayWidth, displayHeight); in calculateBoundsForPosition() 39 outRect.right = position; in calculateBoundsForPosition() 42 outRect.bottom = position; in calculateBoundsForPosition() 45 outRect.left = position + dividerSize; in calculateBoundsForPosition() 48 outRect.top = position + dividerSize; in calculateBoundsForPosition() 51 sanitizeStackBounds(outRect, dockSide == DOCKED_LEFT || dockSide == DOCKED_TOP); in calculateBoundsForPosition()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipDismissViewController.java | 181 private void expandRect(Rect outRect, int expandAmount) { in expandRect() argument 182 outRect.left = Math.max(0, outRect.left - expandAmount); in expandRect() 183 outRect.top = Math.max(0, outRect.top - expandAmount); in expandRect() 184 outRect.right = Math.min(mWindowSize.x, outRect.right + expandAmount); in expandRect() 185 outRect.bottom = Math.min(mWindowSize.y, outRect.bottom + expandAmount); in expandRect()
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelper.java | 255 private Rect getBoundsForSpan(ClickableSpan span, Rect outRect) { in getBoundsForSpan() argument 257 outRect.setEmpty(); in getBoundsForSpan() 268 layout.getLineBounds(lineStart, outRect); in getBoundsForSpan() 272 outRect.left = (int) Math.min(xStart, xEnd); in getBoundsForSpan() 273 outRect.right = (int) Math.max(xStart, xEnd); in getBoundsForSpan() 280 outRect.right = (int) xStart; in getBoundsForSpan() 282 outRect.left = (int) xStart; in getBoundsForSpan() 287 outRect.offset(view.getTotalPaddingLeft(), view.getTotalPaddingTop()); in getBoundsForSpan() 290 return outRect; in getBoundsForSpan()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NotificationExpandButton.java | 54 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { in getBoundsOnScreen() argument 55 super.getBoundsOnScreen(outRect, clipToParent); in getBoundsOnScreen() 56 extendRectToMinTouchSize(outRect); in getBoundsOnScreen()
|
D | ViewPager.java | 2537 private Rect getChildRectInPagerCoordinates(Rect outRect, View child) { 2538 if (outRect == null) { 2539 outRect = new Rect(); 2542 outRect.set(0, 0, 0, 0); 2543 return outRect; 2545 outRect.left = child.getLeft(); 2546 outRect.right = child.getRight(); 2547 outRect.top = child.getTop(); 2548 outRect.bottom = child.getBottom(); 2553 outRect.left += group.getLeft(); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | StatusBarWifiView.java | 145 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument 146 super.getDrawingRect(outRect); in getDrawingRect() 149 outRect.left += translationX; in getDrawingRect() 150 outRect.right += translationX; in getDrawingRect() 151 outRect.top += translationY; in getDrawingRect() 152 outRect.bottom += translationY; in getDrawingRect()
|
D | StatusBarMobileView.java | 92 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument 93 super.getDrawingRect(outRect); in getDrawingRect() 96 outRect.left += translationX; in getDrawingRect() 97 outRect.right += translationX; in getDrawingRect() 98 outRect.top += translationY; in getDrawingRect() 99 outRect.bottom += translationY; in getDrawingRect()
|
D | StatusBarIconView.java | 880 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument 881 super.getDrawingRect(outRect); in getDrawingRect() 884 outRect.left += translationX; in getDrawingRect() 885 outRect.right += translationX; in getDrawingRect() 886 outRect.top += translationY; in getDrawingRect() 887 outRect.bottom += translationY; in getDrawingRect()
|
/frameworks/native/libs/ui/ |
D | Gralloc2.cpp | 69 IMapper::Rect outRect{}; in sGralloc2Rect() local 70 outRect.left = rect.left; in sGralloc2Rect() 71 outRect.top = rect.top; in sGralloc2Rect() 72 outRect.width = rect.width(); in sGralloc2Rect() 73 outRect.height = rect.height(); in sGralloc2Rect() 74 return outRect; in sGralloc2Rect()
|
D | Gralloc3.cpp | 56 IMapper::Rect outRect{}; in sGralloc3Rect() local 57 outRect.left = rect.left; in sGralloc3Rect() 58 outRect.top = rect.top; in sGralloc3Rect() 59 outRect.width = rect.width(); in sGralloc3Rect() 60 outRect.height = rect.height(); in sGralloc3Rect() 61 return outRect; in sGralloc3Rect()
|
/frameworks/base/libs/hwui/ |
D | Outline.h | 101 bool getAsRoundRect(Rect* outRect, float* outRadius) const { in getAsRoundRect() argument 103 outRect->set(mBounds); in getAsRoundRect()
|
D | RenderProperties.h | 471 void getClippingRectForFlags(uint32_t flags, Rect* outRect) const { in getClippingRectForFlags() argument 473 outRect->set(0, 0, getWidth(), getHeight()); in getClippingRectForFlags() 475 outRect->doIntersect(mPrimitiveFields.mClipBounds); in getClippingRectForFlags() 478 outRect->set(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
D | PathPerfTest.java | 108 final RectF outRect = new RectF(); in testIsRect() local 110 path.isRect(outRect); in testIsRect()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/ |
D | DividerItemDecoration.java | 122 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument 124 outRect.bottom = dividerHeight != 0 ? dividerHeight : dividerIntrinsicHeight; in getItemOffsets()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Outline.java | 222 public boolean getRect(@NonNull Rect outRect) { in getRect() argument 226 outRect.set(mRect); in getRect()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleStackView.java | 542 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { in getBoundsOnScreen() argument 543 getBoundsOnScreen(outRect); in getBoundsOnScreen() 1505 public void getBoundsOnScreen(Rect outRect) { in getBoundsOnScreen() argument 1508 mBubbleContainer.getChildAt(0).getBoundsOnScreen(outRect); in getBoundsOnScreen() 1511 outRect.top -= mBubbleTouchPadding; in getBoundsOnScreen() 1512 outRect.left -= mBubbleTouchPadding; in getBoundsOnScreen() 1513 outRect.right += mBubbleTouchPadding; in getBoundsOnScreen() 1514 outRect.bottom += mBubbleTouchPadding; in getBoundsOnScreen() 1516 mBubbleContainer.getBoundsOnScreen(outRect); in getBoundsOnScreen() 1522 outRect.union(flyoutBounds); in getBoundsOnScreen()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/ |
D | UserGridRecyclerView.java | 413 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument 415 super.getItemOffsets(outRect, view, parent, state); in getItemOffsets() 424 outRect.bottom = mItemSpacing; in getItemOffsets()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AdaptiveIconDrawable.java | 327 final Rect outRect = mTmpOutRect; in updateLayerBoundsInternal() local 328 outRect.set(cX - insetWidth, cY - insetHeight, cX + insetWidth, cY + insetHeight); in updateLayerBoundsInternal() 330 d.setBounds(outRect); in updateLayerBoundsInternal() 636 public void getHotspotBounds(Rect outRect) { in getHotspotBounds() argument 638 outRect.set(mHotspotBounds); in getHotspotBounds() 640 super.getHotspotBounds(outRect); in getHotspotBounds()
|
D | DrawableWrapper.java | 276 public void getHotspotBounds(@NonNull Rect outRect) { in getHotspotBounds() argument 278 mDrawable.getHotspotBounds(outRect); in getHotspotBounds() 280 outRect.set(getBounds()); in getHotspotBounds()
|