Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java48 public final int widthPx; field in DeviceProfile
143 widthPx = width; in DeviceProfile()
160 aspectRatio = ((float) Math.max(widthPx, heightPx)) / Math.min(widthPx, heightPx); in DeviceProfile()
239 return new DeviceProfile(context, inv, size, size, widthPx, heightPx, isLandscape, in copy()
462 int availablePaddingX = Math.max(0, widthPx - ((inv.numColumns * cellWidthPx) + in updateWorkspacePadding()
465 widthPx * MAX_HORIZONTAL_PADDING_PERCENT); in updateWorkspacePadding()
496 float workspaceCellWidth = (float) widthPx / inv.numColumns; in getHotseatLayoutPadding()
497 float hotseatCellWidth = (float) widthPx / inv.numHotseatIcons; in getHotseatLayoutPadding()
DDropTargetBar.java102 gap = ((grid.widthPx - 2 * grid.edgeMarginPx in setInsets()
DWorkspace.java3279 ? mLauncher.getDeviceProfile().widthPx : getMeasuredWidth(); in getExpectedWidth()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java96 mInsets.left = mInsets.right = (mDp.widthPx - mDp.availableWidthPx) / 2; in LauncherPreviewRenderer()
116 return BitmapRenderer.createHardwareBitmap(mDp.widthPx, mDp.heightPx, c -> { in call()
155 measureView(mRootView, mDp.widthPx, mDp.heightPx);
278 measureView(mRootView, mDp.widthPx, mDp.heightPx);
280 measureView(mRootView, mDp.widthPx, mDp.heightPx);
282 measureView(mRootView, mDp.widthPx, mDp.heightPx);
/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/Launcher3/quickstep/src/com/android/quickstep/util/
DLayoutUtils.java80 taskWidth = dp.widthPx; in calculateTaskSize()
97 int launcherVisibleWidth = dp.widthPx - insets.left - insets.right; in calculateTaskSize()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DTileSizeCalculator.java173 int widthPx = Math.round((float) availableWidthPx / columnCount); in getTileSize() local
178 return new Point(widthPx, heightPx); in getTileSize()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/
DBenefitsAnimation.java143 int widthPx = animatedInfo.getWidth(); in adjustToScreenSize() local
144 float scaleRatio = (float) widthPx / ANIMATION_ORIGINAL_WIDTH_PX; in adjustToScreenSize()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DQuickSwitchTouchController.java153 return mLauncher.getDeviceProfile().widthPx / 2f; in getShiftRange()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DUiFactory.java241 float offscreenTranslationX = l.getDeviceProfile().widthPx in getOverviewScaleAndTranslationForNormalState()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DFallbackNoButtonInputConsumer.java322 Rect overviewStackBounds = new Rect(0, 0, mDP.widthPx, mDP.heightPx);
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DWindowTransformSwipeHandler.java574 float distanceToReachEdge = mDp.widthPx / 2 + taskWidth / 2 + in getTaskCurveScaleForOffsetX()
788 overviewStackBounds = new Rect(0, 0, dp.widthPx, dp.heightPx); in onRecentsAnimationStart()
DLauncherActivityControllerHelper.java171 long accuracy = 2 * Math.max(dp.widthPx, dp.heightPx); in prepareHomeUI()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepAppTransitionManagerImpl.java309 Rect bounds = new Rect(0, 0, mDeviceProfile.widthPx, mDeviceProfile.heightPx); in getWindowTargetBounds()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DRecentsView.java647 dp.widthPx - mInsets.right - mTempRect.right, in setInsets()