/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | MetadataDatabase.java | 20 import android.database.Cursor; 21 import android.database.SQLException; 118 public void migrate(SupportSQLiteDatabase database) { 119 database.execSQL("ALTER TABLE metadata ADD COLUMN `pbap_client_priority` INTEGER"); 126 public void migrate(SupportSQLiteDatabase database) { 127 database.execSQL("CREATE TABLE IF NOT EXISTS `metadata_tmp` (" 146 database.execSQL("INSERT INTO metadata_tmp (" 181 database.execSQL("DROP TABLE `metadata`"); 182 database.execSQL("ALTER TABLE `metadata_tmp` RENAME TO `metadata`"); 189 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/services/Mtp/src/com/android/mtp/ |
D | Mapper.java | 21 import android.database.Cursor; 22 import android.database.DatabaseUtils; 23 import android.database.sqlite.SQLiteDatabase; 51 Mapper(MtpDatabase database) { in Mapper() argument 52 mDatabase = database; in Mapper() 62 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putDeviceDocument() local 63 database.beginTransaction(); in putDeviceDocument() 77 database.setTransactionSuccessful(); in putDeviceDocument() 80 database.endTransaction(); in putDeviceDocument() 95 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putStorageDocuments() local [all …]
|
D | MtpService.java | 131 sServerHolder.database.setServer(null); in onDestroy() 181 final MtpDatabase database = new MtpDatabase(this, subdirs); in startServer() local 199 new MtpServer(database, fd, mPtpMode, in startServer() 202 database.setServer(server); in startServer() 203 sServerHolder = new ServerHolder(server, database); in startServer() 224 sServerHolder.database.addStorage(volume); in addStorage() 232 sServerHolder.database.removeStorage(volume); in removeStorage() 239 @NonNull final MtpDatabase database; field in MtpService.ServerHolder 241 ServerHolder(@NonNull MtpServer server, @NonNull MtpDatabase database) { in ServerHolder() argument 243 Preconditions.checkNotNull(database); in ServerHolder() [all …]
|
D | PipeManager.java | 36 PipeManager(MtpDatabase database) { in PipeManager() argument 37 this(database, Executors.newSingleThreadExecutor()); in PipeManager() 40 PipeManager(MtpDatabase database, ExecutorService executor) { in PipeManager() argument 41 this.mDatabase = database; in PipeManager()
|
/packages/modules/SdkExtensions/gen_sdk/ |
D | gen_sdk.py | 71 def PrintBinary(database): argument 72 sys.stdout.buffer.write(database.SerializeToString()) 75 def ValidateDatabase(database, dbname): argument 85 dupe = find_duplicate([v.version for v in database.versions]) 89 for version in database.versions: 95 for version in sorted(database.versions, key=lambda v: v.version): 110 def NewSdk(database, new_version, modules): argument 114 for prev_version in sorted(database.versions, key=lambda v: v.version): 125 database.versions.append(extension_version) 133 with args.database.open('r') as f: [all …]
|
D | gen_sdk_test.sh | 33 …diff golden_binary <(gen_sdk --action print_binary --database testdata/test_extensions_db.textpb |… 68 if gen_sdk --action validate --database testdata/dupe_req.textpb; then 73 if gen_sdk --action validate --database testdata/backward_req.textpb; then 83 gen_sdk --action validate --database extensions_db.textpb
|
/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/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/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/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; 87 final SQLiteDatabase database = mDBHelper.getWritableDatabase(); in bulkInsert() local 96 database.beginTransaction(); in bulkInsert() 104 try (Cursor cursor = database.query(table, columns, selection, in bulkInsert() 119 database.delete(table, null /* whereClause */, null /* whereArgs */); in bulkInsert() 134 long ret = database.insert(table, null /* nullColumnHack */, value); in bulkInsert() 142 database.setTransactionSuccessful(); in bulkInsert() 145 database.endTransaction(); in bulkInsert() [all …]
|
/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 120 database.replaceOrThrow(Tables.TABLE_SLICES_INDEX, null /* nullColumnHack */, in insertSliceData()
|
D | SlicesDatabaseAccessor.java | 22 import android.database.Cursor; 23 import android.database.sqlite.SQLiteDatabase; 98 final SQLiteDatabase database = mHelper.getReadableDatabase(); in getSliceUris() local 100 try (Cursor resultCursor = database.query(TABLE_SLICES_INDEX, columns, in getSliceUris() 122 final SQLiteDatabase database = mHelper.getReadableDatabase(); in getIndexedSliceData() local 124 final Cursor resultCursor = database.query(TABLE_SLICES_INDEX, SELECT_COLUMNS_ALL, in getIndexedSliceData()
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | TestUtil.java | 69 static void addTestDevice(MtpDatabase database) throws FileNotFoundException { in addTestDevice() argument 70 database.getMapper().startAddingDocuments(null); in addTestDevice() 71 database.getMapper().putDeviceDocument(new MtpDeviceRecord( in addTestDevice() 74 database.getMapper().stopAddingDocuments(null); in addTestDevice() 77 static void addTestStorage(MtpDatabase database, String parentId) throws FileNotFoundException { in addTestStorage() argument 78 database.getMapper().startAddingDocuments(parentId); in addTestStorage() 79 database.getMapper().putStorageDocuments(parentId, OPERATIONS_SUPPORTED, new MtpRoot[] { in addTestStorage() 82 database.getMapper().stopAddingDocuments(parentId); in addTestStorage()
|
/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/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/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/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/util/ |
D | ChatProvider.java | 23 import android.database.Cursor; 24 import android.database.SQLException; 25 import android.database.sqlite.SQLiteDatabase; 26 import android.database.sqlite.SQLiteException; 27 import android.database.sqlite.SQLiteOpenHelper; 28 import android.database.sqlite.SQLiteQueryBuilder;
|
/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/TelephonyProvider/src/com/android/providers/telephony/ |
D | SmsChangesProvider.java | 24 import android.database.Cursor; 25 import android.database.sqlite.SQLiteDatabase; 26 import android.database.sqlite.SQLiteOpenHelper; 27 import android.database.sqlite.SQLiteQueryBuilder;
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | SavedWallpaperImages.java | 21 import android.database.Cursor; 22 import android.database.sqlite.SQLiteDatabase; 23 import android.database.sqlite.SQLiteOpenHelper; 170 public void onCreate(SQLiteDatabase database) { in onCreate() argument 171 database.execSQL("CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" + in onCreate()
|
/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;
|