/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | MoreKeysKeyboard.java | 91 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/ |
D | CarControlBar.java | 78 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/ |
D | InvariantDeviceProfile.java | 92 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()
|
D | Partner.java | 119 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()
|
D | DeviceProfile.java | 427 - 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()
|
D | DropTargetBar.java | 103 - (grid.inv.numColumns * grid.cellWidthPx)) in setInsets() 104 / (2 * (grid.inv.numColumns + 1))) in setInsets()
|
D | AutoInstallsLayout.java | 86 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/ |
D | HeaderGridView.java | 181 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/ |
D | AddWorkspaceItemsTaskTest.java | 53 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/ |
D | CalendarDatabaseHelperTest.java | 526 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/ |
D | FavoriteListFragment.java | 83 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/ |
D | OptionSelectorController.java | 245 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/ |
D | GridOptionsProvider.java | 96 .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/ |
D | DynamicShortcutsTests.java | 338 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/ |
D | LoaderCursorTest.java | 150 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/ |
D | LossyScreenMigrationTask.java | 47 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/ |
D | Utils.java | 433 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/ |
D | PredictionUiStateManager.java | 104 mMaxIconsPerRow = idp.numColumns; in PredictionUiStateManager() 120 mMaxIconsPerRow = profile.numColumns; in onIdpChanged()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 928 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/ |
D | BaseLoaderResults.java | 221 final int screenCols = profile.numColumns; in sortWorkspaceItemsSpatially() 222 final int screenCellCount = profile.numColumns * profile.numRows; in sortWorkspaceItemsSpatially()
|
D | WidgetItem.java | 41 spanX = Math.min(info.spanX, idp.numColumns); in WidgetItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | AddItemActivity.java | 204 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/ |
D | BrowseFragment.java | 238 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/ |
D | KeyboardBuilder.java | 420 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/ |
D | WidgetsListAdapterTest.java | 70 mTestProfile.numColumns = 5; in setup()
|