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 | d249748 | 2015-09-22 18:24:19 -0700 | [diff] [blame] | 19 | import android.content.ContentResolver; |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 20 | import android.database.sqlite.SQLiteDatabase; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 21 | import android.net.Uri; |
Sunny Goyal | d249748 | 2015-09-22 18:24:19 -0700 | [diff] [blame] | 22 | import android.os.Bundle; |
Adam Cohen | df2cc41 | 2011-04-27 16:56:57 -0700 | [diff] [blame] | 23 | import android.provider.BaseColumns; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 24 | |
| 25 | /** |
| 26 | * Settings related utilities. |
| 27 | */ |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 28 | public class LauncherSettings { |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 29 | /** Columns required on table staht will be subject to backup and restore. */ |
| 30 | static interface ChangeLogColumns extends BaseColumns { |
| 31 | /** |
| 32 | * The time of the last update to this row. |
| 33 | * <P>Type: INTEGER</P> |
| 34 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 35 | public static final String MODIFIED = "modified"; |
Chris Wren | 1ada10d | 2013-09-13 18:01:38 -0400 | [diff] [blame] | 36 | } |
| 37 | |
Sunny Goyal | 81e4491 | 2017-01-14 15:05:14 -0800 | [diff] [blame] | 38 | static public interface BaseLauncherColumns extends ChangeLogColumns { |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 39 | /** |
| 40 | * Descriptive name of the gesture that can be displayed to the user. |
| 41 | * <P>Type: TEXT</P> |
| 42 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 43 | public static final String TITLE = "title"; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 44 | |
| 45 | /** |
| 46 | * The Intent URL of the gesture, describing what it points to. This |
Romain Guy | 1ce1a24 | 2009-06-23 17:34:54 -0700 | [diff] [blame] | 47 | * 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] | 48 | * an Intent that can be launched. |
| 49 | * <P>Type: TEXT</P> |
| 50 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 51 | public static final String INTENT = "intent"; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 52 | |
| 53 | /** |
| 54 | * The type of the gesture |
| 55 | * |
| 56 | * <P>Type: INTEGER</P> |
| 57 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 58 | public static final String ITEM_TYPE = "itemType"; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 59 | |
| 60 | /** |
| 61 | * The gesture is an application |
| 62 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 63 | public static final int ITEM_TYPE_APPLICATION = 0; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 64 | |
| 65 | /** |
| 66 | * The gesture is an application created shortcut |
| 67 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 68 | public static final int ITEM_TYPE_SHORTCUT = 1; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 69 | |
| 70 | /** |
Sunny Goyal | eb4b799 | 2016-04-21 14:30:18 -0700 | [diff] [blame] | 71 | * The icon package name in Intent.ShortcutIconResource |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 72 | * <P>Type: TEXT</P> |
| 73 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 74 | public static final String ICON_PACKAGE = "iconPackage"; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 75 | |
| 76 | /** |
Sunny Goyal | eb4b799 | 2016-04-21 14:30:18 -0700 | [diff] [blame] | 77 | * The icon resource name in Intent.ShortcutIconResource |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 78 | * <P>Type: TEXT</P> |
| 79 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 80 | public static final String ICON_RESOURCE = "iconResource"; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 81 | |
| 82 | /** |
Sunny Goyal | eb4b799 | 2016-04-21 14:30:18 -0700 | [diff] [blame] | 83 | * The custom icon bitmap. |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 84 | * <P>Type: BLOB</P> |
| 85 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 86 | public static final String ICON = "icon"; |
Romain Guy | 73b979d | 2009-06-09 12:57:21 -0700 | [diff] [blame] | 87 | } |
| 88 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 89 | /** |
Adam Cohen | dcd297f | 2013-06-18 13:13:40 -0700 | [diff] [blame] | 90 | * Workspace Screens. |
| 91 | * |
| 92 | * Tracks the order of workspace screens. |
| 93 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 94 | public static final class WorkspaceScreens implements ChangeLogColumns { |
| 95 | |
| 96 | public static final String TABLE_NAME = "workspaceScreens"; |
| 97 | |
Adam Cohen | dcd297f | 2013-06-18 13:13:40 -0700 | [diff] [blame] | 98 | /** |
| 99 | * The content:// style URL for this table |
| 100 | */ |
Sunny Goyal | f076eae | 2016-01-11 12:25:10 -0800 | [diff] [blame] | 101 | public static final Uri CONTENT_URI = Uri.parse("content://" + |
Sunny Goyal | 3d706ad | 2017-03-06 16:56:39 -0800 | [diff] [blame^] | 102 | LauncherProvider.AUTHORITY + "/" + TABLE_NAME); |
Adam Cohen | dcd297f | 2013-06-18 13:13:40 -0700 | [diff] [blame] | 103 | |
| 104 | /** |
| 105 | * The rank of this screen -- ie. how it is ordered relative to the other screens. |
| 106 | * <P>Type: INTEGER</P> |
| 107 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 108 | public static final String SCREEN_RANK = "screenRank"; |
Adam Cohen | dcd297f | 2013-06-18 13:13:40 -0700 | [diff] [blame] | 109 | } |
| 110 | |
| 111 | /** |
Bjorn Bringert | 93c4576 | 2009-12-16 13:19:47 +0000 | [diff] [blame] | 112 | * Favorites. |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 113 | */ |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 114 | public static final class Favorites implements BaseLauncherColumns { |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 115 | |
| 116 | public static final String TABLE_NAME = "favorites"; |
| 117 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 118 | /** |
| 119 | * The content:// style URL for this table |
| 120 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 121 | public static final Uri CONTENT_URI = Uri.parse("content://" + |
Sunny Goyal | 3d706ad | 2017-03-06 16:56:39 -0800 | [diff] [blame^] | 122 | LauncherProvider.AUTHORITY + "/" + TABLE_NAME); |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 123 | |
| 124 | /** |
| 125 | * The content:// style URL for a given row, identified by its id. |
| 126 | * |
| 127 | * @param id The row id. |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 128 | * |
| 129 | * @return The unique content URL for the specified row. |
| 130 | */ |
Sunny Goyal | e5bb705 | 2015-07-27 14:36:07 -0700 | [diff] [blame] | 131 | public static Uri getContentUri(long id) { |
Sunny Goyal | 3d706ad | 2017-03-06 16:56:39 -0800 | [diff] [blame^] | 132 | return Uri.parse("content://" + LauncherProvider.AUTHORITY + |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 133 | "/" + TABLE_NAME + "/" + id); |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 134 | } |
| 135 | |
| 136 | /** |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 137 | * The container holding the favorite |
| 138 | * <P>Type: INTEGER</P> |
| 139 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 140 | public static final String CONTAINER = "container"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 141 | |
| 142 | /** |
| 143 | * The icon is a resource identified by a package name and an integer id. |
| 144 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 145 | public static final int CONTAINER_DESKTOP = -100; |
| 146 | public static final int CONTAINER_HOTSEAT = -101; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 147 | |
Dan Sandler | ab5fa3a | 2014-03-06 23:48:04 -0500 | [diff] [blame] | 148 | static final String containerToString(int container) { |
| 149 | switch (container) { |
| 150 | case CONTAINER_DESKTOP: return "desktop"; |
| 151 | case CONTAINER_HOTSEAT: return "hotseat"; |
| 152 | default: return String.valueOf(container); |
| 153 | } |
| 154 | } |
| 155 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 156 | /** |
| 157 | * The screen holding the favorite (if container is CONTAINER_DESKTOP) |
| 158 | * <P>Type: INTEGER</P> |
| 159 | */ |
Sunny Goyal | 18b640c | 2015-04-17 09:24:01 -0700 | [diff] [blame] | 160 | public static final String SCREEN = "screen"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 161 | |
| 162 | /** |
| 163 | * The X coordinate of the cell holding the favorite |
Adam Cohen | c51934b | 2011-07-26 21:07:43 -0700 | [diff] [blame] | 164 | * (if container is CONTAINER_HOTSEAT or CONTAINER_HOTSEAT) |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 165 | * <P>Type: INTEGER</P> |
| 166 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 167 | public static final String CELLX = "cellX"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 168 | |
| 169 | /** |
| 170 | * The Y coordinate of the cell holding the favorite |
| 171 | * (if container is CONTAINER_DESKTOP) |
| 172 | * <P>Type: INTEGER</P> |
| 173 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 174 | public static final String CELLY = "cellY"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 175 | |
| 176 | /** |
| 177 | * The X span of the cell holding the favorite |
| 178 | * <P>Type: INTEGER</P> |
| 179 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 180 | public static final String SPANX = "spanX"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 181 | |
| 182 | /** |
| 183 | * The Y span of the cell holding the favorite |
| 184 | * <P>Type: INTEGER</P> |
| 185 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 186 | public static final String SPANY = "spanY"; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 187 | |
| 188 | /** |
Kenny Guy | ed13187 | 2014-04-30 03:02:21 +0100 | [diff] [blame] | 189 | * The profile id of the item in the cell. |
| 190 | * <P> |
| 191 | * Type: INTEGER |
| 192 | * </P> |
| 193 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 194 | public static final String PROFILE_ID = "profileId"; |
Kenny Guy | ed13187 | 2014-04-30 03:02:21 +0100 | [diff] [blame] | 195 | |
| 196 | /** |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 197 | * The favorite is a user created folder |
| 198 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 199 | public static final int ITEM_TYPE_FOLDER = 2; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 200 | |
| 201 | /** |
The Android Open Source Project | 7376fae | 2009-03-11 12:11:58 -0700 | [diff] [blame] | 202 | * The favorite is a widget |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 203 | */ |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 204 | public static final int ITEM_TYPE_APPWIDGET = 4; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 205 | |
| 206 | /** |
Adam Cohen | 5940042 | 2014-03-05 18:07:04 -0800 | [diff] [blame] | 207 | * The favorite is a custom widget provided by the launcher |
| 208 | */ |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 209 | public static final int ITEM_TYPE_CUSTOM_APPWIDGET = 5; |
Adam Cohen | 5940042 | 2014-03-05 18:07:04 -0800 | [diff] [blame] | 210 | |
| 211 | /** |
Tony Wickham | bfbf7f9 | 2016-05-19 11:19:39 -0700 | [diff] [blame] | 212 | * The gesture is an application created deep shortcut |
| 213 | */ |
| 214 | public static final int ITEM_TYPE_DEEP_SHORTCUT = 6; |
| 215 | |
| 216 | /** |
The Android Open Source Project | 7376fae | 2009-03-11 12:11:58 -0700 | [diff] [blame] | 217 | * The appWidgetId of the widget |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 218 | * |
| 219 | * <P>Type: INTEGER</P> |
| 220 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 221 | public static final String APPWIDGET_ID = "appWidgetId"; |
Chris Wren | d5e66bf | 2013-09-16 14:02:29 -0400 | [diff] [blame] | 222 | |
| 223 | /** |
| 224 | * The ComponentName of the widget provider |
| 225 | * |
| 226 | * <P>Type: STRING</P> |
| 227 | */ |
| 228 | public static final String APPWIDGET_PROVIDER = "appWidgetProvider"; |
Chris Wren | f4d0811 | 2014-01-16 18:13:56 -0500 | [diff] [blame] | 229 | |
| 230 | /** |
| 231 | * Boolean indicating that his item was restored and not yet successfully bound. |
| 232 | * <P>Type: INTEGER</P> |
| 233 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 234 | public static final String RESTORED = "restored"; |
Sunny Goyal | 08f7261 | 2015-01-05 13:41:43 -0800 | [diff] [blame] | 235 | |
| 236 | /** |
| 237 | * Indicates the position of the item inside an auto-arranged view like folder or hotseat. |
| 238 | * <p>Type: INTEGER</p> |
| 239 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 240 | public static final String RANK = "rank"; |
Sunny Goyal | 5d85c44 | 2015-03-10 13:14:47 -0700 | [diff] [blame] | 241 | |
| 242 | /** |
| 243 | * Stores general flag based options for {@link ItemInfo}s. |
| 244 | * <p>Type: INTEGER</p> |
| 245 | */ |
Sunny Goyal | 2fb2f0b | 2015-06-22 13:57:26 -0700 | [diff] [blame] | 246 | public static final String OPTIONS = "options"; |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 247 | |
| 248 | public static void addTableToDb(SQLiteDatabase db, long myProfileId, boolean optional) { |
| 249 | String ifNotExists = optional ? " IF NOT EXISTS " : ""; |
| 250 | db.execSQL("CREATE TABLE " + ifNotExists + TABLE_NAME + " (" + |
| 251 | "_id INTEGER PRIMARY KEY," + |
| 252 | "title TEXT," + |
| 253 | "intent TEXT," + |
| 254 | "container INTEGER," + |
| 255 | "screen INTEGER," + |
| 256 | "cellX INTEGER," + |
| 257 | "cellY INTEGER," + |
| 258 | "spanX INTEGER," + |
| 259 | "spanY INTEGER," + |
| 260 | "itemType INTEGER," + |
| 261 | "appWidgetId INTEGER NOT NULL DEFAULT -1," + |
Sunny Goyal | c190dbf | 2016-05-05 14:37:05 -0700 | [diff] [blame] | 262 | "iconPackage TEXT," + |
| 263 | "iconResource TEXT," + |
| 264 | "icon BLOB," + |
| 265 | "appWidgetProvider TEXT," + |
| 266 | "modified INTEGER NOT NULL DEFAULT 0," + |
| 267 | "restored INTEGER NOT NULL DEFAULT 0," + |
| 268 | "profileId INTEGER DEFAULT " + myProfileId + "," + |
| 269 | "rank INTEGER NOT NULL DEFAULT 0," + |
| 270 | "options INTEGER NOT NULL DEFAULT 0" + |
| 271 | ");"); |
| 272 | } |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 273 | } |
Sunny Goyal | 7779d62 | 2015-06-11 16:18:39 -0700 | [diff] [blame] | 274 | |
| 275 | /** |
| 276 | * Launcher settings |
| 277 | */ |
| 278 | public static final class Settings { |
| 279 | |
| 280 | public static final Uri CONTENT_URI = Uri.parse("content://" + |
Sunny Goyal | 3d706ad | 2017-03-06 16:56:39 -0800 | [diff] [blame^] | 281 | LauncherProvider.AUTHORITY + "/settings"); |
Sunny Goyal | 7779d62 | 2015-06-11 16:18:39 -0700 | [diff] [blame] | 282 | |
Sunny Goyal | d249748 | 2015-09-22 18:24:19 -0700 | [diff] [blame] | 283 | public static final String METHOD_CLEAR_EMPTY_DB_FLAG = "clear_empty_db_flag"; |
Sunny Goyal | a5c8a9e | 2016-07-08 08:32:44 -0700 | [diff] [blame] | 284 | public static final String METHOD_WAS_EMPTY_DB_CREATED = "get_empty_db_flag"; |
Sunny Goyal | d249748 | 2015-09-22 18:24:19 -0700 | [diff] [blame] | 285 | |
| 286 | public static final String METHOD_DELETE_EMPTY_FOLDERS = "delete_empty_folders"; |
Sunny Goyal | d249748 | 2015-09-22 18:24:19 -0700 | [diff] [blame] | 287 | |
| 288 | public static final String METHOD_NEW_ITEM_ID = "generate_new_item_id"; |
| 289 | public static final String METHOD_NEW_SCREEN_ID = "generate_new_screen_id"; |
| 290 | |
| 291 | public static final String METHOD_CREATE_EMPTY_DB = "create_empty_db"; |
Sunny Goyal | d249748 | 2015-09-22 18:24:19 -0700 | [diff] [blame] | 292 | |
| 293 | public static final String METHOD_LOAD_DEFAULT_FAVORITES = "load_default_favorites"; |
Sunny Goyal | 7779d62 | 2015-06-11 16:18:39 -0700 | [diff] [blame] | 294 | |
Tony Wickham | 827cef2 | 2016-03-17 15:39:39 -0700 | [diff] [blame] | 295 | public static final String METHOD_SET_EXTRACTED_COLORS_AND_WALLPAPER_ID = |
| 296 | "set_extracted_colors_and_wallpaper_id_setting"; |
| 297 | public static final String EXTRA_EXTRACTED_COLORS = "extra_extractedColors"; |
| 298 | public static final String EXTRA_WALLPAPER_ID = "extra_wallpaperId"; |
| 299 | |
Sunny Goyal | 7779d62 | 2015-06-11 16:18:39 -0700 | [diff] [blame] | 300 | public static final String EXTRA_VALUE = "value"; |
Sunny Goyal | d249748 | 2015-09-22 18:24:19 -0700 | [diff] [blame] | 301 | |
| 302 | public static Bundle call(ContentResolver cr, String method) { |
| 303 | return cr.call(CONTENT_URI, method, null, null); |
| 304 | } |
Sunny Goyal | 7779d62 | 2015-06-11 16:18:39 -0700 | [diff] [blame] | 305 | } |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 306 | } |