/packages/apps/Launcher3/tests/src/com/android/launcher3/model/gridmigration/ |
D | GridMigrationUtils.kt | 22 import com.android.launcher3.LauncherSettings.Favorites 33 val items = itemsArg.filter { it.container != Favorites.CONTAINER_HOTSEAT } in contains() 38 Favorites.ITEM_TYPE_FOLDER, in contains() 39 Favorites.ITEM_TYPE_APP_PAIR -> throw Exception("Not implemented") in contains() 40 Favorites.ITEM_TYPE_APPWIDGET -> in contains() 42 Favorites.ITEM_TYPE_APPLICATION -> boardList[it.screenId].addIcon(it.x, it.y) in contains() 50 values.put(Favorites.SCREEN, entry.screenId) in insertIntoDb() 51 values.put(Favorites.CELLX, entry.x) in insertIntoDb() 52 values.put(Favorites.CELLY, entry.y) in insertIntoDb() 53 values.put(Favorites.SPANX, entry.spanX) in insertIntoDb() [all …]
|
D | ValidGridMigrationUnitTest.kt | 28 import com.android.launcher3.LauncherSettings.Favorites in <lambda>() 72 it.filter { it.container != Favorites.CONTAINER_HOTSEAT } in validate() 75 Favorites.ITEM_TYPE_FOLDER, in validate() 76 Favorites.ITEM_TYPE_APP_PAIR -> throw Exception("Not implemented") in validate() 77 Favorites.ITEM_TYPE_APPWIDGET -> it.appWidgetProvider in validate() 78 Favorites.ITEM_TYPE_APPLICATION -> it.intent in validate() 124 Favorites.addTableToDb(dbHelper.writableDatabase, userSerial, false, srcGrid.tableName) in migrate() 152 tableName = Favorites.TMP_TABLE, in runTestCase() 157 Grid(tableName = Favorites.TABLE_NAME, size = testCase.targetSize, items = listOf()) in runTestCase() 170 tableName = Favorites.TMP_TABLE, in mergeBoards() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | DatabaseHelper.java | 18 import static com.android.launcher3.LauncherSettings.Favorites.addTableToDb; 41 import com.android.launcher3.LauncherSettings.Favorites; 120 dropTable(db, Favorites.HYBRID_HOTSEAT_BACKUP_TABLE); in onAddOrDeleteOp() 180 if (!addIntegerColumn(db, Favorites.MODIFIED, 0)) { in onUpgrade() 186 if (!addIntegerColumn(db, Favorites.RESTORED, 0)) { in onUpgrade() 199 if (!addIntegerColumn(db, Favorites.PROFILE_ID, getDefaultUserSerial())) { in onUpgrade() 211 if (!addIntegerColumn(db, Favorites.OPTIONS, 0)) { in onUpgrade() 235 Favorites.SCREEN, finalScreens.get(i), original[i]); in onUpgrade() 241 Favorites.TABLE_NAME, Favorites.SCREEN, updatemap, in onUpgrade() 242 Favorites.CONTAINER, Favorites.CONTAINER_DESKTOP); in onUpgrade() [all …]
|
D | GridSizeMigrationUtil.java | 20 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 21 import static com.android.launcher3.LauncherSettings.Favorites.TMP_TABLE; 268 if (entry.itemType == LauncherSettings.Favorites.ITEM_TYPE_FOLDER) { in calcDiff() 279 if (entry.itemType == LauncherSettings.Favorites.ITEM_TYPE_FOLDER in insertEntryInDb() 280 || entry.itemType == LauncherSettings.Favorites.ITEM_TYPE_APP_PAIR) { in insertEntryInDb() 303 LauncherSettings.Favorites._ID + " = '" + (entry != null ? entry.id : id) + "'", in copyEntryAndUpdate() 311 values.put(LauncherSettings.Favorites.CONTAINER, folderId); in copyEntryAndUpdate() 314 values.put(LauncherSettings.Favorites._ID, newId); in copyEntryAndUpdate() 323 Utilities.createDbSelectionQuery(LauncherSettings.Favorites._ID, entryIds), null); in removeEntryFromDb() 455 LauncherSettings.Favorites._ID, // 0 in loadHotseatEntries() [all …]
|
D | LoaderCursor.java | 19 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 41 import com.android.launcher3.LauncherSettings.Favorites; 132 mIconIndex = getColumnIndexOrThrow(Favorites.ICON); in LoaderCursor() 133 mTitleIndex = getColumnIndexOrThrow(Favorites.TITLE); in LoaderCursor() 135 mIdIndex = getColumnIndexOrThrow(Favorites._ID); in LoaderCursor() 136 mContainerIndex = getColumnIndexOrThrow(Favorites.CONTAINER); in LoaderCursor() 137 mItemTypeIndex = getColumnIndexOrThrow(Favorites.ITEM_TYPE); in LoaderCursor() 138 mScreenIndex = getColumnIndexOrThrow(Favorites.SCREEN); in LoaderCursor() 139 mCellXIndex = getColumnIndexOrThrow(Favorites.CELLX); in LoaderCursor() 140 mCellYIndex = getColumnIndexOrThrow(Favorites.CELLY); in LoaderCursor() [all …]
|
D | ModelWriter.java | 19 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 33 import com.android.launcher3.LauncherSettings.Favorites; 167 .put(Favorites.CONTAINER, item.container) in moveItemInDatabase() 168 .put(Favorites.CELLX, item.cellX) in moveItemInDatabase() 169 .put(Favorites.CELLY, item.cellY) in moveItemInDatabase() 170 .put(Favorites.RANK, item.rank) in moveItemInDatabase() 171 .put(Favorites.SCREEN, item.screenId))); in moveItemInDatabase() 188 values.put(Favorites.CONTAINER, item.container); in moveItemsInDatabase() 189 values.put(Favorites.CELLX, item.cellX); in moveItemsInDatabase() 190 values.put(Favorites.CELLY, item.cellY); in moveItemsInDatabase() [all …]
|
D | ModelDbController.java | 23 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER; 24 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE; 25 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APP_PAIR; 26 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 27 import static com.android.launcher3.LauncherSettings.Favorites.addTableToDb; 69 import com.android.launcher3.LauncherSettings.Favorites; 127 if (!tableExists(databaseHelper.getReadableDatabase(), Favorites.TABLE_NAME)) { in createDatabaseHelper() 135 databaseHelper.getReadableDatabase(), Favorites.HYBRID_HOTSEAT_BACKUP_TABLE); in createDatabaseHelper() 265 mOpenHelper.getReadableDatabase(), Favorites.HYBRID_HOTSEAT_BACKUP_TABLE); in refreshHotseatRestoreTable() 378 String selection = LauncherSettings.Favorites.ITEM_TYPE + " = " in deleteEmptyFolders() [all …]
|
D | BgDataModel.java | 43 import com.android.launcher3.LauncherSettings.Favorites; 161 if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in collectWorkspaceScreens() 214 case LauncherSettings.Favorites.ITEM_TYPE_FOLDER: in removeItem() 215 case LauncherSettings.Favorites.ITEM_TYPE_APP_PAIR: in removeItem() 230 case LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT: { in removeItem() 234 case LauncherSettings.Favorites.ITEM_TYPE_APPLICATION: in removeItem() 237 case LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET: in removeItem() 238 case LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET: in removeItem() 262 case LauncherSettings.Favorites.ITEM_TYPE_FOLDER: in addItem() 266 case LauncherSettings.Favorites.ITEM_TYPE_APP_PAIR: in addItem() [all …]
|
D | WorkspaceItemProcessor.kt | 32 import com.android.launcher3.LauncherSettings.Favorites 105 Favorites.ITEM_TYPE_APPLICATION, in processItem() 106 Favorites.ITEM_TYPE_DEEP_SHORTCUT -> processAppOrDeepShortcut() in processItem() 107 Favorites.ITEM_TYPE_FOLDER, in processItem() 108 Favorites.ITEM_TYPE_APP_PAIR -> processFolderOrAppPair() in processItem() 109 Favorites.ITEM_TYPE_APPWIDGET, in processItem() 110 Favorites.ITEM_TYPE_CUSTOM_APPWIDGET -> processWidget() in processItem() 159 if (cn != null && validTarget && (c.itemType != Favorites.ITEM_TYPE_DEEP_SHORTCUT)) { in processAppOrDeepShortcut() 176 c.updater().put(Favorites.INTENT, intent.toUri(0)).commit() in processAppOrDeepShortcut() 211 c.updater().put(Favorites.RESTORED, c.restoreFlag).commit() in processAppOrDeepShortcut() [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/ |
D | ModelTestExtensions.kt | 5 import com.android.launcher3.LauncherSettings.Favorites in <lambda>() 6 import com.android.launcher3.LauncherSettings.Favorites.APPWIDGET_ID in <lambda>() 7 import com.android.launcher3.LauncherSettings.Favorites.APPWIDGET_PROVIDER in <lambda>() 8 import com.android.launcher3.LauncherSettings.Favorites.APPWIDGET_SOURCE in <lambda>() 9 import com.android.launcher3.LauncherSettings.Favorites.CELLX in <lambda>() 10 import com.android.launcher3.LauncherSettings.Favorites.CELLY in <lambda>() 11 import com.android.launcher3.LauncherSettings.Favorites.CONTAINER in <lambda>() 12 import com.android.launcher3.LauncherSettings.Favorites.CONTAINER_DESKTOP in <lambda>() 13 import com.android.launcher3.LauncherSettings.Favorites.INTENT in <lambda>() 14 import com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE in <lambda>() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | ItemInfo.java | 19 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_ALL_APPS; 20 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_DESKTOP; 21 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_HOTSEAT; 22 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_HOTSEAT_PREDICTION; 23 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_PREDICTION; 24 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_SETTINGS; 25 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_SHORTCUTS; 26 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_TASKSWITCHER; 27 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_WALLPAPERS; 28 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_WIDGETS_TRAY; [all …]
|
D | LauncherAppWidgetInfo.java | 19 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_ALL_APPS; 20 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_BOTTOM_WIDGETS_TRAY; 21 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_PIN_WIDGETS; 22 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_WIDGETS_PREDICTION; 23 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_WIDGETS_TRAY; 147 public int sourceContainer = LauncherSettings.Favorites.CONTAINER_UNKNOWN; 154 itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; in LauncherAppWidgetInfo() 156 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in LauncherAppWidgetInfo() 177 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in LauncherAppWidgetInfo() 193 writer.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId) in onAddToDatabase() [all …]
|
D | WorkspaceItemInfo.java | 31 import com.android.launcher3.LauncherSettings.Favorites; 102 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; in WorkspaceItemInfo() 125 itemType = Favorites.ITEM_TYPE_DEEP_SHORTCUT; in WorkspaceItemInfo() 137 writer.put(Favorites.TITLE, title) in onAddToDatabase() 138 .put(Favorites.INTENT, getIntent()) in onAddToDatabase() 139 .put(Favorites.OPTIONS, options) in onAddToDatabase() 140 .put(Favorites.RESTORED, status); in onAddToDatabase() 216 return itemType == Favorites.ITEM_TYPE_DEEP_SHORTCUT in getDeepShortcutId()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 28 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE; 29 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; 30 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; 60 import com.android.launcher3.LauncherSettings.Favorites; 265 int itemsDeletedCount = db.delete(Favorites.TABLE_NAME, where, profileIds); in sanitizeDB() 271 values.put(Favorites.RESTORED, WorkspaceItemInfo.FLAG_RESTORED_ICON in sanitizeDB() 273 db.update(Favorites.TABLE_NAME, values, null, null); in sanitizeDB() 276 values.put(Favorites.RESTORED, LauncherAppWidgetInfo.FLAG_ID_NOT_VALID in sanitizeDB() 280 db.update(Favorites.TABLE_NAME, values, "itemType = ?", in sanitizeDB() 281 new String[]{Integer.toString(Favorites.ITEM_TYPE_APPWIDGET)}); in sanitizeDB() [all …]
|
D | LauncherDbUtils.java | 19 import static com.android.launcher3.LauncherSettings.Favorites.getColumns; 38 import com.android.launcher3.LauncherSettings.Favorites; 90 Favorites.addTableToDb(toDb, userSerial, false, toTable); in copyTable() 109 Favorites.TABLE_NAME, null, "itemType = 1", null, null, null, null); in migrateLegacyShortcuts() 168 update.put(Favorites.ITEM_TYPE, Favorites.ITEM_TYPE_DEEP_SHORTCUT); in migrateLegacyShortcuts() 169 update.put(Favorites.INTENT, in migrateLegacyShortcuts() 171 db.update(Favorites.TABLE_NAME, update, "_id = ?", in migrateLegacyShortcuts() 176 db.delete(Favorites.TABLE_NAME, in migrateLegacyShortcuts() 177 Utilities.createDbSelectionQuery(Favorites._ID, deletedShortcuts.getArray()), in migrateLegacyShortcuts() 182 db.execSQL("ALTER TABLE " + Favorites.TABLE_NAME + " DROP COLUMN iconPackage;"); in migrateLegacyShortcuts() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AutoInstallsLayout.java | 19 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; 20 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 51 import com.android.launcher3.LauncherSettings.Favorites; 170 Favorites.containerToString(Favorites.CONTAINER_HOTSEAT); 270 out[0] = Favorites.CONTAINER_HOTSEAT; in parseContainerAndScreen() 274 out[0] = Favorites.CONTAINER_DESKTOP; in parseContainerAndScreen() 301 mValues.put(Favorites.CONTAINER, container); in parseAndAddNode() 302 mValues.put(Favorites.SCREEN, screenId); in parseAndAddNode() 304 mValues.put(Favorites.CELLX, in parseAndAddNode() 306 mValues.put(Favorites.CELLY, in parseAndAddNode() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | LoaderCursorTest.java | 21 import static com.android.launcher3.LauncherSettings.Favorites.APPWIDGET_ID; 22 import static com.android.launcher3.LauncherSettings.Favorites.APPWIDGET_PROVIDER; 23 import static com.android.launcher3.LauncherSettings.Favorites.APPWIDGET_SOURCE; 24 import static com.android.launcher3.LauncherSettings.Favorites.CELLX; 25 import static com.android.launcher3.LauncherSettings.Favorites.CELLY; 26 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER; 27 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_DESKTOP; 28 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_HOTSEAT; 29 import static com.android.launcher3.LauncherSettings.Favorites.ICON; 30 import static com.android.launcher3.LauncherSettings.Favorites.INTENT; [all …]
|
D | DefaultLayoutProviderTest.java | 74 assertEquals(LauncherSettings.Favorites.CONTAINER_HOTSEAT, info.container); in testCustomProfileLoaded_with_icon_on_hotseat() 75 assertEquals(LauncherSettings.Favorites.ITEM_TYPE_APPLICATION, info.itemType); in testCustomProfileLoaded_with_icon_on_hotseat() 89 assertEquals(LauncherSettings.Favorites.ITEM_TYPE_FOLDER, info.itemType); in testCustomProfileLoaded_with_folder() 104 assertEquals(LauncherSettings.Favorites.ITEM_TYPE_FOLDER, info.itemType); in testCustomProfileLoaded_with_folder_custom_title() 127 assertEquals(LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET, info.itemType); in testCustomProfileLoaded_with_widget() 141 assertEquals(LauncherSettings.Favorites.CONTAINER_HOTSEAT, info.container); in testCustomProfileLoaded_with_shortcut_on_hotseat() 142 assertEquals(LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT, info.itemType); in testCustomProfileLoaded_with_shortcut_on_hotseat() 160 assertEquals(LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT, in testCustomProfileLoaded_with_shortcut_in_folder()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/ |
D | RestoreDbTaskTest.java | 25 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_DESKTOP; 26 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; 27 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 61 import com.android.launcher3.LauncherSettings.Favorites; 126 values.put(Favorites._ID, i); in testMigrateProfileId() 127 values.put(Favorites.TITLE, "item " + i); in testMigrateProfileId() 128 db.insert(Favorites.TABLE_NAME, null, values); in testMigrateProfileId() 146 values.put(Favorites._ID, i); in testChangeDefaultColumn() 147 values.put(Favorites.TITLE, "item " + i); in testChangeDefaultColumn() 148 db.insert(Favorites.TABLE_NAME, null, values); in testChangeDefaultColumn() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | PredictionHelper.java | 50 if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in getAppTargetFromItemInfo() 56 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION in getAppTargetFromItemInfo() 61 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT in getAppTargetFromItemInfo() 67 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_FOLDER) { in getAppTargetFromItemInfo() 70 } else if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APP_PAIR) { in getAppTargetFromItemInfo() 84 info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT in wrapAppTargetWithItemLocation() 95 return info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT || ( in isTrackedForHotseatPrediction() 96 info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP in isTrackedForHotseatPrediction() 121 return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in isTrackedForWidgetPrediction() 122 && info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP; in isTrackedForWidgetPrediction()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | AutoInstallsLayoutTest.kt | 31 import com.android.launcher3.LauncherSettings.Favorites.APPWIDGET_PROVIDER 32 import com.android.launcher3.LauncherSettings.Favorites.CONTAINER 33 import com.android.launcher3.LauncherSettings.Favorites.CONTAINER_DESKTOP 34 import com.android.launcher3.LauncherSettings.Favorites.CONTAINER_HOTSEAT 35 import com.android.launcher3.LauncherSettings.Favorites.INTENT 36 import com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE 37 import com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPLICATION 38 import com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET 39 import com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_FOLDER 40 import com.android.launcher3.LauncherSettings.Favorites.PROFILE_ID [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ItemInflater.kt | 27 import com.android.launcher3.LauncherSettings.Favorites 58 Favorites.ITEM_TYPE_APPLICATION, in inflateItem() 59 Favorites.ITEM_TYPE_DEEP_SHORTCUT, in inflateItem() 60 Favorites.ITEM_TYPE_SEARCH_ACTION -> { in inflateItem() 67 if (info.container == Favorites.CONTAINER_PREDICTION) { in inflateItem() 73 Favorites.ITEM_TYPE_FOLDER -> in inflateItem() 80 Favorites.ITEM_TYPE_APP_PAIR -> in inflateItem() 88 Favorites.ITEM_TYPE_APPWIDGET, in inflateItem() 89 Favorites.ITEM_TYPE_CUSTOM_APPWIDGET -> in inflateItem()
|
D | PersistedItemArray.java | 30 import com.android.launcher3.LauncherSettings.Favorites; 94 out.attribute(null, Favorites.ITEM_TYPE, Integer.toString(item.itemType)); in write() 95 out.attribute(null, Favorites.PROFILE_ID, in write() 97 out.attribute(null, Favorites.INTENT, intent.toUri(0)); in write() 141 parser.getAttributeValue(null, Favorites.ITEM_TYPE)); in read() 143 parser.getAttributeValue(null, Favorites.PROFILE_ID))); in read() 145 parser.getAttributeValue(null, Favorites.INTENT), 0); in read()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | LauncherRestoreEventLoggerImpl.kt | 9 import com.android.launcher3.LauncherSettings.Favorites 140 Favorites.ITEM_TYPE_APPLICATION -> DATA_TYPE_APPLICATION in favoritesIdToDataType() 141 Favorites.ITEM_TYPE_FOLDER -> DATA_TYPE_FOLDER in favoritesIdToDataType() 142 Favorites.ITEM_TYPE_APPWIDGET -> DATA_TYPE_APPWIDGET in favoritesIdToDataType() 143 Favorites.ITEM_TYPE_CUSTOM_APPWIDGET -> DATA_TYPE_CUSTOM_APPWIDGET in favoritesIdToDataType() 144 Favorites.ITEM_TYPE_DEEP_SHORTCUT -> DATA_TYPE_DEEP_SHORTCUT in favoritesIdToDataType() 145 Favorites.ITEM_TYPE_APP_PAIR -> DATA_TYPE_APP_PAIR in favoritesIdToDataType()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | PreviewSurfaceRenderer.java | 21 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 159 final String query = LauncherSettings.Favorites.ITEM_TYPE + " = " in getLoadedLauncherWidgetInfo() 160 + LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in getLoadedLauncherWidgetInfo() 166 LauncherSettings.Favorites.APPWIDGET_ID, in getLoadedLauncherWidgetInfo() 167 LauncherSettings.Favorites.SPANX, in getLoadedLauncherWidgetInfo() 168 LauncherSettings.Favorites.SPANY in getLoadedLauncherWidgetInfo() 171 LauncherSettings.Favorites.APPWIDGET_ID); in getLoadedLauncherWidgetInfo() 172 final int spanXIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.SPANX); in getLoadedLauncherWidgetInfo() 173 final int spanYIndex = c.getColumnIndexOrThrow(LauncherSettings.Favorites.SPANY); in getLoadedLauncherWidgetInfo() 254 LauncherSettings.Favorites.SCREEN + " = " + Workspace.FIRST_SCREEN_ID in loadModelData() [all …]
|