/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDatabaseHelper.java | 111 buildCreateSchedulesSql(Schedules.TABLE_NAME, COLUMNS_SCHEDULES); 113 buildInsertSql(Schedules.TABLE_NAME, COLUMNS_SCHEDULES); 115 buildUpdateSql(Schedules.TABLE_NAME, COLUMNS_SCHEDULES); 118 buildCreateSchedulesSql(Schedules.TABLE_NAME, COLUMNS_SCHEDULES_WITH_TIME_OFFSET); 120 buildInsertSql(Schedules.TABLE_NAME, COLUMNS_SCHEDULES_WITH_TIME_OFFSET); 122 buildUpdateSql(Schedules.TABLE_NAME, COLUMNS_SCHEDULES_WITH_TIME_OFFSET); 124 private static final String SQL_DELETE_SCHEDULES = buildDeleteSql(Schedules.TABLE_NAME); 126 static final String SQL_DROP_SCHEDULES = buildDropSql(Schedules.TABLE_NAME); 161 buildCreateSql(SeriesRecordings.TABLE_NAME, COLUMNS_SERIES_RECORDINGS, null); 163 buildInsertSql(SeriesRecordings.TABLE_NAME, COLUMNS_SERIES_RECORDINGS); [all …]
|
D | DvrDbFuture.java | 142 try (Cursor c = mDbHelper.query(Schedules.TABLE_NAME, in dbHelperInBackground() 149 try (Cursor c = mDbHelper.query(Schedules.TABLE_NAME, in dbHelperInBackground() 216 mDbHelper.query(SeriesRecordings.TABLE_NAME, SeriesRecording.PROJECTION)) { in dbHelperInBackground()
|
D | DvrContract.java | 29 public static final String TABLE_NAME = "schedules"; field in DvrContract.Schedules 276 public static final String TABLE_NAME = "series_recording"; field in DvrContract.SeriesRecordings
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/ |
D | SpeedDialEntryDatabaseHelper.java | 53 private static final String TABLE_NAME = "speed_dial_entries"; field in SpeedDialEntryDatabaseHelper 76 + TABLE_NAME 88 private static final String DELETE_TABLE_SQL = "drop table if exists " + TABLE_NAME; 116 String query = "SELECT * FROM " + TABLE_NAME; in getAllEntries() 175 long id = writeableDatabase.insert(TABLE_NAME, null, buildContentValuesWithoutId(entry)); in insert() 192 updateRowId = db.insert(TABLE_NAME, null, buildContentValuesWithoutId(entry)); in insert() 222 TABLE_NAME, in update() 278 TABLE_NAME, selection.getSelection(), selection.getSelectionArgs()); in delete() 313 db.delete(TABLE_NAME, /* whereClause=*/ null, null); in deleteAll()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | SavedWallpaperImages.java | 72 Cursor c = db.query(ImageDb.TABLE_NAME, in loadThumbnailsAndImageIdList() 101 Cursor result = db.query(ImageDb.TABLE_NAME, in deleteImage() 116 db.delete(ImageDb.TABLE_NAME, in deleteImage() 141 db.insert(ImageDb.TABLE_NAME, null, values); in writeImage() 149 final static String TABLE_NAME = "saved_wallpaper_images"; field in SavedWallpaperImages.ImageDb 171 database.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" + in onCreate() 183 db.execSQL("DELETE FROM " + TABLE_NAME); in onUpgrade()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | FileCache.java | 37 private static final String TABLE_NAME = FileEntry.SCHEMA.getTableName(); field in FileCache 151 TABLE_NAME, ID_WHERE, new String[] {String.valueOf(file.id)}); in lookup() 168 Cursor cursor = mDbHelper.getReadableDatabase().query(TABLE_NAME, in queryDatabase() 185 mDbHelper.getWritableDatabase().update(TABLE_NAME, in updateLastAccess() 204 TABLE_NAME, PROJECTION_SIZE_SUM, in initialize() 220 TABLE_NAME, FREESPACE_PROJECTION, in freeSomeSpaceIfNeed() 238 mDbHelper.getWritableDatabase().delete(TABLE_NAME, in freeSomeSpaceIfNeed()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastDatabaseHelper.java | 41 static final String TABLE_NAME = "broadcasts"; field in CellBroadcastDatabaseHelper 61 db.execSQL("CREATE TABLE " + TABLE_NAME + " (" in onCreate() 84 db.execSQL("CREATE INDEX IF NOT EXISTS deliveryTimeIndex ON " + TABLE_NAME in onCreate() 98 db.execSQL("ALTER TABLE " + TABLE_NAME + " ADD COLUMN " in onUpgrade() 130 if (db.insert(TABLE_NAME, null, values) == -1) { in migrateFromLegacy()
|
D | CellBroadcastContentProvider.java | 124 qb.setTables(CellBroadcastDatabaseHelper.TABLE_NAME); in query() 265 long rowId = db.insert(CellBroadcastDatabaseHelper.TABLE_NAME, null, cv); in insertNewBroadcast() 285 int rowCount = db.delete(CellBroadcastDatabaseHelper.TABLE_NAME, in deleteBroadcast() 303 int rowCount = db.delete(CellBroadcastDatabaseHelper.TABLE_NAME, null, null); in deleteAllBroadcasts() 330 … int rowCount = db.update(CellBroadcastDatabaseHelper.TABLE_NAME, cv, whereClause, whereArgs); in markBroadcastRead()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | GridBackupTableTest.java | 7 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 41 assertEquals(BACKUP_ITEM_COUNT, queryNumEntries(mDb, TABLE_NAME)); in setupGridData() 62 mDb.delete(TABLE_NAME, null, null); in backupTableRestored() 63 assertEquals(0, queryNumEntries(mDb, TABLE_NAME)); in backupTableRestored() 69 assertEquals(BACKUP_ITEM_COUNT, queryNumEntries(mDb, TABLE_NAME)); in backupTableRestored()
|
D | DbDowngradeHelperTest.java | 124 try (Cursor c = helper.getWritableDatabase().query(Favorites.TABLE_NAME, in testDowngrade_success_v22() 139 try (Cursor c = helper.getWritableDatabase().query(Favorites.TABLE_NAME, in testDowngrade_success_v22() 173 dbHelper.getWritableDatabase().insert(Favorites.TABLE_NAME, null, values); in setupTestDb()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DownloadCache.java | 46 private static final String TABLE_NAME = DownloadEntry.SCHEMA.getTableName(); field in DownloadCache 92 Cursor cursor = mDatabase.query(TABLE_NAME, QUERY_PROJECTION, in findEntryInDatabase() 154 mDatabase.update(TABLE_NAME, values, in updateLastAccess() 160 Cursor cursor = mDatabase.query(TABLE_NAME, in freeSomeSpaceIfNeed() 177 mDatabase.delete(TABLE_NAME, in freeSomeSpaceIfNeed() 199 return mDatabase.insert(TABLE_NAME, "", values); in insertEntry() 211 TABLE_NAME, SUM_PROJECTION, null, null, null, null, null); in initialize()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherSettings.java | 93 public static final String TABLE_NAME = "favorites"; field in LauncherSettings.Favorites 104 LauncherProvider.AUTHORITY + "/" + TABLE_NAME); 115 "/" + TABLE_NAME + "/" + id); in getContentUri() 245 addTableToDb(db, myProfileId, optional, TABLE_NAME); in addTableToDb()
|
D | LauncherProvider.java | 326 && Favorites.TABLE_NAME.equalsIgnoreCase(args.table)) { in delete() 425 + Favorites.TABLE_NAME + ")"; in deleteEmptyFolders() 427 IntArray folderIds = LauncherDbUtils.queryIntArray(db, Favorites.TABLE_NAME, in deleteEmptyFolders() 430 db.delete(Favorites.TABLE_NAME, Utilities.createDbSelectionQuery( in deleteEmptyFolders() 579 if (!tableExists(getReadableDatabase(), Favorites.TABLE_NAME)) { in DatabaseHelper() 774 Favorites.TABLE_NAME, Favorites.SCREEN, updatemap, in onUpgrade() 807 dropTable(db, Favorites.TABLE_NAME); in createEmptyDB() 832 Favorites.TABLE_NAME, Favorites.APPWIDGET_ID, in removeGhostWidgets() 853 Cursor c = db.query(Favorites.TABLE_NAME, in convertShortcutsToLauncherActivities() 949 return dbInsertAndCheck(this, db, Favorites.TABLE_NAME, null, values); in insertAndCheck() [all …]
|
D | WidgetPreviewLoader.java | 117 private static final String TABLE_NAME = "shortcut_and_widget_previews"; field in WidgetPreviewLoader.CacheDb 127 super(context, LauncherFiles.WIDGET_PREVIEWS_DB, DB_VERSION, TABLE_NAME); in CacheDb() 132 database.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" + in onCreateTable()
|
D | AutoInstallsLayout.java | 649 mDb.update(Favorites.TABLE_NAME, childValues, in parseAndAdd()
|
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
D | DataMigrationContentProvider.java | 64 qb.setTables(CellBroadcastMigrationDatabaseHelper.TABLE_NAME); in query() 160 private static final String TABLE_NAME = "broadcasts_legacy"; field in DataMigrationContentProvider.CellBroadcastMigrationDatabaseHelper 173 db.execSQL("CREATE TABLE " + TABLE_NAME + " (" in onCreate() 196 db.execSQL("CREATE INDEX IF NOT EXISTS deliveryTimeIndex ON " + TABLE_NAME in onCreate() 209 if (db.insertWithOnConflict(TABLE_NAME, null, contentVal, in onCreate()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/ |
D | RestoreDbTaskTest.java | 39 db.insert(Favorites.TABLE_NAME, null, values); in testMigrateProfileId() 59 db.insert(Favorites.TABLE_NAME, null, values); in testChangeDefaultColumn() 70 db.insert(Favorites.TABLE_NAME, null, values); in testChangeDefaultColumn()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 115 int itemsDeleted = db.delete(Favorites.TABLE_NAME, whereClause.toString(), profileIds); in sanitizeDB() 125 db.update(Favorites.TABLE_NAME, values, null, null); in sanitizeDB() 132 db.update(Favorites.TABLE_NAME, values, "itemType = ?", in sanitizeDB() 173 db.update(Favorites.TABLE_NAME, values, "profileId = ?", in migrateProfileId()
|
D | LauncherDbUtils.java | 53 Favorites.SCREEN, Favorites.TABLE_NAME, Favorites.CONTAINER, in prepareScreenZeroToHostQsb() argument 71 if (DatabaseUtils.queryNumEntries(db, Favorites.TABLE_NAME, in prepareScreenZeroToHostQsb() 92 db.update(Favorites.TABLE_NAME, values, "container = -100 and screen = ?", whereParams); in renameScreen()
|
D | LossyScreenMigrationTask.java | 84 mDb.update(Favorites.TABLE_NAME, tempValues, "_id = ?", in migrateScreen0() 95 mDb.delete(Favorites.TABLE_NAME, in migrateScreen0()
|
D | ImportDataTask.java | 81 mOtherFavoritesUri = Uri.parse("content://" + sourceAuthority + "/" + Favorites.TABLE_NAME); in ImportDataTask()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | GridBackupTable.java | 78 copyTable(Favorites.TABLE_NAME, BACKUP_TABLE_NAME); in backupOrRestoreAsNeeded() 86 copyTable(BACKUP_TABLE_NAME, Favorites.TABLE_NAME); in backupOrRestoreAsNeeded()
|
D | GridSizeMigrationTask.java | 125 mDb.update(Favorites.TABLE_NAME, mUpdateOperations.valueAt(i), 133 mDb.delete(Favorites.TABLE_NAME, Utilities.createDbSelectionQuery( 188 return LauncherDbUtils.queryIntArray(db, Favorites.TABLE_NAME, Favorites.SCREEN, 791 return mDb.query(Favorites.TABLE_NAME, columns, where, null, null, null, null);
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/ |
D | BaseIconCache.java | 520 public static final String TABLE_NAME = "icons"; field in BaseIconCache.IconDB 538 super(context, dbFileName, (RELEASE_VERSION << 16) + iconPixelSize, TABLE_NAME); in IconDB() 543 db.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" in onCreateTable()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarAlarmManager.java | 278 CalendarAlerts.TABLE_NAME, INVALID_CALENDARALERTS_SELECTOR, selectArg); in scheduleNextAlarmLocked() 477 db.delete(CalendarAlerts.TABLE_NAME, CalendarAlerts.STATE + "=" in removeScheduledAlarmsLocked()
|