Home
last modified time | relevance | path

Searched refs:widthPx (Results 1 – 25 of 59) sorted by relevance

123

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DSizeCalculator.java292 int widthPx = Math.round((float) availableWidthPx / columnCount); in getTileSize() local
297 return new Point(widthPx, heightPx); in getTileSize()
310 int widthPx = Math.round((float) availableWidthPx / columnCount); in getSquareTileSize() local
312 return new Point(widthPx, widthPx); in getSquareTileSize()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemBase.java80 public void setSuggestedSize(int widthPx, int heightPx) { in setSuggestedSize() argument
81 if (widthPx > 0 && heightPx > 0) { in setSuggestedSize()
82 mSuggestedSize = new Size(widthPx, heightPx); in setSuggestedSize()
DFilmstripItem.java94 public void setSuggestedSize(int widthPx, int heightPx); in setSuggestedSize() argument
DPlaceholderItem.java112 public void setSuggestedSize(int widthPx, int heightPx) { } in setSuggestedSize() argument
DSessionItem.java121 public void setSuggestedSize(int widthPx, int heightPx) { } in setSuggestedSize() argument
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/binder/
DWallpaperQuickSwitchOptionBinder.kt163 fun setWidth(widthPx: Int) { in <lambda>()
164 view.updateLayoutParams { width = widthPx } in <lambda>()
168 setWidth(widthPx = targetWidthPx) in <lambda>()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DTaskViewSimulator.java315 ? mDp.widthPx - mFullTaskSize.right in addAppToOverviewAnim()
318 mPivotOverride = new PointF(mIsRecentsRtl ? mDp.widthPx : 0, 0); in addAppToOverviewAnim()
326 ? mCarouselTaskSize.right - mDp.widthPx in addAppToOverviewAnim()
345 ? mDp.widthPx - mCarouselTaskSize.width() * recentsViewScale / 2f in addAppToOverviewAnim()
390 preDisplayRotation(mOrientationState.getDisplayRotation(), mDp.widthPx, mDp.heightPx, in getCurrentRect()
416 mDp.widthPx, mDp.heightPx, matrix); in applyWindowToHomeRotation()
DSplitAnimationController.kt305 lp.width = dp.widthPx in <lambda>()
884 dp.widthPx / 2f - floatingView.startingPosition.width() / 2f, in <lambda>()
904 dp.widthPx / floatingView.startingPosition.width(), in <lambda>()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DTaskbarUnstashInputConsumer.java357 (dp.widthPx - (int) mUnstashArea) / 2, in updateHoveredTaskbarState()
359 (int) (((dp.widthPx - mUnstashArea) / 2) + mUnstashArea), in updateHoveredTaskbarState()
386 dp.widthPx, in updateUnhoveredTaskbarState()
411 (dp.widthPx - (int) mUnstashArea) / 2, in isStashedTaskbarHovered()
413 (int) (((dp.widthPx - mUnstashArea) / 2) + mUnstashArea), in isStashedTaskbarHovered()
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetBar.java101 horizontalMargin = ((grid.widthPx - 2 * grid.edgeMarginPx in setInsets()
113 lp.leftMargin = (grid.widthPx - lp.width) / 2; in setInsets()
114 lp.rightMargin = (grid.widthPx - lp.width) / 2; in setInsets()
246 int cellLayoutCenter = ((dp.getInsets().left + dp.workspacePadding.left) + (dp.widthPx in onLayout()
DDeviceProfile.java118 public final int widthPx; field in DeviceProfile
370 widthPx = windowBounds.bounds.width(); in DeviceProfile()
375 aspectRatio = ((float) Math.max(widthPx, heightPx)) / Math.min(widthPx, heightPx); in DeviceProfile()
566 float responsiveAspectRatio = (float) widthPx / heightPx; in DeviceProfile()
572 responsiveAspectRatio, DimensionType.WIDTH, widthPx) in DeviceProfile()
657 float responsiveAspectRatio = (float) widthPx / heightPx; in DeviceProfile()
1003 widthPx, heightPx, availableWidthPx, availableHeightPx, rotationHint); in toBuilder()
1852 float workspaceCellWidth = (float) widthPx / inv.numColumns;
1853 float hotseatCellWidth = (float) widthPx / numShownHotseatIcons;
2078 writer.println(prefix + pxToDpStr("widthPx", widthPx));
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/
DPortraitPagedViewHandler.java94 if (outStartRect.left > deviceProfile.widthPx) { in fixBoundsForHomeAnimStartRect()
96 } else if (outStartRect.left < -deviceProfile.widthPx) { in fixBoundsForHomeAnimStartRect()
357 int screenWidth = dp.widthPx; in getInitialSplitPlaceholderBounds()
474 int screenWidth = dp.widthPx; in getFinalSplitPlaceholderBounds()
703 int fullscreenMidpointFromBottom = ((deviceProfile.widthPx in setSplitIconParams()
706 / deviceProfile.widthPx; in setSplitIconParams()
707 float insetPct = (float) fullscreenInsetThickness / deviceProfile.widthPx; in setSplitIconParams()
DLandscapePagedViewHandler.kt343 val width = dp.widthPx in getDistanceToBottomOfRect()
350 val screenWidth = dp.widthPx in getDistanceToBottomOfRect()
417 val screenWidth = dp.widthPx in getFinalSplitPlaceholderBounds()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/grid/
DChooserGridAdapter.java395 private void setViewBounds(View view, int widthPx, int heightPx) { in setViewBounds() argument
398 lp = new LayoutParams(widthPx, heightPx); in setViewBounds()
402 lp.width = widthPx; in setViewBounds()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DBaseContainerInterface.java264 Rect potentialTaskRect = new Rect(0, 0, dp.widthPx, dp.heightPx); in calculateTaskSizeInternal()
324 out.x = dp.widthPx; in getTaskDimension()
346 outRect.set(0, 0, dp.widthPx, dp.heightPx); in calculateGridSize()
DFallbackActivityInterface.java66 return dp.isSeascape() ? outRect.left : (dp.widthPx - outRect.right); in getSwipeUpDestinationAndLength()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java181 measureView(mRootView, mDp.widthPx, mDp.heightPx); in LauncherPreviewRenderer()
517 measureView(mRootView, mDp.widthPx, mDp.heightPx);
519 measureView(mRootView, mDp.widthPx, mDp.heightPx);
521 measureView(mRootView, mDp.widthPx, mDp.heightPx);
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarThresholdUtils.java46 float landscapeScreenHeight = dp.isLandscape ? dp.heightPx : dp.widthPx; in getThreshold()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepTransitionManager.java473 if (target == null) return new Rect(0, 0, mDeviceProfile.widthPx, mDeviceProfile.heightPx); in getWindowTargetBounds()
483 Utilities.rotateBounds(bounds, mDeviceProfile.heightPx, mDeviceProfile.widthPx, in getWindowTargetBounds()
486 Utilities.rotateBounds(bounds, mDeviceProfile.widthPx, mDeviceProfile.heightPx, in getWindowTargetBounds()
800 Utilities.rotateBounds(crop, mDeviceProfile.widthPx, in getOpeningWindowAnimators()
848 mDeviceProfile.widthPx - (windowTransX0 + scaledCropWidth)); in getOpeningWindowAnimators()
851 mDeviceProfile.widthPx - (windowTransX0 + scaledCropWidth), in getOpeningWindowAnimators()
1437 new Rect(0, 0, mDeviceProfile.widthPx, mDeviceProfile.heightPx); in getClosingWindowAnimators()
2053 mDisplayRect.set(0, 0, profile.heightPx, profile.widthPx); in transferRectToTargetCoordinate()
2055 mDisplayRect.set(0, 0, profile.widthPx, profile.heightPx); in transferRectToTargetCoordinate()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DClipIconView.java125 ? rect.left - (dp.widthPx - lp.getMarginStart() - lp.width) in update()
272 ? dp.widthPx - lp.getMarginStart() - lp.width in setIcon()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DPhonePortraitNavLayoutter.kt50 val totalWidth = context.deviceProfile.widthPx in layoutButtons()
/packages/apps/Launcher3/tests/assets/dumpTests/DeviceProfileDumpTest/
DtabletPortrait3Button.txt13 widthPx: 1600.0px (800.0dp)
DtabletLandscape3Button.txt13 widthPx: 2560.0px (1280.0dp)
DtwoPanelPortrait_decoupleDepth.txt13 widthPx: 1840.0px (700.9524dp)
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DQuickSwitchTouchController.java164 return mLauncher.getDeviceProfile().widthPx / 2f; in getShiftRange()

123