Home
last modified time | relevance | path

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

12

/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 …]
DDisplay.java552 public void getOverscanInsets(Rect outRect) { in getOverscanInsets() argument
555 outRect.set(mDisplayInfo.overscanLeft, mDisplayInfo.overscanTop, in getOverscanInsets()
DViewDebug.java660 Rect outRect = new Rect(); in captureLayers() local
662 root.mAttachInfo.mSession.getDisplayFrame(root.mAttachInfo.mWindow, outRect); in captureLayers()
667 clientStream.writeInt(outRect.width()); in captureLayers()
668 clientStream.writeInt(outRect.height()); in captureLayers()
DView.java4974 public void getHotspotBounds(Rect outRect) { in getHotspotBounds() argument
4977 background.getHotspotBounds(outRect); in getHotspotBounds()
4979 getBoundsOnScreen(outRect); in getHotspotBounds()
5561 public void getBoundsOnScreen(Rect outRect) { in getBoundsOnScreen() argument
5562 getBoundsOnScreen(outRect, false); in getBoundsOnScreen()
5572 public void getBoundsOnScreen(Rect outRect, boolean clipToParent) { in getBoundsOnScreen() argument
5615 outRect.set((int) (position.left + 0.5f), (int) (position.top + 0.5f), in getBoundsOnScreen()
8831 public void getWindowVisibleDisplayFrame(Rect outRect) {
8834 mAttachInfo.mSession.getDisplayFrame(mAttachInfo.mWindow, outRect);
8842 outRect.left += insets.left;
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DBitmapUtils.java56 final boolean absoluteFrac, final float verticalMultiplier, final Rect outRect) { in calculateCroppedSrcRect() argument
76 outRect.left = (srcW - srcCroppedW) / 2; in calculateCroppedSrcRect()
77 outRect.right = outRect.left + srcCroppedW; in calculateCroppedSrcRect()
89 outRect.top = centerV - srcCroppedH / 2; in calculateCroppedSrcRect()
90 outRect.bottom = outRect.top + srcCroppedH; in calculateCroppedSrcRect()
101 Rect outRect) { in calculateCroppedSrcRect() argument
102 calculateCroppedSrcRect(srcW, srcH, dstW, dstH, Integer.MAX_VALUE, outRect); in calculateCroppedSrcRect()
106 int sampleSize, Rect outRect) { in calculateCroppedSrcRect() argument
119 outRect.left = (srcW - srcCroppedW) / 2; in calculateCroppedSrcRect()
120 outRect.right = outRect.left + srcCroppedW; in calculateCroppedSrcRect()
[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 …]
DViewPager.java2584 private Rect getChildRectInPagerCoordinates(Rect outRect, View child) {
2585 if (outRect == null) {
2586 outRect = new Rect();
2589 outRect.set(0, 0, 0, 0);
2590 return outRect;
2592 outRect.left = child.getLeft();
2593 outRect.right = child.getRight();
2594 outRect.top = child.getTop();
2595 outRect.bottom = child.getBottom();
2600 outRect.left += group.getLeft();
[all …]
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/
DDismissViewButton.java115 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument
116 super.getDrawingRect(outRect); in getDrawingRect()
119 outRect.left += translationX; in getDrawingRect()
120 outRect.right += translationX; in getDrawingRect()
121 outRect.top += translationY; in getDrawingRect()
122 outRect.bottom += translationY; in getDrawingRect()
DExpandableView.java293 public void getDrawingRect(Rect outRect) { in getDrawingRect() argument
294 super.getDrawingRect(outRect); in getDrawingRect()
295 outRect.left += getTranslationX(); in getDrawingRect()
296 outRect.right += getTranslationX(); in getDrawingRect()
297 outRect.bottom = (int) (outRect.top + getTranslationY() + getActualHeight()); in getDrawingRect()
298 outRect.top += getTranslationY() + getClipTopAmount(); in getDrawingRect()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplaySettings.java64 public void getOverscanLocked(String name, String uniqueId, Rect outRect) { in getOverscanLocked() argument
72 outRect.left = entry.overscanLeft; in getOverscanLocked()
73 outRect.top = entry.overscanTop; in getOverscanLocked()
74 outRect.right = entry.overscanRight; in getOverscanLocked()
75 outRect.bottom = entry.overscanBottom; in getOverscanLocked()
77 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/base/libs/hwui/
DOutline.h88 bool getAsRoundRect(Rect* outRect, float* outRadius) const { in getAsRoundRect() argument
90 outRect->set(mBounds); in getAsRoundRect()
DRenderProperties.h516 void getClippingRectForFlags(uint32_t flags, Rect* outRect) const { in getClippingRectForFlags() argument
518 outRect->set(0, 0, getWidth(), getHeight()); in getClippingRectForFlags()
520 outRect->intersect(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
523 outRect->set(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
/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/core/jni/android/graphics/
DSkiaCanvas.cpp81 virtual bool getClipBounds(SkRect* outRect) const;
399 bool SkiaCanvas::getClipBounds(SkRect* outRect) const { in getClipBounds()
408 if (outRect) { in getClipBounds()
409 outRect->setEmpty(); in getClipBounds()
414 if (NULL != outRect) { in getClipBounds()
416 inverse.mapRect(outRect, r); in getClipBounds()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java214 Rect bounds, Rect outRect) { in gravityCompatApply() argument
/frameworks/base/include/private/graphics/
DCanvas.h74 virtual bool getClipBounds(SkRect* outRect) const = 0;
/frameworks/base/graphics/java/android/graphics/drawable/
DInsetDrawable.java282 public void getHotspotBounds(Rect outRect) { in getHotspotBounds() argument
283 mState.mDrawable.getHotspotBounds(outRect); in getHotspotBounds()
DDrawableContainer.java306 public void getHotspotBounds(Rect outRect) { in getHotspotBounds() argument
308 outRect.set(mHotspotBounds); in getHotspotBounds()
310 super.getHotspotBounds(outRect); in getHotspotBounds()
DDrawable.java548 public void getHotspotBounds(Rect outRect) { in getHotspotBounds() argument
549 outRect.set(getBounds()); in getHotspotBounds()
DLayerDrawable.java621 public void getHotspotBounds(Rect outRect) { in getHotspotBounds() argument
623 outRect.set(mHotspotBounds); in getHotspotBounds()
625 super.getHotspotBounds(outRect); in getHotspotBounds()
DRippleDrawable.java582 public void getHotspotBounds(Rect outRect) { in getHotspotBounds() argument
583 outRect.set(mHotspotBounds); in getHotspotBounds()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java592 private static void copyTextureCoordinates(BasicTexture texture, RectF outRect) { in copyTextureCoordinates() argument
603 outRect.set(left, top, right, bottom); in copyTextureCoordinates()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java6028 public void calculateItemDecorationsForChild(View child, Rect outRect) { in calculateItemDecorationsForChild() argument
6030 outRect.set(0, 0, 0, 0); in calculateItemDecorationsForChild()
6034 outRect.set(insets); in calculateItemDecorationsForChild()
6866 public void getItemOffsets(Rect outRect, int itemPosition, RecyclerView parent) { in getItemOffsets() argument
6867 outRect.set(0, 0, 0, 0); in getItemOffsets()
6890 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, State state) { in getItemOffsets() argument
6891 getItemOffsets(outRect, ((LayoutParams) view.getLayoutParams()).getViewLayoutPosition(), in getItemOffsets()

12