/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | MetadataDatabase.java | 20 import android.database.Cursor; 21 import android.database.SQLException; 116 public void migrate(SupportSQLiteDatabase database) { 117 database.execSQL("ALTER TABLE metadata ADD COLUMN `pbap_client_priority` INTEGER"); 124 public void migrate(SupportSQLiteDatabase database) { 125 database.execSQL("CREATE TABLE IF NOT EXISTS `metadata_tmp` (" 144 database.execSQL("INSERT INTO metadata_tmp (" 179 database.execSQL("DROP TABLE `metadata`"); 180 database.execSQL("ALTER TABLE `metadata_tmp` RENAME TO `metadata`"); 187 public void migrate(SupportSQLiteDatabase database) { [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/ |
D | FilterStackSource.java | 20 import android.database.Cursor; 21 import android.database.sqlite.SQLiteDatabase; 22 import android.database.sqlite.SQLiteException; 36 private SQLiteDatabase database = null; field in FilterStackSource 45 database = dbHelper.getWritableDatabase(); in open() 52 database = null; in close() 61 database.beginTransaction(); in insertStack() 63 ret = (-1 != database.insert(FilterStack.TABLE, null, val)); in insertStack() 64 database.setTransactionSuccessful(); in insertStack() 66 database.endTransaction(); in insertStack() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/ |
D | PhoneLookupHistoryContentProvider.java | 17 package com.android.dialer.phonelookup.database; 25 import android.database.Cursor; 26 import android.database.DatabaseUtils; 27 import android.database.sqlite.SQLiteDatabase; 28 import android.database.sqlite.SQLiteQueryBuilder; 35 import com.android.dialer.phonelookup.database.contract.PhoneLookupHistoryContract; 36 import com.android.dialer.phonelookup.database.contract.PhoneLookupHistoryContract.PhoneLookupHisto… 136 SQLiteDatabase database = databaseHelper.getWritableDatabase(); in insert() local 163 long id = database.insert(PhoneLookupHistory.TABLE, null, values); in insert() 183 SQLiteDatabase database = databaseHelper.getWritableDatabase(); in delete() local [all …]
|
D | PhoneLookupHistoryDatabaseHelper.java | 17 package com.android.dialer.phonelookup.database; 20 import android.database.sqlite.SQLiteDatabase; 21 import android.database.sqlite.SQLiteOpenHelper; 26 import com.android.dialer.phonelookup.database.contract.PhoneLookupHistoryContract.PhoneLookupHisto…
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
D | DatabaseIndexingManager.java | 45 import android.database.Cursor; 46 import android.database.sqlite.SQLiteDatabase; 47 import android.database.sqlite.SQLiteException; 153 final SQLiteDatabase database = getWritableDatabase(); in updateDatabase() local 154 if (database == null) { in updateDatabase() 160 database.beginTransaction(); in updateDatabase() 164 insertIndexData(database, indexData); in updateDatabase() 165 insertSiteMapData(database, getSiteMapPairs(indexData, preIndexData.getSiteMapPairs())); in updateDatabase() 170 updateDataInDatabase(database, nonIndexableKeys); in updateDatabase() 173 database.setTransactionSuccessful(); in updateDatabase() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calllog/database/ |
D | AnnotatedCallLogContentProvider.java | 17 package com.android.dialer.calllog.database; 26 import android.database.Cursor; 27 import android.database.sqlite.SQLiteDatabase; 28 import android.database.sqlite.SQLiteQueryBuilder; 32 import com.android.dialer.calllog.database.AnnotatedCallLogConstraints.Operation; 33 import com.android.dialer.calllog.database.contract.AnnotatedCallLogContract; 34 import com.android.dialer.calllog.database.contract.AnnotatedCallLogContract.AnnotatedCallLog; 151 SQLiteDatabase database = databaseHelper.getWritableDatabase(); in insert() local 175 long id = database.insert(AnnotatedCallLog.TABLE, null, values); in insert() 193 SQLiteDatabase database = databaseHelper.getWritableDatabase(); in delete() local [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MtpService.java | 127 sServerHolder.database.setServer(null); in onDestroy() 177 final MtpDatabase database = new MtpDatabase(this, subdirs); in startServer() local 195 new MtpServer(database, fd, mPtpMode, in startServer() 198 database.setServer(server); in startServer() 199 sServerHolder = new ServerHolder(server, database); in startServer() 228 sServerHolder.database.addStorage(volume); in addStorage() 236 sServerHolder.database.removeStorage(volume); in removeStorage() 243 @NonNull final MtpDatabase database; field in MtpService.ServerHolder 245 ServerHolder(@NonNull MtpServer server, @NonNull MtpDatabase database) { in ServerHolder() argument 247 Preconditions.checkNotNull(database); in ServerHolder() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/ |
D | CardContentProvider.java | 23 import android.database.Cursor; 24 import android.database.sqlite.SQLiteDatabase; 25 import android.database.sqlite.SQLiteQueryBuilder; 83 final SQLiteDatabase database = mDBHelper.getWritableDatabase(); in bulkInsert() local 89 database.beginTransaction(); in bulkInsert() 92 database.delete(table, null /* whereClause */, null /* whereArgs */); in bulkInsert() 94 long ret = database.insert(table, null /* nullColumnHack */, value); in bulkInsert() 102 database.setTransactionSuccessful(); in bulkInsert() 105 database.endTransaction(); in bulkInsert() 131 final SQLiteDatabase database = mDBHelper.getReadableDatabase(); in query() local [all …]
|
D | CardDatabaseHelper.java | 21 import android.database.Cursor; 22 import android.database.sqlite.SQLiteDatabase; 23 import android.database.sqlite.SQLiteOpenHelper; 216 final SQLiteDatabase database = getWritableDatabase(); in markContextualCardAsDismissed() local 221 final int rowsUpdated = database.update(CARD_TABLE, values, selection, selectionArgs); in markContextualCardAsDismissed() 222 database.close(); in markContextualCardAsDismissed()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | CardContentProvider.java | 23 import android.database.Cursor; 24 import android.database.sqlite.SQLiteDatabase; 25 import android.database.sqlite.SQLiteQueryBuilder; 83 final SQLiteDatabase database = mDBHelper.getWritableDatabase(); in bulkInsert() local 89 database.beginTransaction(); in bulkInsert() 92 database.delete(table, null /* whereClause */, null /* whereArgs */); in bulkInsert() 94 long ret = database.insert(table, null /* nullColumnHack */, value); in bulkInsert() 102 database.setTransactionSuccessful(); in bulkInsert() 105 database.endTransaction(); in bulkInsert() 131 final SQLiteDatabase database = mDBHelper.getReadableDatabase(); in query() local [all …]
|
D | CardDatabaseHelper.java | 21 import android.database.Cursor; 22 import android.database.sqlite.SQLiteDatabase; 23 import android.database.sqlite.SQLiteOpenHelper; 216 final SQLiteDatabase database = getWritableDatabase(); in markContextualCardAsDismissed() local 221 final int rowsUpdated = database.update(CARD_TABLE, values, selection, selectionArgs); in markContextualCardAsDismissed() 222 database.close(); in markContextualCardAsDismissed()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/ |
D | SlicesIndexer.java | 21 import android.database.sqlite.SQLiteDatabase; 69 final SQLiteDatabase database = mHelper.getWritableDatabase(); in indexSliceData() local 72 database.beginTransaction(); in indexSliceData() 74 mHelper.reconstruct(database); in indexSliceData() 76 insertSliceData(database, indexData); in indexSliceData() 83 database.setTransactionSuccessful(); in indexSliceData() 85 database.endTransaction(); in indexSliceData() 98 void insertSliceData(SQLiteDatabase database, List<SliceData> indexData) { in insertSliceData() argument 116 database.replaceOrThrow(Tables.TABLE_SLICES_INDEX, null /* nullColumnHack */, in insertSliceData()
|
D | SlicesDatabaseAccessor.java | 22 import android.database.Cursor; 23 import android.database.sqlite.SQLiteDatabase; 106 final SQLiteDatabase database = mHelper.getReadableDatabase(); in getSliceKeys() local 110 try (final Cursor resultCursor = database.query(TABLE_SLICES_INDEX, columns, whereClause, in getSliceKeys() 128 final SQLiteDatabase database = mHelper.getReadableDatabase(); in getIndexedSliceData() local 130 final Cursor resultCursor = database.query(TABLE_SLICES_INDEX, SELECT_COLUMNS_ALL, in getIndexedSliceData()
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SlicesIndexer.java | 21 import android.database.sqlite.SQLiteDatabase; 69 final SQLiteDatabase database = mHelper.getWritableDatabase(); in indexSliceData() local 72 database.beginTransaction(); in indexSliceData() 74 mHelper.reconstruct(database); in indexSliceData() 76 insertSliceData(database, indexData); in indexSliceData() 83 database.setTransactionSuccessful(); in indexSliceData() 85 database.endTransaction(); in indexSliceData() 98 void insertSliceData(SQLiteDatabase database, List<SliceData> indexData) { in insertSliceData() argument 116 database.replaceOrThrow(Tables.TABLE_SLICES_INDEX, null /* nullColumnHack */, in insertSliceData()
|
D | SlicesDatabaseAccessor.java | 22 import android.database.Cursor; 23 import android.database.sqlite.SQLiteDatabase; 106 final SQLiteDatabase database = mHelper.getReadableDatabase(); in getSliceKeys() local 110 try (final Cursor resultCursor = database.query(TABLE_SLICES_INDEX, columns, whereClause, in getSliceKeys() 128 final SQLiteDatabase database = mHelper.getReadableDatabase(); in getIndexedSliceData() local 130 final Cursor resultCursor = database.query(TABLE_SLICES_INDEX, SELECT_COLUMNS_ALL, in getIndexedSliceData()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/savedqueries/ |
D | SavedQueryRecorder.java | 21 import android.database.sqlite.SQLiteDatabase; 22 import android.database.sqlite.SQLiteException; 60 final SQLiteDatabase database = getWritableDatabase(); in loadInBackground() local 61 if (database == null) { in loadInBackground() 68 database.delete(TABLE_SAVED_QUERIES, in loadInBackground() 73 lastInsertedRowId = database.insertOrThrow(TABLE_SAVED_QUERIES, null, values); in loadInBackground() 78 int count = database.delete(TABLE_SAVED_QUERIES, in loadInBackground()
|
D | SavedQueryRemover.java | 22 import android.database.sqlite.SQLiteDatabase; 23 import android.database.sqlite.SQLiteException; 40 final SQLiteDatabase database = getWritableDatabase(); in loadInBackground() local 43 database.delete(TABLE_SAVED_QUERIES, in loadInBackground()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | BugleApnSettingsLoader.java | 21 import android.database.Cursor; 22 import android.database.sqlite.SQLiteDatabase; 23 import android.database.sqlite.SQLiteException; 248 final SQLiteDatabase database = ApnDatabase.getApnDatabase().getWritableDatabase(); in setCurrentInDatabase() local 249 database.beginTransaction(); in setCurrentInDatabase() 254 database.update(ApnDatabase.APN_TABLE, CURRENT_NULL_VALUE, in setCurrentInDatabase() 257 database.update(ApnDatabase.APN_TABLE, CURRENT_SET_VALUE, SET_UPDATE_SELECTION, in setCurrentInDatabase() 259 database.setTransactionSuccessful(); in setCurrentInDatabase() 261 database.endTransaction(); in setCurrentInDatabase() 496 final SQLiteDatabase database = ApnDatabase.getApnDatabase().getWritableDatabase(); in loadFromLocalDatabase() local [all …]
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/util/ |
D | NoLocaleSQLiteHelper.java | 19 import static android.database.sqlite.SQLiteDatabase.NO_LOCALIZED_COLLATORS; 23 import android.database.DatabaseErrorHandler; 24 import android.database.sqlite.SQLiteDatabase; 25 import android.database.sqlite.SQLiteDatabase.CursorFactory; 26 import android.database.sqlite.SQLiteDatabase.OpenParams; 27 import android.database.sqlite.SQLiteOpenHelper;
|
D | SQLiteCacheHelper.java | 5 import android.database.Cursor; 6 import android.database.sqlite.SQLiteDatabase; 7 import android.database.sqlite.SQLiteException; 8 import android.database.sqlite.SQLiteFullException; 9 import android.database.sqlite.SQLiteOpenHelper;
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | FilteredNumberProvider.java | 23 import android.database.Cursor; 24 import android.database.sqlite.SQLiteDatabase; 25 import android.database.sqlite.SQLiteQueryBuilder; 30 import com.android.dialer.database.Database; 31 import com.android.dialer.database.DialerDatabaseHelper; 32 import com.android.dialer.database.FilteredNumberContract; 33 import com.android.dialer.database.FilteredNumberContract.FilteredNumberColumns;
|
/packages/apps/Dialer/java/com/android/dialer/database/ |
D | CallLogQueryHandler.java | 17 package com.android.dialer.database; 23 import android.database.Cursor; 24 import android.database.sqlite.SQLiteDatabaseCorruptException; 25 import android.database.sqlite.SQLiteDiskIOException; 26 import android.database.sqlite.SQLiteException; 27 import android.database.sqlite.SQLiteFullException; 35 import com.android.contacts.common.database.NoNullCursorAsyncQueryHandler;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | MemoryCursor.java | 18 import android.database.AbstractWindowedCursor; 19 import android.database.Cursor; 20 import android.database.CursorWindow; 21 import android.database.DatabaseUtils;
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/ |
D | SpeedDialEntryDatabaseHelper.java | 17 package com.android.dialer.speeddial.database; 21 import android.database.Cursor; 22 import android.database.sqlite.SQLiteDatabase; 23 import android.database.sqlite.SQLiteOpenHelper; 26 import com.android.dialer.common.database.Selection; 27 import com.android.dialer.speeddial.database.SpeedDialEntry.Channel;
|
/packages/apps/Dialer/java/com/android/dialer/smartdial/ |
D | SmartDialCursorLoader.java | 21 import android.database.Cursor; 22 import android.database.MatrixCursor; 25 import com.android.dialer.database.Database; 26 import com.android.dialer.database.DialerDatabaseHelper; 27 import com.android.dialer.database.DialerDatabaseHelper.ContactNumber;
|