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

123

/frameworks/support/v4/tests/java/android/support/v4/view/
H A DGravityCompatTest.java90 Rect outRect = new Rect();
94 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
96 outRect, 0, 0, 100, 50);
100 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
102 outRect, 50, 0, 150, 50);
106 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
108 outRect, 100, 0, 200, 50);
112 new Rect(0, 0, 200, 100), outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
114 outRect, 0, 25, 100, 75);
118 new Rect(0, 0, 200, 100), outRect, ViewCompa
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DBitmapUtils.java25 * rectangle to use is written in the given outRect.
55 * @param outRect a Rect to write the resulting crop coordinates into
60 final Rect outRect) {
80 outRect.left = (int) (horizSliceFrac * (srcW - srcCroppedW));
81 outRect.right = outRect.left + srcCroppedW;
93 outRect.top = centerV - srcCroppedH / 2;
94 outRect.bottom = outRect.top + srcCroppedH;
102 * @param outRect
57 calculateCroppedSrcRect(final int srcW, final int srcH, final int dstW, final int dstH, final int dstSliceH, int sampleSize, final float horizSliceFrac, final float vertSliceFrac, final boolean absoluteFrac, final float verticalMultiplier, final Rect outRect) argument
104 calculateCroppedSrcRect(int srcW, int srcH, int dstW, int dstH, Rect outRect) argument
109 calculateCroppedSrcRect(int srcW, int srcH, int dstW, int dstH, int sampleSize, Rect outRect) argument
[all...]
/frameworks/base/core/java/android/view/
H A DGravity.java135 * @param outRect Receives the computed frame of the object in its
138 public static void apply(int gravity, int w, int h, Rect container, Rect outRect) { argument
139 apply(gravity, w, h, container, 0, 0, outRect);
152 * @param outRect Receives the computed frame of the object in its
160 Rect outRect, int layoutDirection) {
162 apply(absGravity, w, h, container, 0, 0, outRect);
183 * @param outRect Receives the computed frame of the object in its
187 int xAdj, int yAdj, Rect outRect) {
190 outRect.left = container.left
192 outRect
159 apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection) argument
186 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect) argument
296 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument
[all...]
H A DActionMode.java356 * @param outRect The Rect to be populated with the content position. Use this to specify
360 public void onGetContentRect(ActionMode mode, View view, Rect outRect) { argument
362 outRect.set(0, 0, view.getWidth(), view.getHeight());
364 outRect.set(0, 0, 0, 0);
/frameworks/support/v4/jellybean-mr1/android/support/v4/view/
H A DGravityCompatJellybeanMr1.java29 public static void apply(int gravity, int w, int h, Rect container, Rect outRect, argument
31 Gravity.apply(gravity, w, h, container, outRect, layoutDirection);
35 Rect outRect, int layoutDirection) {
36 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection);
34 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDismissViewButton.java51 * @param outRect The (scrolled) drawing bounds of the view.
54 public void getDrawingRect(Rect outRect) { argument
55 super.getDrawingRect(outRect);
58 outRect.left += translationX;
59 outRect.right += translationX;
60 outRect.top += translationY;
61 outRect.bottom += translationY;
H A DExpandableView.java294 * @param outRect The (scrolled) drawing bounds of the view.
297 public void getDrawingRect(Rect outRect) { argument
298 super.getDrawingRect(outRect);
299 outRect.left += getTranslationX();
300 outRect.right += getTranslationX();
301 outRect.bottom = (int) (outRect.top + getTranslationY() + getActualHeight());
302 outRect.top += getTranslationY() + getClipTopAmount();
306 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { argument
307 super.getBoundsOnScreen(outRect, clipToParen
[all...]
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DDrawableLayoutDirectionHelperTest.java48 Rect outRect = new Rect();
49 insetDrawable.getPadding(outRect);
51 outRect);
65 Rect outRect = new Rect();
66 insetDrawable.getPadding(outRect);
68 outRect);
82 Rect outRect = new Rect();
83 insetDrawable.getPadding(outRect);
86 outRect);
89 outRect);
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DGravityCompat.java30 void apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection); argument
32 Rect outRect, int layoutDirection);
44 public void apply(int gravity, int w, int h, Rect container, Rect outRect, argument
46 Gravity.apply(gravity, w, h, container, outRect);
51 Rect outRect, int layoutDirection) {
52 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect);
69 public void apply(int gravity, int w, int h, Rect container, Rect outRect, argument
71 GravityCompatJellybeanMr1.apply(gravity, w, h, container, outRect, layoutDirection);
76 Rect outRect, int layoutDirection) {
77 GravityCompatJellybeanMr1.apply(gravity, w, h, container, xAdj, yAdj, outRect,
31 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument
50 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument
75 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument
130 apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection) argument
160 apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, Rect outRect, int layoutDirection) argument
[all...]
/frameworks/base/core/java/com/android/internal/policy/
H A DDockedDividerUtils.java34 public static void calculateBoundsForPosition(int position, int dockSide, Rect outRect, argument
36 outRect.set(0, 0, displayWidth, displayHeight);
39 outRect.right = position;
42 outRect.bottom = position;
45 outRect.left = position + dividerSize;
48 outRect.top = position + dividerSize;
51 sanitizeStackBounds(outRect, dockSide == DOCKED_LEFT || dockSide == DOCKED_TOP);
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java52 Rect bounds, Rect outRect) {
54 bounds, outRect, View.LAYOUT_DIRECTION_LTR);
51 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
/frameworks/base/core/java/com/android/internal/widget/
H A DNotificationExpandButton.java50 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { argument
51 super.getBoundsOnScreen(outRect, clipToParent);
52 extendRectToMinTouchSize(outRect);
H A DViewPager.java2556 private Rect getChildRectInPagerCoordinates(Rect outRect, View child) { argument
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
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DTestResizingRelayoutWithAutoMeasure.java128 Rect outRect = new Rect();
129 mLayoutManager.getDecoratedBoundsWithMargins(view, outRect);
130 // only record if outRect is visible
131 if (outRect.left >= mRecyclerView.getWidth() ||
132 outRect.top >= mRecyclerView.getHeight() ||
133 outRect.right < 0 ||
134 outRect.bottom < 0) {
137 positions.put(childAdapterPosition, outRect);
H A DGridLayoutManagerCustomSizeInScrollDirectionTest.java100 public void getItemOffsets(Rect outRect, View view, RecyclerView parent,
103 outRect.set(decorOffset, 0, decorOffset, 0);
105 outRect.set(0, decorOffset, 0, decorOffset);
H A DGridLayoutManagerWrapContentTest.java84 public void getItemOffsets(Rect outRect, View view, RecyclerView parent,
86 outRect.set(0, 5, 0, 10);
104 public void getItemOffsets(Rect outRect, View view, RecyclerView parent,
106 outRect.set(5, 0, 10, 0);
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/
H A DLinkAccessibilityHelper.java170 private Rect getBoundsForSpan(ClickableSpan span, Rect outRect) { argument
172 outRect.setEmpty();
182 layout.getLineBounds(lineStart, outRect);
183 outRect.left = (int) xStart;
185 outRect.right = (int) xEnd;
189 outRect.offset(mView.getTotalPaddingLeft(), mView.getTotalPaddingTop());
191 return outRect;
/frameworks/support/v4/java/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawableFactory.java56 Rect bounds, Rect outRect) {
58 bounds, outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
55 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplaySettings.java70 public void getOverscanLocked(String name, String uniqueId, Rect outRect) { argument
78 outRect.left = entry.overscanLeft;
79 outRect.top = entry.overscanTop;
80 outRect.right = entry.overscanRight;
81 outRect.bottom = entry.overscanBottom;
83 outRect.set(0, 0, 0, 0);
/frameworks/base/libs/hwui/
H A DOutline.h117 bool getAsRoundRect(Rect* outRect, float* outRadius) const { argument
119 outRect->set(mBounds);
H A DRenderProperties.h549 void getClippingRectForFlags(uint32_t flags, Rect* outRect) const {
551 outRect->set(0, 0, getWidth(), getHeight());
553 outRect->doIntersect(mPrimitiveFields.mClipBounds);
556 outRect->set(mPrimitiveFields.mClipBounds);
H A DSkiaCanvas.cpp103 virtual bool getClipBounds(SkRect* outRect) const override;
461 bool SkiaCanvas::getClipBounds(SkRect* outRect) const {
470 if (outRect) {
471 outRect->setEmpty();
476 if (NULL != outRect) {
478 inverse.mapRect(outRect, r);
/frameworks/base/graphics/java/android/graphics/
H A DOutline.java201 * @param outRect the rect to populate with the outline bounds, if set
205 public boolean getRect(@NonNull Rect outRect) { argument
209 outRect.set(mRect);
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/
H A DDividerItemDecoration.java119 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, argument
122 outRect.bottom = mDividerHeight != 0 ? mDividerHeight : mDividerIntrinsicHeight;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableWrapper.java265 public void getHotspotBounds(@NonNull Rect outRect) { argument
267 mDrawable.getHotspotBounds(outRect);
269 outRect.set(getBounds());

Completed in 1247 milliseconds

123