blob: 048aaaa3bf00c211a391e564e080a360f630d124 [file] [log] [blame]
The Android Open Source Project31dd5032009-03-03 19:32:27 -08001/*
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 Sandler325dc232013-06-05 22:57:57 -040017package com.android.launcher3;
The Android Open Source Project31dd5032009-03-03 19:32:27 -080018
Sunny Goyald2497482015-09-22 18:24:19 -070019import android.content.ContentResolver;
Sunny Goyalc190dbf2016-05-05 14:37:05 -070020import android.database.sqlite.SQLiteDatabase;
The Android Open Source Project31dd5032009-03-03 19:32:27 -080021import android.net.Uri;
Sunny Goyald2497482015-09-22 18:24:19 -070022import android.os.Bundle;
Adam Cohendf2cc412011-04-27 16:56:57 -070023import android.provider.BaseColumns;
The Android Open Source Project31dd5032009-03-03 19:32:27 -080024
Sunny Goyale396abf2020-04-06 15:11:17 -070025import com.android.launcher3.model.data.ItemInfo;
26
The Android Open Source Project31dd5032009-03-03 19:32:27 -080027/**
28 * Settings related utilities.
29 */
Hyunyoung Song3f471442015-04-08 19:01:34 -070030public class LauncherSettings {
Sunny Goyalc5939392018-12-07 11:43:47 -080031
32 /**
33 * Favorites.
34 */
35 public static final class Favorites implements BaseColumns {
Chris Wren1ada10d2013-09-13 18:01:38 -040036 /**
37 * The time of the last update to this row.
38 * <P>Type: INTEGER</P>
39 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -070040 public static final String MODIFIED = "modified";
Chris Wren1ada10d2013-09-13 18:01:38 -040041
Romain Guy73b979d2009-06-09 12:57:21 -070042 /**
43 * Descriptive name of the gesture that can be displayed to the user.
44 * <P>Type: TEXT</P>
45 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -070046 public static final String TITLE = "title";
Romain Guy73b979d2009-06-09 12:57:21 -070047
48 /**
49 * The Intent URL of the gesture, describing what it points to. This
Romain Guy1ce1a242009-06-23 17:34:54 -070050 * value is given to {@link android.content.Intent#parseUri(String, int)} to create
Romain Guy73b979d2009-06-09 12:57:21 -070051 * an Intent that can be launched.
52 * <P>Type: TEXT</P>
53 */
Sunny Goyal18b640c2015-04-17 09:24:01 -070054 public static final String INTENT = "intent";
Romain Guy73b979d2009-06-09 12:57:21 -070055
56 /**
57 * The type of the gesture
58 *
59 * <P>Type: INTEGER</P>
60 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -070061 public static final String ITEM_TYPE = "itemType";
Romain Guy73b979d2009-06-09 12:57:21 -070062
63 /**
Samuel Fufad3720c22019-09-06 11:25:08 -070064 * The gesture is a package
65 */
66 public static final int ITEM_TYPE_NON_ACTIONABLE = -1;
67 /**
Romain Guy73b979d2009-06-09 12:57:21 -070068 * The gesture is an application
69 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -070070 public static final int ITEM_TYPE_APPLICATION = 0;
Romain Guy73b979d2009-06-09 12:57:21 -070071
72 /**
73 * The gesture is an application created shortcut
74 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -070075 public static final int ITEM_TYPE_SHORTCUT = 1;
Romain Guy73b979d2009-06-09 12:57:21 -070076
77 /**
Andy Wickham19ab1772021-02-10 21:36:51 -080078 * The favorite is a user created folder
79 */
80 public static final int ITEM_TYPE_FOLDER = 2;
81
82 /**
83 * The favorite is a widget
84 */
85 public static final int ITEM_TYPE_APPWIDGET = 4;
86
87 /**
88 * The favorite is a custom widget provided by the launcher
89 */
90 public static final int ITEM_TYPE_CUSTOM_APPWIDGET = 5;
91
92 /**
93 * The gesture is an application created deep shortcut
94 */
95 public static final int ITEM_TYPE_DEEP_SHORTCUT = 6;
96
97 /**
sfufa@google.comca76de02021-09-24 08:55:48 -070098 * The favroite is a search action
99 */
100 public static final int ITEM_TYPE_SEARCH_ACTION = 7;
101
102
103 /**
Andy Wickham19ab1772021-02-10 21:36:51 -0800104 * Type of the item is recents task.
105 * TODO(hyunyoungs): move constants not related to Favorites DB to a better location.
106 */
107 public static final int ITEM_TYPE_TASK = 7;
108
109 /**
110 * The item is QSB
111 */
112 public static final int ITEM_TYPE_QSB = 8;
113
114 /**
Sunny Goyaleb4b7992016-04-21 14:30:18 -0700115 * The icon package name in Intent.ShortcutIconResource
Romain Guy73b979d2009-06-09 12:57:21 -0700116 * <P>Type: TEXT</P>
117 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700118 public static final String ICON_PACKAGE = "iconPackage";
Romain Guy73b979d2009-06-09 12:57:21 -0700119
120 /**
Sunny Goyaleb4b7992016-04-21 14:30:18 -0700121 * The icon resource name in Intent.ShortcutIconResource
Romain Guy73b979d2009-06-09 12:57:21 -0700122 * <P>Type: TEXT</P>
123 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700124 public static final String ICON_RESOURCE = "iconResource";
Romain Guy73b979d2009-06-09 12:57:21 -0700125
126 /**
Sunny Goyaleb4b7992016-04-21 14:30:18 -0700127 * The custom icon bitmap.
Romain Guy73b979d2009-06-09 12:57:21 -0700128 * <P>Type: BLOB</P>
129 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700130 public static final String ICON = "icon";
Sunny Goyal18b640c2015-04-17 09:24:01 -0700131
132 public static final String TABLE_NAME = "favorites";
133
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800134 /**
Tracy Zhoube13d102020-01-12 01:07:59 -0800135 * Backup table created when the favorites table is modified during grid migration
Sunny Goyal161a2142018-10-29 14:02:20 -0700136 */
137 public static final String BACKUP_TABLE_NAME = "favorites_bakup";
138
139 /**
Samuel Fufaf667a132020-05-29 14:47:42 -0700140 * Backup table created when user hotseat is moved to workspace for hybrid hotseat
141 */
142 public static final String HYBRID_HOTSEAT_BACKUP_TABLE = "hotseat_restore_backup";
143
144 /**
Tracy Zhoube13d102020-01-12 01:07:59 -0800145 * Temporary table used specifically for grid migrations during wallpaper preview
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800146 */
Tracy Zhoube13d102020-01-12 01:07:59 -0800147 public static final String PREVIEW_TABLE_NAME = "favorites_preview";
148
149 /**
Tracy Zhouf6018722020-02-06 16:37:16 -0800150 * Temporary table used specifically for multi-db grid migrations
151 */
152 public static final String TMP_TABLE = "favorites_tmp";
153
154 /**
Tracy Zhoube13d102020-01-12 01:07:59 -0800155 * The content:// style URL for "favorites" table
156 */
157 public static final Uri CONTENT_URI = Uri.parse("content://"
158 + LauncherProvider.AUTHORITY + "/" + TABLE_NAME);
159
160 /**
Pinyao Tingf39f3512020-10-28 16:30:42 -0700161 * The content:// style URL for "favorites_bakup" table
162 */
163 public static final Uri BACKUP_CONTENT_URI = Uri.parse("content://"
164 + LauncherProvider.AUTHORITY + "/" + BACKUP_TABLE_NAME);
165
166 /**
Tracy Zhoube13d102020-01-12 01:07:59 -0800167 * The content:// style URL for "favorites_preview" table
168 */
169 public static final Uri PREVIEW_CONTENT_URI = Uri.parse("content://"
170 + LauncherProvider.AUTHORITY + "/" + PREVIEW_TABLE_NAME);
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800171
172 /**
Tracy Zhouf6018722020-02-06 16:37:16 -0800173 * The content:// style URL for "favorites_tmp" table
174 */
175 public static final Uri TMP_CONTENT_URI = Uri.parse("content://"
176 + LauncherProvider.AUTHORITY + "/" + TMP_TABLE);
177
178 /**
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800179 * The content:// style URL for a given row, identified by its id.
180 *
181 * @param id The row id.
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800182 *
183 * @return The unique content URL for the specified row.
184 */
Sunny Goyalefb7e842018-10-04 15:11:00 -0700185 public static Uri getContentUri(int id) {
Tracy Zhoube13d102020-01-12 01:07:59 -0800186 return Uri.parse("content://" + LauncherProvider.AUTHORITY
187 + "/" + TABLE_NAME + "/" + id);
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800188 }
189
190 /**
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800191 * The container holding the favorite
192 * <P>Type: INTEGER</P>
193 */
Sunny Goyal18b640c2015-04-17 09:24:01 -0700194 public static final String CONTAINER = "container";
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800195
196 /**
197 * The icon is a resource identified by a package name and an integer id.
198 */
Sunny Goyal18b640c2015-04-17 09:24:01 -0700199 public static final int CONTAINER_DESKTOP = -100;
200 public static final int CONTAINER_HOTSEAT = -101;
Samuel Fufa866ff002019-08-09 16:16:06 -0700201 public static final int CONTAINER_PREDICTION = -102;
Steven Ng3a835322021-03-02 21:26:00 +0000202 public static final int CONTAINER_WIDGETS_PREDICTION = -111;
Samuel Fufa225ac272019-10-21 02:02:40 -0700203 public static final int CONTAINER_HOTSEAT_PREDICTION = -103;
thiruram261c3a62020-04-29 16:23:15 -0700204 public static final int CONTAINER_ALL_APPS = -104;
thiruram6bf68482020-05-06 22:19:43 -0700205 public static final int CONTAINER_WIDGETS_TRAY = -105;
Yogisha Dixit658c5da2021-05-24 23:23:15 +0100206 public static final int CONTAINER_BOTTOM_WIDGETS_TRAY = -112;
207 public static final int CONTAINER_PIN_WIDGETS = -113;
Brian Isganitisf0ca4ae2021-09-02 16:08:29 -0400208 public static final int CONTAINER_WALLPAPERS = -114;
thiruram62c7b5c2020-05-19 09:31:38 -0700209 // Represents search results view.
210 public static final int CONTAINER_SEARCH_RESULTS = -106;
thiruram63bf8ee2020-06-01 12:03:19 -0700211 public static final int CONTAINER_SHORTCUTS = -107;
Hyunyoung Songf26c7932020-06-06 14:44:27 -0700212 public static final int CONTAINER_SETTINGS = -108;
Hyunyoung Song13c2bc72020-06-10 00:35:35 -0700213 public static final int CONTAINER_TASKSWITCHER = -109;
Andy Wickham19ab1772021-02-10 21:36:51 -0800214 public static final int CONTAINER_QSB = -110;
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800215
thiruram73821a92021-02-05 17:50:37 -0800216 // Represents any of the extended containers implemented in non-AOSP variants.
217 public static final int EXTENDED_CONTAINERS = -200;
218
Yogisha Dixit658c5da2021-05-24 23:23:15 +0100219 public static final int CONTAINER_UNKNOWN = -1;
220
Sunny Goyale396abf2020-04-06 15:11:17 -0700221 public static final String containerToString(int container) {
Dan Sandlerab5fa3a2014-03-06 23:48:04 -0500222 switch (container) {
223 case CONTAINER_DESKTOP: return "desktop";
224 case CONTAINER_HOTSEAT: return "hotseat";
Samuel Fufa866ff002019-08-09 16:16:06 -0700225 case CONTAINER_PREDICTION: return "prediction";
thiruram6bf68482020-05-06 22:19:43 -0700226 case CONTAINER_ALL_APPS: return "all_apps";
227 case CONTAINER_WIDGETS_TRAY: return "widgets_tray";
thiruram62c7b5c2020-05-19 09:31:38 -0700228 case CONTAINER_SEARCH_RESULTS: return "search_result";
thiruram63bf8ee2020-06-01 12:03:19 -0700229 case CONTAINER_SHORTCUTS: return "shortcuts";
Dan Sandlerab5fa3a2014-03-06 23:48:04 -0500230 default: return String.valueOf(container);
231 }
232 }
233
Sunny Goyale396abf2020-04-06 15:11:17 -0700234 public static final String itemTypeToString(int type) {
Hyunyoung Song86160f52017-02-06 10:46:24 -0800235 switch(type) {
236 case ITEM_TYPE_APPLICATION: return "APP";
237 case ITEM_TYPE_SHORTCUT: return "SHORTCUT";
238 case ITEM_TYPE_FOLDER: return "FOLDER";
239 case ITEM_TYPE_APPWIDGET: return "WIDGET";
240 case ITEM_TYPE_CUSTOM_APPWIDGET: return "CUSTOMWIDGET";
241 case ITEM_TYPE_DEEP_SHORTCUT: return "DEEPSHORTCUT";
Andy Wickham19ab1772021-02-10 21:36:51 -0800242 case ITEM_TYPE_TASK: return "TASK";
243 case ITEM_TYPE_QSB: return "QSB";
Hyunyoung Song86160f52017-02-06 10:46:24 -0800244 default: return String.valueOf(type);
245 }
246 }
247
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800248 /**
249 * The screen holding the favorite (if container is CONTAINER_DESKTOP)
250 * <P>Type: INTEGER</P>
251 */
Sunny Goyal18b640c2015-04-17 09:24:01 -0700252 public static final String SCREEN = "screen";
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800253
254 /**
255 * The X coordinate of the cell holding the favorite
Adam Cohenc51934b2011-07-26 21:07:43 -0700256 * (if container is CONTAINER_HOTSEAT or CONTAINER_HOTSEAT)
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800257 * <P>Type: INTEGER</P>
258 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700259 public static final String CELLX = "cellX";
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800260
261 /**
262 * The Y coordinate of the cell holding the favorite
263 * (if container is CONTAINER_DESKTOP)
264 * <P>Type: INTEGER</P>
265 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700266 public static final String CELLY = "cellY";
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800267
268 /**
269 * The X span of the cell holding the favorite
270 * <P>Type: INTEGER</P>
271 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700272 public static final String SPANX = "spanX";
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800273
274 /**
275 * The Y span of the cell holding the favorite
276 * <P>Type: INTEGER</P>
277 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700278 public static final String SPANY = "spanY";
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800279
280 /**
Kenny Guyed131872014-04-30 03:02:21 +0100281 * The profile id of the item in the cell.
282 * <P>
283 * Type: INTEGER
284 * </P>
285 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700286 public static final String PROFILE_ID = "profileId";
Kenny Guyed131872014-04-30 03:02:21 +0100287
288 /**
The Android Open Source Project7376fae2009-03-11 12:11:58 -0700289 * The appWidgetId of the widget
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800290 *
291 * <P>Type: INTEGER</P>
292 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700293 public static final String APPWIDGET_ID = "appWidgetId";
Chris Wrend5e66bf2013-09-16 14:02:29 -0400294
295 /**
296 * The ComponentName of the widget provider
297 *
298 * <P>Type: STRING</P>
299 */
300 public static final String APPWIDGET_PROVIDER = "appWidgetProvider";
Chris Wrenf4d08112014-01-16 18:13:56 -0500301
302 /**
303 * Boolean indicating that his item was restored and not yet successfully bound.
304 * <P>Type: INTEGER</P>
305 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700306 public static final String RESTORED = "restored";
Sunny Goyal08f72612015-01-05 13:41:43 -0800307
308 /**
309 * Indicates the position of the item inside an auto-arranged view like folder or hotseat.
310 * <p>Type: INTEGER</p>
311 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700312 public static final String RANK = "rank";
Sunny Goyal5d85c442015-03-10 13:14:47 -0700313
314 /**
315 * Stores general flag based options for {@link ItemInfo}s.
316 * <p>Type: INTEGER</p>
317 */
Sunny Goyal2fb2f0b2015-06-22 13:57:26 -0700318 public static final String OPTIONS = "options";
Sunny Goyalc190dbf2016-05-05 14:37:05 -0700319
Yogisha Dixit658c5da2021-05-24 23:23:15 +0100320 /**
321 * Stores the source container that the widget was added from.
322 * <p>Type: INTEGER</p>
323 */
324 public static final String APPWIDGET_SOURCE = "appWidgetSource";
325
Sunny Goyalc190dbf2016-05-05 14:37:05 -0700326 public static void addTableToDb(SQLiteDatabase db, long myProfileId, boolean optional) {
Sunny Goyal161a2142018-10-29 14:02:20 -0700327 addTableToDb(db, myProfileId, optional, TABLE_NAME);
328 }
329
330 public static void addTableToDb(SQLiteDatabase db, long myProfileId, boolean optional,
331 String tableName) {
Sunny Goyalc190dbf2016-05-05 14:37:05 -0700332 String ifNotExists = optional ? " IF NOT EXISTS " : "";
Sunny Goyal161a2142018-10-29 14:02:20 -0700333 db.execSQL("CREATE TABLE " + ifNotExists + tableName + " (" +
Sunny Goyalc190dbf2016-05-05 14:37:05 -0700334 "_id INTEGER PRIMARY KEY," +
335 "title TEXT," +
336 "intent TEXT," +
337 "container INTEGER," +
338 "screen INTEGER," +
339 "cellX INTEGER," +
340 "cellY INTEGER," +
341 "spanX INTEGER," +
342 "spanY INTEGER," +
343 "itemType INTEGER," +
344 "appWidgetId INTEGER NOT NULL DEFAULT -1," +
Sunny Goyalc190dbf2016-05-05 14:37:05 -0700345 "iconPackage TEXT," +
346 "iconResource TEXT," +
347 "icon BLOB," +
348 "appWidgetProvider TEXT," +
349 "modified INTEGER NOT NULL DEFAULT 0," +
350 "restored INTEGER NOT NULL DEFAULT 0," +
351 "profileId INTEGER DEFAULT " + myProfileId + "," +
352 "rank INTEGER NOT NULL DEFAULT 0," +
Yogisha Dixit658c5da2021-05-24 23:23:15 +0100353 "options INTEGER NOT NULL DEFAULT 0," +
354 APPWIDGET_SOURCE + " INTEGER NOT NULL DEFAULT " + CONTAINER_UNKNOWN +
Sunny Goyalc190dbf2016-05-05 14:37:05 -0700355 ");");
356 }
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800357 }
Sunny Goyal7779d622015-06-11 16:18:39 -0700358
359 /**
360 * Launcher settings
361 */
362 public static final class Settings {
363
364 public static final Uri CONTENT_URI = Uri.parse("content://" +
Sunny Goyal3d706ad2017-03-06 16:56:39 -0800365 LauncherProvider.AUTHORITY + "/settings");
Sunny Goyal7779d622015-06-11 16:18:39 -0700366
Sunny Goyald2497482015-09-22 18:24:19 -0700367 public static final String METHOD_CLEAR_EMPTY_DB_FLAG = "clear_empty_db_flag";
Sunny Goyala5c8a9e2016-07-08 08:32:44 -0700368 public static final String METHOD_WAS_EMPTY_DB_CREATED = "get_empty_db_flag";
Sunny Goyald2497482015-09-22 18:24:19 -0700369
370 public static final String METHOD_DELETE_EMPTY_FOLDERS = "delete_empty_folders";
Sunny Goyald2497482015-09-22 18:24:19 -0700371
372 public static final String METHOD_NEW_ITEM_ID = "generate_new_item_id";
373 public static final String METHOD_NEW_SCREEN_ID = "generate_new_screen_id";
374
375 public static final String METHOD_CREATE_EMPTY_DB = "create_empty_db";
Sunny Goyald2497482015-09-22 18:24:19 -0700376
377 public static final String METHOD_LOAD_DEFAULT_FAVORITES = "load_default_favorites";
Sunny Goyal7779d622015-06-11 16:18:39 -0700378
Sunny Goyal55fddc82017-04-06 15:02:52 -0700379 public static final String METHOD_REMOVE_GHOST_WIDGETS = "remove_ghost_widgets";
380
Sunny Goyal161a2142018-10-29 14:02:20 -0700381 public static final String METHOD_NEW_TRANSACTION = "new_db_transaction";
382
383 public static final String METHOD_REFRESH_BACKUP_TABLE = "refresh_backup_table";
384
Samuel Fufaf667a132020-05-29 14:47:42 -0700385 public static final String METHOD_REFRESH_HOTSEAT_RESTORE_TABLE = "restore_hotseat_table";
386
Pinyao Tingba9c5572019-09-24 14:25:46 -0700387 public static final String METHOD_RESTORE_BACKUP_TABLE = "restore_backup_table";
388
Tracy Zhou7df93d22020-01-27 13:44:06 -0800389 public static final String METHOD_UPDATE_CURRENT_OPEN_HELPER = "update_current_open_helper";
390
Tracy Zhouc0000452020-03-17 18:28:38 -0700391 public static final String METHOD_PREP_FOR_PREVIEW = "prep_for_preview";
392
Pinyao Ting96186af2020-07-20 11:03:39 -0700393 public static final String METHOD_SWITCH_DATABASE = "switch_database";
394
Sunny Goyal7779d622015-06-11 16:18:39 -0700395 public static final String EXTRA_VALUE = "value";
Sunny Goyald2497482015-09-22 18:24:19 -0700396
Pinyao Ting702ed272020-10-14 11:17:04 -0700397 public static final String EXTRA_DB_NAME = "db_name";
398
Sunny Goyald2497482015-09-22 18:24:19 -0700399 public static Bundle call(ContentResolver cr, String method) {
Pinyao Ting96186af2020-07-20 11:03:39 -0700400 return call(cr, method, null /* arg */);
Tracy Zhouc0000452020-03-17 18:28:38 -0700401 }
402
403 public static Bundle call(ContentResolver cr, String method, String arg) {
Pinyao Ting96186af2020-07-20 11:03:39 -0700404 return call(cr, method, arg, null /* extras */);
405 }
406
407 public static Bundle call(ContentResolver cr, String method, String arg, Bundle extras) {
408 return cr.call(CONTENT_URI, method, arg, extras);
Sunny Goyald2497482015-09-22 18:24:19 -0700409 }
Sunny Goyal7779d622015-06-11 16:18:39 -0700410 }
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800411}