/frameworks/base/graphics/java/android/graphics/drawable/ |
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()
|
/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/ |
D | ChatActivity.java | 143 int inset = (int) (mDownInsets.bottom + (mDown - mCurrent)); in onCreate() 148 inset = max(inset, hidden); in onCreate() 149 inset = min(inset, shown); in onCreate() 151 Insets.of(0, 0, 0, inset), in onCreate() 152 1f, start == end ? 1f : (inset - start) / (float) (end - start)); in onCreate()
|
/frameworks/base/core/java/android/view/ |
D | RoundScrollbarRenderer.java | 136 float inset = thumbWidth / 2 + mMaskThickness; in drawRoundScrollbars() local 138 bounds.left + inset, in drawRoundScrollbars() 139 bounds.top + inset, in drawRoundScrollbars() 140 bounds.right - inset, in drawRoundScrollbars() 141 bounds.bottom - inset); in drawRoundScrollbars()
|
D | CutoutSpecification.java | 321 private void setSafeInset(int gravity, int inset) { 323 mSafeInsetLeft = inset; 325 mSafeInsetTop = inset; 327 mSafeInsetRight = inset; 329 mSafeInsetBottom = inset;
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | BrushPropertyDrawable.kt | 69 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/packages/SystemUI/tests/src/com/android/systemui/keyboard/docking/ui/viewmodel/ |
D | KeyboardDockingIndicationViewModelTest.kt | 78 val inset = WindowInsets(Rect(1, 1, 1, 1)) in onConfigurationChanged_createsNewConfig() constant 81 doReturn(WindowMetrics(oldBounds, inset, density)) in onConfigurationChanged_createsNewConfig() 90 doReturn(WindowMetrics(newBounds, inset, density)) in onConfigurationChanged_createsNewConfig()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BadgedImageView.java | 136 final int inset = (bubbleSize - normalizedSize) / 2; in getOutline() local 137 outline.setOval(inset, inset, inset + normalizedSize, inset + normalizedSize); in getOutline()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | MaximizeMenu.kt | 593 private fun LayerDrawable.setLayerInset(index: IntArray, inset: Int) { in LayerDrawable() 595 setLayerInset(i, inset, inset, inset, inset) in LayerDrawable() 599 private fun LayerDrawable.setLayerInset(index: Int, inset: Int) { in LayerDrawable() 600 setLayerInset(index, inset, inset, inset, inset) in LayerDrawable()
|
/frameworks/base/core/java/android/gesture/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/ |
D | BrightnessSliderView.java | 218 int inset = (mProgressDrawable.getIntrinsicHeight() - height) / 2; in applySliderScale() local 219 mProgressDrawable.setBounds(r.left, inset, r.right, inset + height); in applySliderScale()
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
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()
|
/frameworks/av/media/libstagefright/renderfright/gl/ |
D | GLSkiaShadowPort.cpp | 433 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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | BaseIconFactory.java | 191 float inset = getExtraInsetFraction(); in createShapedIconBitmap() local 192 inset = inset / (1 + 2 * inset); in createShapedIconBitmap() 194 new InsetDrawable(d, inset, inset, inset, inset)); in createShapedIconBitmap()
|
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/ |
D | GlowingCard.kt | 69 rect.inset(3.dp(), 3.dp()) in onDraw() 76 rect.inset(5.dp(), 5.dp()) in onDraw()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InputWindowHandleWrapper.java | 234 void setSurfaceInset(int inset) { in setSurfaceInset() argument 235 if (mHandle.surfaceInset == inset) { in setSurfaceInset() 238 mHandle.surfaceInset = inset; in setSurfaceInset()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | GlifListLayout.java | 110 public void setDividerInset(int inset) { in setDividerInset() argument 111 listMixin.setDividerInset(inset); in setDividerInset()
|
D | SetupWizardListLayout.java | 115 public void setDividerInset(int inset) { in setDividerInset() argument 116 listMixin.setDividerInset(inset); in setDividerInset()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/ |
D | SetupWizardRecyclerLayout.java | 135 public void setDividerInset(int inset) { in setDividerInset() argument 136 mRecyclerMixin.setDividerInset(inset); in setDividerInset()
|
D | GlifRecyclerLayout.java | 144 public void setDividerInset(int inset) { in setDividerInset() argument 145 mRecyclerMixin.setDividerInset(inset); in setDividerInset()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayCutoutTest.java | 251 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_immutable() 258 DisplayCutout cutout = createCutoutWithInsets(100, 0, 0, 0).inset(1, 2, 3, 4); in inset_insets_withLeftCutout() 268 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_insets_withTopCutout() 278 DisplayCutout cutout = createCutoutWithInsets(0, 0, 100, 0).inset(1, 2, 3, 4); in inset_insets_withRightCutout() 288 DisplayCutout cutout = createCutoutWithInsets(0, 0, 0, 100).inset(1, 2, 3, 4); in inset_insets_withBottomCutout() 298 DisplayCutout cutout = createCutoutWaterfallOnly(Insets.of(0, 10, 0, 10)).inset(1, 2, 3, 4); in inset_insets_withWaterfallCutout() 308 DisplayCutout cutout = mCutoutTop.inset(0, 1000, 0, 0); in inset_insets_consumeInset() 320 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_bounds()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
D | ListMixin.java | 138 public void setDividerInset(int inset) { in setDividerInset() argument 139 setDividerInsets(inset, 0); in setDividerInset()
|
/frameworks/base/core/java/android/window/ |
D | WindowMetricsHelper.java | 46 result.inset(windowInsets.getInsetsIgnoringVisibility(navigationBars() | displayCutout())); in getBoundsExcludingNavigationBarAndCutout()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/ |
D | RecyclerMixin.java | 180 public void setDividerInset(int inset) { in setDividerInset() argument 181 setDividerInsets(inset, 0); in setDividerInset()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | LayerDrawable.cpp | 98 cropRect->inset(shrinkAmount, 0); in adjustCropForYUV() 102 cropRect->inset(0, shrinkAmount); in adjustCropForYUV()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | GestureNavigationSettingsObserver.java | 176 final float inset = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, backGestureInset, in getUnscaledInset() local 178 return inset; in getUnscaledInset()
|