Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DCellLayoutLayoutParams.java130 @Nullable Rect inset) { in setup() argument
152 if (inset != null) { in setup()
153 x += inset.left; in setup()
154 y += inset.top; in setup()
155 width -= inset.left + inset.right; in setup()
156 height -= inset.top + inset.bottom; in setup()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarInsetsController.kt317 private fun getInsetsForGravityWithCutout(inset: Int, gravity: Int, rot: Int): Insets { in <lambda>()
320 val cutout = display.cutout ?: return getInsetsForGravity(inset, gravity) in <lambda>()
327 return Insets.of(0, 0, 0, maxOf(inset, rotatedCutout.safeInsetBottom)) in <lambda>()
332 val leftInset = if (isSeascape) maxOf(inset, rotatedCutout.safeInsetLeft) else 0 in <lambda>()
333 val rightInset = if (isSeascape) 0 else maxOf(inset, rotatedCutout.safeInsetRight) in <lambda>()
341 private fun getInsetsForGravity(inset: Int, gravity: Int): Insets { in <lambda>()
344 return Insets.of(0, 0, 0, inset) in <lambda>()
349 val leftInset = if (isSeascape) inset else 0 in <lambda>()
350 val rightInset = if (isSeascape) 0 else inset in <lambda>()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/bubbles/
DBubbleView.java129 final int inset = (mBubbleSize - normalizedSize) / 2; in getOutline() local
130 outline.setOval(inset, inset, inset + normalizedSize, inset + normalizedSize); in getOutline()
/packages/services/Car/car-maps-placeholder/src/com/android/car/mapsplaceholder/
DMapsPlaceholderActivity.java45 Insets inset = insets.getInsets(WindowInsets.Type.systemOverlays()); in onCreate() local
47 contentView.setPadding(0, inset.top, 0, inset.bottom); in onCreate()
/packages/modules/Permission/PermissionController/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()
DThemedIconDrawable.java275 float inset = getExtraInsetFraction() / (1 + 2 * getExtraInsetFraction()); in getThemedDrawable() local
276 Drawable fg = new InsetDrawable(mThemeData.loadMonochromeDrawable(colors[1]), inset); in getThemedDrawable()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DDisplayControllerTest.kt74 private val inset = 110 in <lambda>() constant
79 WindowBounds(Rect(0, 0, width, height), Rect(0, inset, 0, 0), Surface.ROTATION_0), in <lambda>()
80 WindowBounds(Rect(0, 0, height, width), Rect(0, inset, 0, 0), Surface.ROTATION_90), in <lambda>()
81 WindowBounds(Rect(0, 0, width, height), Rect(0, inset, 0, 0), Surface.ROTATION_180), in <lambda>()
82 WindowBounds(Rect(0, 0, height, width), Rect(0, inset, 0, 0), Surface.ROTATION_270) in <lambda>()
/packages/apps/Gallery/src/com/android/camera/
DCropImage.java241 srcRect.inset(Math.max(0, dx), Math.max(0, dy)); in onSaveClicked()
244 dstRect.inset(Math.max(0, -dx), Math.max(0, -dy)); in onSaveClicked()
443 faceRect.inset(-r, -r);
445 faceRect.inset(-faceRect.left, -faceRect.left);
449 faceRect.inset(-faceRect.top, -faceRect.top);
453 faceRect.inset(faceRect.right - imageRect.right,
458 faceRect.inset(faceRect.bottom - imageRect.bottom,
DHighlightView.java284 invalRect.inset(-10, -10); in moveBy()
317 r.inset(-dx, -dy); in growBy()
322 r.inset(-(widthCap - r.width()) / 2F, 0F); in growBy()
328 r.inset(0F, -(heightCap - r.height()) / 2F); in growBy()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DRoundedLine.java87 mArc1.inset(-r1, -r1); in makePath()
89 mArc2.inset(-r2, -r2); in makePath()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewBackground.java355 float inset = 1f; in drawBackgroundStroke() local
357 getOffsetX() + inset, getOffsetY() + inset, getScaledRadius() - inset, mPaint); in drawBackgroundStroke()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DSectionDecorationHandler.java128 int inset = context.getResources().getDimensionPixelSize( in applyBackground() local
153 view.setBackground(new InsetDrawable(shape, inset)); in applyBackground()
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DItemFocusIndicatorHelper.java164 newRect.inset((int) (strokeWidth * 1.5), (int) (strokeWidth * 1.5)); in draw()
170 newRect.inset(-strokeWidth, -strokeWidth); in draw()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyCenterTouchTarget.kt51 hitRect.inset(-adjustInsetBy, -adjustInsetBy) in configureSize()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DBaseContainerInterface.java286 potentialTaskRect.inset(insets); in calculateTaskSizeInternal()
295 potentialTaskRect.inset(outRect); in calculateTaskSizeInternal()
347 outRect.inset(Math.max(insets.left, sideMargin), insets.top + topMargin, in calculateGridSize()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DMaterialProgressDrawable.java535 arcBounds.inset(mStrokeInset, mStrokeInset); in draw()
565 float inset = (int) mStrokeInset / 2 * mArrowScale; in drawTriangle() local
577 mArrow.offset(x - inset, y); in drawTriangle()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/homeactivities/
DBackgroundPanelBaseActivity.java53 return insets.inset(appliedInsets);
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/distantdisplay/activity/
DNavigationTaskViewWallpaperActivity.java53 return insets.inset(appliedInsets);
DRootTaskViewWallpaperActivity.java52 return insets.inset(appliedInsets);
/packages/apps/Launcher3/src/com/android/launcher3/util/
DTransformingTouchDelegate.java63 mTouchCheckBounds.inset(-mTouchExtension, -mTouchExtension); in updateTouchBounds()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/calmmode/
DPortraitCalmModeActivity.java76 return insets.inset(appliedInsets);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DMoreKeysKeyboardAccessibilityDelegate.java105 mMoreKeysKeyboardValidBounds.inset(CLOSING_INSET_IN_PIXEL, CLOSING_INSET_IN_PIXEL); in onHoverExit()
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/
DAttachmentGridItemView.java79 region.inset(-touchAreaIncrease, -touchAreaIncrease); in onFinishInflate()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DPredictedAppIcon.java304 outBounds.inset(predictionInset, predictionInset); in getIconBounds()
390 bounds.inset(internalSize, internalSize); in getSourceVisualDragBounds()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java259 bounds.inset(blurMargin, blurMargin); in setItemInfo()
284 bounds.inset( in setItemInfo()

123