Home
last modified time | relevance | path

Searched refs:idp (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfoTest.java67 InvariantDeviceProfile idp = createIDP(); in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne() local
69 info.initSpans(mContext, idp); in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne()
80 InvariantDeviceProfile idp = createIDP(); in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans() local
82 info.initSpans(mContext, idp); in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans()
94 InvariantDeviceProfile idp = createIDP(); in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns() local
96 info.initSpans(mContext, idp); in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns()
107 InvariantDeviceProfile idp = createIDP(); in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows() local
109 info.initSpans(mContext, idp); in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows()
118 InvariantDeviceProfile idp = createIDP(); in initSpans_minResizeWidthUnspecified_shouldInitializeMinSpansToOne() local
120 info.initSpans(mContext, idp); in initSpans_minResizeWidthUnspecified_shouldInitializeMinSpansToOne()
[all …]
DGeneratedPreviewTest.kt93 val idp = InvariantDeviceProfile() in createWidgetItem() constant
97 idp, in createWidgetItem()
98 IconCache(context, idp, null, IconProvider(context)), in createWidgetItem()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/
DGridSizeMigrationUtilTest.kt49 private lateinit var idp: InvariantDeviceProfile in <lambda>() variable in com.android.launcher3.model.GridSizeMigrationUtilTest
89 idp = InvariantDeviceProfile.INSTANCE[context] in <lambda>()
126 idp.numDatabaseHotseatIcons = 4 in <lambda>()
127 idp.numColumns = 4 in <lambda>()
128 idp.numRows = 4 in <lambda>()
135 idp.numDatabaseHotseatIcons, in <lambda>()
136 Point(idp.numColumns, idp.numRows), in <lambda>()
138 DeviceGridState(idp) in <lambda>()
154 assertThat(c.count).isEqualTo(idp.numDatabaseHotseatIcons) in <lambda>()
238 idp.numDatabaseHotseatIcons = 4 in <lambda>()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DFolderIconLoadTest.kt91 val idp = LauncherAppState.getIDP(modelHelper.sandboxContext) in folderLoadedWithHighRes_max_3x3() constant
92 idp.numFolderColumns = intArrayOf(3, 3, 3, 3) in folderLoadedWithHighRes_max_3x3()
93 idp.numFolderRows = intArrayOf(3, 3, 3, 3) in folderLoadedWithHighRes_max_3x3()
104 val idp = LauncherAppState.getIDP(modelHelper.sandboxContext) in folderLoadedWithHighRes_max_4x4() constant
105 idp.numFolderColumns = intArrayOf(4, 4, 4, 4) in folderLoadedWithHighRes_max_4x4()
106 idp.numFolderRows = intArrayOf(4, 4, 4, 4) in folderLoadedWithHighRes_max_4x4()
117 val idp = LauncherAppState.getIDP(modelHelper.sandboxContext) in folderLoadedWithHighRes_differentFolderConfigurations() constant
118 idp.numFolderColumns = intArrayOf(4, 3, 4, 4) in folderLoadedWithHighRes_differentFolderConfigurations()
119 idp.numFolderRows = intArrayOf(4, 3, 4, 4) in folderLoadedWithHighRes_differentFolderConfigurations()
DLoaderTaskTest.kt96 val idp = in setup() constant
102 context.putObject(InvariantDeviceProfile.INSTANCE, idp) in setup()
114 `when`(app.invariantDeviceProfile).thenReturn(idp) in setup()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfo.java98 public void initSpans(Context context, InvariantDeviceProfile idp) { in initSpans() argument
101 int maxSpanX = idp.numColumns; in initSpans()
102 int maxSpanY = idp.numRows; in initSpans()
108 for (DeviceProfile dp : idp.supportedProfiles) { in initSpans()
159 this.mIsMinSizeFulfilled = Math.min(spanX, minSpanX) <= idp.numColumns in initSpans()
160 && Math.min(spanY, minSpanY) <= idp.numRows; in initSpans()
162 this.spanX = Math.min(spanX, idp.numColumns); in initSpans()
163 this.spanY = Math.min(spanY, idp.numRows); in initSpans()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DDeviceGridState.java63 public DeviceGridState(InvariantDeviceProfile idp) { in DeviceGridState() argument
64 mGridSizeString = String.format(Locale.ENGLISH, "%d,%d", idp.numColumns, idp.numRows); in DeviceGridState()
65 mNumHotseat = idp.numDatabaseHotseatIcons; in DeviceGridState()
66 mDeviceType = idp.deviceType; in DeviceGridState()
67 mDbFile = idp.dbFile; in DeviceGridState()
DWidgetItem.java46 InvariantDeviceProfile idp, IconCache iconCache, Context context, in WidgetItem() argument
55 spanX = Math.min(info.spanX, idp.numColumns); in WidgetItem()
56 spanY = Math.min(info.spanY, idp.numRows); in WidgetItem()
76 InvariantDeviceProfile idp, IconCache iconCache, Context context) { in WidgetItem() argument
77 this(info, idp, iconCache, context, new WidgetManagerHelper(context)); in WidgetItem()
DModelDbController.java301 InvariantDeviceProfile idp = LauncherAppState.getIDP(mContext); in migrateGridIfNeeded() local
302 if (!GridSizeMigrationUtil.needsToMigrate(mContext, idp)) { in migrateGridIfNeeded()
306 String targetDbName = new DeviceGridState(idp).getDbFile(); in migrateGridIfNeeded()
318 DeviceGridState destDeviceState = new DeviceGridState(idp); in migrateGridIfNeeded()
589 InvariantDeviceProfile idp = LauncherAppState.getIDP(mContext); in getDefaultLayoutParser() local
590 int defaultLayout = idp.demoModeLayoutId != 0 in getDefaultLayoutParser()
592 ? idp.demoModeLayoutId : idp.defaultLayoutId; in getDefaultLayoutParser()
DItemInstallQueue.java328 InvariantDeviceProfile idp = LauncherAppState.getIDP(context); in getItemInfo() local
331 widgetInfo.spanX = Math.min(info.spanX, idp.numColumns); in getItemInfo()
332 widgetInfo.spanY = Math.min(info.spanY, idp.numRows); in getItemInfo()
DBaseLauncherBinder.java322 final InvariantDeviceProfile idp = mApp.getInvariantDeviceProfile(); in bind() local
323 sortWorkspaceItemsSpatially(idp, currentWorkspaceItems); in bind()
324 sortWorkspaceItemsSpatially(idp, otherWorkspaceItems); in bind()
DWidgetsModel.java165 InvariantDeviceProfile idp = app.getInvariantDeviceProfile(); in update() local
175 launcherWidgetInfo, idp, app.getIconCache(), app.getContext(), in update()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DGridCustomizationsProvider.java104 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(getContext()); in query() local
105 for (GridOption gridOption : idp.parseAllGridOptions(getContext())) { in query()
111 .add(KEY_IS_DEFAULT, idp.numColumns == gridOption.numColumns in query()
112 && idp.numRows == gridOption.numRows); in query()
147 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(getContext()); in update() local
150 for (GridOption option : idp.parseAllGridOptions(getContext())) { in update()
160 idp.setCurrentGrid(getContext(), gridName); in update()
DPreviewSurfaceRenderer.java226 final InvariantDeviceProfile idp = new InvariantDeviceProfile(inflationContext, mGridName); in loadModelData() local
227 if (GridSizeMigrationUtil.needsToMigrate(inflationContext, idp)) { in loadModelData()
229 PreviewContext previewContext = new PreviewContext(inflationContext, idp); in loadModelData()
252 DeviceProfile deviceProfile = idp.getDeviceProfile(previewContext); in loadModelData()
268 idp); in loadModelData()
277 null, idp)); in loadModelData()
288 @Nullable final SparseArray<Size> launcherWidgetSpanInfo, InvariantDeviceProfile idp) { in renderView() argument
292 mRenderer = new LauncherPreviewRenderer(inflationContext, idp, in renderView()
DLauncherPreviewRenderer.java127 public PreviewContext(Context base, InvariantDeviceProfile idp) { in PreviewContext() argument
129 putObject(InvariantDeviceProfile.INSTANCE, idp); in PreviewContext()
151 InvariantDeviceProfile idp, in LauncherPreviewRenderer() argument
158 mIdp = idp; in LauncherPreviewRenderer()
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomAppWidgetProviderInfo.java56 public void initSpans(Context context, InvariantDeviceProfile idp) { in initSpans() argument
57 mIsMinSizeFulfilled = Math.min(spanX, minSpanX) <= idp.numColumns in initSpans()
58 && Math.min(spanY, minSpanY) <= idp.numRows; in initSpans()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherIcons.java117 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(mContext); in obtain() local
118 return new LauncherIcons(mContext, idp.fillResIconDpi, idp.iconBitmapSize, pool); in obtain()
DIconCache.java112 public IconCache(Context context, InvariantDeviceProfile idp, String dbFileName, in IconCache() argument
115 idp.fillResIconDpi, idp.iconBitmapSize, true /* inMemoryCache */); in IconCache()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java122 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(context); in restoreIfNeeded() local
129 String oldPhoneFileName = idp.dbFile; in restoreIfNeeded()
134 idp.reset(context); in restoreIfNeeded()
135 trySettingPreviousGidAsCurrent(context, idp, oldPhoneFileName, previousDbs); in restoreIfNeeded()
137 idp.reinitializeAfterRestore(context); in restoreIfNeeded()
146 private static void trySettingPreviousGidAsCurrent(Context context, InvariantDeviceProfile idp, in trySettingPreviousGidAsCurrent() argument
148 InvariantDeviceProfile.GridOption oldPhoneGridOption = idp.getGridOptionFromFileName( in trySettingPreviousGidAsCurrent()
154 if (previousDbs.size() == 1 && oldPhoneGridOption.numColumns <= idp.numColumns in trySettingPreviousGidAsCurrent()
155 && oldPhoneGridOption.numRows <= idp.numRows) { in trySettingPreviousGidAsCurrent()
162 idp.setCurrentGrid(context, oldPhoneGridOption.name); in trySettingPreviousGidAsCurrent()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DLauncherModelHelper.java166 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(sandboxContext); in setupDefaultLayoutProvider() local
167 idp.numRows = idp.numColumns = idp.numDatabaseHotseatIcons = DEFAULT_GRID_SIZE; in setupDefaultLayoutProvider()
168 idp.iconBitmapSize = DEFAULT_BITMAP_SIZE; in setupDefaultLayoutProvider()
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/
DTaplReorderWidgetsTest.java112 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(mTargetContext); in printCurrentWorkspace() local
116 Log.d(TAG, ".\n" + boards.get(i).toString(idp.numColumns, idp.numRows)); in printCurrentWorkspace()
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DTestInformationHandler.java289 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(mContext); in call()
291 idp.getDeviceProfile(mContext).getPanelCount() * idp.numColumns, in call()
292 idp.numRows in call()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DWidgetPickerActivity.java111 InvariantDeviceProfile idp = mApp.getInvariantDeviceProfile(); in onCreate() local
112 mDeviceProfile = idp.getDeviceProfile(this); in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java300 InvariantDeviceProfile idp = LauncherAppState.getIDP(getContext()); in createBindOptions() local
302 idp.numColumns, 1); in createBindOptions()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRecentsOrientedState.java576 InvariantDeviceProfile idp = InvariantDeviceProfile.INSTANCE.get(mContext); in getLauncherDeviceProfile() local
587 return idp.getBestMatch(width, height, mRecentsActivityRotation); in getLauncherDeviceProfile()

12