Home
last modified time | relevance | path

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

123

/frameworks/support/compat/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.java362 public void onGetContentRect(ActionMode mode, View view, Rect outRect) { in onGetContentRect() argument
364 outRect.set(0, 0, view.getWidth(), view.getHeight()); in onGetContentRect()
366 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/instrumentation/src/com/android/setupwizardlib/test/
DDrawableLayoutDirectionHelperTest.java59 Rect outRect = new Rect(); in testCreateRelativeInsetDrawableLtr() local
60 insetDrawable.getPadding(outRect); in testCreateRelativeInsetDrawableLtr()
62 outRect); in testCreateRelativeInsetDrawableLtr()
77 Rect outRect = new Rect(); in testCreateRelativeInsetDrawableRtl() local
78 insetDrawable.getPadding(outRect); in testCreateRelativeInsetDrawableRtl()
80 outRect); in testCreateRelativeInsetDrawableRtl()
94 Rect outRect = new Rect(); in testCreateRelativeInsetDrawableViewRtl() local
95 insetDrawable.getPadding(outRect); in testCreateRelativeInsetDrawableViewRtl()
98 outRect); in testCreateRelativeInsetDrawableViewRtl()
101 outRect); in testCreateRelativeInsetDrawableViewRtl()
[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.java339 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument
340 super.getDrawingRect(outRect); in getDrawingRect()
341 outRect.left += getTranslationX(); in getDrawingRect()
342 outRect.right += getTranslationX(); in getDrawingRect()
343 outRect.bottom = (int) (outRect.top + getTranslationY() + getActualHeight()); in getDrawingRect()
344 outRect.top += getTranslationY() + getClipTopAmount(); in getDrawingRect()
348 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { in getBoundsOnScreen() argument
349 super.getBoundsOnScreen(outRect, clipToParent); in getBoundsOnScreen()
352 outRect.top += getTop() + getTranslationY(); in getBoundsOnScreen()
354 outRect.bottom = outRect.top + getActualHeight(); in getBoundsOnScreen()
[all …]
DStatusBarIconView.java809 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument
810 super.getDrawingRect(outRect); in getDrawingRect()
813 outRect.left += translationX; in getDrawingRect()
814 outRect.right += translationX; in getDrawingRect()
815 outRect.top += translationY; in getDrawingRect()
816 outRect.bottom += translationY; in getDrawingRect()
/frameworks/support/compat/java/android/support/v4/view/
DGravityCompat.java63 Rect outRect, int layoutDirection) { in apply() argument
65 Gravity.apply(gravity, w, h, container, outRect, layoutDirection); in apply()
67 Gravity.apply(gravity, w, h, container, outRect); in apply()
97 int xAdj, int yAdj, Rect outRect, int layoutDirection) { in apply() argument
99 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection); in apply()
101 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect); in apply()
/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/native/libs/ui/
DGraphicBufferMapper.cpp78 Gralloc2::IMapper::Rect outRect{}; in asGralloc2Rect() local
79 outRect.left = rect.left; in asGralloc2Rect()
80 outRect.top = rect.top; in asGralloc2Rect()
81 outRect.width = rect.width(); in asGralloc2Rect()
82 outRect.height = rect.height(); in asGralloc2Rect()
83 return outRect; in asGralloc2Rect()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java293 private Rect getBoundsForSpan(ClickableSpan span, Rect outRect) { in getBoundsForSpan() argument
295 outRect.setEmpty(); in getBoundsForSpan()
306 layout.getLineBounds(lineStart, outRect); in getBoundsForSpan()
310 outRect.left = (int) Math.min(xStart, xEnd); in getBoundsForSpan()
311 outRect.right = (int) Math.max(xStart, xEnd); in getBoundsForSpan()
318 outRect.right = (int) xStart; in getBoundsForSpan()
320 outRect.left = (int) xStart; in getBoundsForSpan()
325 outRect.offset(mView.getTotalPaddingLeft(), mView.getTotalPaddingTop()); in getBoundsForSpan()
328 return outRect; in getBoundsForSpan()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DTestResizingRelayoutWithAutoMeasure.java164 Rect outRect = new Rect(); in capturePositions() local
165 mLayoutManager.getDecoratedBoundsWithMargins(view, outRect); in capturePositions()
167 if (outRect.left >= mRecyclerView.getWidth() || in capturePositions()
168 outRect.top >= mRecyclerView.getHeight() || in capturePositions()
169 outRect.right < 0 || in capturePositions()
170 outRect.bottom < 0) { in capturePositions()
173 positions.put(childAdapterPosition, outRect); in capturePositions()
DGridLayoutManagerCustomSizeInScrollDirectionTest.java102 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in customSizeInScrollDirectionTest()
105 outRect.set(decorOffset, 0, decorOffset, 0); in customSizeInScrollDirectionTest()
107 outRect.set(0, decorOffset, 0, decorOffset); in customSizeInScrollDirectionTest()
DGridLayoutManagerWrapContentTest.java91 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in testVerticalWithItemDecors()
93 outRect.set(0, 5, 0, 10); in testVerticalWithItemDecors()
111 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in testHorizontalWithItemDecors()
113 outRect.set(5, 0, 10, 0); in testHorizontalWithItemDecors()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationExpandButton.java54 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { in getBoundsOnScreen() argument
55 super.getBoundsOnScreen(outRect, clipToParent); in getBoundsOnScreen()
56 extendRectToMinTouchSize(outRect); in getBoundsOnScreen()
/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/v7/recyclerview/src/android/support/v7/widget/
DDividerItemDecoration.java168 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
171 outRect.set(0, 0, 0, 0); in getItemOffsets()
175 outRect.set(0, 0, 0, mDivider.getIntrinsicHeight()); in getItemOffsets()
177 outRect.set(0, 0, mDivider.getIntrinsicWidth(), 0); in getItemOffsets()
/frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable21.java54 Rect bounds, Rect outRect) { in gravityCompatApply() argument
56 bounds, outRect, View.LAYOUT_DIRECTION_LTR); in gravityCompatApply()
/frameworks/support/core-utils/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.h551 void getClippingRectForFlags(uint32_t flags, Rect* outRect) const { in getClippingRectForFlags() argument
553 outRect->set(0, 0, getWidth(), getHeight()); in getClippingRectForFlags()
555 outRect->doIntersect(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
558 outRect->set(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DPathPerfTest.java107 final RectF outRect = new RectF(); in testIsRect() local
109 path.isRect(outRect); in testIsRect()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DDividerItemDecoration.java127 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, in getItemOffsets() argument
130 outRect.bottom = mDividerHeight != 0 ? mDividerHeight : mDividerIntrinsicHeight; in getItemOffsets()
/frameworks/base/graphics/java/android/graphics/
DOutline.java220 public boolean getRect(@NonNull Rect outRect) { in getRect() argument
224 outRect.set(mRect); in getRect()

123