Home
last modified time | relevance | path

Searched refs:numColumns (Results 1 – 25 of 39) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java91 final int numColumns = isMoreKeysFixedColumn ? Math.min(numKeys, numColumn) in setParameters() local
93 mNumColumns = numColumns; in setParameters()
94 final int topKeys = numKeys % numColumns; in setParameters()
95 mTopKeys = topKeys == 0 ? numColumns : topKeys; in setParameters()
97 final int numLeftKeys = (numColumns - 1) / 2; in setParameters()
98 final int numRightKeys = numColumns - numLeftKeys; // including default key. in setParameters()
105 rightKeys = numColumns - leftKeys; in setParameters()
108 leftKeys = numColumns - rightKeys; in setParameters()
217 private static int getTopRowEmptySlots(final int numKeys, final int numColumns) { in getTopRowEmptySlots() argument
218 final int remainings = numKeys % numColumns; in getTopRowEmptySlots()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DCarControlBar.java78 static int getSlotIndex(@SlotPosition int slotPosition, int numColumns) { in getSlotIndex() argument
81 return numColumns / 2; in getSlotIndex()
83 return numColumns < 3 ? -1 : (numColumns / 2) - 1; in getSlotIndex()
85 return numColumns < 2 ? -1 : (numColumns / 2) + 1; in getSlotIndex()
87 return numColumns - 1; in getSlotIndex()
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java92 public int numColumns; field in InvariantDeviceProfile
131 numColumns = p.numColumns; in InvariantDeviceProfile()
197 numColumns = closestProfile.numColumns; in initGrid()
297 numColumns != oldProfile.numColumns || in onConfigChanged()
488 public final int numColumns; field in InvariantDeviceProfile.GridOption
505 numColumns = a.getInt(R.styleable.GridDisplayOption_numColumns, 0); in GridOption()
512 R.styleable.GridDisplayOption_numHotseatIcons, numColumns); in GridOption()
516 R.styleable.GridDisplayOption_numFolderColumns, numColumns); in GridOption()
DPartner.java119 int numColumns = -1; in applyInvariantDeviceProfileOverrides() local
132 numColumns = getResources().getInteger(resId); in applyInvariantDeviceProfileOverrides()
146 if (numRows > 0 && numColumns > 0) { in applyInvariantDeviceProfileOverrides()
148 inv.numColumns = numColumns; in applyInvariantDeviceProfileOverrides()
DDeviceProfile.java427 - cellLayoutPaddingLeftRightPx * 2, inv.numColumns); in getCellSize()
462 int availablePaddingX = Math.max(0, widthPx - ((inv.numColumns * cellWidthPx) + in updateWorkspacePadding()
463 ((inv.numColumns - 1) * cellWidthPx))); in updateWorkspacePadding()
496 float workspaceCellWidth = (float) widthPx / inv.numColumns; in getHotseatLayoutPadding()
DDropTargetBar.java103 - (grid.inv.numColumns * grid.cellWidthPx)) in setInsets()
104 / (2 * (grid.inv.numColumns + 1))) in setInsets()
DAutoInstallsLayout.java86 grid.numColumns, grid.numRows, grid.numHotseatIcons); in get()
94 grid.numColumns, grid.numRows); in get()
190 mColumnCount = mIdp.numColumns; in AutoInstallsLayout()
/packages/apps/Gallery2/src/com/android/photos/views/
DHeaderGridView.java181 int numColumns = getNumColumns(); in setAdapter() local
182 if (numColumns > 1) { in setAdapter()
183 hadapter.setNumColumns(numColumns); in setAdapter()
251 public void setNumColumns(int numColumns) { in setNumColumns() argument
252 if (numColumns < 1) { in setNumColumns()
255 if (mNumColumns != numColumns) { in setNumColumns()
256 mNumColumns = numColumns; in setNumColumns()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DAddWorkspaceItemsTaskTest.java53 idp.numColumns = 5; in initData()
137 GridOccupancy occupancy = new GridOccupancy(idp.numColumns, idp.numRows); in setupWorkspaceWithHoles()
138 occupancy.markCells(0, 0, idp.numColumns, idp.numRows, true); in setupWorkspaceWithHoles()
147 for (int x = 0; x < idp.numColumns; x++) { in setupWorkspaceWithHoles()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarDatabaseHelperTest.java526 int numColumns = c1.getColumnCount(); in compareCursors() local
527 if (numColumns != c2.getColumnCount()) { in compareCursors()
528 Log.d("CDBT","c1 has " + numColumns + " columns and c2 has " + c2.getColumnCount()); in compareCursors()
540 for(int i = 0; i < numColumns; i++) { in compareCursors()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DFavoriteListFragment.java83 int numColumns = resources.getInteger(R.integer.favorite_fragment_grid_column); in getItemOffsets() local
89 if (parent.getChildAdapterPosition(view) % numColumns == 0) { in getItemOffsets()
92 if (parent.getChildAdapterPosition(view) < numColumns) { in getItemOffsets()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java245 int numColumns = res.getInteger(R.integer.options_grid_num_columns); in initOptions() local
247 int extraSpace = availableWidth - widthPerItem * numColumns; in initOptions()
248 int containerSidePadding = extraSpace / (numColumns + 1); in initOptions()
249 mContainer.setLayoutManager(new GridLayoutManager(mContainer.getContext(), numColumns)); in initOptions()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DGridOptionsProvider.java96 .add(KEY_COLS, gridOption.numColumns) in query()
98 .add(KEY_IS_DEFAULT, idp.numColumns == gridOption.numColumns in query()
/packages/apps/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java338 private void populateQueryRows(MockContentProvider.Query query, int numColumns,
340 for (int i = 0; i < rows.length; i += numColumns) {
341 Object[] row = new Object[numColumns];
342 for (int j = 0; j < numColumns; j++) {
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DLoaderCursorTest.java150 mIDP.numColumns = 4; in checkItemPlacement_outsideBounds()
161 mIDP.numColumns = 4; in checkItemPlacement_overlappingItems()
187 mIDP.numColumns = 4; in checkItemPlacement_hotseat()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLossyScreenMigrationTask.java47 new Point(idp.numColumns, idp.numRows + 1), in LossyScreenMigrationTask()
48 new Point(idp.numColumns, idp.numRows)); in LossyScreenMigrationTask()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java433 int numColumns = cursor.getColumnCount(); in matrixCursorFromCursor() local
434 String data[] = new String[numColumns]; in matrixCursorFromCursor()
437 for (int i = 0; i < numColumns; i++) { in matrixCursorFromCursor()
456 int numColumns = c1.getColumnCount(); in compareCursors() local
457 if (numColumns != c2.getColumnCount()) { in compareCursors()
468 for (int i = 0; i < numColumns; i++) { in compareCursors()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DPredictionUiStateManager.java104 mMaxIconsPerRow = idp.numColumns; in PredictionUiStateManager()
120 mMaxIconsPerRow = profile.numColumns; in onIdpChanged()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java928 private int numColumns(int row) { in numColumns() method in ImageBlockManager
941 int cols = numColumns(row); in drawEmptyBlock()
1015 int columns = numColumns(mRow); in loadImages()
1110 int cols = numColumns(mRow); in doDraw()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DBaseLoaderResults.java221 final int screenCols = profile.numColumns; in sortWorkspaceItemsSpatially()
222 final int screenCellCount = profile.numColumns * profile.numRows; in sortWorkspaceItemsSpatially()
DWidgetItem.java41 spanX = Math.min(info.spanX, idp.numColumns); in WidgetItem()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java204 if (widgetInfo.minSpanX > mIdp.numColumns || widgetInfo.minSpanY > mIdp.numRows) { in setupWidget()
214 pendingInfo.spanX = Math.min(mIdp.numColumns, widgetInfo.spanX); in setupWidget()
/packages/apps/Car/Media/src/com/android/car/media/
DBrowseFragment.java238 int numColumns = view.getContext().getResources().getInteger(R.integer.num_browse_columns); in onCreateView() local
239 GridLayoutManager gridLayoutManager = new GridLayoutManager(getContext(), numColumns); in onCreateView()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardBuilder.java420 final int numColumns = (int)(mParams.mOccupiedWidth / keyWidth); in parseGridRows() local
421 for (int index = 0; index < counts; index += numColumns) { in parseGridRows()
424 for (int c = 0; c < numColumns; c++) { in parseGridRows()
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/
DWidgetsListAdapterTest.java70 mTestProfile.numColumns = 5; in setup()

12