Home
last modified time | relevance | path

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

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/
DRecentsState.java135 public boolean displayOverviewTasksAsGrid(DeviceProfile deviceProfile) { in displayOverviewTasksAsGrid() argument
136 return hasFlag(FLAG_SHOW_AS_GRID) && showAsGrid(deviceProfile); in displayOverviewTasksAsGrid()
139 private boolean showAsGrid(DeviceProfile deviceProfile) { in showAsGrid() argument
140 return deviceProfile.isTablet && FeatureFlags.ENABLE_OVERVIEW_GRID.get(); in showAsGrid()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DPortraitPagedViewHandler.java277 public void setTaskOptionsMenuLayoutOrientation(DeviceProfile deviceProfile, in setTaskOptionsMenuLayoutOrientation() argument
280 if (deviceProfile.isLandscape && !deviceProfile.isTablet) { in setTaskOptionsMenuLayoutOrientation()
294 LinearLayout viewGroup, DeviceProfile deviceProfile) { in setLayoutParamsForTaskMenuOptionItem() argument
295 if (deviceProfile.isLandscape && !deviceProfile.isTablet) { in setLayoutParamsForTaskMenuOptionItem()
DPagedOrientationHandler.java114 DeviceProfile deviceProfile); in getSplitSelectTaskOffset() argument
126 void setTaskOptionsMenuLayoutOrientation(DeviceProfile deviceProfile, in setTaskOptionsMenuLayoutOrientation() argument
134 LinearLayout viewGroup, DeviceProfile deviceProfile); in setLayoutParamsForTaskMenuOptionItem() argument
DLandscapePagedViewHandler.java272 public void setTaskOptionsMenuLayoutOrientation(DeviceProfile deviceProfile, in setTaskOptionsMenuLayoutOrientation() argument
282 LinearLayout viewGroup, DeviceProfile deviceProfile) { in setLayoutParamsForTaskMenuOptionItem() argument
357 DeviceProfile deviceProfile) { in getSplitSelectTaskOffset() argument
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetCell.java253 DeviceProfile deviceProfile = mActivity.getDeviceProfile(); in setAppWidgetHostViewPreview() local
254 if (deviceProfile.shouldInsetWidgets()) { in setAppWidgetHostViewPreview()
256 appWidgetHostViewPreview.getWidgetInset(deviceProfile, padding); in setAppWidgetHostViewPreview()
258 padding = deviceProfile.inv.defaultWidgetPadding; in setAppWidgetHostViewPreview()
365 DeviceProfile deviceProfile = mActivity.getDeviceProfile(); in setPreviewSize() local
366 Size widgetSize = WidgetSizes.getWidgetItemSizePx(getContext(), deviceProfile, widgetItem); in setPreviewSize()
DAddItemWidgetsBottomSheet.java86 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in onMeasure() local
91 Rect padding = deviceProfile.workspacePadding; in onMeasure()
96 int heightUsed = mInsets.top + deviceProfile.edgeMarginPx; in onMeasure()
DPendingItemDragHelper.java117 DeviceProfile deviceProfile = launcher.getDeviceProfile(); in startDrag() local
119 mAppWidgetHostViewPreview.getWidgetInset(deviceProfile, padding); in startDrag()
124 deviceProfile.cellWidthPx * mAddInfo.spanX + padding.left + padding.right; in startDrag()
126 deviceProfile.cellHeightPx * mAddInfo.spanY + padding.top + padding.bottom; in startDrag()
DBaseWidgetSheet.java124 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in doMeasure() local
129 Rect padding = deviceProfile.workspacePadding; in doMeasure()
134 int heightUsed = mInsets.top + deviceProfile.edgeMarginPx; in doMeasure()
DWidgetsBottomSheet.java113 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in WidgetsBottomSheet() local
116 mMaxTableHeight = deviceProfile.inv.numRows * 2 / 3 * deviceProfile.cellHeightPx; in WidgetsBottomSheet()
/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/src/com/android/launcher3/views/
DWidgetsEduView.java100 DeviceProfile deviceProfile = mActivityContext.getDeviceProfile(); in onMeasure() local
109 Rect padding = deviceProfile.workspacePadding; in onMeasure()
114 int heightUsed = mInsets.top + deviceProfile.edgeMarginPx; in onMeasure()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskOverlayFactory.java66 DeviceProfile deviceProfile) { in getEnabledShortcuts() argument
73 addSplitOptions(shortcuts, activity, taskView, deviceProfile); in getEnabledShortcuts()
110 BaseDraggingActivity activity, TaskView taskView, DeviceProfile deviceProfile) { in addSplitOptions() argument
114 orientationHandler.getSplitPositionOptions(deviceProfile); in addSplitOptions()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/testing/
DTestActivity.java43 public void setDeviceProfile(DeviceProfile deviceProfile) { in setDeviceProfile() argument
44 mDeviceProfile = deviceProfile; in setDeviceProfile()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DOverviewState.java116 public boolean displayOverviewTasksAsGrid(DeviceProfile deviceProfile) {
117 return deviceProfile.isTablet && FeatureFlags.ENABLE_OVERVIEW_GRID.get();
DBackgroundAppState.java81 public boolean displayOverviewTasksAsGrid(DeviceProfile deviceProfile) { in displayOverviewTasksAsGrid() argument
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DTaskView.java766 DeviceProfile deviceProfile = mActivity.getDeviceProfile(); in setOrientationState() local
767 snapshotParams.topMargin = deviceProfile.overviewTaskThumbnailTopMarginPx; in setOrientationState()
768 int taskIconMargin = deviceProfile.overviewTaskMarginPx; in setOrientationState()
769 int taskIconHeight = deviceProfile.overviewTaskIconSizePx; in setOrientationState()
801 snapshotParams.topMargin = deviceProfile.overviewTaskThumbnailTopMarginPx; in setOrientationState()
957 public static float getEdgeScaleDownFactor(DeviceProfile deviceProfile) { in getEdgeScaleDownFactor() argument
958 if (deviceProfile.isTablet && FeatureFlags.ENABLE_OVERVIEW_GRID.get()) { in getEdgeScaleDownFactor()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsRecommendationTableLayout.java152 DeviceProfile deviceProfile = Launcher.getLauncher(getContext()).getDeviceProfile(); in fitRecommendedWidgetsToTableSpace() local
158 Size widgetSize = WidgetSizes.getWidgetItemSizePx(getContext(), deviceProfile, in fitRecommendedWidgetsToTableSpace()
DWidgetsListAdapter.java298 DeviceProfile deviceProfile = activity.getDeviceProfile(); in ensureAllPreviewsReady() local
299 Size widgetSize = WidgetSizes.getWidgetItemSizePx(mContext, deviceProfile, in ensureAllPreviewsReady()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSplitSelectStateController.java133 DeviceProfile deviceProfile) { in getLayoutParamsForActivePosition() argument
137 if (deviceProfile.isLandscape) { in getLayoutParamsForActivePosition()
DRecentsOrientedState.java163 public void setDeviceProfile(DeviceProfile deviceProfile) { in setDeviceProfile() argument
165 setFlag(FLAG_MULTIPLE_ORIENTATION_SUPPORTED_BY_DENSITY, !deviceProfile.allowRotation); in setDeviceProfile()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java993 for (DeviceProfile deviceProfile : idp.supportedProfiles) { in logWidgetInfo()
994 deviceProfile.getCellSize(cellSize); in logWidgetInfo()
995 FileLog.d(TAG, "DeviceProfile available width: " + deviceProfile.availableWidthPx in logWidgetInfo()
996 + ", available height: " + deviceProfile.availableHeightPx in logWidgetInfo()
997 + ", cellLayoutBorderSpacingPx: " + deviceProfile.cellLayoutBorderSpacingPx in logWidgetInfo()
/packages/apps/Launcher3/src/com/android/launcher3/settings/
DSettingsActivity.java253 DeviceProfile deviceProfile = InvariantDeviceProfile.INSTANCE.get( in initPreference() local
255 if (deviceProfile.allowRotation) { in initPreference()
/packages/apps/Launcher3/src/com/android/launcher3/statemanager/
DBaseState.java61 default boolean displayOverviewTasksAsGrid(DeviceProfile deviceProfile) { in displayOverviewTasksAsGrid() argument
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java238 DeviceProfile deviceProfile = mActivity.getDeviceProfile(); in CellLayout() local
241 ? deviceProfile.folderCellLayoutBorderSpacingPx in CellLayout()
242 : deviceProfile.cellLayoutBorderSpacingPx; in CellLayout()
247 mCountX = deviceProfile.inv.numColumns; in CellLayout()
248 mCountY = deviceProfile.inv.numRows; in CellLayout()
271 mReorderPreviewAnimationMagnitude = (REORDER_PREVIEW_MAGNITUDE * deviceProfile.iconSizePx); in CellLayout()