Lines Matching refs:values
134 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck() argument
135 if (!values.containsKey(LauncherSettings.Favorites._ID)) { in dbInsertAndCheck()
138 return db.insert(table, nullColumnHack, values); in dbInsertAndCheck()
162 public int bulkInsert(Uri uri, ContentValues[] values) { in bulkInsert() argument
168 int numValues = values.length; in bulkInsert()
170 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { in bulkInsert()
180 return values.length; in bulkInsert()
195 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
199 int count = db.update(args.table, values, args.where, args.args); in update()
459 ContentValues values = new ContentValues(c.getColumnCount()); in copyFromCursor() local
460 values.put(LauncherSettings.Favorites._ID, c.getLong(idIndex)); in copyFromCursor()
461 values.put(LauncherSettings.Favorites.INTENT, c.getString(intentIndex)); in copyFromCursor()
462 values.put(LauncherSettings.Favorites.TITLE, c.getString(titleIndex)); in copyFromCursor()
463 values.put(LauncherSettings.Favorites.ICON_TYPE, c.getInt(iconTypeIndex)); in copyFromCursor()
464 values.put(LauncherSettings.Favorites.ICON, c.getBlob(iconIndex)); in copyFromCursor()
465 values.put(LauncherSettings.Favorites.ICON_PACKAGE, c.getString(iconPackageIndex)); in copyFromCursor()
466 … values.put(LauncherSettings.Favorites.ICON_RESOURCE, c.getString(iconResourceIndex)); in copyFromCursor()
467 values.put(LauncherSettings.Favorites.CONTAINER, c.getInt(containerIndex)); in copyFromCursor()
468 values.put(LauncherSettings.Favorites.ITEM_TYPE, c.getInt(itemTypeIndex)); in copyFromCursor()
469 values.put(LauncherSettings.Favorites.APPWIDGET_ID, -1); in copyFromCursor()
470 values.put(LauncherSettings.Favorites.SCREEN, c.getInt(screenIndex)); in copyFromCursor()
471 values.put(LauncherSettings.Favorites.CELLX, c.getInt(cellXIndex)); in copyFromCursor()
472 values.put(LauncherSettings.Favorites.CELLY, c.getInt(cellYIndex)); in copyFromCursor()
473 values.put(LauncherSettings.Favorites.URI, c.getString(uriIndex)); in copyFromCursor()
474 values.put(LauncherSettings.Favorites.DISPLAY_MODE, c.getInt(displayModeIndex)); in copyFromCursor()
475 rows[i++] = values; in copyFromCursor()
680 final ContentValues values = new ContentValues(); in updateContactsShortcuts() local
681 values.put(LauncherSettings.Favorites.INTENT, in updateContactsShortcuts()
685 db.update(TABLE_FAVORITES, values, updateWhere, null); in updateContactsShortcuts()
823 final ContentValues values = new ContentValues(); in convertWidgets() local
836 values.clear(); in convertWidgets()
837 values.put(Favorites.ITEM_TYPE, Favorites.ITEM_TYPE_APPWIDGET); in convertWidgets()
838 values.put(Favorites.APPWIDGET_ID, appWidgetId); in convertWidgets()
842 values.put(LauncherSettings.Favorites.SPANX, 4); in convertWidgets()
843 values.put(LauncherSettings.Favorites.SPANY, 1); in convertWidgets()
845 values.put(LauncherSettings.Favorites.SPANX, 2); in convertWidgets()
846 values.put(LauncherSettings.Favorites.SPANY, 2); in convertWidgets()
850 db.update(TABLE_FAVORITES, values, updateWhere, null); in convertWidgets()
910 ContentValues values = new ContentValues(); in loadFavorites() local
953 values.clear(); in loadFavorites()
954 values.put(LauncherSettings.Favorites.CONTAINER, container); in loadFavorites()
955 values.put(LauncherSettings.Favorites.SCREEN, screen); in loadFavorites()
956 values.put(LauncherSettings.Favorites.CELLX, x); in loadFavorites()
957 values.put(LauncherSettings.Favorites.CELLY, y); in loadFavorites()
960 long id = addAppShortcut(db, values, a, packageManager, intent); in loadFavorites()
963 added = addSearchWidget(db, values); in loadFavorites()
965 added = addClockWidget(db, values); in loadFavorites()
967 added = addAppWidget(parser, attrs, type, db, values, a, packageManager); in loadFavorites()
969 long id = addUriShortcut(db, values, a); in loadFavorites()
979 values.put(LauncherSettings.Favorites.TITLE, title); in loadFavorites()
980 long folderId = addFolder(db, values); in loadFavorites()
995 values.clear(); in loadFavorites()
996 values.put(LauncherSettings.Favorites.CONTAINER, folderId); in loadFavorites()
1000 addAppShortcut(db, values, ar, packageManager, intent); in loadFavorites()
1005 long id = addUriShortcut(db, values, ar); in loadFavorites()
1041 private long addAppShortcut(SQLiteDatabase db, ContentValues values, TypedArray a, in addAppShortcut() argument
1062 values.put(Favorites.INTENT, intent.toUri(0)); in addAppShortcut()
1063 values.put(Favorites.TITLE, info.loadLabel(packageManager).toString()); in addAppShortcut()
1064 values.put(Favorites.ITEM_TYPE, Favorites.ITEM_TYPE_APPLICATION); in addAppShortcut()
1065 values.put(Favorites.SPANX, 1); in addAppShortcut()
1066 values.put(Favorites.SPANY, 1); in addAppShortcut()
1067 values.put(Favorites._ID, generateNewId()); in addAppShortcut()
1068 if (dbInsertAndCheck(this, db, TABLE_FAVORITES, null, values) < 0) { in addAppShortcut()
1078 private long addFolder(SQLiteDatabase db, ContentValues values) { in addFolder() argument
1079 values.put(Favorites.ITEM_TYPE, Favorites.ITEM_TYPE_FOLDER); in addFolder()
1080 values.put(Favorites.SPANX, 1); in addFolder()
1081 values.put(Favorites.SPANY, 1); in addFolder()
1083 values.put(Favorites._ID, id); in addFolder()
1084 if (dbInsertAndCheck(this, db, TABLE_FAVORITES, null, values) <= 0) { in addFolder()
1117 private boolean addSearchWidget(SQLiteDatabase db, ContentValues values) { in addSearchWidget() argument
1119 return addAppWidget(db, values, cn, 4, 1, null); in addSearchWidget()
1122 private boolean addClockWidget(SQLiteDatabase db, ContentValues values) { in addClockWidget() argument
1125 return addAppWidget(db, values, cn, 2, 2, null); in addClockWidget()
1129 SQLiteDatabase db, ContentValues values, TypedArray a, in addAppWidget() argument
1182 return addAppWidget(db, values, cn, spanX, spanY, extras); in addAppWidget()
1188 private boolean addAppWidget(SQLiteDatabase db, ContentValues values, ComponentName cn, in addAppWidget() argument
1196 values.put(Favorites.ITEM_TYPE, Favorites.ITEM_TYPE_APPWIDGET); in addAppWidget()
1197 values.put(Favorites.SPANX, spanX); in addAppWidget()
1198 values.put(Favorites.SPANY, spanY); in addAppWidget()
1199 values.put(Favorites.APPWIDGET_ID, appWidgetId); in addAppWidget()
1200 values.put(Favorites._ID, generateNewId()); in addAppWidget()
1201 dbInsertAndCheck(this, db, TABLE_FAVORITES, null, values); in addAppWidget()
1223 private long addUriShortcut(SQLiteDatabase db, ContentValues values, in addUriShortcut() argument
1247 values.put(Favorites.INTENT, intent.toUri(0)); in addUriShortcut()
1248 values.put(Favorites.TITLE, r.getString(titleResId)); in addUriShortcut()
1249 values.put(Favorites.ITEM_TYPE, Favorites.ITEM_TYPE_SHORTCUT); in addUriShortcut()
1250 values.put(Favorites.SPANX, 1); in addUriShortcut()
1251 values.put(Favorites.SPANY, 1); in addUriShortcut()
1252 values.put(Favorites.ICON_TYPE, Favorites.ICON_TYPE_RESOURCE); in addUriShortcut()
1253 values.put(Favorites.ICON_PACKAGE, mContext.getPackageName()); in addUriShortcut()
1254 values.put(Favorites.ICON_RESOURCE, r.getResourceName(iconResId)); in addUriShortcut()
1255 values.put(Favorites._ID, id); in addUriShortcut()
1257 if (dbInsertAndCheck(this, db, TABLE_FAVORITES, null, values) < 0) { in addUriShortcut()
1268 static String buildOrWhereString(String column, int[] values) { in buildOrWhereString() argument
1270 for (int i = values.length - 1; i >= 0; i--) { in buildOrWhereString()
1271 selectWhere.append(column).append("=").append(values[i]); in buildOrWhereString()