/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
D | RectShadowPainter.java | 73 shadowRect.inset(-shadowSize, -shadowSize); in paintShadow() 75 RectF inset = new RectF(outline); in paintShadow() local 76 inset.inset(radius, radius); in paintShadow() 82 edgeShadowRect.set(-shadowSize, 0f, 0f, inset.height()); in paintShadow() 84 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0); in paintShadow() 86 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2); in paintShadow() 88 edgeShadowRect.set(-shadowSize, 0, 0, inset.width()); in paintShadow() 89 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1); in paintShadow() 92 edgeShadowRect.set(-shadowSize, 0, shadowSize / 2f, inset.width()); in paintShadow() 95 sideShadow(canvas, edgePaint, edgeShadowRect, inset.left, outline.bottom, 3); in paintShadow() [all …]
|
D | ViewGroup_Delegate.java | 82 newBounds.inset((int)-elevation, (int)-elevation); in drawShadow()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | FakeShadowDrawable.java | 186 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2; in drawShadow() local 187 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0; in drawShadow() 188 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0; in drawShadow() 191 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset); in drawShadow() 195 mCardBounds.width() - 2 * inset, -mCornerRadius, in drawShadow() 201 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset); in drawShadow() 206 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize, in drawShadow() 212 canvas.translate(mCardBounds.left + inset, mCardBounds.bottom - inset); in drawShadow() 217 mCardBounds.height() - 2 * inset, -mCornerRadius, mEdgeShadowPaint); in drawShadow() 222 canvas.translate(mCardBounds.right - inset, mCardBounds.top + inset); in drawShadow() [all …]
|
D | FreeformWorkspaceLayoutAlgorithm.java | 132 rect.inset(mTaskPadding, mTaskPadding); in update()
|
/frameworks/support/v7/cardview/gingerbread/android/support/v7/widget/ |
D | RoundRectDrawableWithShadow.java | 254 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2; in drawShadow() local 255 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0; in drawShadow() 256 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0; in drawShadow() 259 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset); in drawShadow() 263 mCardBounds.width() - 2 * inset, -mCornerRadius, in drawShadow() 269 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset); in drawShadow() 274 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize, in drawShadow() 280 canvas.translate(mCardBounds.left + inset, mCardBounds.bottom - inset); in drawShadow() 285 mCardBounds.height() - 2 * inset, -mCornerRadius, mEdgeShadowPaint); in drawShadow() 290 canvas.translate(mCardBounds.right - inset, mCardBounds.top + inset); in drawShadow() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | InsetDrawable.java | 73 public InsetDrawable(@Nullable Drawable drawable, int inset) { in InsetDrawable() argument 74 this(drawable, inset, inset, inset, inset); in InsetDrawable() 158 final int inset = a.getDimensionPixelOffset(R.styleable.InsetDrawable_inset, 0); in updateStateFromTypedArray() local 159 state.mInsetLeft = inset; in updateStateFromTypedArray() 160 state.mInsetTop = inset; in updateStateFromTypedArray() 161 state.mInsetRight = inset; in updateStateFromTypedArray() 162 state.mInsetBottom = inset; in updateStateFromTypedArray()
|
D | GradientDrawable.java | 816 innerBounds.inset(x - radius, y - radius); 819 bounds.inset(-thickness, -thickness); 1049 float inset = 0; 1052 inset = mStrokePaint.getStrokeWidth() * 0.5f; 1057 mRect.set(bounds.left + inset, bounds.top + inset, 1058 bounds.right - inset, bounds.bottom - inset);
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
D | RoundRectShape.java | 59 public RoundRectShape(float[] outerRadii, RectF inset, in RoundRectShape() argument 68 mInset = inset; in RoundRectShape() 71 if (inset != null) { in RoundRectShape()
|
/frameworks/base/core/java/android/gesture/ |
D | Gesture.java | 220 public Bitmap toBitmap(int width, int height, int inset, int color) { in toBitmap() argument 238 final float sx = (width - 2 * inset) / bounds.width(); in toBitmap() 239 final float sy = (height - 2 * inset) / bounds.height(); in toBitmap() 246 canvas.translate(inset, inset); in toBitmap()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | CoordinatorLayout.java | 856 final int inset = mLastInsets != null ? mLastInsets.getSystemWindowInsetTop() : 0; in onDraw() local 857 if (inset > 0) { in onDraw() 858 mStatusBarBackground.setBounds(0, 0, getWidth(), inset); in onDraw() 1216 final Rect inset = mTempRect4; in onChildViewsChanged() local 1217 inset.setEmpty(); in onChildViewsChanged() 1241 inset.top = Math.max(inset.top, drawRect.bottom); in onChildViewsChanged() 1244 inset.bottom = Math.max(inset.bottom, getHeight() - drawRect.top); in onChildViewsChanged() 1249 inset.left = Math.max(inset.left, drawRect.right); in onChildViewsChanged() 1252 inset.right = Math.max(inset.right, getWidth() - drawRect.left); in onChildViewsChanged() 1259 offsetChildByInset(child, inset, layoutDirection); in onChildViewsChanged() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | SetupWizardListLayout.java | 136 public void setDividerInset(int inset) { in setDividerInset() argument 137 mDividerInset = inset; in setDividerInset()
|
D | GlifListLayout.java | 151 public void setDividerInset(int inset) { in setDividerInset() argument 152 mDividerInset = inset; in setDividerInset()
|
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/ |
D | SetupWizardRecyclerLayout.java | 184 public void setDividerInset(int inset) { in setDividerInset() argument 185 mDividerInset = inset; in setDividerInset()
|
D | GlifRecyclerLayout.java | 179 public void setDividerInset(int inset) { in setDividerInset() argument 180 mDividerInset = inset; in setDividerInset()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Rect.java | 322 public void inset(int dx, int dy) { in inset() method in Rect 335 public void inset(Rect insets) { in inset() method in Rect 350 public void inset(int left, int top, int right, int bottom) { in inset() method in Rect
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | NotificationCompatImplBase.java | 410 int inset = (size - iconSize) / 2; in createIconWithBackground() local 411 icon.setBounds(inset, inset, iconSize + inset, iconSize + inset); in createIconWithBackground()
|
/frameworks/base/core/java/android/view/ |
D | TouchDelegate.java | 95 mSlopBounds.inset(-mSlop, -mSlop); in TouchDelegate()
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
D | MaterialProgressDrawable.java | 530 arcBounds.inset(mStrokeInset, mStrokeInset); in draw() 560 float inset = (int) mStrokeInset / 2 * mArrowScale; in drawTriangle() local 572 mArrow.offset(x - inset, y); in drawTriangle()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
D | MLand.java | 754 final int inset = (PARAMS.OBSTACLE_WIDTH - PARAMS.OBSTACLE_STEM_WIDTH) / 2; 763 s1.setTranslationX(mWidth+inset); 783 .translationY(s1.h-inset) 798 s2.setTranslationX(mWidth+inset); 1107 final int inset = (PARAMS.PLAYER_SIZE - PARAMS.PLAYER_HIT_SIZE)/2; 1111 corners[i*2] = scale * sHull[i*2] + inset; 1112 corners[i*2+1] = scale * sHull[i*2+1] + inset;
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayContent.java | 352 mTmpRect.inset(-delta, -delta); in findTaskForControlPoint() 354 mTmpRect.inset(delta, delta); in findTaskForControlPoint() 403 mTmpRect.inset(-delta, -delta); in setTouchExcludeRegion()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ScrimController.java | 559 public void setLeftInset(int inset) { in setLeftInset() argument 560 mScrimBehind.setLeftInset(inset); in setLeftInset()
|
/frameworks/base/core/java/android/view/animation/ |
D | Animation.java | 1030 invalidate.inset(-1.0f, -1.0f); in getInvalidateRegion() 1056 region.inset(-1.0f, -1.0f); in initializeInvalidateRegion()
|
/frameworks/support/v7/cardview/api21/android/support/v7/widget/ |
D | RoundRectDrawable.java | 113 mBoundsI.inset((int) Math.ceil(hInset), (int) Math.ceil(vInset)); in updateBounds()
|
/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/ |
D | RoundedBitmapDrawable.java | 232 mDstRect.inset(insetX, insetY); in updateDstRect()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | SwitchCompat.java | 827 final Rect inset = DrawableUtils.getOpticalBounds(mThumbDrawable); in onMeasure() local 828 paddingLeft = Math.max(paddingLeft, inset.left); in onMeasure() 829 paddingRight = Math.max(paddingRight, inset.right); in onMeasure()
|