Home
last modified time | relevance | path

Searched refs:LauncherSettings (Results 1 – 25 of 66) sorted by relevance

123

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseGridChangesTestCase.java9 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 …]
DGridSizeMigrationTaskTest.java12 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()
DGridBackupTableTest.java6 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/
DItemInfo.java150 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 …]
DLauncherProvider.java59 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 …]
DLauncherAppWidgetInfo.java119 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()
DWorkspace.java22 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 …]
DFolderInfo.java58 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()
DWorkspaceLayoutManager.java42 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/
DLoaderCursor.java41 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 …]
DLoaderTask.java51 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 …]
DBgDataModel.java30 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 …]
DAddWorkspaceItemsTask.java33 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()
DPackageItemInfo.java20 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()
DBaseLoaderResults.java30 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()
DModelWriter.java37 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()
DGridBackupTable.java18 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/
DBindWidgetTest.java40 import com.android.launcher3.LauncherSettings;
91 LauncherSettings.Settings.call(mResolver, LauncherSettings.Settings.METHOD_CREATE_EMPTY_DB); in setUp()
92LauncherSettings.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/
DLoaderCursorTest.java26 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/
DShortcutUtil.java19 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()
DContentWriter.java27 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/
DDumpTargetWrapper.java18 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()
DLoggerUtils.java27 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/
DAbstractLauncherUiTest.java48 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/
DPendingAddWidgetInfo.java22 import com.android.launcher3.LauncherSettings;
39 itemType = LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET; in PendingAddWidgetInfo()
41 itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET; in PendingAddWidgetInfo()

123