Home
last modified time | relevance | path

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

12345

/frameworks/layoutlib/bridge/src/android/view/
DRectShadowPainter.java95 shadowRect.inset(-shadowSize, -shadowSize); in paintShadow()
97 RectF inset = new RectF(outline); in paintShadow() local
98 inset.inset(radius, radius); in paintShadow()
104 edgeShadowRect.set(-shadowSize, 0f, 0f, inset.height()); in paintShadow()
106 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0); in paintShadow()
108 sideShadow(canvas, edgePaint, edgeShadowRect, outline.right, inset.bottom, 2); in paintShadow()
110 edgeShadowRect.set(-shadowSize, 0, 0, inset.width()); in paintShadow()
111 sideShadow(canvas, edgePaint, edgeShadowRect, inset.right, outline.top, 1); in paintShadow()
114 edgeShadowRect.set(-shadowSize, 0, shadowSize / 2f, inset.width()); in paintShadow()
117 sideShadow(canvas, edgePaint, edgeShadowRect, inset.left, outline.bottom, 3); in paintShadow()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DInsetDrawable.java78 public InsetDrawable(@Nullable Drawable drawable, int inset) { in InsetDrawable() argument
79 this(drawable, inset, inset, inset, inset); in InsetDrawable()
88 public InsetDrawable(@Nullable Drawable drawable, float inset) { in InsetDrawable() argument
89 this(drawable, inset, inset, inset, inset); in InsetDrawable()
194 final InsetValue inset = getInset(a, R.styleable.InsetDrawable_inset, new InsetValue()); in updateStateFromTypedArray() local
195 state.mInsetLeft = inset; in updateStateFromTypedArray()
196 state.mInsetTop = inset; in updateStateFromTypedArray()
197 state.mInsetRight = inset; in updateStateFromTypedArray()
198 state.mInsetBottom = inset; in updateStateFromTypedArray()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java93 int inset = 0; in findCutoutInsetForSide() local
96 return Math.max(inset, boundingRect.bottom); in findCutoutInsetForSide()
98 return Math.max(inset, display.getHeight() - boundingRect.top); in findCutoutInsetForSide()
100 return Math.max(inset, boundingRect.right); in findCutoutInsetForSide()
102 return Math.max(inset, display.getWidth() - boundingRect.left); in findCutoutInsetForSide()
/frameworks/base/core/java/android/view/
DRoundScrollbarRenderer.java93 float inset = thumbWidth / 2 + mMaskThickness; in drawRoundScrollbars() local
95 bounds.left + inset, in drawRoundScrollbars()
96 bounds.top + inset, in drawRoundScrollbars()
97 bounds.right - inset, in drawRoundScrollbars()
98 bounds.bottom - inset); in drawRoundScrollbars()
DCutoutSpecification.java278 private void setSafeInset(int gravity, int inset) {
280 mSafeInsetLeft = inset;
282 mSafeInsetTop = inset;
284 mSafeInsetRight = inset;
286 mSafeInsetBottom = inset;
/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/
DChatActivity.java142 int inset = (int) (mDownInsets.bottom + (mDown - mCurrent)); in onCreate()
147 inset = max(inset, hidden); in onCreate()
148 inset = min(inset, shown); in onCreate()
150 Insets.of(0, 0, 0, inset), in onCreate()
151 1f, (inset - start) / (float)(end - start)); in onCreate()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DBrushPropertyDrawable.kt69 val inset = _size / 12 // 2dp in a 24x24 icon in draw() constant
72 c.drawCircle(w/2, h/2, (r - inset) * _scale + 1 , wellPaint) in draw()
76 p.addCircle(w/2, h/2, r - inset, Path.Direction.CW) in draw()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBadgedImageView.java122 final int inset = (bubbleSize - normalizedSize) / 2; in getOutline() local
123 outline.setOval(inset, inset, inset + normalizedSize, inset + normalizedSize); in getOutline()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDragLayout.java124 target.drawRegion.inset(mDisplayMargin, mDisplayMargin); in recomputeDropTargets()
142 finalBounds.inset(mDisplayMargin, mDisplayMargin); in update()
148 initialBounds.inset(mDisplayMargin, mDisplayMargin); in update()
168 finalBounds.inset(mDisplayMargin, mDisplayMargin); in hide()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java165 float inset = AdaptiveIconDrawable.getExtraInsetFraction(); in createShapedIconBitmap() local
166 inset = inset / (1 + 2 * inset); in createShapedIconBitmap()
168 new InsetDrawable(d, inset, inset, inset, inset)); in createShapedIconBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessSliderView.java197 int inset = (mProgressDrawable.getIntrinsicHeight() - height) / 2; in applySliderScale() local
198 mProgressDrawable.setBounds(r.left, inset, r.right, inset + height); in applySliderScale()
/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/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java245 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_immutable()
252 DisplayCutout cutout = createCutoutWithInsets(100, 0, 0, 0).inset(1, 2, 3, 4); in inset_insets_withLeftCutout()
262 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_insets_withTopCutout()
272 DisplayCutout cutout = createCutoutWithInsets(0, 0, 100, 0).inset(1, 2, 3, 4); in inset_insets_withRightCutout()
282 DisplayCutout cutout = createCutoutWithInsets(0, 0, 0, 100).inset(1, 2, 3, 4); in inset_insets_withBottomCutout()
292 DisplayCutout cutout = createCutoutWaterfallOnly(Insets.of(0, 10, 0, 10)).inset(1, 2, 3, 4); in inset_insets_withWaterfallCutout()
302 DisplayCutout cutout = mCutoutTop.inset(0, 1000, 0, 0); in inset_insets_consumeInset()
314 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_bounds()
/frameworks/native/libs/renderengine/gl/
DGLSkiaShadowPort.cpp433 float inset = umbraInset + args.fInnerRadius; in fillInRRectVerts() local
436 position[vertexCount] = vec2(bounds.left + inset, bounds.top + inset); in fillInRRectVerts()
442 position[vertexCount] = vec2(bounds.right - inset, bounds.top + inset); in fillInRRectVerts()
448 position[vertexCount] = vec2(bounds.left + inset, bounds.bottom - inset); in fillInRRectVerts()
454 position[vertexCount] = vec2(bounds.right - inset, bounds.bottom - inset); in fillInRRectVerts()
/frameworks/av/media/libstagefright/renderfright/gl/
DGLSkiaShadowPort.cpp433 float inset = umbraInset + args.fInnerRadius; in fillInRRectVerts() local
436 position[vertexCount] = vec2(bounds.left + inset, bounds.top + inset); in fillInRRectVerts()
442 position[vertexCount] = vec2(bounds.right - inset, bounds.top + inset); in fillInRRectVerts()
448 position[vertexCount] = vec2(bounds.left + inset, bounds.bottom - inset); in fillInRRectVerts()
454 position[vertexCount] = vec2(bounds.right - inset, bounds.bottom - inset); in fillInRRectVerts()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DRoundRectShape.java64 public RoundRectShape(@Nullable float[] outerRadii, @Nullable RectF inset, in RoundRectShape() argument
73 mInset = inset; in RoundRectShape()
76 if (inset != null) { in RoundRectShape()
/frameworks/base/services/core/java/com/android/server/wm/
DInputWindowHandleWrapper.java246 void setSurfaceInset(int inset) { in setSurfaceInset() argument
247 if (mHandle.surfaceInset == inset) { in setSurfaceInset()
250 mHandle.surfaceInset = inset; in setSurfaceInset()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/
DLegacySplitDisplayLayout.java79 tmpRect.inset(mDisplayLayout.nonDecorInsets()); in rotateTo()
82 tmpRect.inset(mDisplayLayout.stableInsets()); in rotateTo()
260 insettedDisplay.inset(tmpDL.stableInsets()); in getSmallestWidthDpForBounds()
273 tmpRect.inset(dl.nonDecorInsets()); in initSnapAlgorithmForRotation()
276 tmpRect.inset(dl.stableInsets()); in initSnapAlgorithmForRotation()
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/
DGlowingCard.kt69 rect.inset(3.dp(), 3.dp()) in onDraw()
76 rect.inset(5.dp(), 5.dp()) in onDraw()
/frameworks/base/core/java/com/android/internal/widget/
DEmphasizedNotificationButton.java63 DrawableWrapper inset = (DrawableWrapper) mRipple.getDrawable(0); in EmphasizedNotificationButton() local
64 mBackground = (GradientDrawable) inset.getDrawable(); in EmphasizedNotificationButton()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java260 outBounds.inset(mStableInsets); in getStableBounds()
423 int inset = 0; in findCutoutInsetForSide() local
426 return Math.max(inset, boundingRect.bottom); in findCutoutInsetForSide()
428 return Math.max(inset, display.getHeight() - boundingRect.top); in findCutoutInsetForSide()
430 return Math.max(inset, boundingRect.right); in findCutoutInsetForSide()
432 return Math.max(inset, display.getWidth() - boundingRect.left); in findCutoutInsetForSide()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DSetupWizardListLayout.java115 public void setDividerInset(int inset) { in setDividerInset() argument
116 listMixin.setDividerInset(inset); in setDividerInset()
DGlifListLayout.java110 public void setDividerInset(int inset) { in setDividerInset() argument
111 listMixin.setDividerInset(inset); in setDividerInset()
/frameworks/base/core/java/com/android/internal/policy/
DGestureNavigationSettingsObserver.java111 final float inset = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, backGestureInset, in getSensitivity() local
115 return (int) (inset * scale); in getSensitivity()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DSetupWizardRecyclerLayout.java135 public void setDividerInset(int inset) { in setDividerInset() argument
136 mRecyclerMixin.setDividerInset(inset); in setDividerInset()

12345