Home
last modified time | relevance | path

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

12345

/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.kt64 override fun fixBoundsForHomeAnimStartRect(outStartRect: RectF, deviceProfile: DeviceProfile) { in fixBoundsForHomeAnimStartRect()
65 if (outStartRect.left > deviceProfile.widthPx) { in fixBoundsForHomeAnimStartRect()
67 } else if (outStartRect.left < -deviceProfile.widthPx) { in fixBoundsForHomeAnimStartRect()
118 deviceProfile: DeviceProfile, in getSplitTranslationDirectionFactor()
121 deviceProfile.isLeftRightSplit && in getSplitTranslationDirectionFactor()
132 deviceProfile: DeviceProfile, in getTaskMenuX()
136 if (deviceProfile.isLandscape) { in getTaskMenuX()
155 deviceProfile: DeviceProfile, in getTaskMenuY()
165 (deviceProfile.isLandscape && !deviceProfile.isTablet) -> { in getTaskMenuY()
180 deviceProfile: DeviceProfile, in getTaskMenuHeight()
[all …]
DRecentsPagedOrientationHandler.kt85 deviceProfile: DeviceProfile, in setSecondary()
91 deviceProfile: DeviceProfile, in setSecondary()
165 fun getDefaultSplitPosition(deviceProfile: DeviceProfile): Int in setSecondary()
238 deviceProfile: DeviceProfile, in setSecondary()
253 deviceProfile: DeviceProfile, in setSecondary()
269 deviceProfile: DeviceProfile, in setSecondary()
275 deviceProfile: DeviceProfile, in setSecondary()
285 deviceProfile: DeviceProfile, in setSecondary()
298 deviceProfile: DeviceProfile, in setSecondary()
306 deviceProfile: DeviceProfile, in setSecondary()
[all …]
DLandscapePagedViewHandler.kt83 override fun fixBoundsForHomeAnimStartRect(outStartRect: RectF, deviceProfile: DeviceProfile) { in fixBoundsForHomeAnimStartRect()
86 if (outStartRect.left > deviceProfile.heightPx) { in fixBoundsForHomeAnimStartRect()
88 } else if (outStartRect.left < -deviceProfile.heightPx) { in fixBoundsForHomeAnimStartRect()
174 deviceProfile: DeviceProfile, in getChildStart()
180 deviceProfile: DeviceProfile, in getChildStart()
205 deviceProfile: DeviceProfile, in getTaskMenuWidth()
219 deviceProfile: DeviceProfile, in getTaskMenuHeight()
225 deviceProfile: DeviceProfile, in getTaskMenuHeight()
238 deviceProfile: DeviceProfile, in setLayoutParamsForTaskMenuOptionItem()
250 deviceProfile: DeviceProfile, in updateDwbBannerLayout()
[all …]
DSeascapePagedViewHandler.kt56 deviceProfile: DeviceProfile, in getSplitTranslationDirectionFactor()
71 deviceProfile: DeviceProfile, in getSplitTranslationDirectionFactor()
98 deviceProfile: DeviceProfile, in getTaskMenuHeight()
101 ): Int = (deviceProfile.availableWidthPx - taskInsetMargin - taskMenuX).toInt() in getTaskMenuHeight()
126 deviceProfile: DeviceProfile, in updateDwbBannerLayout()
140 taskViewHeight - deviceProfile.overviewTaskThumbnailTopMarginPx in updateDwbBannerLayout()
149 deviceProfile: DeviceProfile, in getDwbBannerTranslations()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DSetupNavLayoutter.kt70 val deviceProfile: DeviceProfile = context.deviceProfile in layoutButtons() constant
79 deviceProfile.isTablet && deviceProfile.isLandscape || in layoutButtons()
80 (deviceProfile.aspectRatio > SQUARE_ASPECT_RATIO_BOTTOM_BOUND && in layoutButtons()
81 deviceProfile.aspectRatio < SQUARE_ASPECT_RATIO_UPPER_BOUND) in layoutButtons()
90 adjustForSetupInPhoneMode(navButtonsOverallViewGroupLayoutParams, deviceProfile) in layoutButtons()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DIconView.kt157 val deviceProfile: DeviceProfile = in <lambda>() constant
161 taskIconMargin = deviceProfile.overviewTaskMarginPx, in <lambda>()
162 taskIconHeight = deviceProfile.overviewTaskIconSizePx, in <lambda>()
163 thumbnailTopMargin = deviceProfile.overviewTaskThumbnailTopMarginPx, in <lambda>()
167 height = deviceProfile.overviewTaskIconSizePx in <lambda>()
172 if (isGridTask) deviceProfile.overviewTaskIconDrawableSizeGridPx in <lambda>()
173 else deviceProfile.overviewTaskIconDrawableSizePx in <lambda>()
DTaskMenuView.kt73 recentsViewContainer.deviceProfile.heightPx - in <lambda>()
74 recentsViewContainer.deviceProfile.overviewActionsClaimedSpaceBelow in <lambda>()
79 (taskbarTop - recentsViewContainer.deviceProfile.overviewRowSpacing).toFloat() in <lambda>()
189 recentsViewContainer.deviceProfile, in <lambda>()
203 val deviceProfile = recentsViewContainer.deviceProfile in <lambda>() constant
214 deviceProfile, in <lambda>()
238 deviceProfile, in <lambda>()
264 deviceProfile, in <lambda>()
378 deviceProfile = recentsViewContainer.deviceProfile, in <lambda>()
438 (recentsViewContainer.deviceProfile.widthPx - in <lambda>()
DGroupedTaskView.kt86 container.deviceProfile, in onMeasure()
158 container.deviceProfile, in setOrientationState()
186 val deviceProfile = container.deviceProfile in updateIconPlacement() constant
187 val taskIconHeight = deviceProfile.overviewTaskIconSizePx in updateIconPlacement()
219 deviceProfile, in updateIconPlacement()
233 deviceProfile, in updateIconPlacement()
248 deviceProfile, in updateIconPlacement()
DDigitalWellBeingToast.kt184 !recentsViewContainer.deviceProfile.isTablet || in getSplitBannerConfig()
188 !recentsViewContainer.deviceProfile.isLeftRightSplit -> in getSplitBannerConfig()
306 recentsViewContainer.deviceProfile.overviewTaskThumbnailTopMarginPx in getContentDescriptionForTask()
310 recentsViewContainer.deviceProfile, in getContentDescriptionForTask()
327 recentsViewContainer.deviceProfile, in getContentDescriptionForTask()
340 recentsViewContainer.deviceProfile, in setupTranslations()
/packages/apps/Launcher3/src/com/android/launcher3/
DModelCallbacks.kt79 launcher.hotseat?.resetLayout(launcher.deviceProfile.isVerticalBarLayout) in <lambda>()
131 val deviceProfile = launcher.deviceProfile in <lambda>() constant
148 deviceProfile.numFolderColumns * deviceProfile.numFolderRows, in <lambda>()
155 deviceProfile.isTwoPanels, in <lambda>()
263 if (launcher.deviceProfile.isTwoPanels && actualIds.contains(pairId)) { in <lambda>()
310 launcher.deviceProfile.isTwoPanels, in <lambda>()
362 if (launcher.deviceProfile.isTwoPanels) { in <lambda>()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarView.java164 DeviceProfile deviceProfile = mActivityContext.getTransientTaskbarDeviceProfile(); in TaskbarView() local
165 actualIconSize = deviceProfile.taskbarIconSize; in TaskbarView()
208 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in calculateMaxNumIcons() local
209 int availableWidth = deviceProfile.widthPx; in calculateMaxNumIcons()
211 (int) getResources().getDimension(deviceProfile.inv.inlineNavButtonsEndSpacing); in calculateMaxNumIcons()
218 Math.max(defaultEdgeMargin + spaceForBubbleBar, deviceProfile.hotseatBarEndOffset); in calculateMaxNumIcons()
221 mShouldTryStartAlign ? 0 : deviceProfile.hotseatBarEndOffset); in calculateMaxNumIcons()
795 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in onLayout() local
796 int navSpaceNeeded = deviceProfile.hotseatBarEndOffset; in onLayout()
800 int startSpacingPx = deviceProfile.inlineNavButtonsEndSpacingPx; in onLayout()
[all …]
DManageWindowsTaskbarShortcut.kt220 val deviceProfile = taskbarActivityContext.deviceProfile in <lambda>() constant
228 deviceProfile.availableHeightPx - in <lambda>()
237 -(deviceProfile.availableWidthPx - menuView.menuWidth) / 2f in <lambda>()
239 val maxX = deviceProfile.availableWidthPx - menuView.menuWidth - margin in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DBaseWidgetSheet.java345 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in doMeasure() local
347 widthUsed, heightMeasureSpec, deviceProfile.bottomSheetTopPadding); in doMeasure()
357 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in getInsetsWidth() local
358 if (deviceProfile.isTablet) { in getInsetsWidth()
359 widthUsed = Math.max(2 * getTabletHorizontalMargin(deviceProfile), in getInsetsWidth()
364 Rect padding = deviceProfile.workspacePadding; in getInsetsWidth()
372 protected int getTabletHorizontalMargin(DeviceProfile deviceProfile) { in getTabletHorizontalMargin() argument
373 return deviceProfile.allAppsLeftRightMargin; in getTabletHorizontalMargin()
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()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/window/
DRecentsWindowContext.kt44 private var deviceProfile: DeviceProfile? = null variable
55 deviceProfile = in initDeviceProfile()
62 if (deviceProfile == null) { in getDeviceProfile()
65 return deviceProfile!! in getDeviceProfile()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DOverviewState.java86 DeviceProfile deviceProfile = launcher.getDeviceProfile(); in getWorkspaceScaleAndTranslation() local
87 if (deviceProfile.isTwoPanels) { in getWorkspaceScaleAndTranslation()
91 scale = (float) sTempRect.height() / deviceProfile.getCellLayoutHeight(); in getWorkspaceScaleAndTranslation()
93 scale = (float) sTempRect.width() / deviceProfile.getCellLayoutWidth(); in getWorkspaceScaleAndTranslation()
169 public boolean displayOverviewTasksAsGrid(DeviceProfile deviceProfile) {
170 return deviceProfile.isTablet;
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsRecommendationTableLayout.java90 DeviceProfile deviceProfile, float recommendationTableMaxHeight) { in setRecommendedWidgets() argument
92 recommendationTableMaxHeight, deviceProfile); in setRecommendedWidgets()
140 DeviceProfile deviceProfile) { in selectRowsThatFitInAvailableHeight() argument
151 WidgetPreviewContainerSize.Companion.forItem(widgetItem, deviceProfile); in selectRowsThatFitInAvailableHeight()
152 float widgetItemHeight = getWidgetSizePx(deviceProfile, previewContainerSize.spanX, in selectRowsThatFitInAvailableHeight()
/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/src/com/android/launcher3/util/
DDimensionUtils.kt32 deviceProfile: DeviceProfile, in getTaskbarPhoneDimensions()
41 p.y = deviceProfile.taskbarHeight in getTaskbarPhoneDimensions()
53 if (!deviceProfile.isLandscape) { in getTaskbarPhoneDimensions()
/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.kt45 private lateinit var deviceProfile: DeviceProfile variable in com.android.launcher3.widget.picker.util.WidgetPreviewContainerSizesTest
61 deviceProfile = testInvariantProfile.getDeviceProfile(context).copy(context) in setUp()
66 val testSizes = getTestSizes(deviceProfile) in widgetPreviewContainerSize_forItem_returnsCorrectContainerSize()
74 .that(WidgetPreviewContainerSize.forItem(widgetItem, deviceProfile)) in widgetPreviewContainerSize_forItem_returnsCorrectContainerSize()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/customization/
DTaskbarSpecsEvaluator.kt25 numRows: Int = taskbarActivityContext.deviceProfile.inv.numRows,
26 numColumns: Int = taskbarActivityContext.deviceProfile.inv.numColumns,
30 get() = taskbarActivityContext.deviceProfile.numShownHotseatIcons
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/appprediction/
DPredictionRowView.java145 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in getExpectedHeight() local
146 int iconHeight = deviceProfile.allAppsIconSizePx; in getExpectedHeight()
147 int iconPadding = deviceProfile.allAppsIconDrawablePaddingPx; in getExpectedHeight()
148 int textHeight = Utilities.calculateTextHeight(deviceProfile.allAppsIconTextSizePx); in getExpectedHeight()
152 int extraHeight = deviceProfile.inv.enableTwoLinesInAllApps in getExpectedHeight()
/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()

12345