Searched refs:grid (Results 1 - 23 of 23) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
H A DGridOccupancyTest.java14 GridOccupancy grid = initGrid(4,
22 assertTrue(grid.findVacantCell(vacant, 2, 2));
26 assertTrue(grid.findVacantCell(vacant, 3, 2));
30 assertFalse(grid.findVacantCell(vacant, 3, 3));
34 GridOccupancy grid = initGrid(4,
41 assertTrue(grid.isRegionVacant(4, 0, 1, 4));
42 assertTrue(grid.isRegionVacant(0, 1, 2, 2));
43 assertTrue(grid.isRegionVacant(2, 2, 3, 2));
45 assertFalse(grid.isRegionVacant(3, 0, 2, 4));
46 assertFalse(grid
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsContainerView.java304 DeviceProfile grid = mLauncher.getDeviceProfile();
305 grid.updateAppsViewNumCols();
307 if (mNumAppsPerRow != grid.inv.numColumns ||
308 mNumPredictedAppsPerRow != grid.inv.numColumns) {
309 mNumAppsPerRow = grid.inv.numColumns;
310 mNumPredictedAppsPerRow = grid.inv.numColumns;
312 mAppsRecyclerView.setNumAppsPerRow(grid, mNumAppsPerRow);
316 if (!grid.isVerticalBarLayout()) {
330 // Update the number of items in the grid before we measure the view
331 grid
[all...]
H A DAllAppsRecyclerViewContainerView.java54 DeviceProfile grid = launcher.getDeviceProfile();
59 int size = grid.allAppsIconSizePx + mTouchFeedbackView.getExtraSize();
H A DAllAppsRecyclerView.java95 public void setNumAppsPerRow(DeviceProfile grid, int numAppsPerRow) { argument
99 int approxRows = (int) Math.ceil(grid.availableHeightPx / grid.allAppsIconSizePx);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DBaseContainerView.java79 DeviceProfile grid = Launcher.getLauncher(getContext()).getDeviceProfile();
80 grid.addLauncherLayoutChangedListener(this);
93 DeviceProfile grid = Launcher.getLauncher(getContext()).getDeviceProfile();
94 grid.removeLauncherLayoutChangedListener(this);
122 DeviceProfile grid = Launcher.getLauncher(context).getDeviceProfile();
123 int[] padding = grid.getContainerPadding();
124 paddingLeft = padding[0] + grid.edgeMarginPx;
125 paddingRight = padding[1] + grid.edgeMarginPx;
126 if (!grid.isVerticalBarLayout()) {
127 paddingTop = paddingBottom = grid
[all...]
H A DHotseat.java114 DeviceProfile grid = mLauncher.getDeviceProfile();
116 if (grid.isVerticalBarLayout()) {
117 mContent.setGridSize(1, grid.inv.numHotseatIcons);
119 mContent.setGridSize(grid.inv.numHotseatIcons, 1);
131 DeviceProfile grid = mLauncher.getDeviceProfile();
132 int allAppsButtonRank = grid.inv.getAllAppsButtonRank();
138 d.setBounds(0, 0, grid.iconSizePx, grid.iconSizePx);
H A DPendingAppWidgetHostView.java209 DeviceProfile grid = mLauncher.getDeviceProfile();
222 int maxSize = grid.iconSizePx;
240 int actualIconSize = (int) Math.min(iconSize, grid.iconSizePx);
255 + grid.iconDrawablePaddingPx;
260 grid.iconDrawablePaddingPx - actualIconSize) / 2;
281 mRect.top = mCenterDrawable.getBounds().bottom + grid.iconDrawablePaddingPx;
H A DBubbleTextView.java139 DeviceProfile grid = mLauncher.getDeviceProfile();
149 int defaultIconSize = grid.iconSizePx;
151 setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.iconTextSizePx);
153 setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.allAppsIconTextSizePx);
154 setCompoundDrawablePadding(grid.allAppsIconDrawablePaddingPx);
155 defaultIconSize = grid.allAppsIconSizePx;
157 setTextSize(TypedValue.COMPLEX_UNIT_PX, grid.folderChildTextSizePx);
158 setCompoundDrawablePadding(grid.folderChildDrawablePaddingPx);
159 defaultIconSize = grid.folderChildIconSizePx;
H A DAutoInstallsLayout.java63 * Layout resource which also includes grid size and hotseat count, e.g., default_layout_6x6_h5
82 InvariantDeviceProfile grid = LauncherAppState.getIDP(context);
84 // Try with grid size and hotseat count
86 (int) grid.numColumns, (int) grid.numRows, (int) grid.numHotseatIcons);
89 // Try with only grid size
94 (int) grid.numColumns, (int) grid.numRows);
H A DWorkspace.java351 DeviceProfile grid = mLauncher.getDeviceProfile();
352 mWorkspaceFadeInAdjacentScreens = grid.shouldFadeAdjacentWorkspaceScreens();
520 DeviceProfile grid = mLauncher.getDeviceProfile();
528 mMaxDistanceForFolderCreation = (0.55f * grid.iconSizePx);
1098 * @param x The X position of the child in the screen's grid.
1099 * @param y The Y position of the child in the screen's grid.
1159 // outside of the defined grid
2003 DeviceProfile grid = mLauncher.getDeviceProfile();
2004 int overviewButtonBarHeight = grid.getOverviewModeButtonBarHeight();
2007 Rect workspacePadding = grid
[all...]
H A DWorkspaceStateTransitionAnimation.java211 DeviceProfile grid = mLauncher.getDeviceProfile();
221 mWorkspaceFadeInAdjacentScreens = grid.shouldFadeAdjacentWorkspaceScreens();
H A DCellLayout.java205 DeviceProfile grid = mLauncher.getDeviceProfile();
210 mCountX = grid.inv.numColumns;
211 mCountY = grid.inv.numRows;
221 mChildScale = mContainerType == HOTSEAT ? grid.inv.hotseatScale : 1f;
230 mReorderPreviewAnimationMagnitude = (REORDER_PREVIEW_MAGNITUDE * grid.iconSizePx);
545 DeviceProfile grid = mLauncher.getDeviceProfile();
548 mFolderLeaveBehind.setup(getResources().getDisplayMetrics(), grid, null,
1257 * desired location. This method computers distance based on unit grid distances,
2486 * Finds the upper-left coordinate of the first rectangle in the grid that can
2618 * Horizontal location of the item in the grid
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
H A DMenuManager.java65 protected void updateModePicker(MenuItem grid, MenuItem list) { argument
68 grid.setVisible(false);
71 super.updateModePicker(grid, list);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
H A DMenuManagerTest.java55 private TestMenuItem grid; field in class:MenuManagerTest
85 grid = testMenu.findItem(R.id.menu_grid);
154 grid.assertVisible();
182 grid.assertInvisible();
/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DFolderIcon.java183 DeviceProfile grid = launcher.getDeviceProfile();
191 lp.topMargin = grid.iconSizePx + grid.iconDrawablePaddingPx;
386 DeviceProfile grid = mLauncher.getDeviceProfile();
392 mBackground.setup(getResources().getDisplayMetrics(), grid, this, mTotalWidth,
569 public void setup(DisplayMetrics dm, DeviceProfile grid, View invalidateDelegate, argument
573 final int previewSize = grid.folderIconSizePx;
574 final int previewPadding = grid.folderIconPreviewPadding;
579 basePreviewOffsetY = previewPadding + grid.folderBackgroundOffset + topPadding;
H A DFolder.java1038 DeviceProfile grid = mLauncher.getDeviceProfile();
1060 if (grid.isPhone && (grid.availableWidthPx - width) < 4 * distFromEdgeOfScreen) {
1064 left = (grid.availableWidthPx - width) / 2;
1075 Rect folderBounds = grid.getAbsoluteOpenFolderBounds();
1104 DeviceProfile grid = mLauncher.getDeviceProfile();
1105 int maxContentAreaHeight = grid.availableHeightPx
1106 - grid.getTotalWorkspacePadding().y - mFooterHeight;
H A DFolderPagedView.java123 * Sets up the grid size such that {@param count} items can fit in the grid.
124 * The grid size is calculated such that countY <= countX and countX = ceil(sqrt(count)) while
142 // Current grid is too small, expand it
157 // Update grid size
251 DeviceProfile grid = Launcher.getLauncher(getContext()).getDeviceProfile();
253 page.setCellDimensions(grid.folderCellWidthPx, grid.folderCellHeightPx);
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DMenuManager.java214 protected void updateModePicker(MenuItem grid, MenuItem list) { argument
215 grid.setVisible(mState.derivedMode != State.MODE_GRID);
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/
H A DAttachmentChooserFragment.java65 mAttachmentGridView = (AttachmentGridView) view.findViewById(R.id.grid);
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/
H A DAttachmentChooserFragmentTest.java145 getFragment().getView().findViewById(R.id.grid);
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartDataUsageView.java111 mGrid = (ChartGridView) findViewById(R.id.grid);
/packages/apps/Gallery/src/com/android/camera/
H A DImageGallery.java120 mGvs = (GridViewSpecial) findViewById(R.id.grid);
/packages/apps/TV/src/com/android/tv/guide/
H A DProgramGuide.java76 // we show the grid partially together with the genre side panel on the left. Next time
265 mGrid = (ProgramGrid) mTable.findViewById(R.id.grid);
498 // Avoid changing focus from the genre side panel to the grid during animation.

Completed in 2071 milliseconds