The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 17 | package com.android.launcher3; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 18 | |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 19 | import android.database.sqlite.SQLiteDatabase; |
Adam Cohen | df2cc41 | 2011-04-27 16:56:57 -0700 | [diff] [blame] | 20 | import android.provider.BaseColumns; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 21 | |
Sunny Goyal | e396abf | 2020-04-06 15:11:17 -0700 | [diff] [blame] | 22 | import com.android.launcher3.model.data.ItemInfo; |
| 23 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 24 | /** |
| 25 | * Settings related utilities. |
| 26 | */ |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 27 | public class LauncherSettings { |
Sunny Goyal | c593939 | 2018-12-07 11:43:47 -0800 | [diff] [blame] | 28 | |
| 29 | /** |
Luca Zuccarini | 2098381 | 2023-01-03 14:19:48 +0000 | [diff] [blame] | 30 | * Types of animations. |
| 31 | */ |
| 32 | public static final class Animation { |
| 33 | /** |
| 34 | * The default animation for a given view/item info type. |
| 35 | */ |
| 36 | public static final int DEFAULT = 0; |
| 37 | /** |
| 38 | * An animation using the view's background. |
| 39 | */ |
| 40 | public static final int VIEW_BACKGROUND = 1; |
Hyunyoung Song | a38aab9 | 2023-03-14 07:56:59 +0000 | [diff] [blame] | 41 | /** |
| 42 | * The default animation for a given view/item info type, but without the splash icon. |
| 43 | */ |
| 44 | public static final int DEFAULT_NO_ICON = 2; |
Luca Zuccarini | 2098381 | 2023-01-03 14:19:48 +0000 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | /** |
Sunny Goyal | c593939 | 2018-12-07 11:43:47 -0800 | [diff] [blame] | 48 | * Favorites. |
| 49 | */ |
| 50 | public static final class Favorites implements BaseColumns { |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 51 | /** |
| 52 | * The time of the last update to this row. |
| 53 | * <P>Type: INTEGER</P> |
| 54 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 55 | public static final String MODIFIED = "modified"; |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 56 | |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 57 | /** |
| 58 | * Descriptive name of the gesture that can be displayed to the user. |
| 59 | * <P>Type: TEXT</P> |
| 60 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 61 | public static final String TITLE = "title"; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 62 | |
| 63 | /** |
| 64 | * The Intent URL of the gesture, describing what it points to. This |
Romain Guy | 1ce1a24 | 2009-06-23 17:34:54 -0700 | [diff] [blame] | 65 | * value is given to {@link android.content.Intent#parseUri(String, int)} to create |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 66 | * an Intent that can be launched. |
| 67 | * <P>Type: TEXT</P> |
| 68 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 69 | public static final String INTENT = "intent"; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 70 | |
| 71 | /** |
| 72 | * The type of the gesture |
| 73 | * |
| 74 | * <P>Type: INTEGER</P> |
| 75 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 76 | public static final String ITEM_TYPE = "itemType"; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 77 | |
| 78 | /** |
Samuel Fufa | d3720c2 | 2019-09-06 11:25:08 -0700 | [diff] [blame] | 79 | * The gesture is a package |
| 80 | */ |
| 81 | public static final int ITEM_TYPE_NON_ACTIONABLE = -1; |
| 82 | /** |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 83 | * The gesture is an application |
| 84 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 85 | public static final int ITEM_TYPE_APPLICATION = 0; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 86 | |
| 87 | /** |
| 88 | * The gesture is an application created shortcut |
Sunny Goyal | e274d97 | 2023-05-01 16:55:59 -0700 | [diff] [blame] | 89 | * @deprecated This is no longer supported. Use {@link #ITEM_TYPE_DEEP_SHORTCUT} instead |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 90 | */ |
Sunny Goyal | e274d97 | 2023-05-01 16:55:59 -0700 | [diff] [blame] | 91 | @Deprecated |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 92 | public static final int ITEM_TYPE_SHORTCUT = 1; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 93 | |
| 94 | /** |
Andy Wickham | 19ab177 | 2021-02-10 21:36:51 -0800 | [diff] [blame] | 95 | * The favorite is a user created folder |
| 96 | */ |
| 97 | public static final int ITEM_TYPE_FOLDER = 2; |
| 98 | |
| 99 | /** |
| 100 | * The favorite is a widget |
| 101 | */ |
| 102 | public static final int ITEM_TYPE_APPWIDGET = 4; |
| 103 | |
| 104 | /** |
| 105 | * The favorite is a custom widget provided by the launcher |
| 106 | */ |
| 107 | public static final int ITEM_TYPE_CUSTOM_APPWIDGET = 5; |
| 108 | |
| 109 | /** |
| 110 | * The gesture is an application created deep shortcut |
| 111 | */ |
| 112 | public static final int ITEM_TYPE_DEEP_SHORTCUT = 6; |
| 113 | |
Jeremy Sim | 7cf0dd9 | 2023-03-24 22:39:45 -0700 | [diff] [blame] | 114 | /** |
| 115 | * The favorite is an app pair for launching split screen |
| 116 | */ |
| 117 | public static final int ITEM_TYPE_APP_PAIR = 10; |
sfufa@google.com | ca76de0 | 2021-09-24 08:55:48 -0700 | [diff] [blame] | 118 | |
Andy Wickham | 9345681 | 2022-10-05 17:58:45 -0700 | [diff] [blame] | 119 | // *** Below enum values are used for metrics purpose but not used in Favorites DB *** |
sfufa@google.com | ca76de0 | 2021-09-24 08:55:48 -0700 | [diff] [blame] | 120 | |
| 121 | /** |
Andy Wickham | 19ab177 | 2021-02-10 21:36:51 -0800 | [diff] [blame] | 122 | * Type of the item is recents task. |
Andy Wickham | 19ab177 | 2021-02-10 21:36:51 -0800 | [diff] [blame] | 123 | */ |
| 124 | public static final int ITEM_TYPE_TASK = 7; |
| 125 | |
| 126 | /** |
| 127 | * The item is QSB |
| 128 | */ |
| 129 | public static final int ITEM_TYPE_QSB = 8; |
| 130 | |
| 131 | /** |
Andy Wickham | 9345681 | 2022-10-05 17:58:45 -0700 | [diff] [blame] | 132 | * The favorite is a search action |
| 133 | */ |
| 134 | public static final int ITEM_TYPE_SEARCH_ACTION = 9; |
| 135 | |
| 136 | /** |
Sunny Goyal | eb4b799 | 2016-04-21 14:30:18 -0700 | [diff] [blame] | 137 | * The custom icon bitmap. |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 138 | * <P>Type: BLOB</P> |
| 139 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 140 | public static final String ICON = "icon"; |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 141 | |
| 142 | public static final String TABLE_NAME = "favorites"; |
| 143 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 144 | /** |
Samuel Fufa | f667a13 | 2020-05-29 14:47:42 -0700 | [diff] [blame] | 145 | * Backup table created when user hotseat is moved to workspace for hybrid hotseat |
| 146 | */ |
| 147 | public static final String HYBRID_HOTSEAT_BACKUP_TABLE = "hotseat_restore_backup"; |
| 148 | |
| 149 | /** |
Tracy Zhou | f601872 | 2020-02-06 16:37:16 -0800 | [diff] [blame] | 150 | * Temporary table used specifically for multi-db grid migrations |
| 151 | */ |
| 152 | public static final String TMP_TABLE = "favorites_tmp"; |
| 153 | |
| 154 | /** |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 155 | * The container holding the favorite |
| 156 | * <P>Type: INTEGER</P> |
| 157 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 158 | public static final String CONTAINER = "container"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 159 | |
| 160 | /** |
| 161 | * The icon is a resource identified by a package name and an integer id. |
| 162 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 163 | public static final int CONTAINER_DESKTOP = -100; |
| 164 | public static final int CONTAINER_HOTSEAT = -101; |
Samuel Fufa | 866ff00 | 2019-08-09 16:16:06 -0700 | [diff] [blame] | 165 | public static final int CONTAINER_PREDICTION = -102; |
Steven Ng | 3a83532 | 2021-03-02 21:26:00 +0000 | [diff] [blame] | 166 | public static final int CONTAINER_WIDGETS_PREDICTION = -111; |
Samuel Fufa | 225ac27 | 2019-10-21 02:02:40 -0700 | [diff] [blame] | 167 | public static final int CONTAINER_HOTSEAT_PREDICTION = -103; |
thiruram | 261c3a6 | 2020-04-29 16:23:15 -0700 | [diff] [blame] | 168 | public static final int CONTAINER_ALL_APPS = -104; |
thiruram | 6bf6848 | 2020-05-06 22:19:43 -0700 | [diff] [blame] | 169 | public static final int CONTAINER_WIDGETS_TRAY = -105; |
Yogisha Dixit | 658c5da | 2021-05-24 23:23:15 +0100 | [diff] [blame] | 170 | public static final int CONTAINER_BOTTOM_WIDGETS_TRAY = -112; |
| 171 | public static final int CONTAINER_PIN_WIDGETS = -113; |
Brian Isganitis | f0ca4ae | 2021-09-02 16:08:29 -0400 | [diff] [blame] | 172 | public static final int CONTAINER_WALLPAPERS = -114; |
thiruram | 63bf8ee | 2020-06-01 12:03:19 -0700 | [diff] [blame] | 173 | public static final int CONTAINER_SHORTCUTS = -107; |
Hyunyoung Song | f26c793 | 2020-06-06 14:44:27 -0700 | [diff] [blame] | 174 | public static final int CONTAINER_SETTINGS = -108; |
Hyunyoung Song | 13c2bc7 | 2020-06-10 00:35:35 -0700 | [diff] [blame] | 175 | public static final int CONTAINER_TASKSWITCHER = -109; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 176 | |
thiruram | 73821a9 | 2021-02-05 17:50:37 -0800 | [diff] [blame] | 177 | // Represents any of the extended containers implemented in non-AOSP variants. |
| 178 | public static final int EXTENDED_CONTAINERS = -200; |
| 179 | |
Yogisha Dixit | 658c5da | 2021-05-24 23:23:15 +0100 | [diff] [blame] | 180 | public static final int CONTAINER_UNKNOWN = -1; |
| 181 | |
Sunny Goyal | e396abf | 2020-04-06 15:11:17 -0700 | [diff] [blame] | 182 | public static final String containerToString(int container) { |
Dan Sandler | ab5fa3a | 2014-03-06 23:48:04 -0500 | [diff] [blame] | 183 | switch (container) { |
| 184 | case CONTAINER_DESKTOP: return "desktop"; |
| 185 | case CONTAINER_HOTSEAT: return "hotseat"; |
Samuel Fufa | 866ff00 | 2019-08-09 16:16:06 -0700 | [diff] [blame] | 186 | case CONTAINER_PREDICTION: return "prediction"; |
thiruram | 6bf6848 | 2020-05-06 22:19:43 -0700 | [diff] [blame] | 187 | case CONTAINER_ALL_APPS: return "all_apps"; |
| 188 | case CONTAINER_WIDGETS_TRAY: return "widgets_tray"; |
thiruram | 63bf8ee | 2020-06-01 12:03:19 -0700 | [diff] [blame] | 189 | case CONTAINER_SHORTCUTS: return "shortcuts"; |
Dan Sandler | ab5fa3a | 2014-03-06 23:48:04 -0500 | [diff] [blame] | 190 | default: return String.valueOf(container); |
| 191 | } |
| 192 | } |
| 193 | |
Sunny Goyal | e396abf | 2020-04-06 15:11:17 -0700 | [diff] [blame] | 194 | public static final String itemTypeToString(int type) { |
Hyunyoung Song | 86160f5 | 2017-02-06 10:46:24 -0800 | [diff] [blame] | 195 | switch(type) { |
| 196 | case ITEM_TYPE_APPLICATION: return "APP"; |
Hyunyoung Song | 86160f5 | 2017-02-06 10:46:24 -0800 | [diff] [blame] | 197 | case ITEM_TYPE_FOLDER: return "FOLDER"; |
| 198 | case ITEM_TYPE_APPWIDGET: return "WIDGET"; |
| 199 | case ITEM_TYPE_CUSTOM_APPWIDGET: return "CUSTOMWIDGET"; |
| 200 | case ITEM_TYPE_DEEP_SHORTCUT: return "DEEPSHORTCUT"; |
Andy Wickham | 19ab177 | 2021-02-10 21:36:51 -0800 | [diff] [blame] | 201 | case ITEM_TYPE_TASK: return "TASK"; |
| 202 | case ITEM_TYPE_QSB: return "QSB"; |
Jeremy Sim | 7cf0dd9 | 2023-03-24 22:39:45 -0700 | [diff] [blame] | 203 | case ITEM_TYPE_APP_PAIR: return "APP_PAIR"; |
Hyunyoung Song | 86160f5 | 2017-02-06 10:46:24 -0800 | [diff] [blame] | 204 | default: return String.valueOf(type); |
| 205 | } |
| 206 | } |
| 207 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 208 | /** |
| 209 | * The screen holding the favorite (if container is CONTAINER_DESKTOP) |
| 210 | * <P>Type: INTEGER</P> |
| 211 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 212 | public static final String SCREEN = "screen"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 213 | |
| 214 | /** |
| 215 | * The X coordinate of the cell holding the favorite |
Adam Cohen | c51934b | 2011-07-26 21:07:43 -0700 | [diff] [blame] | 216 | * (if container is CONTAINER_HOTSEAT or CONTAINER_HOTSEAT) |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 217 | * <P>Type: INTEGER</P> |
| 218 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 219 | public static final String CELLX = "cellX"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 220 | |
| 221 | /** |
| 222 | * The Y coordinate of the cell holding the favorite |
| 223 | * (if container is CONTAINER_DESKTOP) |
| 224 | * <P>Type: INTEGER</P> |
| 225 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 226 | public static final String CELLY = "cellY"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 227 | |
| 228 | /** |
| 229 | * The X span of the cell holding the favorite |
| 230 | * <P>Type: INTEGER</P> |
| 231 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 232 | public static final String SPANX = "spanX"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 233 | |
| 234 | /** |
| 235 | * The Y span of the cell holding the favorite |
| 236 | * <P>Type: INTEGER</P> |
| 237 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 238 | public static final String SPANY = "spanY"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 239 | |
| 240 | /** |
Kenny Guy | ed13187 | 2014-04-30 03:02:21 +0100 | [diff] [blame] | 241 | * The profile id of the item in the cell. |
| 242 | * <P> |
| 243 | * Type: INTEGER |
| 244 | * </P> |
| 245 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 246 | public static final String PROFILE_ID = "profileId"; |
Kenny Guy | ed13187 | 2014-04-30 03:02:21 +0100 | [diff] [blame] | 247 | |
| 248 | /** |
The Android Open Source Project | 7376fae | 2009-03-11 12:11:58 -0700 | [diff] [blame] | 249 | * The appWidgetId of the widget |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 250 | * |
| 251 | * <P>Type: INTEGER</P> |
| 252 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 253 | public static final String APPWIDGET_ID = "appWidgetId"; |
Chris Wren | d5e66bf | 2013-09-16 14:02:29 -0400 | [diff] [blame] | 254 | |
| 255 | /** |
| 256 | * The ComponentName of the widget provider |
| 257 | * |
| 258 | * <P>Type: STRING</P> |
| 259 | */ |
| 260 | public static final String APPWIDGET_PROVIDER = "appWidgetProvider"; |
Chris Wren | f4d0811 | 2014-01-16 18:13:56 -0500 | [diff] [blame] | 261 | |
| 262 | /** |
| 263 | * Boolean indicating that his item was restored and not yet successfully bound. |
| 264 | * <P>Type: INTEGER</P> |
| 265 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 266 | public static final String RESTORED = "restored"; |
Sunny Goyal | 08f7261 | 2015-01-05 13:41:43 -0800 | [diff] [blame] | 267 | |
| 268 | /** |
| 269 | * Indicates the position of the item inside an auto-arranged view like folder or hotseat. |
| 270 | * <p>Type: INTEGER</p> |
| 271 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 272 | public static final String RANK = "rank"; |
Sunny Goyal | 5d85c44 | 2015-03-10 13:14:47 -0700 | [diff] [blame] | 273 | |
| 274 | /** |
| 275 | * Stores general flag based options for {@link ItemInfo}s. |
| 276 | * <p>Type: INTEGER</p> |
| 277 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 278 | public static final String OPTIONS = "options"; |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 279 | |
Yogisha Dixit | 658c5da | 2021-05-24 23:23:15 +0100 | [diff] [blame] | 280 | /** |
| 281 | * Stores the source container that the widget was added from. |
| 282 | * <p>Type: INTEGER</p> |
| 283 | */ |
| 284 | public static final String APPWIDGET_SOURCE = "appWidgetSource"; |
| 285 | |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 286 | public static void addTableToDb(SQLiteDatabase db, long myProfileId, boolean optional) { |
Sunny Goyal | 161a214 | 2018-10-29 14:02:20 -0700 | [diff] [blame] | 287 | addTableToDb(db, myProfileId, optional, TABLE_NAME); |
| 288 | } |
| 289 | |
| 290 | public static void addTableToDb(SQLiteDatabase db, long myProfileId, boolean optional, |
| 291 | String tableName) { |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 292 | String ifNotExists = optional ? " IF NOT EXISTS " : ""; |
Sunny Goyal | 161a214 | 2018-10-29 14:02:20 -0700 | [diff] [blame] | 293 | db.execSQL("CREATE TABLE " + ifNotExists + tableName + " (" + |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 294 | "_id INTEGER PRIMARY KEY," + |
| 295 | "title TEXT," + |
| 296 | "intent TEXT," + |
| 297 | "container INTEGER," + |
| 298 | "screen INTEGER," + |
| 299 | "cellX INTEGER," + |
| 300 | "cellY INTEGER," + |
| 301 | "spanX INTEGER," + |
| 302 | "spanY INTEGER," + |
| 303 | "itemType INTEGER," + |
| 304 | "appWidgetId INTEGER NOT NULL DEFAULT -1," + |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 305 | "icon BLOB," + |
| 306 | "appWidgetProvider TEXT," + |
| 307 | "modified INTEGER NOT NULL DEFAULT 0," + |
| 308 | "restored INTEGER NOT NULL DEFAULT 0," + |
| 309 | "profileId INTEGER DEFAULT " + myProfileId + "," + |
| 310 | "rank INTEGER NOT NULL DEFAULT 0," + |
Yogisha Dixit | 658c5da | 2021-05-24 23:23:15 +0100 | [diff] [blame] | 311 | "options INTEGER NOT NULL DEFAULT 0," + |
| 312 | APPWIDGET_SOURCE + " INTEGER NOT NULL DEFAULT " + CONTAINER_UNKNOWN + |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 313 | ");"); |
| 314 | } |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 315 | } |
Sunny Goyal | 7779d62 | 2015-06-11 16:18:39 -0700 | [diff] [blame] | 316 | |
| 317 | /** |
| 318 | * Launcher settings |
| 319 | */ |
| 320 | public static final class Settings { |
Sunny Goyal | ab2f808 | 2023-04-11 11:35:43 -0700 | [diff] [blame] | 321 | public static final String LAYOUT_DIGEST_KEY = "launcher3.layout.provider.blob"; |
| 322 | public static final String LAYOUT_DIGEST_LABEL = "launcher-layout"; |
| 323 | public static final String LAYOUT_DIGEST_TAG = "ignore"; |
Sunny Goyal | 7779d62 | 2015-06-11 16:18:39 -0700 | [diff] [blame] | 324 | } |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 325 | } |