Searched refs:inset (Results 1 - 25 of 47) sorted by relevance

12

/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java73 shadowRect.inset(-shadowSize, -shadowSize);
75 RectF inset = new RectF(outline);
76 inset.inset(radius, radius);
82 edgeShadowRect.set(-shadowSize, 0f, 0f, inset.height());
84 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0);
86 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2);
88 edgeShadowRect.set(-shadowSize, 0, 0, inset.width());
89 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1);
90 // bottom shadow. This needs an inset s
[all...]
H A DViewGroup_Delegate.java82 newBounds.inset((int)-elevation, (int)-elevation);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DFakeShadowDrawable.java59 // updated value with inset
186 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2;
187 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0;
188 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0;
191 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset);
195 mCardBounds.width() - 2 * inset, -mCornerRadius,
201 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset);
206 mCardBounds.width() - 2 * inset,
[all...]
H A DFreeformWorkspaceLayoutAlgorithm.java132 rect.inset(mTaskPadding, mTaskPadding);
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
H A DRoundRectDrawableWithShadow.java66 // updated value with inset
254 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2;
255 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0;
256 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0;
259 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset);
263 mCardBounds.width() - 2 * inset, -mCornerRadius,
269 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset);
274 mCardBounds.width() - 2 * inset,
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DInsetDrawable.java44 * <p>It can be defined in an XML file with the <code>&lt;inset></code> element. For more
68 * Creates a new inset drawable with the specified inset.
70 * @param drawable The drawable to inset.
71 * @param inset Inset in pixels around the drawable.
73 public InsetDrawable(@Nullable Drawable drawable, int inset) { argument
74 this(drawable, inset, inset, inset, inset);
[all...]
H A DGradientDrawable.java816 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/
H A DRoundRectShape.java26 * Creates a rounded-corner rectangle. Optionally, an inset (rounded) rectangle
49 * @param inset A RectF that specifies the distance from the inner
57 * If inset parameter is null, this parameter is ignored.
59 public RoundRectShape(float[] outerRadii, RectF inset, argument
68 mInset = inset;
71 if (inset != null) {
/frameworks/base/core/java/android/view/
H A DTouchDelegate.java95 mSlopBounds.inset(-mSlop, -mSlop);
/frameworks/base/core/java/android/gesture/
H A DGesture.java216 * @param inset
220 public Bitmap toBitmap(int width, int height, int inset, int color) { argument
238 final float sx = (width - 2 * inset) / bounds.width();
239 final float sy = (height - 2 * inset) / bounds.height();
246 canvas.translate(inset, inset);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DGlifListLayout.java144 * Sets the start inset of the divider. This will use the default divider drawable set in the
145 * theme and inset it {@code inset} pixels to the right (or left in RTL layouts).
147 * @param inset The number of pixels to inset on the "start" side of the list divider. Typically
151 public void setDividerInset(int inset) { argument
152 mDividerInset = inset;
H A DSetupWizardListLayout.java129 * Sets the start inset of the divider. This will use the default divider drawable set in the
130 * theme and inset it {@code inset} pixels to the right (or left in RTL layouts).
132 * @param inset The number of pixels to inset on the "start" side of the list divider. Typically
136 public void setDividerInset(int inset) { argument
137 mDividerInset = inset;
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/
H A DGlifRecyclerLayout.java165 * Sets the start inset of the divider. This will use the default divider drawable set in the
166 * theme and inset it {@code inset} pixels to the right (or left in RTL layouts).
168 * @param inset The number of pixels to inset on the "start" side of the list divider. Typically
172 public void setDividerInset(int inset) { argument
173 mDividerInset = inset;
H A DSetupWizardRecyclerLayout.java178 * Sets the start inset of the divider. This will use the default divider drawable set in the
179 * theme and inset it {@code inset} pixels to the right (or left in RTL layouts).
181 * @param inset The number of pixels to inset on the "start" side of the list divider. Typically
185 public void setDividerInset(int inset) { argument
186 mDividerInset = inset;
/frameworks/base/graphics/java/android/graphics/
H A DRect.java322 public void inset(int dx, int dy) { method in class:Rect
335 public void inset(Rect insets) { method in class:Rect
350 public void inset(int left, int top, int right, int bottom) { method in class:Rect
H A DRectF.java267 public void inset(float dx, float dy) { method in class:RectF
/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayContent.java342 mTmpRect.inset(-delta, -delta);
344 mTmpRect.inset(delta, delta);
393 mTmpRect.inset(-delta, -delta);
/frameworks/support/v4/java/android/support/v4/widget/
H A DMaterialProgressDrawable.java531 arcBounds.inset(mStrokeInset, mStrokeInset);
559 // Adjust the position of the triangle so that it is inset as
561 float inset = (int) mStrokeInset / 2 * mArrowScale;
573 mArrow.offset(x - inset, y);
/frameworks/base/core/java/android/view/animation/
H A DAnimation.java1030 invalidate.inset(-1.0f, -1.0f);
1056 region.inset(-1.0f, -1.0f);
/frameworks/base/libs/hwui/
H A DSnapshot.cpp222 state->innerRect.inset(radius);
H A DRect.h191 void inset(float delta) { function in class:android::uirenderer::Rect
223 * inset the bounds first by the fudge factor. Very small fraction-of-a-pixel errors
224 * from this inset will only incur similarly small errors in output, due to transparency
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable.java227 // inset the drawing rectangle to the largest contained square,
232 mDstRect.inset(insetX, insetY);
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
H A DRoundRectDrawable.java113 mBoundsI.inset((int) Math.ceil(hInset), (int) Math.ceil(vInset));
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A 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/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
H A DMultiSelectManager_GridModelTest.java239 selectionArea.inset(-1, -1);

Completed in 7567 milliseconds

12