Home
last modified time | relevance | path

Searched refs:getDb (Results 1 – 19 of 19) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataDbHelper.java201 public static SQLiteDatabase getDb(final Context context, final String clientId) { in getDb() method in MetadataDbHelper
359 SQLiteDatabase defaultDb = MetadataDbHelper.getDb(context, null); in getMetadataUriAsString()
388 final SQLiteDatabase defaultDb = getDb(context, null); in saveLastUpdateTimeOfUri()
418 SQLiteDatabase defaultDb = getDb(context, null); in getLastUpdateDateForClient()
444 SQLiteDatabase defaultDb = getDb(context, null); in getMetadataDownloadIdAndStartDateForURI()
458 SQLiteDatabase defaultDb = getDb(context, null); in getOldestUpdateTime()
675 final SQLiteDatabase defaultDb = getDb(context, ""); in getDownloadRecordsForDownloadId()
690 getContentValuesByPendingId(getDb(context, clientId), downloadId); in getDownloadRecordsForDownloadId()
778 final Cursor results = getDb(context, clientId).query(METADATA_TABLE_NAME, in queryInstalledOrDeletingOrAvailableDictionaryMetadata()
800 final Cursor results = getDb(context, clientId).query(METADATA_TABLE_NAME, in queryCurrentMetadata()
[all …]
DActionBatch.java113 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
190 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
224 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
259 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
300 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
350 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
392 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
447 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
518 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
557 final SQLiteDatabase db = MetadataDbHelper.getDb(context, mClientId); in execute()
DUpdateHandler.java445 final SQLiteDatabase db = MetadataDbHelper.getDb(context, record.mClientId); in downloadFinished()
789 final SQLiteDatabase db = MetadataDbHelper.getDb(context, clientId); in compareMetadataForUpgrade()
879 final SQLiteDatabase db = MetadataDbHelper.getDb(context, clientId); in installIfNeverRequested()
1060 MetadataDbHelper.getDb(context, clientId), wordlistId, version); in markAsBrokenOrRetrying()
1079 MetadataDbHelper.deleteEntry(MetadataDbHelper.getDb(context, clientId), in markAsBrokenOrRetrying()
DDictionaryDownloadProgressBar.java55 final SQLiteDatabase db = MetadataDbHelper.getDb(context, clientId); in getDownloadManagerPendingIdFromWordlistId()
DMetadataHandler.java120 MetadataDbHelper.getDb(context, clientId), wordListId, version); in getCurrentMetadataForWordList()
DDictionaryProvider.java273 final SQLiteDatabase db = MetadataDbHelper.getDb(context, clientId); in getWordlistMetadataForWordlistId()
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
DRestoreDbTaskTest.java116 SQLiteDatabase db = new MyModelDbController(23).getDb(); in testGetProfileId()
122 SQLiteDatabase db = new MyModelDbController(42).getDb(); in testMigrateProfileId()
142 SQLiteDatabase db = new MyModelDbController(42).getDb(); in testChangeDefaultColumn()
173 SQLiteDatabase db = controller.getDb(); in testSanitizeDB_bothProfiles()
184 mTask.sanitizeDB(mContext, controller, controller.getDb(), bm, mMockRestoreEventLogger); in testSanitizeDB_bothProfiles()
202 SQLiteDatabase db = controller.getDb(); in testSanitizeDB_workItemsRemoved()
213 mTask.sanitizeDB(mContext, controller, controller.getDb(), bm, mMockRestoreEventLogger); in testSanitizeDB_workItemsRemoved()
236 when(mMockController.getDb()).thenReturn(mMockDb); in givenNoPendingRestore_WhenRestoreAppWidgetIds_ThenRemoveNewWidgetIds()
256 when(mMockController.getDb()).thenReturn(mMockDb); in givenRestoreWithNonExistingWidgets_WhenRestoreAppWidgetIds_ThenRemoveNewIds()
283 when(mMockController.getDb()).thenReturn(mMockDb); in givenRestore_WhenRestoreAppWidgetIds_ThenAddNewIds()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatRestoreHelper.java43 GridBackupTable backupTable = new GridBackupTable(context, transaction.getDb()); in createBackup()
58 if (!tableExists(transaction.getDb(), HYBRID_HOTSEAT_BACKUP_TABLE)) { in restoreBackup()
61 GridBackupTable backupTable = new GridBackupTable(context, transaction.getDb()); in restoreBackup()
/packages/modules/StatsD/statsd/src/utils/
DDbUtils.h58 sqlite3* getDb(const ConfigKey& key);
DDbUtils.cpp213 sqlite3* getDb(const ConfigKey& key) { in getDb() function
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java191 SQLiteDatabase db = controller.getDb(); in performRestore()
508 try (Cursor cursor = controller.getDb().query( in restoreAppWidgetIds()
526 logFavoritesTable(controller.getDb(), "launcher db after remap widget ids", null, null); in restoreAppWidgetIds()
531 try (Cursor cursor = controller.getDb().query(Favorites.TABLE_NAME, in logDatabaseWidgetInfo()
DLauncherDbUtils.java206 public SQLiteDatabase getDb() { in getDb() method in LauncherDbUtils.SQLiteTransaction
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DPreviewSurfaceRenderer.java232 .getModel().getModelDbController().getDb(), in loadModelData()
235 .getModel().getModelDbController().getDb(), in loadModelData()
/packages/modules/StatsD/statsd/benchmark/
Ddb_benchmark.cpp71 sqlite3* dbHandle = getDb(key); in BM_insertAtomsIntoDbTablesReuseConnection()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationUtil.java142 DbReader srcReader = new DbReader(t.getDb(), TMP_TABLE, context, validPackages); in migrateGridIfNeeded()
143 DbReader destReader = new DbReader(t.getDb(), TABLE_NAME, context, validPackages); in migrateGridIfNeeded()
148 dropTable(t.getDb(), TMP_TABLE); in migrateGridIfNeeded()
DModelDbController.java276 sendMetricsForFailedMigration(restoreEventLogger, getDb()); in tryMigrateDB()
358 public SQLiteDatabase getDb() { in getDb() method in ModelDbController
/packages/modules/StatsD/statsd/tests/metrics/
DRestrictedEventMetricProducer_test.cpp226 sqlite3* dbHandle = dbutils::getDb(configKey); in TEST_F()
/packages/modules/StatsD/statsd/tests/utils/
DDbUtils_test.cpp253 sqlite3* db = getDb(key); in TEST_F()
/packages/modules/StatsD/statsd/src/metrics/
DMetricsManager.cpp911 sqlite3* db = dbutils::getDb(mConfigKey); in enforceRestrictedDataTtls()