Home
last modified time | relevance | path

Searched refs:TABLE_NAME (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java82 "create trigger mailbox_delete before delete on " + Mailbox.TABLE_NAME +
84 " delete from " + Message.TABLE_NAME +
93 "create trigger account_delete before delete on " + Account.TABLE_NAME +
94 " begin delete from " + Mailbox.TABLE_NAME +
96 "; delete from " + HostAuth.TABLE_NAME +
98 "; delete from " + HostAuth.TABLE_NAME +
100 "; delete from " + Policy.TABLE_NAME +
105 "create trigger host_auth_delete after delete on " + HostAuth.TABLE_NAME +
106 " begin delete from " + Credential.TABLE_NAME +
108 " and (select count(*) from " + HostAuth.TABLE_NAME + " where " +
[all …]
DEmailProvider.java296 array.put(ACCOUNT_BASE >> BASE_SHIFT, Account.TABLE_NAME);
297 array.put(MAILBOX_BASE >> BASE_SHIFT, Mailbox.TABLE_NAME);
298 array.put(MESSAGE_BASE >> BASE_SHIFT, Message.TABLE_NAME);
299 array.put(ATTACHMENT_BASE >> BASE_SHIFT, Attachment.TABLE_NAME);
300 array.put(HOSTAUTH_BASE >> BASE_SHIFT, HostAuth.TABLE_NAME);
303 array.put(POLICY_BASE >> BASE_SHIFT, Policy.TABLE_NAME);
304 array.put(QUICK_RESPONSE_BASE >> BASE_SHIFT, QuickResponse.TABLE_NAME);
306 array.put(BODY_BASE >> BASE_SHIFT, Body.TABLE_NAME);
307 array.put(CREDENTIAL_BASE >> BASE_SHIFT, Credential.TABLE_NAME);
325 Message.UPDATED_TABLE_NAME + " select * from " + Message.TABLE_NAME + " where " +
[all …]
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java44 + Schedules.TABLE_NAME
90 + SeriesRecordings.TABLE_NAME
96 private static final String SQL_DROP_SCHEDULES = "DROP TABLE IF EXISTS " + Schedules.TABLE_NAME;
100 + SeriesRecordings.TABLE_NAME
142 "DROP TABLE IF EXISTS " + SeriesRecordings.TABLE_NAME;
172 buildInsertSql(Schedules.TABLE_NAME, COLUMNS_SCHEDULES);
174 buildUpdateSql(Schedules.TABLE_NAME, COLUMNS_SCHEDULES);
175 private static final String SQL_DELETE_SCHEDULES = buildDeleteSql(Schedules.TABLE_NAME);
197 buildInsertSql(SeriesRecordings.TABLE_NAME, COLUMNS_SERIES_RECORDINGS);
199 buildUpdateSql(SeriesRecordings.TABLE_NAME, COLUMNS_SERIES_RECORDINGS);
[all …]
DDvrContract.java29 public static final String TABLE_NAME = "schedules"; field in DvrContract.Schedules
263 public static final String TABLE_NAME = "series_recording"; field in DvrContract.SeriesRecordings
DDvrDbFuture.java130 try (Cursor c = sDbHelper.query(Schedules.TABLE_NAME, ScheduledRecording.PROJECTION)) { in dbHelperInBackground()
198 sDbHelper.query(SeriesRecordings.TABLE_NAME, SeriesRecording.PROJECTION)) { in dbHelperInBackground()
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/
DSpeedDialEntryDatabaseHelper.java53 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/
DSavedWallpaperImages.java72 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/
DFileCache.java37 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/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DGridBackupTableTest.java7 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()
DDbDowngradeHelperTest.java124 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/
DDownloadCache.java46 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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java96 qb.setTables(CellBroadcastDatabaseHelper.TABLE_NAME); in query()
200 long rowId = db.insert(CellBroadcastDatabaseHelper.TABLE_NAME, null, cv); in insertNewBroadcast()
220 int rowCount = db.delete(CellBroadcastDatabaseHelper.TABLE_NAME, in deleteBroadcast()
238 int rowCount = db.delete(CellBroadcastDatabaseHelper.TABLE_NAME, null, null); in deleteAllBroadcasts()
265 … int rowCount = db.update(CellBroadcastDatabaseHelper.TABLE_NAME, cv, whereClause, whereArgs); in markBroadcastRead()
DCellBroadcastDatabaseHelper.java44 static final String TABLE_NAME = "broadcasts"; field in CellBroadcastDatabaseHelper
63 db.execSQL("CREATE TABLE " + TABLE_NAME + " (" in onCreate()
89 db.execSQL("CREATE INDEX IF NOT EXISTS deliveryTimeIndex ON " + TABLE_NAME in createDeliveryTimeIndex()
128 db.execSQL("ALTER TABLE " + TABLE_NAME + " RENAME TO " + TEMP_TABLE_NAME); in onUpgrade()
324 db.insert(TABLE_NAME, null, cv); in upgradeMessageV1ToV2()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java328 && Favorites.TABLE_NAME.equalsIgnoreCase(args.table)) { in delete()
427 + Favorites.TABLE_NAME + ")"; in deleteEmptyFolders()
429 IntArray folderIds = LauncherDbUtils.queryIntArray(db, Favorites.TABLE_NAME, in deleteEmptyFolders()
432 db.delete(Favorites.TABLE_NAME, Utilities.createDbSelectionQuery( in deleteEmptyFolders()
581 if (!tableExists(getReadableDatabase(), Favorites.TABLE_NAME)) { in DatabaseHelper()
776 Favorites.TABLE_NAME, Favorites.SCREEN, updatemap, in onUpgrade()
809 dropTable(db, Favorites.TABLE_NAME); in createEmptyDB()
834 Favorites.TABLE_NAME, Favorites.APPWIDGET_ID, in removeGhostWidgets()
855 Cursor c = db.query(Favorites.TABLE_NAME, in convertShortcutsToLauncherActivities()
951 return dbInsertAndCheck(this, db, Favorites.TABLE_NAME, null, values); in insertAndCheck()
[all …]
DLauncherSettings.java89 public static final String TABLE_NAME = "favorites"; field in LauncherSettings.Favorites
100 LauncherProvider.AUTHORITY + "/" + TABLE_NAME);
111 "/" + TABLE_NAME + "/" + id); in getContentUri()
239 addTableToDb(db, myProfileId, optional, TABLE_NAME); in addTableToDb()
DWidgetPreviewLoader.java120 private static final String TABLE_NAME = "shortcut_and_widget_previews"; field in WidgetPreviewLoader.CacheDb
130 super(context, LauncherFiles.WIDGET_PREVIEWS_DB, DB_VERSION, TABLE_NAME); in CacheDb()
135 database.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" + in onCreateTable()
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
DRestoreDbTaskTest.java39 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/
DLauncherDbUtils.java53 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()
DRestoreDbTask.java116 int itemsDeleted = db.delete(Favorites.TABLE_NAME, whereClause.toString(), profileIds); in sanitizeDB()
126 db.update(Favorites.TABLE_NAME, values, null, null); in sanitizeDB()
133 db.update(Favorites.TABLE_NAME, values, "itemType = ?", in sanitizeDB()
174 db.update(Favorites.TABLE_NAME, values, "profileId = ?", in migrateProfileId()
DLossyScreenMigrationTask.java84 mDb.update(Favorites.TABLE_NAME, tempValues, "_id = ?", in migrateScreen0()
95 mDb.delete(Favorites.TABLE_NAME, in migrateScreen0()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DEmailContent.java470 public static final String TABLE_NAME = "Body"; field in EmailContent.Body
709 public static final String TABLE_NAME = "Message"; field in EmailContent.Message
836 + "SELECT " + MailboxColumns._ID + " FROM " + Mailbox.TABLE_NAME + ""
844 + "SELECT " + MailboxColumns._ID + " FROM " + Mailbox.TABLE_NAME
852 + "SELECT " + MailboxColumns._ID + " FROM " + Mailbox.TABLE_NAME
860 + "SELECT " + MailboxColumns._ID + " FROM " + Mailbox.TABLE_NAME
1331 public static final String TABLE_NAME = "Attachment"; field in EmailContent.Attachment
1405 + "SELECT " + MessageColumns._ID + " FROM " + Message.TABLE_NAME
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridBackupTable.java78 copyTable(Favorites.TABLE_NAME, BACKUP_TABLE_NAME); in backupOrRestoreAsNeeded()
86 copyTable(BACKUP_TABLE_NAME, Favorites.TABLE_NAME); in backupOrRestoreAsNeeded()
DGridSizeMigrationTask.java123 mDb.update(Favorites.TABLE_NAME, mUpdateOperations.valueAt(i),
131 mDb.delete(Favorites.TABLE_NAME, Utilities.createDbSelectionQuery(
186 return LauncherDbUtils.queryIntArray(db, Favorites.TABLE_NAME, Favorites.SCREEN,
789 return mDb.query(Favorites.TABLE_NAME, columns, where, null, null, null, null);
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java510 public final static String TABLE_NAME = "icons"; field in BaseIconCache.IconDB
527 super(context, dbFileName, (RELEASE_VERSION << 16) + iconPixelSize, TABLE_NAME); in IconDB()
532 db.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" + in onCreateTable()
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java153 db.update(Mailbox.TABLE_NAME, values, null, null); in setMinusOneToMessageCounts()
1814 + Message.TABLE_NAME + " (" + MessageColumns.TIMESTAMP + ");"; in testCreateIndex()
1815 String newStr = DBHelper.createIndex(Message.TABLE_NAME, MessageColumns.TIMESTAMP); in testCreateIndex()
2285 EmailProvider.deleteUnlinked(db, Mailbox.TABLE_NAME, MailboxColumns.ACCOUNT_KEY, in testCleanupOrphans()
2286 AccountColumns._ID, Account.TABLE_NAME); in testCleanupOrphans()
2287 EmailProvider.deleteUnlinked(db, Message.TABLE_NAME, MessageColumns.ACCOUNT_KEY, in testCleanupOrphans()
2288 AccountColumns._ID, Account.TABLE_NAME); in testCleanupOrphans()
2289 EmailProvider.deleteUnlinked(db, Policy.TABLE_NAME, PolicyColumns._ID, in testCleanupOrphans()
2290 AccountColumns.POLICY_KEY, Account.TABLE_NAME); in testCleanupOrphans()

12