Home
last modified time | relevance | path

Searched refs:deviceProfile (Results 1 – 25 of 78) sorted by relevance

1234

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/util/
DWidgetDragScaleUtilsTest.kt43 private lateinit var deviceProfile: DeviceProfile variable in com.android.launcher3.widget.util.WidgetDragScaleUtilsTest
51 deviceProfile = in setup()
55 .whenever(deviceProfile).getWorkspaceSpringLoadScale(any(Context::class.java)) in setup()
56 deviceProfile.cellLayoutBorderSpacePx = Point(CELL_SPACING, CELL_SPACING) in setup()
57 deviceProfile.widgetPadding.setEmpty() in setup()
64 whenever(deviceProfile.cellSize).thenReturn(Point(minSize * 2, minSize * 2)) in getWidgetDragScalePx_largeDraggedView_downScaled()
69 val widgetSize = WidgetSizes.getWidgetSizePx(deviceProfile, itemInfo.spanX, itemInfo.spanY) in getWidgetDragScalePx_largeDraggedView_downScaled()
77 deviceProfile, in getWidgetDragScalePx_largeDraggedView_downScaled()
90 whenever(deviceProfile.cellSize).thenReturn(Point(minSize * 2, minSize * 2)) in getWidgetDragScalePx_draggedViewSameAsWidgetSize_downScaled()
94 val widgetSize = WidgetSizes.getWidgetSizePx(deviceProfile, itemInfo.spanX, itemInfo.spanY) in getWidgetDragScalePx_draggedViewSameAsWidgetSize_downScaled()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/
DPortraitPagedViewHandler.java93 public void fixBoundsForHomeAnimStartRect(RectF outStartRect, DeviceProfile deviceProfile) { in fixBoundsForHomeAnimStartRect() argument
94 if (outStartRect.left > deviceProfile.widthPx) { in fixBoundsForHomeAnimStartRect()
96 } else if (outStartRect.left < -deviceProfile.widthPx) { in fixBoundsForHomeAnimStartRect()
182 public int getSplitTranslationDirectionFactor(int stagePosition, DeviceProfile deviceProfile) { in getSplitTranslationDirectionFactor() argument
183 if (deviceProfile.isLeftRightSplit && stagePosition == STAGE_POSITION_BOTTOM_OR_RIGHT) { in getSplitTranslationDirectionFactor()
192 DeviceProfile deviceProfile, float taskInsetMargin, View taskViewIcon) { in getTaskMenuX() argument
193 if (deviceProfile.isLandscape) { in getTaskMenuX()
208 public int getTaskMenuWidth(View thumbnailView, DeviceProfile deviceProfile, in getTaskMenuWidth() argument
216 return (deviceProfile.isLandscape && !deviceProfile.isTablet in getTaskMenuWidth()
222 public int getTaskMenuHeight(float taskInsetMargin, DeviceProfile deviceProfile, in getTaskMenuHeight() argument
[all …]
DRecentsPagedOrientationHandler.kt85 deviceProfile: DeviceProfile in setSecondary()
91 deviceProfile: DeviceProfile in setSecondary()
165 fun getDefaultSplitPosition(deviceProfile: DeviceProfile): Int in setSecondary()
236 deviceProfile: DeviceProfile, in setSecondary()
249 deviceProfile: DeviceProfile, in setSecondary()
265 deviceProfile: DeviceProfile, in setSecondary()
271 deviceProfile: DeviceProfile, in setSecondary()
281 deviceProfile: DeviceProfile, in setSecondary()
294 deviceProfile: DeviceProfile in setSecondary()
307 deviceProfile: DeviceProfile, in setSecondary()
[all …]
DLandscapePagedViewHandler.kt82 override fun fixBoundsForHomeAnimStartRect(outStartRect: RectF, deviceProfile: DeviceProfile) { in fixBoundsForHomeAnimStartRect()
85 if (outStartRect.left > deviceProfile.heightPx) { in fixBoundsForHomeAnimStartRect()
87 } else if (outStartRect.left < -deviceProfile.heightPx) { in fixBoundsForHomeAnimStartRect()
173 deviceProfile: DeviceProfile in getChildStart()
179 deviceProfile: DeviceProfile, in getChildStart()
204 deviceProfile: DeviceProfile, in getTaskMenuWidth()
218 deviceProfile: DeviceProfile, in getTaskMenuHeight()
224 deviceProfile: DeviceProfile, in getTaskMenuHeight()
237 deviceProfile: DeviceProfile in setLayoutParamsForTaskMenuOptionItem()
249 deviceProfile: DeviceProfile, in getDwbLayoutTranslations()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DSetupNavLayoutter.kt60 val deviceProfile: DeviceProfile = context.deviceProfile in layoutButtons() constant
69 deviceProfile.isTablet && deviceProfile.isLandscape || in layoutButtons()
70 (deviceProfile.aspectRatio > SQUARE_ASPECT_RATIO_BOTTOM_BOUND && in layoutButtons()
71 deviceProfile.aspectRatio < SQUARE_ASPECT_RATIO_UPPER_BOUND) in layoutButtons()
83 deviceProfile in layoutButtons()
DPhoneGestureLayoutter.kt59 val deviceProfile: DeviceProfile = context.deviceProfile in layoutButtons() constant
68 deviceProfile in layoutButtons()
DNavButtonLayoutFactory.kt59 deviceProfile: DeviceProfile, in getUiLayoutter()
81 if (!deviceProfile.isLandscape) { in getUiLayoutter()
128 deviceProfile.isTaskbarPresent -> { in getUiLayoutter()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DDimensionUtils.kt32 deviceProfile: DeviceProfile, in getTaskbarPhoneDimensions()
40 p.y = deviceProfile.taskbarHeight in getTaskbarPhoneDimensions()
45 if (deviceProfile.isGestureMode) { in getTaskbarPhoneDimensions()
52 if (!deviceProfile.isLandscape) { in getTaskbarPhoneDimensions()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DIconView.java185 DeviceProfile deviceProfile = in setIconOrientation() local
190 int thumbnailTopMargin = deviceProfile.overviewTaskThumbnailTopMarginPx; in setIconOrientation()
191 int taskIconHeight = deviceProfile.overviewTaskIconSizePx; in setIconOrientation()
192 int taskMargin = deviceProfile.overviewTaskMarginPx; in setIconOrientation()
200 int iconDrawableSize = isGridTask ? deviceProfile.overviewTaskIconDrawableSizeGridPx in setIconOrientation()
201 : deviceProfile.overviewTaskIconDrawableSizePx; in setIconOrientation()
DGroupedTaskView.kt78 container.deviceProfile, in onMeasure()
106 heightSize - container.deviceProfile.overviewTaskThumbnailTopMarginPx, in onMeasure()
174 container.deviceProfile, in setOrientationState()
204 val taskIconHeight = container.deviceProfile.overviewTaskIconSizePx in updateIconPlacement()
209 container.deviceProfile, in updateIconPlacement()
223 container.deviceProfile, in updateIconPlacement()
236 container.deviceProfile, in updateIconPlacement()
DClearAllButton.java332 DeviceProfile deviceProfile = mContainer.getDeviceProfile(); in getOriginalTranslationY() local
333 if (deviceProfile.isTablet) { in getOriginalTranslationY()
336 + deviceProfile.overviewTaskThumbnailTopMarginPx) / 2.0f in getOriginalTranslationY()
337 + deviceProfile.overviewRowSpacing; in getOriginalTranslationY()
339 return deviceProfile.overviewRowSpacing; in getOriginalTranslationY()
342 return deviceProfile.overviewTaskThumbnailTopMarginPx / 2.0f; in getOriginalTranslationY()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DOverviewState.java83 DeviceProfile deviceProfile = launcher.getDeviceProfile(); in getWorkspaceScaleAndTranslation() local
84 if (deviceProfile.isTwoPanels) { in getWorkspaceScaleAndTranslation()
88 scale = (float) sTempRect.height() / deviceProfile.getCellLayoutHeight(); in getWorkspaceScaleAndTranslation()
90 scale = (float) sTempRect.width() / deviceProfile.getCellLayoutWidth(); in getWorkspaceScaleAndTranslation()
164 public boolean displayOverviewTasksAsGrid(DeviceProfile deviceProfile) {
165 return deviceProfile.isTablet;
/packages/apps/Launcher3/src/com/android/launcher3/
DModelCallbacks.kt79 launcher.hotseat?.resetLayout(launcher.deviceProfile.isVerticalBarLayout) in <lambda>()
133 val deviceProfile = launcher.deviceProfile in <lambda>() constant
150 deviceProfile.numFolderColumns * deviceProfile.numFolderRows in <lambda>()
157 deviceProfile.isTwoPanels in <lambda>()
280 if (launcher.deviceProfile.isTwoPanels && actualIds.contains(pairId)) { in <lambda>()
326 launcher.deviceProfile.isTwoPanels in <lambda>()
378 if (launcher.deviceProfile.isTwoPanels) { in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetRecommendationsView.java152 List<WidgetItem> recommendedWidgets, DeviceProfile deviceProfile, in setRecommendations() argument
160 deviceProfile, in setRecommendations()
189 DeviceProfile deviceProfile, final @Px float availableHeight, in setRecommendations() argument
208 deviceProfile, in setRecommendations()
315 DeviceProfile deviceProfile, in maybeDisplayInTable() argument
331 deviceProfile, in maybeDisplayInTable()
345 deviceProfile, mAvailableHeight); in maybeDisplayInTable()
DWidgetsRecommendationTableLayout.java90 DeviceProfile deviceProfile, float recommendationTableMaxHeight) { in setRecommendedWidgets() argument
92 recommendationTableMaxHeight, deviceProfile); in setRecommendedWidgets()
142 DeviceProfile deviceProfile) { in selectRowsThatFitInAvailableHeight() argument
153 WidgetPreviewContainerSize.Companion.forItem(widgetItem, deviceProfile); in selectRowsThatFitInAvailableHeight()
154 float widgetItemHeight = getWidgetSizePx(deviceProfile, previewContainerSize.spanX, in selectRowsThatFitInAvailableHeight()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DAddItemWidgetsBottomSheet.java102 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in onMeasure() local
104 if (deviceProfile.isTablet) { in onMeasure()
105 int margin = deviceProfile.allAppsLeftRightMargin; in onMeasure()
110 Rect padding = deviceProfile.workspacePadding; in onMeasure()
116 widthUsed, heightMeasureSpec, deviceProfile.bottomSheetTopPadding); in onMeasure()
DBaseWidgetSheet.java334 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in doMeasure() local
336 if (deviceProfile.isTablet) { in doMeasure()
337 widthUsed = Math.max(2 * getTabletHorizontalMargin(deviceProfile), in doMeasure()
342 Rect padding = deviceProfile.workspacePadding; in doMeasure()
348 widthUsed, heightMeasureSpec, deviceProfile.bottomSheetTopPadding); in doMeasure()
354 protected int getTabletHorizontalMargin(DeviceProfile deviceProfile) { in getTabletHorizontalMargin() argument
355 return deviceProfile.allAppsLeftRightMargin; in getTabletHorizontalMargin()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRectFSpringAnim.java535 public DefaultSpringConfig(Context context, DeviceProfile deviceProfile, in DefaultSpringConfig() argument
540 tracking = getDefaultTracking(deviceProfile); in DefaultSpringConfig()
551 boolean shouldUseHigherStiffness = deviceProfile != null in DefaultSpringConfig()
552 && (deviceProfile.isLandscape || deviceProfile.isTablet); in DefaultSpringConfig()
558 private @Tracking int getDefaultTracking(@Nullable DeviceProfile deviceProfile) { in getDefaultTracking() argument
560 if (deviceProfile == null) { in getDefaultTracking()
565 int heightPx = deviceProfile.heightPx; in getDefaultTracking()
566 Rect padding = deviceProfile.workspacePadding; in getDefaultTracking()
569 final float bottomThreshold = deviceProfile.heightPx - padding.bottom; in getDefaultTracking()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarView.java142 DeviceProfile deviceProfile = mActivityContext.getTransientTaskbarDeviceProfile(); in TaskbarView() local
143 actualIconSize = deviceProfile.taskbarIconSize; in TaskbarView()
456 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in onLayout() local
458 int navSpaceNeeded = deviceProfile.hotseatBarEndOffset; in onLayout()
465 int startSpacingPx = deviceProfile.inlineNavButtonsEndSpacingPx; in onLayout()
524 qsbEnd = qsbStart + deviceProfile.hotseatQsbWidth; in onLayout()
527 qsbStart = qsbEnd - deviceProfile.hotseatQsbWidth; in onLayout()
529 int qsbTop = (bottom - top - deviceProfile.hotseatQsbHeight) / 2; in onLayout()
530 int qsbBottom = qsbTop + deviceProfile.hotseatQsbHeight; in onLayout()
579 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in getIconLayoutWidth() local
[all …]
DTaskbarDragLayerController.java290 DeviceProfile deviceProfile = mActivity.getDeviceProfile(); in getTaskbarBackgroundHeight() local
293 Point taskbarDimensions = DimensionUtils.getTaskbarPhoneDimensions(deviceProfile, in getTaskbarBackgroundHeight()
296 deviceProfile.getDisplayInfo().currentSize.y : in getTaskbarBackgroundHeight()
299 return deviceProfile.taskbarHeight; in getTaskbarBackgroundHeight()
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetDragScaleUtils.java43 public static float getWidgetDragScalePx(Context context, DeviceProfile deviceProfile, in getWidgetDragScalePx() argument
47 Size widgetSizesPx = getWidgetSizePx(deviceProfile, itemInfo.spanX, itemInfo.spanY); in getWidgetDragScalePx()
51 float desiredWidgetScale = deviceProfile.getWorkspaceSpringLoadScale(context) in getWidgetDragScalePx()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/util/
DWidgetPreviewContainerSizesTest.kt44 private lateinit var deviceProfile: DeviceProfile variable in com.android.launcher3.widget.picker.util.WidgetPreviewContainerSizesTest
60 deviceProfile = testInvariantProfile.getDeviceProfile(context).copy(context) in setUp()
65 val testSizes = getTestSizes(deviceProfile) in widgetPreviewContainerSize_forItem_returnsCorrectContainerSize()
73 .that(WidgetPreviewContainerSize.forItem(widgetItem, deviceProfile)) in widgetPreviewContainerSize_forItem_returnsCorrectContainerSize()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DFlingToDeleteHelper.java92 DeviceProfile deviceProfile = mLauncher.getDeviceProfile(); in isFlingingToDelete() local
93 if (mVelocityTracker.getYVelocity() < deviceProfile.flingToDeleteThresholdVelocity) { in isFlingingToDelete()
98 mVelocityTracker.getXVelocity() < deviceProfile.flingToDeleteThresholdVelocity) { in isFlingingToDelete()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskShortcutFactory.java299 DeviceProfile deviceProfile = container.getDeviceProfile();
308 !deviceProfile.isTaskbarPresent && recentsView.getTaskViewCount() < 2;
312 boolean isFocusedTask = deviceProfile.isTablet && taskView.isFocusedTask();
321 return orientationHandler.getSplitPositionOptions(deviceProfile)
334 DeviceProfile deviceProfile = container.getDeviceProfile();
337 boolean isLargeTileFocusedTask = deviceProfile.isTablet && taskView.isFocusedTask();
354 int iconResId = deviceProfile.isLeftRightSplit
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/appprediction/
DPredictionRowView.java134 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in getExpectedHeight() local
135 int iconHeight = deviceProfile.allAppsIconSizePx; in getExpectedHeight()
136 int iconPadding = deviceProfile.allAppsIconDrawablePaddingPx; in getExpectedHeight()
137 int textHeight = Utilities.calculateTextHeight(deviceProfile.allAppsIconTextSizePx); in getExpectedHeight()

1234