Home
last modified time | relevance | path

Searched refs:mIdp (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DGridSizeMigrationTaskV2Test.java60 private InvariantDeviceProfile mIdp; field in GridSizeMigrationTaskV2Test
92 mIdp = InvariantDeviceProfile.INSTANCE.get(mContext); in setUp()
123 mIdp.numDatabaseHotseatIcons = 4; in testMigration()
124 mIdp.numColumns = 4; in testMigration()
125 mIdp.numRows = 4; in testMigration()
131 mIdp.numDatabaseHotseatIcons); in testMigration()
133 destReader, mIdp.numDatabaseHotseatIcons, new Point(mIdp.numColumns, mIdp.numRows)); in testMigration()
140 assertEquals(c.getCount(), mIdp.numDatabaseHotseatIcons); in testMigration()
203 mIdp.numDatabaseHotseatIcons = 6; in migrateToLargerHotseat()
204 mIdp.numColumns = 4; in migrateToLargerHotseat()
[all …]
DAddWorkspaceItemsTaskTest.java52 private InvariantDeviceProfile mIdp; field in AddWorkspaceItemsTaskTest
64 mIdp = InvariantDeviceProfile.INSTANCE.get(mTargetContext); in setup()
65 mIdp.numColumns = mIdp.numRows = 5; in setup()
162 GridOccupancy occupancy = new GridOccupancy(mIdp.numColumns, mIdp.numRows); in writeWorkspaceWithHoles()
163 occupancy.markCells(0, 0, mIdp.numColumns, mIdp.numRows, true); in writeWorkspaceWithHoles()
171 for (int x = 0; x < mIdp.numColumns; x++) { in writeWorkspaceWithHoles()
172 for (int y = 0; y < mIdp.numRows; y++) { in writeWorkspaceWithHoles()
DBackupRestoreTest.java72 private InvariantDeviceProfile mIdp; field in BackupRestoreTest
81 mIdp = InvariantDeviceProfile.INSTANCE.get(RuntimeEnvironment.application); in setUp()
130 new GridBackupTable(RuntimeEnvironment.application, mDb, mIdp.numDatabaseHotseatIcons, in setupBackup()
131 mIdp.numColumns, mIdp.numRows).doBackup( in setupBackup()
DGridSizeMigrationTaskTest.java44 private InvariantDeviceProfile mIdp; field in GridSizeMigrationTaskTest
54 mIdp = InvariantDeviceProfile.INSTANCE.get(mContext); in setUp()
67 mIdp.numDatabaseHotseatIcons = 3; in testHotseatMigration_apps_dropped()
84 mIdp.numDatabaseHotseatIcons = 3; in testHotseatMigration_shortcuts_dropped()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DPreviewSurfaceRenderer.java76 private final InvariantDeviceProfile mIdp; field in PreviewSurfaceRenderer
97 mIdp = new InvariantDeviceProfile(context, gridName); in PreviewSurfaceRenderer()
156 PreviewContext previewContext = new PreviewContext(inflationContext, mIdp); in loadModelData()
190 ? GridSizeMigrationTaskV2.needsToMigrate(mContext, mIdp) in doGridMigrationIfNecessary()
191 : GridSizeMigrationTask.needsToMigrate(mContext, mIdp); in doGridMigrationIfNecessary()
196 ? GridSizeMigrationTaskV2.migrateGridIfNeeded(mContext, mIdp) in doGridMigrationIfNecessary()
197 : GridSizeMigrationTask.migrateGridIfNeeded(mContext, mIdp); in doGridMigrationIfNecessary()
206 View view = new LauncherPreviewRenderer(inflationContext, mIdp, mWallpaperColors) in renderView()
DLauncherPreviewRenderer.java127 private final InvariantDeviceProfile mIdp; field in LauncherPreviewRenderer.PreviewContext
136 mIdp = idp; in PreviewContext()
179 return new LauncherIconsForPreview(context, mIdp.fillResIconDpi, mIdp.iconBitmapSize, in newLauncherIcons()
201 private final InvariantDeviceProfile mIdp; field in LauncherPreviewRenderer
218 mIdp = idp; in LauncherPreviewRenderer()
237 new BaseIconFactory(context, mIdp.fillResIconDpi, mIdp.iconBitmapSize) { }; in LauncherPreviewRenderer()
424 sortWorkspaceItemsSpatially(mIdp, currentWorkspaceItems);
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/ui/
DLauncherUIScrollTest.java61 private InvariantDeviceProfile mIdp; field in LauncherUIScrollTest
70 mIdp = InvariantDeviceProfile.INSTANCE.get(mTargetContext); in setup()
78 .atWorkspace(0, mIdp.numRows - 1, 0).putApp(TEST_PACKAGE, TEST_PACKAGE) in setup()
79 .atWorkspace(0, mIdp.numRows - 1, 1).putApp(TEST_PACKAGE, TEST_PACKAGE) in setup()
80 .atWorkspace(0, mIdp.numRows - 1, 2).putApp(TEST_PACKAGE, TEST_PACKAGE); in setup()
137 FolderBuilder fb = mLayoutBuilder.atWorkspace(mIdp.numColumns / 2, mIdp.numRows / 2, 0) in testFolderPageScroll()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java97 private InvariantDeviceProfile mIdp; field in AddItemActivity
123 mIdp = mApp.getInvariantDeviceProfile(); in onCreate()
127 mDeviceProfile = mIdp.getDeviceProfile(getApplicationContext()); in onCreate()
252 if (widgetInfo.minSpanX > mIdp.numColumns || widgetInfo.minSpanY > mIdp.numRows) { in setupWidget()
263 pendingInfo.spanX = Math.min(mIdp.numColumns, widgetInfo.spanX); in setupWidget()
264 pendingInfo.spanY = Math.min(mIdp.numRows, widgetInfo.spanY); in setupWidget()
268 applyWidgetItemAsync(() -> new WidgetItem(widgetInfo, mIdp, mApp.getIconCache())); in setupWidget()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DWidgetsModel.java245 private final InvariantDeviceProfile mIdp; field in WidgetsModel.WidgetValidityCheck
249 mIdp = app.getInvariantDeviceProfile(); in WidgetValidityCheck()
266 item.componentName, mIdp.numColumns, mIdp.numRows)); in test()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/secondarydisplay/
DSDWorkModeTest.java59 private InvariantDeviceProfile mIdp; field in SDWorkModeTest
66 mIdp = InvariantDeviceProfile.INSTANCE.get(mTargetContext); in setup()
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java168 private final InvariantDeviceProfile mIdp; field in AutoInstallsLayout
199 mIdp = LauncherAppState.getIDP(context); in AutoInstallsLayout()
200 mRowCount = mIdp.numRows; in AutoInstallsLayout()
201 mColumnCount = mIdp.numColumns; in AutoInstallsLayout()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DRecentsView.java392 private final InvariantDeviceProfile mIdp; field in RecentsView
594 mIdp = InvariantDeviceProfile.INSTANCE.get(context); in RecentsView()