/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DropTargetBar.java | 83 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 …]
|
D | Hotseat.java | 82 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()
|
D | BubbleTextView.java | 163 DeviceProfile grid = mActivity.getWallpaperDeviceProfile(); in BubbleTextView() local 164 setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.iconTextSizePx); in BubbleTextView() 165 setCompoundDrawablePadding(grid.iconDrawablePaddingPx); in BubbleTextView() 166 defaultIconSize = grid.iconSizePx; in BubbleTextView() 169 DeviceProfile grid = mActivity.getDeviceProfile(); in BubbleTextView() local 170 setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.allAppsIconTextSizePx); in BubbleTextView() 171 setCompoundDrawablePadding(grid.allAppsIconDrawablePaddingPx); in BubbleTextView() 172 defaultIconSize = grid.allAppsIconSizePx; in BubbleTextView() 175 DeviceProfile grid = mActivity.getDeviceProfile(); in BubbleTextView() local 176 setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.folderChildTextSizePx); in BubbleTextView() [all …]
|
D | InvariantDeviceProfile.java | 260 GridOption closestProfile = filteredOptions.get(0).grid; in initGrid() 284 GridOption closestProfile = options.get(0).grid; in initGridOption() 421 if (gridName.equals(option.grid.name)) { in getPredefinedDeviceProfiles() 586 private final GridOption grid; field in InvariantDeviceProfile.DisplayOption 597 DisplayOption(GridOption grid, Context context, AttributeSet attrs) { in DisplayOption() argument 598 this.grid = grid; in DisplayOption() 618 grid = null; in DisplayOption()
|
D | AutoInstallsLayout.java | 86 InvariantDeviceProfile grid = LauncherAppState.getIDP(context); in get() local 90 grid.numColumns, grid.numRows, grid.numHotseatIcons); in get() 98 grid.numColumns, grid.numRows); in get()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/ |
D | GridOccupancyTest.java | 19 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/ |
D | SpringLoadedState.java | 45 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/ThemePicker/src/com/android/customization/module/ |
D | StatsLogUserEventLogger.java | 27 import com.android.customization.model.grid.GridOption; 124 public void logGridSelected(GridOption grid) { in logGridSelected() argument 127 grid.cols, in logGridSelected() 132 public void logGridApplied(GridOption grid) { in logGridApplied() argument 135 grid.cols, in logGridApplied()
|
D | ThemesUserEventLogger.java | 19 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/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ |
D | StaggeredWorkspaceAnim.java | 80 DeviceProfile grid = launcher.getDeviceProfile(); in StaggeredWorkspaceAnim() local 101 int totalRows = grid.inv.numRows + (grid.isVerticalBarLayout() ? 0 : 2); in StaggeredWorkspaceAnim() 112 if (grid.isVerticalBarLayout()) { in StaggeredWorkspaceAnim() 121 addStaggeredAnimationForView(child, grid.inv.numRows + 1, totalRows); in StaggeredWorkspaceAnim() 125 addStaggeredAnimationForView(qsb, grid.inv.numRows + 2, totalRows); in StaggeredWorkspaceAnim()
|
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/ |
D | WorkspacePageIndicator.java | 260 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/ |
D | ScrimView.java | 297 DeviceProfile grid = mLauncher.getDeviceProfile(); in updateDragHandleBounds() local 300 final int top = getMeasuredHeight() - mDragHandleSize - grid.getInsets().bottom; in updateDragHandleBounds() 303 if (grid.isVerticalBarLayout()) { in updateDragHandleBounds() 304 topMargin = grid.workspacePadding.bottom; in updateDragHandleBounds() 305 if (grid.isSeascape()) { in updateDragHandleBounds() 306 left = width - grid.getInsets().right - mDragHandleSize; in updateDragHandleBounds() 308 left = mDragHandleSize + grid.getInsets().left; in updateDragHandleBounds() 312 topMargin = grid.hotseatBarSizePx; in updateDragHandleBounds()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingAppWidgetHostView.java | 203 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/ |
D | GridOptionsManagerTest.java | 16 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/allapps/ |
D | AllAppsContainerView.java | 320 DeviceProfile grid = mLauncher.getDeviceProfile(); in setInsets() local 321 int leftRightPadding = grid.desiredWorkspaceLeftRightMarginPx in setInsets() 322 + grid.cellLayoutPaddingLeftRightPx; in setInsets() 325 mAH[i].adapter.setAppsPerRow(grid.inv.numAllAppsColumns); in setInsets() 332 if (grid.isVerticalBarLayout()) { in setInsets() 335 setPadding(grid.workspacePadding.left, 0, grid.workspacePadding.right, 0); in setInsets()
|
D | AllAppsRecyclerView.java | 97 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/DocumentsUI/src/com/android/documentsui/picker/ |
D | MenuManager.java | 86 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/touch/ |
D | ItemLongClickListener.java | 112 DeviceProfile grid = launcher.getDeviceProfile(); in onAllAppsItemLongClick() local 114 options.intrinsicIconScaleFactor = (float) grid.allAppsIconSizePx / grid.iconSizePx; in onAllAppsItemLongClick()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/ |
D | CustomizationPickerActivity.java | 42 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/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | AppsDividerView.java | 284 public void setInsets(Rect insets, DeviceProfile grid) { in setInsets() argument 285 int leftRightPadding = grid.desiredWorkspaceLeftRightMarginPx in setInsets() 286 + grid.cellLayoutPaddingLeftRightPx; in setInsets()
|
D | PredictionRowView.java | 385 public void setInsets(Rect insets, DeviceProfile grid) { in setInsets() argument 386 int leftRightPadding = grid.desiredWorkspaceLeftRightMarginPx in setInsets() 387 + grid.cellLayoutPaddingLeftRightPx; in setInsets()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/ |
D | GridFragment.java | 16 package com.android.customization.picker.grid; 40 import com.android.customization.model.grid.GridOption; 41 import com.android.customization.model.grid.GridOptionsManager;
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | Folder.java | 943 DeviceProfile grid = mLauncher.getDeviceProfile(); in centerAboutIcon() local 969 if (grid.isPhone && (grid.availableWidthPx - width) < 4 * distFromEdgeOfScreen) { in centerAboutIcon() 973 left = (grid.availableWidthPx - width) / 2; in centerAboutIcon() 984 Rect folderBounds = grid.getAbsoluteOpenFolderBounds(); in centerAboutIcon() 1001 DeviceProfile grid = mLauncher.getDeviceProfile(); in getContentAreaHeight() local 1002 int maxContentAreaHeight = grid.availableHeightPx - grid.getTotalWorkspacePadding().y in getContentAreaHeight()
|
D | PreviewBackground.java | 137 DeviceProfile grid = activity.getWallpaperDeviceProfile(); in setup() local 138 previewSize = grid.folderIconSizePx; in setup() 141 basePreviewOffsetY = topPadding + grid.folderIconOffsetYPx; in setup()
|
D | FolderIcon.java | 166 DeviceProfile grid = launcher.getWallpaperDeviceProfile(); in fromXml() local 175 lp.topMargin = grid.iconSizePx + grid.iconDrawablePaddingPx; in fromXml() 181 icon.mDotRenderer = grid.mDotRendererWorkSpace; in fromXml()
|