Home
last modified time | relevance | path

Searched refs:grid (Results 1 – 25 of 94) sorted by relevance

1234

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DGridOccupancyTest.java22 GridOccupancy grid = initGrid(4, in testFindVacantCell() local
30 assertTrue(grid.findVacantCell(vacant, 2, 2)); in testFindVacantCell()
34 assertTrue(grid.findVacantCell(vacant, 3, 2)); in testFindVacantCell()
38 assertFalse(grid.findVacantCell(vacant, 3, 3)); in testFindVacantCell()
43 GridOccupancy grid = initGrid(4, in testIsRegionVacant() local
50 assertTrue(grid.isRegionVacant(4, 0, 1, 4)); in testIsRegionVacant()
51 assertTrue(grid.isRegionVacant(0, 1, 2, 2)); in testIsRegionVacant()
52 assertTrue(grid.isRegionVacant(2, 2, 3, 2)); in testIsRegionVacant()
54 assertFalse(grid.isRegionVacant(3, 0, 2, 4)); in testIsRegionVacant()
55 assertFalse(grid.isRegionVacant(0, 0, 2, 1)); in testIsRegionVacant()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/
DSecondaryDragLayer.java115 DeviceProfile grid = mActivity.getDeviceProfile(); in onMeasure() local
120 int horizontalPadding = (2 * grid.desiredWorkspaceHorizontalMarginPx) in onMeasure()
121 + grid.cellLayoutPaddingPx.left + grid.cellLayoutPaddingPx.right; in onMeasure()
123 grid.cellLayoutPaddingPx.top + grid.cellLayoutPaddingPx.bottom; in onMeasure()
126 grid.allAppsCellWidthPx * grid.numShownAllAppsColumns + horizontalPadding; in onMeasure()
130 grid.allAppsCellHeightPx * grid.numShownAllAppsColumns + verticalPadding; in onMeasure()
136 int appsButtonSpec = makeMeasureSpec(grid.iconSizePx, EXACTLY); in onMeasure()
140 grid.iconSizePx + grid.edgeMarginPx); in onMeasure()
215 DeviceProfile grid = mActivity.getDeviceProfile(); in onIconLongClicked() local
216 options.intrinsicIconScaleFactor = (float) grid.allAppsIconSizePx / grid.iconSizePx; in onIconLongClicked()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DStaggeredWorkspaceAnim.java95 DeviceProfile grid = launcher.getDeviceProfile(); in StaggeredWorkspaceAnim() local
96 long duration = grid.isTaskbarPresent ? DURATION_TASKBAR_MS : DURATION_MS; in StaggeredWorkspaceAnim()
101 boolean staggerHotseat = !grid.isVerticalBarLayout() && !grid.isTaskbarPresent; in StaggeredWorkspaceAnim()
103 !grid.isVerticalBarLayout() && !(grid.isTaskbarPresent && grid.isQsbInline); in StaggeredWorkspaceAnim()
104 int totalRows = grid.inv.numRows + (staggerHotseat ? 1 : 0) + (staggerQsb ? 1 : 0); in StaggeredWorkspaceAnim()
122 if (grid.isVerticalBarLayout()) { in StaggeredWorkspaceAnim()
131 if (grid.isTaskbarPresent) { in StaggeredWorkspaceAnim()
132 if (grid.isQsbInline) { in StaggeredWorkspaceAnim()
133 qsbRow = grid.inv.numRows + 1; in StaggeredWorkspaceAnim()
134 hotseatRow = grid.inv.numRows + 1; in StaggeredWorkspaceAnim()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetBar.java88 DeviceProfile grid = mLauncher.getDeviceProfile(); in setInsets() local
89 mIsVertical = grid.isVerticalBarLayout(); in setInsets()
98 if (grid.isTablet) { in setInsets()
101 horizontalMargin = ((grid.widthPx - 2 * grid.edgeMarginPx in setInsets()
102 - (grid.inv.numColumns * grid.cellWidthPx)) in setInsets()
103 / (2 * (grid.inv.numColumns + 1))) in setInsets()
104 + grid.edgeMarginPx; in setInsets()
109 lp.topMargin += grid.dropTargetBarTopMarginPx; in setInsets()
110 lp.bottomMargin += grid.dropTargetBarBottomMarginPx; in setInsets()
111 lp.width = grid.availableWidthPx - 2 * horizontalMargin; in setInsets()
[all …]
DHotseat.java187 DeviceProfile grid = mActivity.getDeviceProfile(); in setInsets() local
189 if (grid.isVerticalBarLayout()) { in setInsets()
192 if (grid.isSeascape()) { in setInsets()
194 lp.width = grid.hotseatBarSizePx + insets.left; in setInsets()
197 lp.width = grid.hotseatBarSizePx + insets.right; in setInsets()
203 lp.height = grid.hotseatBarSizePx; in setInsets()
206 Rect padding = grid.getHotseatLayoutPadding(getContext()); in setInsets()
/packages/modules/NeuralNetworks/common/cpu_operations/
DHeatmapMaxKeypoint.cpp47 static void solveForDelta(const float grid[3][3], float* delta, float* deltaScore, in solveForDelta()
52 b[0] = -(grid[1][2] - grid[1][0]) / 2.0f; in solveForDelta()
53 b[1] = -(grid[2][1] - grid[0][1]) / 2.0f; in solveForDelta()
54 A[0][0] = grid[1][0] - 2.0f * grid[1][1] + grid[1][2]; in solveForDelta()
55 A[0][1] = (grid[2][2] - grid[2][0] - grid[0][2] + grid[0][0]) / 4.0f; in solveForDelta()
57 A[1][1] = grid[0][1] - 2.0f * grid[1][1] + grid[2][1]; in solveForDelta()
74 *deltaScore = grid[1][1] - b[0] * delta[0] - b[1] * delta[1] + in solveForDelta()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/ui/viewmodel/
DGridScreenViewModelTest.kt18 package com.android.customization.model.grid.ui.viewmodel in <lambda>()
22 import com.android.customization.model.grid.data.repository.FakeGridRepository in <lambda>()
23 import com.android.customization.picker.grid.domain.interactor.GridInteractor in <lambda>()
24 import com.android.customization.picker.grid.domain.interactor.GridSnapshotRestorer in <lambda>()
25 import com.android.customization.picker.grid.ui.viewmodel.GridIconViewModel in <lambda>()
26 import com.android.customization.picker.grid.ui.viewmodel.GridScreenViewModel in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/data/repository/
DFakeGridRepository.kt18 package com.android.customization.model.grid.data.repository in <lambda>()
21 import com.android.customization.model.grid.GridOption in <lambda>()
22 import com.android.customization.picker.grid.data.repository.GridRepository in <lambda>()
23 import com.android.customization.picker.grid.shared.model.GridOptionItemModel in <lambda>()
24 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/domain/interactor/
DGridSnapshotRestorerTest.kt18 package com.android.customization.model.grid.domain.interactor in <lambda>()
21 import com.android.customization.model.grid.data.repository.FakeGridRepository in <lambda>()
22 import com.android.customization.picker.grid.domain.interactor.GridInteractor in <lambda>()
23 import com.android.customization.picker.grid.domain.interactor.GridSnapshotRestorer in <lambda>()
24 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
DGridInteractorTest.kt18 package com.android.customization.model.grid.domain.interactor in <lambda>()
21 import com.android.customization.model.grid.data.repository.FakeGridRepository in <lambda>()
22 import com.android.customization.picker.grid.domain.interactor.GridInteractor in <lambda>()
23 import com.android.customization.picker.grid.domain.interactor.GridSnapshotRestorer in <lambda>()
24 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/domain/interactor/
DGridInteractor.kt18 package com.android.customization.picker.grid.domain.interactor in <lambda>()
21 import com.android.customization.model.grid.GridOption in <lambda>()
22 import com.android.customization.picker.grid.data.repository.GridRepository in <lambda>()
23 import com.android.customization.picker.grid.shared.model.GridOptionItemModel in <lambda>()
24 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/ui/section/
DGridSectionController.java16 package com.android.customization.picker.grid.ui.section;
30 import com.android.customization.model.grid.GridOption;
31 import com.android.customization.model.grid.GridOptionsManager;
32 import com.android.customization.picker.grid.ui.fragment.GridFragment;
33 import com.android.customization.picker.grid.ui.view.GridSectionView;
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/data/repository/
DGridRepository.kt18 package com.android.customization.picker.grid.data.repository in <lambda>()
23 import com.android.customization.model.grid.GridOption in <lambda>()
24 import com.android.customization.model.grid.GridOptionsManager in <lambda>()
25 import com.android.customization.picker.grid.shared.model.GridOptionItemModel in <lambda>()
26 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
/packages/apps/AvatarPicker/src/main/java/com/android/avatarpicker/ui/
DAdaptivePane.kt27 import androidx.compose.foundation.lazy.grid.GridCells in <lambda>()
28 import androidx.compose.foundation.lazy.grid.GridItemSpan in <lambda>()
29 import androidx.compose.foundation.lazy.grid.LazyGridScope in <lambda>()
30 import androidx.compose.foundation.lazy.grid.LazyVerticalGrid in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DMulticellReorderAlgorithm.java113 GridOccupancy grid = new GridOccupancy(mCellLayout.getCountX(), mCellLayout.getCountY()); in createGridOccupancyWithSeam() local
118 grid.markCells(lp.getCellX() + seamOffset, lp.getCellY(), lp.cellHSpan, lp.cellVSpan, in createGridOccupancyWithSeam()
121 Arrays.fill(grid.cells[mCellLayout.getCountX() / 2], true); in createGridOccupancyWithSeam()
122 return grid; in createGridOccupancyWithSeam()
/packages/apps/Launcher3/src/com/android/launcher3/apppairs/
DAppPairIcon.java84 DeviceProfile grid = activity.getDeviceProfile(); in inflateIcon() local
115 ? grid.folderChildIconSizePx + grid.folderChildDrawablePaddingPx in inflateIcon()
116 : grid.iconSizePx + grid.iconDrawablePaddingPx; in inflateIcon()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DSpringLoadedState.java50 DeviceProfile grid = launcher.getDeviceProfile(); in getWorkspaceScaleAndTranslation() local
56 float shrunkTop = grid.getCellLayoutSpringLoadShrunkTop(); in getWorkspaceScaleAndTranslation()
57 float scale = grid.getWorkspaceSpringLoadScale(launcher); in getWorkspaceScaleAndTranslation()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/
DGridOptionsManagerTest.java16 package com.android.customization.model.grid;
53 GridOption grid = new GridOption("testTitle", gridName, false, 2, 2, null, 1, ""); in testApply() local
56 mManager.apply(grid, new Callback() { in testApply()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatEduDialog.java92 DeviceProfile grid = mActivityContext.getDeviceProfile(); in onFinishInflate() local
93 Rect padding = grid.getHotseatLayoutPadding(context); in onFinishInflate()
95 mSampleHotseat.getLayoutParams().height = grid.cellHeightPx; in onFinishInflate()
96 mSampleHotseat.setGridSize(grid.numShownHotseatIcons, 1); in onFinishInflate()
106 int adjustedMarginEnd = grid.hotseatBarEndOffset - buttonContainer.getPaddingEnd(); in onFinishInflate()
/packages/apps/Launcher3/src/com/android/launcher3/workprofile/
DPersonalWorkSlidingTabStrip.java100 DeviceProfile grid = ActivityContext.lookupContext(context).getDeviceProfile(); in getTabWidth() local
101 int iconPadding = totalWidth / grid.numShownAllAppsColumns - grid.allAppsIconSizePx; in getTabWidth()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/ui/viewmodel/
DGridScreenViewModel.kt18 package com.android.customization.picker.grid.ui.viewmodel in <lambda>()
27 import com.android.customization.picker.grid.domain.interactor.GridInteractor in <lambda>()
28 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/ui/binder/
DGridScreenBinder.kt18 package com.android.customization.picker.grid.ui.binder in <lambda>()
30 import com.android.customization.picker.grid.ui.viewmodel.GridIconViewModel in <lambda>()
31 import com.android.customization.picker.grid.ui.viewmodel.GridScreenViewModel in <lambda>()
DGridIconViewBinder.kt1 package com.android.customization.picker.grid.ui.binder
4 import com.android.customization.picker.grid.ui.viewmodel.GridIconViewModel
/packages/apps/Launcher3/src/com/android/launcher3/recyclerview/
DAllAppsRecyclerViewPool.kt133 val grid = ActivityContext.lookupContext<T>(context).deviceProfile in <lambda>() constant
134 targetPreinflateCount += grid.maxAllAppsRowCount * grid.numShownAllAppsColumns in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/ui/fragment/
DGridFragment.kt18 package com.android.customization.picker.grid.ui.fragment in <lambda>()
34 import com.android.customization.picker.grid.domain.interactor.GridInteractor in <lambda>()
35 import com.android.customization.picker.grid.ui.binder.GridScreenBinder in <lambda>()
36 import com.android.customization.picker.grid.ui.viewmodel.GridScreenViewModel in <lambda>()

1234