Home
last modified time | relevance | path

Searched refs:outRect (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/support/v4/tests/java/android/support/v4/view/
DGravityCompatTest.java90 Rect outRect = new Rect(); in testApplyNoOffsetsLtr() local
94 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR); in testApplyNoOffsetsLtr()
96 outRect, 0, 0, 100, 50); in testApplyNoOffsetsLtr()
100 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR); in testApplyNoOffsetsLtr()
102 outRect, 50, 0, 150, 50); in testApplyNoOffsetsLtr()
106 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR); in testApplyNoOffsetsLtr()
108 outRect, 100, 0, 200, 50); in testApplyNoOffsetsLtr()
112 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR); in testApplyNoOffsetsLtr()
114 outRect, 0, 25, 100, 75); in testApplyNoOffsetsLtr()
118 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR); in testApplyNoOffsetsLtr()
[all …]
/frameworks/base/core/java/android/view/
DGravity.java138 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 …]
DActionMode.java360 public void onGetContentRect(ActionMode mode, View view, Rect outRect) { in onGetContentRect() argument
362 outRect.set(0, 0, view.getWidth(), view.getHeight()); in onGetContentRect()
364 outRect.set(0, 0, 0, 0); in onGetContentRect()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DBitmapUtils.java60 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/src/com/android/setupwizardlib/test/
DDrawableLayoutDirectionHelperTest.java48 Rect outRect = new Rect(); in testCreateRelativeInsetDrawableLtr() local
49 insetDrawable.getPadding(outRect); in testCreateRelativeInsetDrawableLtr()
51 outRect); in testCreateRelativeInsetDrawableLtr()
65 Rect outRect = new Rect(); in testCreateRelativeInsetDrawableRtl() local
66 insetDrawable.getPadding(outRect); in testCreateRelativeInsetDrawableRtl()
68 outRect); in testCreateRelativeInsetDrawableRtl()
82 Rect outRect = new Rect(); in testCreateRelativeInsetDrawableViewRtl() local
83 insetDrawable.getPadding(outRect); in testCreateRelativeInsetDrawableViewRtl()
86 outRect); in testCreateRelativeInsetDrawableViewRtl()
89 outRect); in testCreateRelativeInsetDrawableViewRtl()
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DGravityCompat.java30 void apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection); in apply() argument
32 Rect outRect, int layoutDirection); in apply() argument
44 public void apply(int gravity, int w, int h, Rect container, Rect outRect, in apply() argument
46 Gravity.apply(gravity, w, h, container, outRect); in apply()
51 Rect outRect, int layoutDirection) { in apply() argument
52 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect); in apply()
69 public void apply(int gravity, int w, int h, Rect container, Rect outRect, in apply() argument
71 GravityCompatJellybeanMr1.apply(gravity, w, h, container, outRect, layoutDirection); in apply()
76 Rect outRect, int layoutDirection) { in apply() argument
77 GravityCompatJellybeanMr1.apply(gravity, w, h, container, xAdj, yAdj, outRect, in apply()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DDismissViewButton.java54 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument
55 super.getDrawingRect(outRect); in getDrawingRect()
58 outRect.left += translationX; in getDrawingRect()
59 outRect.right += translationX; in getDrawingRect()
60 outRect.top += translationY; in getDrawingRect()
61 outRect.bottom += translationY; in getDrawingRect()
DExpandableView.java297 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument
298 super.getDrawingRect(outRect); in getDrawingRect()
299 outRect.left += getTranslationX(); in getDrawingRect()
300 outRect.right += getTranslationX(); in getDrawingRect()
301 outRect.bottom = (int) (outRect.top + getTranslationY() + getActualHeight()); in getDrawingRect()
302 outRect.top += getTranslationY() + getClipTopAmount(); in getDrawingRect()
306 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { in getBoundsOnScreen() argument
307 super.getBoundsOnScreen(outRect, clipToParent); in getBoundsOnScreen()
310 outRect.top += getTop() + getTranslationY(); in getBoundsOnScreen()
312 outRect.bottom = outRect.top + getActualHeight(); in getBoundsOnScreen()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DDockedDividerUtils.java34 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/support/v7/recyclerview/tests/src/android/support/v7/widget/
DTestResizingRelayoutWithAutoMeasure.java128 Rect outRect = new Rect(); in capturePositions() local
129 mLayoutManager.getDecoratedBoundsWithMargins(view, outRect); in capturePositions()
131 if (outRect.left >= mRecyclerView.getWidth() || in capturePositions()
132 outRect.top >= mRecyclerView.getHeight() || in capturePositions()
133 outRect.right < 0 || in capturePositions()
134 outRect.bottom < 0) { in capturePositions()
137 positions.put(childAdapterPosition, outRect); in capturePositions()
DGridLayoutManagerWrapContentTest.java84 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in testVerticalWithItemDecors()
86 outRect.set(0, 5, 0, 10); in testVerticalWithItemDecors()
104 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in testHorizontalWithItemDecors()
106 outRect.set(5, 0, 10, 0); in testHorizontalWithItemDecors()
DGridLayoutManagerCustomSizeInScrollDirectionTest.java100 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in customSizeInScrollDirectionTest()
103 outRect.set(decorOffset, 0, decorOffset, 0); in customSizeInScrollDirectionTest()
105 outRect.set(0, decorOffset, 0, decorOffset); in customSizeInScrollDirectionTest()
/frameworks/support/v4/jellybean-mr1/android/support/v4/view/
DGravityCompatJellybeanMr1.java29 public static void apply(int gravity, int w, int h, Rect container, Rect outRect, in apply() argument
31 Gravity.apply(gravity, w, h, container, outRect, layoutDirection); in apply()
35 Rect outRect, int layoutDirection) { in apply() argument
36 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection); in apply()
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java170 private Rect getBoundsForSpan(ClickableSpan span, Rect outRect) { in getBoundsForSpan() argument
172 outRect.setEmpty(); in getBoundsForSpan()
182 layout.getLineBounds(lineStart, outRect); in getBoundsForSpan()
183 outRect.left = (int) xStart; in getBoundsForSpan()
185 outRect.right = (int) xEnd; in getBoundsForSpan()
189 outRect.offset(mView.getTotalPaddingLeft(), mView.getTotalPaddingTop()); in getBoundsForSpan()
191 return outRect; in getBoundsForSpan()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationExpandButton.java50 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { in getBoundsOnScreen() argument
51 super.getBoundsOnScreen(outRect, clipToParent); in getBoundsOnScreen()
52 extendRectToMinTouchSize(outRect); in getBoundsOnScreen()
DViewPager.java2556 private Rect getChildRectInPagerCoordinates(Rect outRect, View child) {
2557 if (outRect == null) {
2558 outRect = new Rect();
2561 outRect.set(0, 0, 0, 0);
2562 return outRect;
2564 outRect.left = child.getLeft();
2565 outRect.right = child.getRight();
2566 outRect.top = child.getTop();
2567 outRect.bottom = child.getBottom();
2572 outRect.left += group.getLeft();
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDisplaySettings.java70 public void getOverscanLocked(String name, String uniqueId, Rect outRect) { in getOverscanLocked() argument
78 outRect.left = entry.overscanLeft; in getOverscanLocked()
79 outRect.top = entry.overscanTop; in getOverscanLocked()
80 outRect.right = entry.overscanRight; in getOverscanLocked()
81 outRect.bottom = entry.overscanBottom; in getOverscanLocked()
83 outRect.set(0, 0, 0, 0); in getOverscanLocked()
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable21.java52 Rect bounds, Rect outRect) { in gravityCompatApply() argument
54 bounds, outRect, View.LAYOUT_DIRECTION_LTR); in gravityCompatApply()
/frameworks/support/v4/java/android/support/v4/graphics/drawable/
DRoundedBitmapDrawableFactory.java56 Rect bounds, Rect outRect) { in gravityCompatApply() argument
58 bounds, outRect, ViewCompat.LAYOUT_DIRECTION_LTR); in gravityCompatApply()
/frameworks/base/libs/hwui/
DOutline.h117 bool getAsRoundRect(Rect* outRect, float* outRadius) const { in getAsRoundRect() argument
119 outRect->set(mBounds); in getAsRoundRect()
DRenderProperties.h549 void getClippingRectForFlags(uint32_t flags, Rect* outRect) const { in getClippingRectForFlags() argument
551 outRect->set(0, 0, getWidth(), getHeight()); in getClippingRectForFlags()
553 outRect->doIntersect(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
556 outRect->set(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
DSkiaCanvas.cpp103 virtual bool getClipBounds(SkRect* outRect) const override;
461 bool SkiaCanvas::getClipBounds(SkRect* outRect) const { in getClipBounds()
470 if (outRect) { in getClipBounds()
471 outRect->setEmpty(); in getClipBounds()
476 if (NULL != outRect) { in getClipBounds()
478 inverse.mapRect(outRect, r); in getClipBounds()
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/
DDividerItemDecoration.java119 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
122 outRect.bottom = mDividerHeight != 0 ? mDividerHeight : mDividerIntrinsicHeight; in getItemOffsets()
/frameworks/base/graphics/java/android/graphics/
DOutline.java205 public boolean getRect(@NonNull Rect outRect) { in getRect() argument
209 outRect.set(mRect); in getRect()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawableWrapper.java265 public void getHotspotBounds(@NonNull Rect outRect) { in getHotspotBounds() argument
267 mDrawable.getHotspotBounds(outRect); in getHotspotBounds()
269 outRect.set(getBounds()); in getHotspotBounds()

123