Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFakeShadowDrawable.java189 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2; in drawShadow() local
190 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0; in drawShadow()
191 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0; in drawShadow()
194 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset); in drawShadow()
198 mCardBounds.width() - 2 * inset, -mCornerRadius, in drawShadow()
204 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset); in drawShadow()
209 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize, in drawShadow()
215 canvas.translate(mCardBounds.left + inset, mCardBounds.bottom - inset); in drawShadow()
220 mCardBounds.height() - 2 * inset, -mCornerRadius, mEdgeShadowPaint); in drawShadow()
225 canvas.translate(mCardBounds.right - inset, mCardBounds.top + inset); in drawShadow()
[all …]
DFreeformWorkspaceLayoutAlgorithm.java132 rect.inset(mTaskPadding, mTaskPadding); in update()
/frameworks/support/v7/cardview/src/android/support/v7/widget/
DRoundRectDrawableWithShadow.java249 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2; in drawShadow() local
250 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0; in drawShadow()
251 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0; in drawShadow()
254 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset); in drawShadow()
258 mCardBounds.width() - 2 * inset, -mCornerRadius, in drawShadow()
264 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset); in drawShadow()
269 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize, in drawShadow()
275 canvas.translate(mCardBounds.left + inset, mCardBounds.bottom - inset); in drawShadow()
280 mCardBounds.height() - 2 * inset, -mCornerRadius, mEdgeShadowPaint); in drawShadow()
285 canvas.translate(mCardBounds.right - inset, mCardBounds.top + inset); in drawShadow()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DInsetDrawable.java75 public InsetDrawable(@Nullable Drawable drawable, int inset) { in InsetDrawable() argument
76 this(drawable, inset, inset, inset, inset); in InsetDrawable()
85 public InsetDrawable(@Nullable Drawable drawable, float inset) { in InsetDrawable() argument
86 this(drawable, inset, inset, inset, inset); in InsetDrawable()
191 final InsetValue inset = getInset(a, R.styleable.InsetDrawable_inset, new InsetValue()); in updateStateFromTypedArray() local
192 state.mInsetLeft = inset; in updateStateFromTypedArray()
193 state.mInsetTop = inset; in updateStateFromTypedArray()
194 state.mInsetRight = inset; in updateStateFromTypedArray()
195 state.mInsetBottom = inset; in updateStateFromTypedArray()
DGradientDrawable.java845 innerBounds.inset(x - radius, y - radius);
848 bounds.inset(-thickness, -thickness);
1087 float inset = 0;
1090 inset = mStrokePaint.getStrokeWidth() * 0.5f;
1095 mRect.set(bounds.left + inset, bounds.top + inset,
1096 bounds.right - inset, bounds.bottom - inset);
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DRoundRectShape.java61 public RoundRectShape(@Nullable float[] outerRadii, @Nullable RectF inset, in RoundRectShape() argument
70 mInset = inset; in RoundRectShape()
73 if (inset != null) { in RoundRectShape()
/frameworks/base/core/java/android/gesture/
DGesture.java220 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DGlifListLayout.java125 public void setDividerInset(int inset) { in setDividerInset() argument
126 mListMixin.setDividerInset(inset); in setDividerInset()
DSetupWizardListLayout.java117 public void setDividerInset(int inset) { in setDividerInset() argument
118 mListMixin.setDividerInset(inset); in setDividerInset()
/frameworks/support/design/src/android/support/design/widget/
DCoordinatorLayout.java879 final int inset = mLastInsets != null ? mLastInsets.getSystemWindowInsetTop() : 0; in onDraw() local
880 if (inset > 0) { in onDraw()
881 mStatusBarBackground.setBounds(0, 0, getWidth(), inset); in onDraw()
1251 final Rect inset = acquireTempRect(); in onChildViewsChanged() local
1281 inset.top = Math.max(inset.top, drawRect.bottom); in onChildViewsChanged()
1284 inset.bottom = Math.max(inset.bottom, getHeight() - drawRect.top); in onChildViewsChanged()
1289 inset.left = Math.max(inset.left, drawRect.right); in onChildViewsChanged()
1292 inset.right = Math.max(inset.right, getWidth() - drawRect.left); in onChildViewsChanged()
1299 offsetChildByInset(child, inset, layoutDirection); in onChildViewsChanged()
1348 releaseTempRect(inset); in onChildViewsChanged()
[all …]
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/
DSetupWizardRecyclerLayout.java151 public void setDividerInset(int inset) { in setDividerInset() argument
152 mRecyclerMixin.setDividerInset(inset); in setDividerInset()
DGlifRecyclerLayout.java152 public void setDividerInset(int inset) { in setDividerInset() argument
153 mRecyclerMixin.setDividerInset(inset); in setDividerInset()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DListMixin.java146 public void setDividerInset(int inset) { in setDividerInset() argument
147 mDividerInset = inset; in setDividerInset()
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/template/
DRecyclerMixin.java184 public void setDividerInset(int inset) { in setDividerInset() argument
185 mDividerInset = inset; in setDividerInset()
/frameworks/base/graphics/java/android/graphics/
DRect.java327 public void inset(int dx, int dy) { in inset() method in Rect
340 public void inset(Rect insets) { in inset() method in Rect
355 public void inset(int left, int top, int right, int bottom) { in inset() method in Rect
/frameworks/base/services/core/java/com/android/server/wm/
DStackWindowController.java294 stableBounds.inset(mTmpStableInsets); in adjustConfigurationForBounds()
295 nonDecorBounds.inset(mTmpNonDecorInsets); in adjustConfigurationForBounds()
347 inOutBounds.inset(leftInset, topInset, rightInset, bottomInset); in intersectDisplayBoundsExcludeInsets()
/frameworks/base/core/java/android/view/
DTouchDelegate.java92 mSlopBounds.inset(-mSlop, -mSlop); in TouchDelegate()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DNotificationCompatImplBase.java418 int inset = (size - iconSize) / 2; in createIconWithBackground() local
419 icon.setBounds(inset, inset, iconSize + inset, iconSize + inset); in createIconWithBackground()
/frameworks/support/core-ui/java/android/support/v4/widget/
DMaterialProgressDrawable.java531 arcBounds.inset(mStrokeInset, mStrokeInset); in draw()
561 float inset = (int) mStrokeInset / 2 * mArrowScale; in drawTriangle() local
573 mArrow.offset(x - inset, y); in drawTriangle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java754 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/tests/servicestests/src/com/android/server/wm/
DAppBoundsTests.java109 insetBounds.inset(5, 5, 5, 5); in testContainedBounds()
/frameworks/support/wear/src/android/support/wear/widget/
DProgressDrawable.java128 mInnerCircleBounds.inset(mCircleBorderWidth / 2.0f, mCircleBorderWidth / 2.0f); in draw()
/frameworks/base/core/java/android/view/animation/
DAnimation.java1031 invalidate.inset(-1.0f, -1.0f); in getInvalidateRegion()
1057 region.inset(-1.0f, -1.0f); in initializeInvalidateRegion()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java82 newBounds.inset((int)-elevation, (int)-elevation); in drawShadow()
/frameworks/base/libs/hwui/
DSnapshot.cpp154 state->innerRect.inset(radius); in setClippingRoundRect()

123