/aosp14/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | InsetDrawable.java | 78 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 D | RoundScrollbarRenderer.java | 93 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 D | CutoutSpecification.java | 321 private void setSafeInset(int gravity, int inset) { 323 mSafeInsetLeft = inset; 325 mSafeInsetTop = inset; 327 mSafeInsetRight = inset; 329 mSafeInsetBottom = inset;
|
H A D | WindowInsets.java | 956 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 D | ChatActivity.java | 142 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 D | BrushPropertyDrawable.kt | 69 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 D | BadgedImageView.java | 136 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 D | Gesture.java | 220 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 D | BrightnessSliderView.java | 200 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 D | RoundRectShape.java | 64 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 D | DisplayCutoutTest.java | 249 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 D | RoundedCornersTest.java | 114 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 D | GlowingCard.kt | 69 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 D | InputWindowHandleWrapper.java | 242 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 D | EmphasizedNotificationButton.java | 63 DrawableWrapper inset = (DrawableWrapper) mRipple.getDrawable(0); in EmphasizedNotificationButton() local 64 mBackground = (GradientDrawable) inset.getDrawable(); in EmphasizedNotificationButton()
|
H A D | NotificationActionListLayout.java | 327 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 D | DisplayLayout.java | 331 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 D | LayerDrawable.cpp | 98 cropRect->inset(shrinkAmount, 0); in adjustCropForYUV() 102 cropRect->inset(0, shrinkAmount); in adjustCropForYUV()
|
/aosp14/frameworks/base/core/java/com/android/internal/policy/ |
H A D | GestureNavigationSettingsObserver.java | 168 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 D | WindowMetricsHelper.java | 46 result.inset(windowInsets.getInsetsIgnoringVisibility(navigationBars() | displayCutout())); in getBoundsExcludingNavigationBarAndCutout()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | Rect.java | 423 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 D | ScrollCaptureViewHelper.java | 84 bounds.inset(view.getPaddingLeft(), view.getPaddingTop(), in onComputeScrollBounds()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
H A D | PipSurfaceTransactionHelper.java | 117 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 D | PipSurfaceTransactionHelper.java | 87 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 D | FooterActions.kt | 159 val inset = 4.dp.roundToPx() regex 160 val additionalWidth = inset * 2 171 layout(width, height) { placeable.place(-inset, 0) }
|