Home
last modified time | relevance | path

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

/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/Launcher3/src/com/android/launcher3/
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()
DInvariantDeviceProfile.java56 public int numColumns; field in InvariantDeviceProfile
90 this(p.name, p.minWidthDps, p.minHeightDps, p.numRows, p.numColumns, in InvariantDeviceProfile()
107 numColumns = c; in InvariantDeviceProfile()
140 numColumns = closestProfile.numColumns; in InvariantDeviceProfile()
DDeviceProfile.java316 (inv.numColumns * cellWidthPx)) / (2 * (inv.numColumns + 1))); in getSearchBarBounds()
352 int availablePaddingX = Math.max(0, width - (int) ((inv.numColumns * cellWidthPx) + in getWorkspacePadding()
353 ((inv.numColumns - 1) * gapScale * cellWidthPx))); in getWorkspacePadding()
492 float workspaceCellWidth = (float) getCurrentWidth() / inv.numColumns; in layout()
DAutoInstallsLayout.java85 (int) grid.numColumns, (int) grid.numRows, (int) grid.numHotseatIcons); in get()
93 (int) grid.numColumns, (int) grid.numRows); in get()
187 mColumnCount = idp.numColumns; in AutoInstallsLayout()
DLauncherAppWidgetProviderInfo.java75 idp.numColumns); in initSpans()
DLauncherModel.java407 final int xCount = (int) profile.numColumns; in findNextAvailableIconSpaceInScreen()
1621 final int countX = profile.numColumns; in checkItemPlacement()
1736 int countX = profile.numColumns; in loadWorkspace()
2474 int cellCountX = (int) profile.numColumns; in sortWorkspaceItemsSpatially()
DLauncherProvider.java1173 final int width = (int) profile.numColumns; in migrateLauncher2Shortcuts()
DLauncherBackupHelper.java442 data.desktopCols = profile.numColumns; in initDeviceProfileData()
DCellLayout.java198 mCountX = (int) grid.inv.numColumns; in CellLayout()
DWorkspace.java2973 int countX = (int) inv.numColumns;
/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/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/Contacts/src/com/android/contacts/editor/
DCompactPhotoSelectionFragment.java315 final float numColumns = outMetrics.widthPixels / in onCreateView() local
317 mGridView.setNumColumns(Math.round(numColumns)); in onCreateView()
/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/Calendar/src/com/android/calendar/
DUtils.java477 int numColumns = cursor.getColumnCount(); in matrixCursorFromCursor() local
478 String data[] = new String[numColumns]; in matrixCursorFromCursor()
481 for (int i = 0; i < numColumns; i++) { in matrixCursorFromCursor()
500 int numColumns = c1.getColumnCount(); in compareCursors() local
501 if (numColumns != c2.getColumnCount()) { in compareCursors()
512 for (int i = 0; i < numColumns; i++) { in compareCursors()
/packages/apps/Launcher3/tests/src/com/android/launcher3/
DInvariantDeviceProfileTest.java112 assertEquals(4, mInvariantProfile.numColumns); in test_hammerhead()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetCell.java149 int hSpan = Math.min(info.spanX, profile.numColumns); in applyFromAppWidgetProviderInfo()
/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/src/com/android/launcher3/model/
DWidgetsModel.java165 if (minSpanX <= (int) idp.numColumns && in setWidgetsAndShortcuts()
DGridSizeMigrationTask.java908 String gridSizeString = getPointString(idp.numColumns, idp.numRows);
948 Point targetSize = new Point(idp.numColumns, idp.numRows);