Lines Matching refs:grid
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()
104 / (2 * (grid.inv.numColumns + 1))) in setInsets()
105 + grid.edgeMarginPx; in setInsets()
107 gap = grid.desiredWorkspaceLeftRightMarginPx - grid.inv.defaultWidgetPadding.right; in setInsets()
109 lp.width = grid.availableWidthPx - 2 * gap; in setInsets()
111 lp.topMargin += grid.edgeMarginPx; in setInsets()
112 lp.height = grid.dropTargetBarSizePx; in setInsets()