/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | BaseGridChangesTestCase.java | 9 import com.android.launcher3.LauncherSettings; 21 public static final int DESKTOP = LauncherSettings.Favorites.CONTAINER_DESKTOP; 22 public static final int HOTSEAT = LauncherSettings.Favorites.CONTAINER_HOTSEAT; 24 public static final int APP_ICON = LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; 25 public static final int SHORTCUT = LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT; 50 int id = LauncherSettings.Settings.call(mContext.getContentResolver(), in addItem() 51 LauncherSettings.Settings.METHOD_NEW_ITEM_ID) in addItem() 52 .getInt(LauncherSettings.Settings.EXTRA_VALUE); in addItem() 55 values.put(LauncherSettings.Favorites._ID, id); in addItem() 56 values.put(LauncherSettings.Favorites.CONTAINER, container); in addItem() [all …]
|
D | GridSizeMigrationTaskTest.java | 12 import com.android.launcher3.LauncherSettings; 85 Cursor c = mContext.getContentResolver().query(LauncherSettings.Favorites.CONTENT_URI, in verifyHotseat() 86 new String[]{LauncherSettings.Favorites._ID}, in verifyHotseat() 103 Cursor c = mContext.getContentResolver().query(LauncherSettings.Favorites.CONTENT_URI, in verifyHotseat() 104 new String[]{LauncherSettings.Favorites._ID}, in verifyHotseat() 285 LauncherSettings.Favorites.CONTENT_URI, in verifyWorkspace() 286 new String[]{LauncherSettings.Favorites._ID}, in verifyWorkspace() 304 Cursor c = mContext.getContentResolver().query(LauncherSettings.Favorites.CONTENT_URI, in verifyWorkspace() 305 new String[]{LauncherSettings.Favorites._ID}, in verifyWorkspace()
|
D | GridBackupTableTest.java | 6 import static com.android.launcher3.LauncherSettings.Favorites.BACKUP_TABLE_NAME; 7 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 17 import com.android.launcher3.LauncherSettings.Favorites; 18 import com.android.launcher3.LauncherSettings.Settings;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ItemInfo.java | 150 writer.put(LauncherSettings.Favorites.ITEM_TYPE, itemType) in writeToValues() 151 .put(LauncherSettings.Favorites.CONTAINER, container) in writeToValues() 152 .put(LauncherSettings.Favorites.SCREEN, screenId) in writeToValues() 153 .put(LauncherSettings.Favorites.CELLX, cellX) in writeToValues() 154 .put(LauncherSettings.Favorites.CELLY, cellY) in writeToValues() 155 .put(LauncherSettings.Favorites.SPANX, spanX) in writeToValues() 156 .put(LauncherSettings.Favorites.SPANY, spanY) in writeToValues() 157 .put(LauncherSettings.Favorites.RANK, rank); in writeToValues() 161 itemType = values.getAsInteger(LauncherSettings.Favorites.ITEM_TYPE); in readFromValues() 162 container = values.getAsInteger(LauncherSettings.Favorites.CONTAINER); in readFromValues() [all …]
|
D | LauncherProvider.java | 59 import com.android.launcher3.LauncherSettings.Favorites; 191 if (!values.containsKey(LauncherSettings.Favorites._ID)) { in dbInsertAndCheck() 234 values.put(LauncherSettings.Favorites._ID, id); in initializeExternalAdd() 238 Integer itemType = values.getAsInteger(LauncherSettings.Favorites.ITEM_TYPE); in initializeExternalAdd() 240 itemType.intValue() == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET && in initializeExternalAdd() 241 !values.containsKey(LauncherSettings.Favorites.APPWIDGET_ID)) { in initializeExternalAdd() 251 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); in initializeExternalAdd() 360 case LauncherSettings.Settings.METHOD_CLEAR_EMPTY_DB_FLAG: { in call() 364 case LauncherSettings.Settings.METHOD_WAS_EMPTY_DB_CREATED : { in call() 366 result.putBoolean(LauncherSettings.Settings.EXTRA_VALUE, in call() [all …]
|
D | LauncherAppWidgetInfo.java | 119 itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; in LauncherAppWidgetInfo() 121 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in LauncherAppWidgetInfo() 135 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in LauncherAppWidgetInfo() 145 writer.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId) in onAddToDatabase() 146 .put(LauncherSettings.Favorites.APPWIDGET_PROVIDER, providerName.flattenToString()) in onAddToDatabase() 147 .put(LauncherSettings.Favorites.RESTORED, restoreStatus) in onAddToDatabase() 148 .put(LauncherSettings.Favorites.OPTIONS, options) in onAddToDatabase() 149 .put(LauncherSettings.Favorites.INTENT, bindOptions); in onAddToDatabase()
|
D | Workspace.java | 22 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; 334 boolean isWidget = itemInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in estimateItemSize() 402 if (dragObject.dragInfo.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET in onDragStart() 736 int newId = LauncherSettings.Settings.call(getContext().getContentResolver(), in commitExtraEmptyScreen() 737 LauncherSettings.Settings.METHOD_NEW_SCREEN_ID) in commitExtraEmptyScreen() 738 .getInt(LauncherSettings.Settings.EXTRA_VALUE); in commitExtraEmptyScreen() 1647 info.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT || in willCreateUserFolder() 1648 info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT); in willCreateUserFolder() 1790 LauncherSettings.Favorites.CONTAINER_HOTSEAT : in onDrop() 1791 LauncherSettings.Favorites.CONTAINER_DESKTOP; in onDrop() [all …]
|
D | FolderInfo.java | 58 itemType = LauncherSettings.Favorites.ITEM_TYPE_FOLDER; in FolderInfo() 99 writer.put(LauncherSettings.Favorites.TITLE, title) in onAddToDatabase() 100 .put(LauncherSettings.Favorites.OPTIONS, options); in onAddToDatabase()
|
D | WorkspaceLayoutManager.java | 42 if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in addInScreenFromBind() 72 if (container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in addInScreen() 86 if (container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in addInScreen()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | LoaderCursor.java | 41 import com.android.launcher3.LauncherSettings; 106 iconIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.ICON); in LoaderCursor() 107 iconPackageIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_PACKAGE); in LoaderCursor() 108 iconResourceIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.ICON_RESOURCE); in LoaderCursor() 109 titleIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.TITLE); in LoaderCursor() 111 idIndex = getColumnIndexOrThrow(LauncherSettings.Favorites._ID); in LoaderCursor() 112 containerIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.CONTAINER); in LoaderCursor() 113 itemTypeIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.ITEM_TYPE); in LoaderCursor() 114 screenIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.SCREEN); in LoaderCursor() 115 cellXIndex = getColumnIndexOrThrow(LauncherSettings.Favorites.CELLX); in LoaderCursor() [all …]
|
D | LoaderTask.java | 51 import com.android.launcher3.LauncherSettings; 277 LauncherSettings.Settings.call(contentResolver, in loadWorkspace() 278 LauncherSettings.Settings.METHOD_CREATE_EMPTY_DB); in loadWorkspace() 282 LauncherSettings.Settings.call(contentResolver, in loadWorkspace() 283 LauncherSettings.Settings.METHOD_LOAD_DEFAULT_FAVORITES); in loadWorkspace() 295 LauncherSettings.Favorites.CONTENT_URI, null, null, null, null), mApp); in loadWorkspace() 301 LauncherSettings.Favorites.APPWIDGET_ID); in loadWorkspace() 303 LauncherSettings.Favorites.APPWIDGET_PROVIDER); in loadWorkspace() 305 (LauncherSettings.Favorites.SPANX); in loadWorkspace() 307 LauncherSettings.Favorites.SPANY); in loadWorkspace() [all …]
|
D | BgDataModel.java | 30 import com.android.launcher3.LauncherSettings; 135 if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in collectWorkspaceScreens() 200 if (fInfo.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in dumpProto() 202 } else if (fInfo.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in dumpProto() 214 if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in dumpProto() 216 } else if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in dumpProto() 224 if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in dumpProto() 226 } else if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in dumpProto() 268 case LauncherSettings.Favorites.ITEM_TYPE_FOLDER: in removeItem() 283 case LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT: { in removeItem() [all …]
|
D | AddWorkspaceItemsTask.java | 33 import com.android.launcher3.LauncherSettings; 73 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION || in execute() 74 item.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in execute() 86 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in execute() 162 LauncherSettings.Favorites.CONTAINER_DESKTOP, screenId, in execute() 261 if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in findSpaceForItem() 301 screenId = LauncherSettings.Settings.call(app.getContext().getContentResolver(), in findSpaceForItem() 302 LauncherSettings.Settings.METHOD_NEW_SCREEN_ID) in findSpaceForItem() 303 .getInt(LauncherSettings.Settings.EXTRA_VALUE); in findSpaceForItem()
|
D | PackageItemInfo.java | 20 import com.android.launcher3.LauncherSettings; 34 this.itemType = LauncherSettings.Favorites.ITEM_TYPE_NON_ACTIONABLE; in PackageItemInfo() 39 this.itemType = LauncherSettings.Favorites.ITEM_TYPE_NON_ACTIONABLE; in PackageItemInfo()
|
D | BaseLoaderResults.java | 30 import com.android.launcher3.LauncherSettings; 196 if (info.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in filterCurrentWorkspaceItems() 203 } else if (info.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in filterCurrentWorkspaceItems() 229 case LauncherSettings.Favorites.CONTAINER_DESKTOP: { in sortWorkspaceItemsSpatially() 236 case LauncherSettings.Favorites.CONTAINER_HOTSEAT: { in sortWorkspaceItemsSpatially()
|
D | ModelWriter.java | 37 import com.android.launcher3.LauncherSettings; 38 import com.android.launcher3.LauncherSettings.Favorites; 39 import com.android.launcher3.LauncherSettings.Settings; 293 cr.delete(LauncherSettings.Favorites.CONTENT_URI, in deleteFolderAndContentsFromDatabase() 294 LauncherSettings.Favorites.CONTAINER + "=" + info.id, null); in deleteFolderAndContentsFromDatabase() 298 cr.delete(LauncherSettings.Favorites.getContentUri(info.id), null, null); in deleteFolderAndContentsFromDatabase()
|
D | GridBackupTable.java | 18 import static com.android.launcher3.LauncherSettings.Favorites.BACKUP_TABLE_NAME; 30 import com.android.launcher3.LauncherSettings.Favorites; 31 import com.android.launcher3.LauncherSettings.Settings;
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | BindWidgetTest.java | 40 import com.android.launcher3.LauncherSettings; 91 LauncherSettings.Settings.call(mResolver, LauncherSettings.Settings.METHOD_CREATE_EMPTY_DB); in setUp() 92 … LauncherSettings.Settings.call(mResolver, LauncherSettings.Settings.METHOD_CLEAR_EMPTY_DB_FLAG); in setUp() 134 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testUnboundWidget_removed() 168 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testPendingWidget_withConfigScreen() 173 assertEquals(0, mCursor.getInt(mCursor.getColumnIndex(LauncherSettings.Favorites.RESTORED)) in testPendingWidget_withConfigScreen() 177 LauncherSettings.Favorites.APPWIDGET_ID)))); in testPendingWidget_withConfigScreen() 191 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testPendingWidget_notRestored_removed() 209 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testPendingWidget_notRestored_brokenInstall() 216 mCursor.getInt(mCursor.getColumnIndex(LauncherSettings.Favorites.RESTORED)) in testPendingWidget_notRestored_brokenInstall() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | LoaderCursorTest.java | 26 import static com.android.launcher3.LauncherSettings.Favorites.INTENT; 27 import static com.android.launcher3.LauncherSettings.Favorites.CELLX; 28 import static com.android.launcher3.LauncherSettings.Favorites.CELLY; 29 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER; 30 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_DESKTOP; 31 import static com.android.launcher3.LauncherSettings.Favorites.CONTAINER_HOTSEAT; 32 import static com.android.launcher3.LauncherSettings.Favorites.ICON; 33 import static com.android.launcher3.LauncherSettings.Favorites.ICON_PACKAGE; 34 import static com.android.launcher3.LauncherSettings.Favorites.ICON_RESOURCE; 35 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE; [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ShortcutUtil.java | 19 import com.android.launcher3.LauncherSettings; 60 return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT in isDeepShortcut() 71 return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; in isApp() 75 return info.itemType == LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT in isPinnedShortcut()
|
D | ContentWriter.java | 27 import com.android.launcher3.LauncherSettings; 100 mValues.put(LauncherSettings.Favorites.ICON, GraphicsUtils.flattenBitmap(mIcon)); in getValues() 116 final Uri mUri = LauncherSettings.Favorites.CONTENT_URI;
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | DumpTargetWrapper.java | 18 import static com.android.launcher3.LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT; 26 import com.android.launcher3.LauncherSettings; 85 case LauncherSettings.Favorites.ITEM_TYPE_APPLICATION: in newItemTarget() 88 case LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET: in newItemTarget() 92 case LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT: in newItemTarget()
|
D | LoggerUtils.java | 27 import com.android.launcher3.LauncherSettings; 172 case LauncherSettings.Favorites.ITEM_TYPE_APPLICATION: in newItemTarget() 179 case LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT: in newItemTarget() 183 case LauncherSettings.Favorites.ITEM_TYPE_FOLDER: in newItemTarget() 186 case LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET: in newItemTarget() 189 case LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT: in newItemTarget()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
D | AbstractLauncherUiTest.java | 48 import com.android.launcher3.LauncherSettings; 193 LauncherSettings.Settings.call(mTargetContext.getContentResolver(), in clearLauncherData() 194 LauncherSettings.Settings.METHOD_CREATE_EMPTY_DB); in clearLauncherData() 206 LauncherSettings.Settings.call(mTargetContext.getContentResolver(), in clearHomescreen() 207 LauncherSettings.Settings.METHOD_CREATE_EMPTY_DB); in clearHomescreen() 208 LauncherSettings.Settings.call(mTargetContext.getContentResolver(), in clearHomescreen() 209 LauncherSettings.Settings.METHOD_CLEAR_EMPTY_DB_FLAG); in clearHomescreen()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingAddWidgetInfo.java | 22 import com.android.launcher3.LauncherSettings; 39 itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; in PendingAddWidgetInfo() 41 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in PendingAddWidgetInfo()
|