/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfoTest.java | 63 InvariantDeviceProfile idp = createIDP(); in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne() local 65 info.initSpans(mContext, idp); in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne() 76 InvariantDeviceProfile idp = createIDP(); in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans() local 78 info.initSpans(mContext, idp); in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans() 90 InvariantDeviceProfile idp = createIDP(); in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns() local 92 info.initSpans(mContext, idp); in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns() 103 InvariantDeviceProfile idp = createIDP(); in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows() local 105 info.initSpans(mContext, idp); in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows() 114 InvariantDeviceProfile idp = createIDP(); in initSpans_minResizeWidthUnspecified_shouldInitializeMinSpansToOne() local 116 info.initSpans(mContext, idp); in initSpans_minResizeWidthUnspecified_shouldInitializeMinSpansToOne() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/ |
D | HotseatRestoreHelper.java | 45 InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in createBackup() local 47 transaction.getDb(), idp.numDatabaseHotseatIcons, idp.numColumns, in createBackup() 48 idp.numRows); in createBackup() 70 InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in restoreBackup() local 72 transaction.getDb(), idp.numDatabaseHotseatIcons, idp.numColumns, in restoreBackup() 73 idp.numRows); in restoreBackup()
|
D | HotseatEduController.java | 129 InvariantDeviceProfile idp = mLauncher.getDeviceProfile().inv; in placeFoldersInWorkspace() local 160 idp.numRows - 1); in placeFoldersInWorkspace()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfo.java | 100 public void initSpans(Context context, InvariantDeviceProfile idp) { in initSpans() argument 103 int maxSpanX = idp.numColumns; in initSpans() 104 int maxSpanY = idp.numRows; in initSpans() 113 for (DeviceProfile dp : idp.supportedProfiles) { in initSpans() 170 this.mIsMinSizeFulfilled = Math.min(spanX, minSpanX) <= idp.numColumns in initSpans() 171 && Math.min(spanY, minSpanY) <= idp.numRows; in initSpans() 173 this.spanX = Math.min(spanX, idp.numColumns); in initSpans() 174 this.spanY = Math.min(spanY, idp.numRows); in initSpans()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | GridSizeMigrationTaskV2.java | 108 public static boolean needsToMigrate(Context context, InvariantDeviceProfile idp) { in needsToMigrate() argument 110 String gridSizeString = getPointString(idp.numColumns, idp.numRows); in needsToMigrate() 113 || idp.numDatabaseHotseatIcons != prefs.getInt(KEY_MIGRATION_SRC_HOTSEAT_COUNT, -1); in needsToMigrate() 138 public static boolean migrateGridIfNeeded(Context context, InvariantDeviceProfile idp) { in migrateGridIfNeeded() argument 139 boolean migrateForPreview = idp != null; in migrateGridIfNeeded() 141 idp = LauncherAppState.getIDP(context); in migrateGridIfNeeded() 144 if (!needsToMigrate(context, idp)) { in migrateGridIfNeeded() 149 String gridSizeString = getPointString(idp.numColumns, idp.numRows); in migrateGridIfNeeded() 152 idp.numDatabaseHotseatIcons); in migrateGridIfNeeded() 157 LauncherSettings.Settings.METHOD_PREP_FOR_PREVIEW, idp.dbFile).getBoolean( in migrateGridIfNeeded() [all …]
|
D | GridSizeMigrationTask.java | 891 public static boolean needsToMigrate(Context context, InvariantDeviceProfile idp) { 893 String gridSizeString = getPointString(idp.numColumns, idp.numRows); 896 || idp.numDatabaseHotseatIcons != prefs.getInt(KEY_MIGRATION_SRC_HOTSEAT_COUNT, -1); 913 public static boolean migrateGridIfNeeded(Context context, InvariantDeviceProfile idp) { 914 boolean migrateForPreview = idp != null; 916 idp = LauncherAppState.getIDP(context); 919 if (!needsToMigrate(context, idp)) { 924 String gridSizeString = getPointString(idp.numColumns, idp.numRows); 931 idp.numDatabaseHotseatIcons); 951 if (srcHotseatCount != idp.numDatabaseHotseatIcons [all …]
|
D | WidgetItem.java | 31 InvariantDeviceProfile idp, IconCache iconCache) { in WidgetItem() argument 38 spanX = Math.min(info.spanX, idp.numColumns); in WidgetItem() 39 spanY = Math.min(info.spanY, idp.numRows); in WidgetItem()
|
D | BaseLoaderResults.java | 188 final InvariantDeviceProfile idp = mApp.getInvariantDeviceProfile(); in bind() local 189 sortWorkspaceItemsSpatially(idp, currentWorkspaceItems); in bind() 190 sortWorkspaceItemsSpatially(idp, otherWorkspaceItems); in bind()
|
D | ItemInstallQueue.java | 317 InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in getItemInfo() local 320 widgetInfo.spanX = Math.min(info.spanX, idp.numColumns); in getItemInfo() 321 widgetInfo.spanY = Math.min(info.spanY, idp.numRows); in getItemInfo()
|
D | LoaderTask.java | 990 private static void logWidgetInfo(InvariantDeviceProfile idp, in logWidgetInfo() argument 993 for (DeviceProfile deviceProfile : idp.supportedProfiles) { in logWidgetInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | LossyScreenMigrationTask.java | 43 Context context, InvariantDeviceProfile idp, SQLiteDatabase db) { in LossyScreenMigrationTask() argument 46 new Point(idp.numColumns, idp.numRows + 1), in LossyScreenMigrationTask() 47 new Point(idp.numColumns, idp.numRows)); in LossyScreenMigrationTask()
|
D | RestoreDbTask.java | 105 InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in backupWorkspace() local 106 new GridBackupTable(context, db, idp.numDatabaseHotseatIcons, idp.numColumns, idp.numRows) in backupWorkspace() 113 final InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in restoreWorkspace() local 114 GridBackupTable backupTable = new GridBackupTable(context, db, idp.numDatabaseHotseatIcons, in restoreWorkspace() 115 idp.numColumns, idp.numRows); in restoreWorkspace()
|
/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | LauncherIcons.java | 60 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(context); in obtain() local 61 return new LauncherIcons(context, idp.fillResIconDpi, idp.iconBitmapSize, poolId, in obtain()
|
D | IconCache.java | 83 public IconCache(Context context, InvariantDeviceProfile idp) { in IconCache() argument 84 this(context, idp, LauncherFiles.APP_ICONS_DB, new IconProvider(context)); in IconCache() 87 public IconCache(Context context, InvariantDeviceProfile idp, String dbFileName, in IconCache() argument 90 idp.fillResIconDpi, idp.iconBitmapSize, true /* inMemoryCache */); in IconCache()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | LauncherPreviewRenderer.java | 134 public PreviewContext(Context base, InvariantDeviceProfile idp) { in PreviewContext() argument 136 mIdp = idp; in PreviewContext() 137 mObjectMap.put(InvariantDeviceProfile.INSTANCE, idp); in PreviewContext() 212 InvariantDeviceProfile idp, in LauncherPreviewRenderer() argument 218 mIdp = idp; in LauncherPreviewRenderer() 219 mDp = idp.getDeviceProfile(context).copy(context); in LauncherPreviewRenderer()
|
D | GridCustomizationsProvider.java | 96 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(getContext()); in query() local 103 .add(KEY_IS_DEFAULT, idp.numColumns == gridOption.numColumns in query() 104 && idp.numRows == gridOption.numRows); in query()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/ |
D | LauncherModelHelper.java | 357 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(context); in setupDefaultLayoutProvider() local 358 idp.numRows = idp.numColumns = idp.numDatabaseHotseatIcons = DEFAULT_GRID_SIZE; in setupDefaultLayoutProvider() 359 idp.iconBitmapSize = DEFAULT_BITMAP_SIZE; in setupDefaultLayoutProvider()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RecentsOrientedState.java | 584 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(mContext); in getLauncherDeviceProfile() local 596 DeviceProfile bestMatch = idp.supportedProfiles.get(0); in getLauncherDeviceProfile() 598 for (DeviceProfile profile : idp.supportedProfiles) { in getLauncherDeviceProfile()
|
/packages/apps/Launcher3/src/com/android/launcher3/qsb/ |
D | QsbContainerView.java | 293 InvariantDeviceProfile idp = LauncherAppState.getIDP(getContext()); in createBindOptions() local 295 idp.numColumns, 1); in createBindOptions()
|
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/ |
D | WidgetsModel.java | 121 InvariantDeviceProfile idp = app.getInvariantDeviceProfile(); in update() local 131 launcherWidgetInfo, idp, app.getIconCache())); in update()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 627 InvariantDeviceProfile idp = LauncherAppState.getIDP(getContext()); in getDefaultLayoutParser() local 628 int defaultLayout = idp.defaultLayoutId; in getDefaultLayoutParser() 631 && idp.demoModeLayoutId != 0) { in getDefaultLayoutParser() 632 defaultLayout = idp.demoModeLayoutId; in getDefaultLayoutParser()
|
D | AppWidgetResizeFrame.java | 222 InvariantDeviceProfile idp = LauncherAppState.getIDP(cellLayout.getContext()); in setupForWidget() local 224 && mMinVSpan < idp.numRows && mMaxVSpan > 1; in setupForWidget() 230 && mMinHSpan < idp.numColumns && mMaxHSpan > 1; in setupForWidget()
|
D | Launcher.java | 427 InvariantDeviceProfile idp = app.getInvariantDeviceProfile(); in onCreate() local 428 initDeviceProfile(idp); in onCreate() 429 idp.addOnChangeListener(this); in onCreate() 565 public void onIdpChanged(InvariantDeviceProfile idp) { in onIdpChanged() argument 566 initDeviceProfile(idp); in onIdpChanged() 589 private void initDeviceProfile(InvariantDeviceProfile idp) { in initDeviceProfile() argument 591 mDeviceProfile = idp.getDeviceProfile(this); in initDeviceProfile()
|
D | LauncherAppState.java | 88 mInvariantDeviceProfile.addOnChangeListener(idp -> refreshAndReloadLauncher()); in LauncherAppState()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
D | CustomAppWidgetProviderInfo.java | 61 public void initSpans(Context context, InvariantDeviceProfile idp) { } in initSpans() argument
|