/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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | CallComposerLocationProvider.java | 49 private static final String TABLE_NAME = "locations"; field in CallComposerLocationProvider 63 db.execSQL("CREATE TABLE " + TABLE_NAME+ " (" + in onCreate() 96 qb.setTables(TABLE_NAME); in query() 135 long id = mOpenHelper.getWritableDatabase().insert(TABLE_NAME, null, values); in insert() 147 return mOpenHelper.getWritableDatabase().delete(TABLE_NAME, in delete() 151 return mOpenHelper.getWritableDatabase().delete(TABLE_NAME, "1", null); in delete()
|
/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 | 62 public static final String TABLE_NAME = "broadcasts"; field in CellBroadcastDatabaseHelper 154 db.execSQL(getStringForCellBroadcastTableCreation(TABLE_NAME)); in onCreate() 156 db.execSQL("CREATE INDEX IF NOT EXISTS deliveryTimeIndex ON " + TABLE_NAME in onCreate() 172 db.execSQL("ALTER TABLE " + TABLE_NAME + " ADD COLUMN " in onUpgrade() 176 db.execSQL("ALTER TABLE " + TABLE_NAME + " ADD COLUMN " + SMS_SYNC_PENDING in onUpgrade() 267 if (db.insert(TABLE_NAME, null, values) == -1) { in migrateFromLegacyIfNeeded()
|
D | CellBroadcastContentProvider.java | 150 qb.setTables(CellBroadcastDatabaseHelper.TABLE_NAME); in query() 305 long rowId = db.insert(CellBroadcastDatabaseHelper.TABLE_NAME, null, cv); in insertNewBroadcast() 326 int rowCount = db.delete(CellBroadcastDatabaseHelper.TABLE_NAME, in deleteBroadcast() 345 int rowCount = db.delete(CellBroadcastDatabaseHelper.TABLE_NAME, null, null); in deleteAllBroadcasts() 372 … int rowCount = db.update(CellBroadcastDatabaseHelper.TABLE_NAME, cv, whereClause, whereArgs); in markBroadcastRead() 401 int rowCount = db.update(CellBroadcastDatabaseHelper.TABLE_NAME, cv, whereClause, in markBroadcastSmsSyncPending()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastDatabaseHelperTest.java | 93 Cursor cursor = db.query(CellBroadcastDatabaseHelper.TABLE_NAME, in dataBaseHelper_create() 108 Cursor upgradedCursor = db.query(CellBroadcastDatabaseHelper.TABLE_NAME, in databaseHelperOnUpgrade_V12() 122 Cursor upgradedCursor = db.query(CellBroadcastDatabaseHelper.TABLE_NAME, in databaseHelperOnUpgrade_V13() 165 Cursor cursor = db.query(CellBroadcastDatabaseHelper.TABLE_NAME, in testMigration() 172 cursor = db.query(CellBroadcastDatabaseHelper.TABLE_NAME, in testMigration() 190 db.execSQL("CREATE TABLE " + CellBroadcastDatabaseHelper.TABLE_NAME + " (" in onCreate()
|
D | CellBroadcastContentProviderTestable.java | 70 CellBroadcastDatabaseHelper.TABLE_NAME)); in onCreate()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | GridBackupTableTest.java | 7 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 61 assertEquals(BACKUP_ITEM_COUNT, queryNumEntries(mDb, TABLE_NAME)); in setupGridData() 82 mDb.delete(TABLE_NAME, null, null); in backupTableRestored() 83 assertEquals(0, queryNumEntries(mDb, TABLE_NAME)); in backupTableRestored() 89 assertEquals(BACKUP_ITEM_COUNT, queryNumEntries(mDb, TABLE_NAME)); in backupTableRestored()
|
D | BackupRestoreTest.java | 22 import static com.android.launcher3.LauncherSettings.Favorites.TABLE_NAME; 108 verifyTableIsEmpty(TABLE_NAME); in testOnRestoreSessionWithValidCondition_PerformsRestore() 110 verifyTableIsFilled(TABLE_NAME, true); in testOnRestoreSessionWithValidCondition_PerformsRestore() 151 dropTable(mDb, TABLE_NAME); in createTableUsingOldProfileId()
|
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()
|
D | GridSizeMigrationTaskV2Test.java | 130 LauncherSettings.Favorites.TABLE_NAME, mContext, mValidPackages, in testMigration() 210 LauncherSettings.Favorites.TABLE_NAME, mContext, mValidPackages, in migrateToLargerHotseat() 258 LauncherSettings.Favorites.TABLE_NAME, mContext, mValidPackages, in migrateFromLargerHotseat()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | GridBackupTable.java | 103 return restoreIfBackupExists(Favorites.TABLE_NAME); in backupOrRestoreAsNeeded() 136 copyTable(mDb, Favorites.TABLE_NAME, tableName, profileId); in createCustomBackupTable() 151 copyTable(mDb, tableName, Favorites.TABLE_NAME, userSerial); in restoreFromCustomBackupTable() 215 copyTable(mDb, Favorites.BACKUP_TABLE_NAME, Favorites.TABLE_NAME, oldProfileId); in restoreFromRawBackupIfAvailable() 224 copyTable(mDb, Favorites.TABLE_NAME, Favorites.BACKUP_TABLE_NAME, profileId); in doBackup()
|
/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 | LauncherProvider.java | 176 copyTable(helper.getReadableDatabase(), Favorites.TABLE_NAME, in prepForMigration() 339 && Favorites.TABLE_NAME.equalsIgnoreCase(args.table)) { in delete() 500 + Favorites.TABLE_NAME + ")"; in deleteEmptyFolders() 502 IntArray folderIds = LauncherDbUtils.queryIntArray(db, Favorites.TABLE_NAME, in deleteEmptyFolders() 505 db.delete(Favorites.TABLE_NAME, Utilities.createDbSelectionQuery( in deleteEmptyFolders() 665 if (!tableExists(databaseHelper.getReadableDatabase(), Favorites.TABLE_NAME)) { in createDatabaseHelper() 877 Favorites.TABLE_NAME, Favorites.SCREEN, updatemap, in onUpgrade() 919 dropTable(db, Favorites.TABLE_NAME); in createEmptyDB() 943 Favorites.TABLE_NAME, Favorites.APPWIDGET_ID, in removeGhostWidgets() 964 Cursor c = db.query(Favorites.TABLE_NAME, in convertShortcutsToLauncherActivities() [all …]
|
D | LauncherSettings.java | 126 public static final String TABLE_NAME = "favorites"; field in LauncherSettings.Favorites 152 + LauncherProvider.AUTHORITY + "/" + TABLE_NAME); 181 + "/" + TABLE_NAME + "/" + id); in getContentUri() 320 addTableToDb(db, myProfileId, optional, TABLE_NAME); in addTableToDb()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/provider/ |
D | RestoreDbTaskTest.java | 52 db.insert(Favorites.TABLE_NAME, null, values); in testMigrateProfileId() 72 db.insert(Favorites.TABLE_NAME, null, values); in testChangeDefaultColumn() 83 db.insert(Favorites.TABLE_NAME, null, values); in testChangeDefaultColumn()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | LauncherDbUtils.java | 55 Favorites.SCREEN, Favorites.TABLE_NAME, Favorites.CONTAINER, in prepareScreenZeroToHostQsb() argument 73 if (DatabaseUtils.queryNumEntries(db, Favorites.TABLE_NAME, in prepareScreenZeroToHostQsb() 94 db.update(Favorites.TABLE_NAME, values, "container = -100 and screen = ?", whereParams); in renameScreen()
|
D | RestoreDbTask.java | 167 int itemsDeleted = db.delete(Favorites.TABLE_NAME, where, profileIds); in sanitizeDB() 175 db.update(Favorites.TABLE_NAME, values, null, null); in sanitizeDB() 182 db.update(Favorites.TABLE_NAME, values, "itemType = ?", in sanitizeDB() 225 db.update(Favorites.TABLE_NAME, values, "profileId = ?", in migrateProfileId()
|
D | LossyScreenMigrationTask.java | 83 mDb.update(Favorites.TABLE_NAME, tempValues, "_id = ?", in migrateScreen0() 94 mDb.delete(Favorites.TABLE_NAME, in migrateScreen0()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | DatabaseWidgetPreviewLoader.java | 153 private static final String TABLE_NAME = "shortcut_and_widget_previews"; field in DatabaseWidgetPreviewLoader.CacheDb 163 super(context, LauncherFiles.WIDGET_PREVIEWS_DB, DB_VERSION, TABLE_NAME); in CacheDb() 169 + 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()
|