Home
last modified time | relevance | path

Searched refs:grid (Results 1 – 25 of 49) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetBar.java83 DeviceProfile grid = Launcher.getLauncher(getContext()).getDeviceProfile(); in setInsets() local
84 mIsVertical = grid.isVerticalBarLayout(); in setInsets()
92 if (grid.isVerticalBarLayout()) { in setInsets()
93 lp.width = grid.dropTargetBarSizePx; in setInsets()
94 lp.height = grid.availableHeightPx - 2 * grid.edgeMarginPx; in setInsets()
95 lp.gravity = grid.isSeascape() ? Gravity.RIGHT : Gravity.LEFT; in setInsets()
96 tooltipLocation = grid.isSeascape() ? TOOLTIP_LEFT : TOOLTIP_RIGHT; in setInsets()
99 if (grid.isTablet) { in setInsets()
102 gap = ((grid.widthPx - 2 * grid.edgeMarginPx in setInsets()
103 - (grid.inv.numColumns * grid.cellWidthPx)) in setInsets()
[all …]
DHotseat.java82 DeviceProfile grid = mActivity.getWallpaperDeviceProfile(); in setInsets() local
83 insets = grid.getInsets(); in setInsets()
85 if (grid.isVerticalBarLayout()) { in setInsets()
87 if (grid.isSeascape()) { in setInsets()
89 lp.width = grid.hotseatBarSizePx + insets.left; in setInsets()
92 lp.width = grid.hotseatBarSizePx + insets.right; in setInsets()
97 lp.height = grid.hotseatBarSizePx + insets.bottom; in setInsets()
99 Rect padding = grid.getHotseatLayoutPadding(); in setInsets()
DBubbleTextView.java158 DeviceProfile grid = mActivity.getWallpaperDeviceProfile(); in BubbleTextView() local
159 setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.iconTextSizePx); in BubbleTextView()
160 setCompoundDrawablePadding(grid.iconDrawablePaddingPx); in BubbleTextView()
161 defaultIconSize = grid.iconSizePx; in BubbleTextView()
163 DeviceProfile grid = mActivity.getDeviceProfile(); in BubbleTextView() local
164 setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.allAppsIconTextSizePx); in BubbleTextView()
165 setCompoundDrawablePadding(grid.allAppsIconDrawablePaddingPx); in BubbleTextView()
166 defaultIconSize = grid.allAppsIconSizePx; in BubbleTextView()
168 DeviceProfile grid = mActivity.getDeviceProfile(); in BubbleTextView() local
169 setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.folderChildTextSizePx); in BubbleTextView()
[all …]
DInvariantDeviceProfile.java195 GridOption closestProfile = allOptions.get(0).grid; in initGrid()
355 if (gridName.equals(option.grid.name)) { in getPredefinedDeviceProfiles()
525 private final GridOption grid; field in InvariantDeviceProfile.DisplayOption
536 DisplayOption(GridOption grid, Context context, AttributeSet attrs) { in DisplayOption() argument
537 this.grid = grid; in DisplayOption()
556 grid = null; in DisplayOption()
DAutoInstallsLayout.java82 InvariantDeviceProfile grid = LauncherAppState.getIDP(context); in get() local
86 grid.numColumns, grid.numRows, grid.numHotseatIcons); in get()
94 grid.numColumns, grid.numRows); in get()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/
DGridOccupancyTest.java19 GridOccupancy grid = initGrid(4, in testFindVacantCell() local
27 assertTrue(grid.findVacantCell(vacant, 2, 2)); in testFindVacantCell()
31 assertTrue(grid.findVacantCell(vacant, 3, 2)); in testFindVacantCell()
35 assertFalse(grid.findVacantCell(vacant, 3, 3)); in testFindVacantCell()
40 GridOccupancy grid = initGrid(4, in testIsRegionVacant() local
47 assertTrue(grid.isRegionVacant(4, 0, 1, 4)); in testIsRegionVacant()
48 assertTrue(grid.isRegionVacant(0, 1, 2, 2)); in testIsRegionVacant()
49 assertTrue(grid.isRegionVacant(2, 2, 3, 2)); in testIsRegionVacant()
51 assertFalse(grid.isRegionVacant(3, 0, 2, 4)); in testIsRegionVacant()
52 assertFalse(grid.isRegionVacant(0, 0, 2, 1)); in testIsRegionVacant()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/states/
DSpringLoadedState.java45 DeviceProfile grid = launcher.getDeviceProfile(); in getWorkspaceScaleAndTranslation() local
51 if (grid.isVerticalBarLayout()) { in getWorkspaceScaleAndTranslation()
52 float scale = grid.workspaceSpringLoadShrinkFactor; in getWorkspaceScaleAndTranslation()
56 float scale = grid.workspaceSpringLoadShrinkFactor; in getWorkspaceScaleAndTranslation()
60 float shrunkTop = insets.top + grid.dropTargetBarSizePx; in getWorkspaceScaleAndTranslation()
62 - grid.workspacePadding.bottom in getWorkspaceScaleAndTranslation()
63 - grid.workspaceSpringLoadedBottomSpace; in getWorkspaceScaleAndTranslation()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DStaggeredWorkspaceAnim.java81 DeviceProfile grid = launcher.getDeviceProfile(); in StaggeredWorkspaceAnim() local
87 int totalRows = grid.inv.numRows + (grid.isVerticalBarLayout() ? 0 : 2); in StaggeredWorkspaceAnim()
97 if (grid.isVerticalBarLayout()) { in StaggeredWorkspaceAnim()
106 addStaggeredAnimationForView(hotseat, grid.inv.numRows + 1, totalRows); in StaggeredWorkspaceAnim()
109 addStaggeredAnimationForView(qsb, grid.inv.numRows + 2, totalRows); in StaggeredWorkspaceAnim()
/packages/apps/ThemePicker/src/com/android/customization/module/
DStatsLogUserEventLogger.java25 import com.android.customization.model.grid.GridOption;
122 public void logGridSelected(GridOption grid) { in logGridSelected() argument
125 grid.cols, in logGridSelected()
130 public void logGridApplied(GridOption grid) { in logGridApplied() argument
133 grid.cols, in logGridApplied()
DThemesUserEventLogger.java19 import com.android.customization.model.grid.GridOption;
36 void logGridSelected(GridOption grid); in logGridSelected() argument
38 void logGridApplied(GridOption grid); in logGridApplied() argument
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DWorkspacePageIndicator.java260 DeviceProfile grid = mLauncher.getDeviceProfile(); in setInsets() local
263 if (grid.isVerticalBarLayout()) { in setInsets()
264 Rect padding = grid.workspacePadding; in setInsets()
265 lp.leftMargin = padding.left + grid.workspaceCellPaddingXPx; in setInsets()
266 lp.rightMargin = padding.right + grid.workspaceCellPaddingXPx; in setInsets()
271 lp.bottomMargin = grid.hotseatBarSizePx + insets.bottom; in setInsets()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DScrimView.java294 DeviceProfile grid = mLauncher.getDeviceProfile(); in updateDragHandleBounds() local
297 final int top = getMeasuredHeight() - mDragHandleSize - grid.getInsets().bottom; in updateDragHandleBounds()
300 if (grid.isVerticalBarLayout()) { in updateDragHandleBounds()
301 topMargin = grid.workspacePadding.bottom; in updateDragHandleBounds()
302 if (grid.isSeascape()) { in updateDragHandleBounds()
303 left = width - grid.getInsets().right - mDragHandleSize; in updateDragHandleBounds()
305 left = mDragHandleSize + grid.getInsets().left; in updateDragHandleBounds()
309 topMargin = grid.hotseatBarSizePx; in updateDragHandleBounds()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAppWidgetHostView.java203 DeviceProfile grid = mLauncher.getDeviceProfile(); in updateDrawableBounds() local
216 int maxSize = grid.iconSizePx; in updateDrawableBounds()
234 int actualIconSize = (int) Math.min(iconSize, grid.iconSizePx); in updateDrawableBounds()
249 + grid.iconDrawablePaddingPx; in updateDrawableBounds()
254 grid.iconDrawablePaddingPx - actualIconSize) / 2; in updateDrawableBounds()
275 mRect.top = mCenterDrawable.getBounds().bottom + grid.iconDrawablePaddingPx; in updateDrawableBounds()
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/grid/
DGridOptionsManagerTest.java16 package com.android.customization.model.grid;
53 GridOption grid = new GridOption("testTitle", gridName, false, 2, 2, null, 1, ""); in testApply() local
56 mManager.apply(grid, new Callback() { in testApply()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DItemLongClickListener.java98 DeviceProfile grid = launcher.getDeviceProfile(); in onAllAppsItemLongClick() local
100 options.intrinsicIconScaleFactor = (float) grid.allAppsIconSizePx / grid.iconSizePx; in onAllAppsItemLongClick()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DMenuManager.java86 protected void updateModePicker(MenuItem grid, MenuItem list) { in updateModePicker() argument
89 grid.setVisible(false); in updateModePicker()
92 super.updateModePicker(grid, list); in updateModePicker()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java305 DeviceProfile grid = mLauncher.getDeviceProfile(); in setInsets() local
306 int leftRightPadding = grid.desiredWorkspaceLeftRightMarginPx in setInsets()
307 + grid.cellLayoutPaddingLeftRightPx; in setInsets()
316 if (grid.isVerticalBarLayout()) { in setInsets()
319 setPadding(grid.workspacePadding.left, 0, grid.workspacePadding.right, 0); in setInsets()
DAllAppsRecyclerView.java97 DeviceProfile grid = Launcher.getLauncher(getContext()).getDeviceProfile(); in updatePoolSize() local
99 int approxRows = (int) Math.ceil(grid.availableHeightPx / grid.allAppsIconSizePx); in updatePoolSize()
106 mViewHeights.put(AllAppsGridAdapter.VIEW_TYPE_ICON, grid.allAppsCellHeightPx); in updatePoolSize()
/packages/apps/ThemePicker/src/com/android/customization/picker/
DCustomizationPickerActivity.java42 import com.android.customization.model.grid.GridOption;
43 import com.android.customization.model.grid.GridOptionsManager;
44 import com.android.customization.model.grid.LauncherGridOptionsProvider;
54 import com.android.customization.picker.grid.GridFragment;
55 import com.android.customization.picker.grid.GridFragment.GridFragmentHost;
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java900 DeviceProfile grid = mLauncher.getDeviceProfile(); in centerAboutIcon() local
926 if (grid.isPhone && (grid.availableWidthPx - width) < 4 * distFromEdgeOfScreen) { in centerAboutIcon()
930 left = (grid.availableWidthPx - width) / 2; in centerAboutIcon()
941 Rect folderBounds = grid.getAbsoluteOpenFolderBounds(); in centerAboutIcon()
970 DeviceProfile grid = mLauncher.getDeviceProfile(); in getContentAreaHeight() local
971 int maxContentAreaHeight = grid.availableHeightPx in getContentAreaHeight()
972 - grid.getTotalWorkspacePadding().y - mFooterHeight; in getContentAreaHeight()
DPreviewBackground.java137 DeviceProfile grid = activity.getWallpaperDeviceProfile(); in setup() local
138 previewSize = grid.folderIconSizePx; in setup()
141 basePreviewOffsetY = topPadding + grid.folderIconOffsetYPx; in setup()
DFolderIcon.java161 DeviceProfile grid = launcher.getWallpaperDeviceProfile(); in fromXml() local
170 lp.topMargin = grid.iconSizePx + grid.iconDrawablePaddingPx; in fromXml()
176 icon.mDotRenderer = grid.mDotRenderer; in fromXml()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DAppsDividerView.java284 public void setInsets(Rect insets, DeviceProfile grid) { in setInsets() argument
285 int leftRightPadding = grid.desiredWorkspaceLeftRightMarginPx in setInsets()
286 + grid.cellLayoutPaddingLeftRightPx; in setInsets()
DPredictionRowView.java374 public void setInsets(Rect insets, DeviceProfile grid) { in setInsets() argument
375 int leftRightPadding = grid.desiredWorkspaceLeftRightMarginPx in setInsets()
376 + grid.cellLayoutPaddingLeftRightPx; in setInsets()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/
DGridFragment.java16 package com.android.customization.picker.grid;
40 import com.android.customization.model.grid.GridOption;
41 import com.android.customization.model.grid.GridOptionsManager;

12