Home
last modified time | relevance | path

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

12345

/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A 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()
/aosp14/frameworks/base/core/java/android/view/
H A 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()
H A DCutoutSpecification.java321 private void setSafeInset(int gravity, int inset) {
323 mSafeInsetLeft = inset;
325 mSafeInsetTop = inset;
327 mSafeInsetRight = inset;
329 mSafeInsetBottom = inset;
H A DWindowInsets.java956 public WindowInsets inset(Rect r) { in inset() method in WindowInsets
957 return inset(r.left, r.top, r.right, r.bottom); in inset()
976 public WindowInsets inset(@NonNull Insets insets) { in inset() method in WindowInsets
978 return inset(insets.left, insets.top, insets.right, insets.bottom); in inset()
1003 public WindowInsets inset(@IntRange(from = 0) int left, @IntRange(from = 0) int top, in inset() method in WindowInsets
1032 : mDisplayCutout.inset(left, top, right, bottom), in insetUnchecked()
1035 : mRoundedCorners.inset(left, top, right, bottom), in insetUnchecked()
1038 : mPrivacyIndicatorBounds.inset(left, top, right, bottom), in insetUnchecked()
/aosp14/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/
H A 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()
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
H A DBrushPropertyDrawable.kt69 val inset = _size / 12 // 2dp in a 24x24 icon regex
72 c.drawCircle(w/2, h/2, (r - inset) * _scale + 1 , wellPaint)
76 p.addCircle(w/2, h/2, r - inset, Path.Direction.CW)
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBadgedImageView.java136 final int inset = (bubbleSize - normalizedSize) / 2; in getOutline() local
137 outline.setOval(inset, inset, inset + normalizedSize, inset + normalizedSize); in getOutline()
/aosp14/frameworks/base/core/java/android/gesture/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
H A DBrightnessSliderView.java200 int inset = (mProgressDrawable.getIntrinsicHeight() - height) / 2; in applySliderScale() local
201 mProgressDrawable.setBounds(r.left, inset, r.right, inset + height); in applySliderScale()
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DRoundRectShape.java64 public RoundRectShape(@Nullable float[] outerRadii, @Nullable RectF inset, in RoundRectShape() argument
73 mInset = inset; in RoundRectShape()
76 if (inset != null) { in RoundRectShape()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DDisplayCutoutTest.java249 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_immutable()
256 DisplayCutout cutout = createCutoutWithInsets(100, 0, 0, 0).inset(1, 2, 3, 4); in inset_insets_withLeftCutout()
266 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_insets_withTopCutout()
276 DisplayCutout cutout = createCutoutWithInsets(0, 0, 100, 0).inset(1, 2, 3, 4); in inset_insets_withRightCutout()
286 DisplayCutout cutout = createCutoutWithInsets(0, 0, 0, 100).inset(1, 2, 3, 4); in inset_insets_withBottomCutout()
296 DisplayCutout cutout = createCutoutWaterfallOnly(Insets.of(0, 10, 0, 10)).inset(1, 2, 3, 4); in inset_insets_withWaterfallCutout()
306 DisplayCutout cutout = mCutoutTop.inset(0, 1000, 0, 0); in inset_insets_consumeInset()
318 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_bounds()
H A DRoundedCornersTest.java114 RoundedCorners roundedCorners = mRoundedCorners.inset(1, 2, 3, 4); in testInsetRoundedCorners_partialOverlap()
128 RoundedCorners roundedCorners = mRoundedCorners.inset(20, 20, 20, 20); in testInsetRoundedCorners_noOverlap()
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/
H A DGlowingCard.kt69 rect.inset(3.dp(), 3.dp())
76 rect.inset(5.dp(), 5.dp())
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DInputWindowHandleWrapper.java242 void setSurfaceInset(int inset) { in setSurfaceInset() argument
243 if (mHandle.surfaceInset == inset) { in setSurfaceInset()
246 mHandle.surfaceInset = inset; in setSurfaceInset()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DEmphasizedNotificationButton.java63 DrawableWrapper inset = (DrawableWrapper) mRipple.getDrawable(0); in EmphasizedNotificationButton() local
64 mBackground = (GradientDrawable) inset.getDrawable(); in EmphasizedNotificationButton()
H A DNotificationActionListLayout.java327 int inset = getResources().getDimensionPixelSize( in updateHeights() local
330 com.android.internal.R.dimen.notification_content_margin) - inset; in updateHeights()
333 com.android.internal.R.dimen.notification_content_margin_end) - inset; in updateHeights()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DDisplayLayout.java331 outBounds.inset(mStableInsets); in getStableBounds()
476 int inset = 0; in findCutoutInsetForSide() local
479 return Math.max(inset, boundingRect.bottom); in findCutoutInsetForSide()
481 return Math.max(inset, display.getHeight() - boundingRect.top); in findCutoutInsetForSide()
483 return Math.max(inset, boundingRect.right); in findCutoutInsetForSide()
485 return Math.max(inset, display.getWidth() - boundingRect.left); in findCutoutInsetForSide()
/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DLayerDrawable.cpp98 cropRect->inset(shrinkAmount, 0); in adjustCropForYUV()
102 cropRect->inset(0, shrinkAmount); in adjustCropForYUV()
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DGestureNavigationSettingsObserver.java168 final float inset = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, backGestureInset, in getUnscaledInset() local
170 return inset; in getUnscaledInset()
/aosp14/frameworks/base/core/java/android/window/
H A DWindowMetricsHelper.java46 result.inset(windowInsets.getInsetsIgnoringVisibility(navigationBars() | displayCutout())); in getBoundsExcludingNavigationBarAndCutout()
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DRect.java423 public void inset(int dx, int dy) { in inset() method in Rect
436 public void inset(@NonNull Rect insets) { in inset() method in Rect
448 public void inset(@NonNull Insets insets) { in inset() method in Rect
463 public void inset(int left, int top, int right, int bottom) { in inset() method in Rect
/aosp14/frameworks/base/core/java/com/android/internal/view/
H A DScrollCaptureViewHelper.java84 bounds.inset(view.getPaddingLeft(), view.getPaddingTop(), in onComputeScrollBounds()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
H A DPipSurfaceTransactionHelper.java117 mTmpDestinationRect.inset(insets); in scaleAndCrop()
154 mTmpDestinationRect.inset(insets); in rotateAndScaleWithCrop()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/pip/
H A DPipSurfaceTransactionHelper.java87 mTmpDestinationRect.inset(insets); in scaleAndCrop()
123 mTmpDestinationRect.inset(insets); in scaleAndRotate()
/aosp14/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/qs/footer/ui/compose/
H A DFooterActions.kt159 val inset = 4.dp.roundToPx() regex
160 val additionalWidth = inset * 2
171 layout(width, height) { placeable.place(-inset, 0) }

12345