Lines Matching defs:database

29 import android.database.ContentObserver;
30 import android.database.Cursor;
31 import android.database.MatrixCursor;
32 import android.database.sqlite.SQLiteDatabase;
33 import android.database.sqlite.SQLiteException;
449 * @param db the EmailProvider database
467 // Always return the cached database, if we've got one
486 // Restore accounts if the database is corrupted...
594 * Restore user Account and HostAuth data from our backup database
603 // In the 1:1000000000 chance that the user gets an app update just as his database becomes
608 Log.w(TAG, "Created new EmailProvider backup database");
642 /*package*/ static void deleteMessageOrphans(SQLiteDatabase database, String tableName) {
643 if (database != null) {
645 Cursor c = database.query(tableName, ORPHANS_PROJECTION, null, null, null, null, null);
663 Cursor boxCursor = database.query(Mailbox.TABLE_NAME,
682 database.delete(tableName, WHERE_ID, bindArray);
694 // Pick the correct database for this operation
696 // body database is already attached to the email database and any attempt to use the
697 // body database directly will result in a SQLiteException (the database is locked)
1034 * always be in sync (i.e. there are two database or NO databases). This code will delete
1035 * any "orphan" database, so that both will be created together. Note that an "orphan" database
1052 Log.w(TAG, "Deleting orphaned EmailProvider database...");
1055 Log.w(TAG, "Deleting orphaned EmailProviderBody database...");
1284 * Restore a HostAuth from a database, given its unique id
1285 * @param db the database
1305 * Copy the Account and HostAuth tables from one database to another
1306 * @param fromDatabase the source database
1307 * @param toDatabase the destination database
1313 // Lock both databases; for the "from" database, we don't want anyone changing it from
1314 // under us; for the "to" database, we want to make the operation atomic
1357 // database is now locked
1363 // Now, create the account in the "to" database