/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | WmDisplayCutout.java | 58 * @return a copy of this instance which has been inset 61 public WmDisplayCutout inset(int insetLeft, int insetTop, int insetRight, int insetBottom) { method in class:WmDisplayCutout 62 DisplayCutout newInner = mInner.inset(insetLeft, insetTop, insetRight, insetBottom); 87 return inset(frame.left, frame.top, 123 int inset = 0; 130 inset = Math.max(inset, boundingRect.bottom); 135 inset = Math.max(inset, display.getHeight() - boundingRect.top); 140 inset [all...] |
/frameworks/layoutlib/bridge/src/android/view/ |
H A D | RectShadowPainter.java | 95 shadowRect.inset(-shadowSize, -shadowSize); 97 RectF inset = new RectF(outline); 98 inset.inset(radius, radius); 104 edgeShadowRect.set(-shadowSize, 0f, 0f, inset.height()); 106 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0); 108 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2); 110 edgeShadowRect.set(-shadowSize, 0, 0, inset.width()); 111 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1); 112 // bottom shadow. This needs an inset s [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FakeShadowDrawable.java | 60 // updated value with inset 189 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2; 190 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0; 191 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0; 194 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset); 198 mCardBounds.width() - 2 * inset, -mCornerRadius, 204 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset); 209 mCardBounds.width() - 2 * inset, [all...] |
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/ |
H A D | RoundRectDrawableWithShadow.java | 250 final float inset = mCornerRadius + mInsetShadow + mRawShadowSize / 2; 251 final boolean drawHorizontalEdges = mCardBounds.width() - 2 * inset > 0; 252 final boolean drawVerticalEdges = mCardBounds.height() - 2 * inset > 0; 255 canvas.translate(mCardBounds.left + inset, mCardBounds.top + inset); 259 mCardBounds.width() - 2 * inset, -mCornerRadius, 265 canvas.translate(mCardBounds.right - inset, mCardBounds.bottom - inset); 270 mCardBounds.width() - 2 * inset, -mCornerRadius + mShadowSize, 276 canvas.translate(mCardBounds.left + inset, mCardBound [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | InsetDrawable.java | 45 * <p>It can be defined in an XML file with the <code><inset></code> element. For more 70 * Creates a new inset drawable with the specified inset. 72 * @param drawable The drawable to inset. 73 * @param inset Inset in pixels around the drawable. 75 public InsetDrawable(@Nullable Drawable drawable, int inset) { argument 76 this(drawable, inset, inset, inset, inset); 85 InsetDrawable(@ullable Drawable drawable, float inset) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | DisplayCutoutTest.java | 95 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); 102 DisplayCutout cutout = createCutoutWithInsets(100, 0, 0, 0).inset(1, 2, 3, 4); 112 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); 122 DisplayCutout cutout = createCutoutWithInsets(0, 0, 100, 0).inset(1, 2, 3, 4); 132 DisplayCutout cutout = createCutoutWithInsets(0, 0, 0, 100).inset(1, 2, 3, 4); 142 DisplayCutout cutout = mCutoutTop.inset(0, 1000, 0, 0); 154 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4);
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | RoundRectShape.java | 27 * Creates a rounded-corner rectangle. Optionally, an inset (rounded) rectangle 51 * @param inset A RectF that specifies the distance from the inner 58 * inset parameter is {@code null}, this parameter is 61 public RoundRectShape(@Nullable float[] outerRadii, @Nullable RectF inset, argument 70 mInset = inset; 73 if (inset != null) {
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | GlifListLayout.java | 119 public void setDividerInset(int inset) { argument 120 mListMixin.setDividerInset(inset); 124 * Sets the start inset of the divider. This will use the default divider drawable set in the 127 * @param start The number of pixels to inset on the "start" side of the list divider. Typically 130 * @param end The number of pixels to inset on the "end" side of the list divider.
|
H A D | SetupWizardListLayout.java | 108 * Sets the start inset of the divider. This will use the default divider drawable set in the 109 * theme and inset it {@code inset} pixels to the right (or left in RTL layouts). 111 * @param inset The number of pixels to inset on the "start" side of the list divider. Typically 119 public void setDividerInset(int inset) { argument 120 mListMixin.setDividerInset(inset); 124 * Sets the start inset of the divider. This will use the default divider drawable set in the 127 * @param start The number of pixels to inset on the "start" side of the list divider. Typically 130 * @param end The number of pixels to inset o [all...] |
/frameworks/base/core/java/android/view/ |
H A D | TouchDelegate.java | 90 mSlopBounds.inset(-mSlop, -mSlop);
|
H A D | WindowInsets.java | 30 * <p>WindowInsets are immutable and may be expanded to include more inset types in the future. 141 * Returns the left system window inset in pixels. 143 * <p>The system window inset represents the area of a full-screen window that is 147 * @return The left system window inset 154 * Returns the top system window inset in pixels. 156 * <p>The system window inset represents the area of a full-screen window that is 160 * @return The top system window inset 167 * Returns the right system window inset in pixels. 169 * <p>The system window inset represents the area of a full-screen window that is 173 * @return The right system window inset 556 public WindowInsets inset(Rect r) { method in class:WindowInsets 581 public WindowInsets inset(int left, int top, int right, int bottom) { method in class:WindowInsets [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | Gesture.java | 216 * @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/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/ |
H A D | CircularProgressDrawable.java | 708 float inset = mStrokeWidth / 2f; // Calculate inset to draw inside the arc 709 arcBounds.inset(inset, inset); // Apply inset 712 arcBounds.inset(-inset, -inset); // Revert the inset [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
H A D | ListMixin.java | 152 public void setDividerInset(int inset) { argument 153 setDividerInsets(inset, 0); 157 * Sets the start inset of the divider. This will use the default divider drawable set in the 160 * @param start The number of pixels to inset on the "start" side of the list divider. Typically 163 * @param end The number of pixels to inset on the "end" side of the list divider. 172 * @return The number of pixels inset on the start side of the divider. 181 * @return The number of pixels inset on the start side of the divider. 188 * @return The number of pixels inset on the end side of the divider.
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/ |
H A D | GlifRecyclerLayout.java | 155 public void setDividerInset(int inset) { argument 156 mRecyclerMixin.setDividerInset(inset);
|
H A D | SetupWizardRecyclerLayout.java | 147 public void setDividerInset(int inset) { argument 148 mRecyclerMixin.setDividerInset(inset); 152 * Sets the start inset of the divider. This will use the default divider drawable set in the 155 * @param start The number of pixels to inset on the "start" side of the list divider. Typically 158 * @param end The number of pixels to inset on the "end" side of the list divider.
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/ |
H A D | RecyclerMixin.java | 191 public void setDividerInset(int inset) { argument 192 setDividerInsets(inset, 0); 196 * Sets the start inset of the divider. This will use the default divider drawable set in the 199 * @param start The number of pixels to inset on the "start" side of the list divider. Typically 202 * @param end The number of pixels to inset on the "end" side of the list divider. 211 * @return The number of pixels inset on the start side of the divider. 220 * @return The number of pixels inset on the start side of the divider. 227 * @return The number of pixels inset on the end side of the divider.
|
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/ |
H A D | CoordinatorLayout.java | 107 * view insets the CoordinatorLayout. Any child views which are set to dodge the same inset edges by 898 final int inset = mLastInsets != null ? mLastInsets.getSystemWindowInsetTop() : 0; 899 if (inset > 0) { 900 mStatusBarBackground.setBounds(0, 0, getWidth(), inset); 1277 final Rect inset = acquireTempRect(); 1301 // Accumulate inset sizes 1307 inset.top = Math.max(inset.top, drawRect.bottom); 1310 inset.bottom = Math.max(inset 1379 offsetChildByInset(final View child, final Rect inset, final int layoutDirection) argument [all...] |
/frameworks/support/wear/src/main/java/androidx/wear/widget/ |
H A D | RoundedDrawable.java | 222 mTmpBounds.inset(padding, padding); 225 mTmpBounds.inset(-padding, -padding);
|
H A D | ProgressDrawable.java | 126 mInnerCircleBounds.inset(mCircleBorderWidth / 2.0f, mCircleBorderWidth / 2.0f);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Rect.java | 356 public void inset(int dx, int dy) { method in class:Rect 369 public void inset(Rect insets) { method in class:Rect 384 public void inset(int left, int top, int right, int bottom) { method in class:Rect 491 * @see #inset(int, int, int, int) but without checking if the rects overlap.
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StackWindowController.java | 292 // dimensions, then apply the same inset calculations that we normally do for 294 stableBounds.inset(mTmpStableInsets); 295 nonDecorBounds.inset(mTmpNonDecorInsets); 304 // For calculating screenWidthDp, screenWidthDp, we use the stable inset screen 307 // The non decor inset are areas that could never be removed in Honeycomb. See 335 * inset areas. 337 * @param inOutBounds The inOutBounds to subtract the stable inset areas from. 347 inOutBounds.inset(leftInset, topInset, rightInset, bottomInset);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | StackScrollAlgorithm.java | 395 float inset = ambientState.getTopPadding() + ambientState.getStackTranslation(); 397 inset += ambientState.getExpandAnimationTopChange(); 402 float end = childViewState.yTranslation + childViewState.height + inset; 423 childViewState.yTranslation += inset;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | SmartReplyView.java | 601 Drawable inset = ripple.getDrawable(0); 602 if (inset instanceof InsetDrawable) { 603 Drawable background = ((InsetDrawable) inset).getDrawable();
|
/frameworks/base/core/java/android/view/animation/ |
H A D | Animation.java | 1058 invalidate.inset(-1.0f, -1.0f); 1084 region.inset(-1.0f, -1.0f);
|