/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsDatabaseHelper.java | 287 private static void removeUnferencedCanonicalAddresses(SQLiteDatabase db) { in removeUnferencedCanonicalAddresses() 328 public static void updateThread(SQLiteDatabase db, long thread_id) { in updateThread() 340 public static void updateThreads(SQLiteDatabase db, String where, String[] whereArgs) { in updateThreads() 443 public static int deleteOneSms(SQLiteDatabase db, int message_id) { in deleteOneSms() 465 public void onCreate(SQLiteDatabase db) { in onCreate() 477 private void populateWordsTable(SQLiteDatabase db) { in populateWordsTable() 546 private void createWordsTables(SQLiteDatabase db) { in createWordsTables() 567 private void createIndices(SQLiteDatabase db) { in createIndices() 572 private void createThreadIdIndex(SQLiteDatabase db) { in createThreadIdIndex() 581 private void createThreadIdDateIndex(SQLiteDatabase db) { in createThreadIdDateIndex() [all …]
|
D | CarrierDatabaseHelper.java | 81 public void onCreate(SQLiteDatabase db) { in onCreate() 85 public void createCarrierTable(SQLiteDatabase db) { in createCarrierTable() 89 public void dropCarrierTable(SQLiteDatabase db) { in dropCarrierTable() 94 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelper.java | 326 public void onOpen(SQLiteDatabase db) { in onOpen() 354 private void upgradeSyncState(SQLiteDatabase db) { in upgradeSyncState() 384 public void onCreate(SQLiteDatabase db) { in onCreate() 388 private void bootstrapDB(SQLiteDatabase db) { in bootstrapDB() 516 private void createEventsTable(SQLiteDatabase db) { in createEventsTable() 590 private void createEventsTable307(SQLiteDatabase db) { in createEventsTable307() 653 private void createEventsTable300(SQLiteDatabase db) { in createEventsTable300() 709 private void createCalendarsTable303(SQLiteDatabase db) { in createCalendarsTable303() 747 private void createColorsTable(SQLiteDatabase db) { in createColorsTable() 760 public void createColorsTriggers(SQLiteDatabase db) { in createColorsTriggers() [all …]
|
D | MetaData.java | 81 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getFields() local 115 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getFieldsLocked() local 130 private void readLocked(SQLiteDatabase db) { in readLocked() 171 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in write() local 203 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in writeLocked() local 227 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in clearInstanceRange() local
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | DBHelper.java | 213 static void createMessageCountTriggers(final SQLiteDatabase db) { in createMessageCountTriggers() 242 static void createCredentialsTable(SQLiteDatabase db) { in createCredentialsTable() 253 static void dropDeleteDuplicateMessagesTrigger(final SQLiteDatabase db) { in dropDeleteDuplicateMessagesTrigger() 275 final SQLiteDatabase db) { in createDeleteDuplicateMessagesTrigger() 298 static void createMessageTable(Context context, SQLiteDatabase db) { in createMessageTable() 413 static void resetMessageTable(Context context, SQLiteDatabase db, in resetMessageTable() 439 private static void createMessageChangeLogTableIndices(final SQLiteDatabase db, in createMessageChangeLogTableIndices() 450 private static void createMessageChangeLogTableTriggers(final SQLiteDatabase db, in createMessageChangeLogTableTriggers() 469 private static void createMessageMoveTable(final SQLiteDatabase db) { in createMessageMoveTable() 485 private static void createMessageStateChangeTable(final SQLiteDatabase db) { in createMessageStateChangeTable() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
D | ContactsTableUtil.java | 43 public static void createIndexes(SQLiteDatabase db) { in createIndexes() 58 public static void updateContactLastUpdateByContactId(SQLiteDatabase db, long contactId) { in updateContactLastUpdateByContactId() 72 public static void updateContactLastUpdateByRawContactId(SQLiteDatabase db, in updateContactLastUpdateByRawContactId() 112 public static int deleteContact(SQLiteDatabase db, long contactId) { in deleteContact() 121 public static int deleteContactIfSingleton(SQLiteDatabase db, long rawContactId) { in deleteContactIfSingleton()
|
D | DeletedContactsTableUtil.java | 36 public static void create(SQLiteDatabase db) { in create() 56 public static long insertDeletedContact(SQLiteDatabase db, long contactId) { in insertDeletedContact() 71 public static int deleteOldLogs(SQLiteDatabase db) { in deleteOldLogs()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | ApnDatabase.java | 172 public void onCreate(final SQLiteDatabase db) { in onCreate() 185 public static List<ContentValues> loadUserDataFromOldTable(final SQLiteDatabase db) { in loadUserDataFromOldTable() 222 final SQLiteDatabase db, final List<ContentValues> data) { in saveUserDataFromOldTable() 289 public void onOpen(final SQLiteDatabase db) { in onOpen() 304 private void rebuildTables(final SQLiteDatabase db) { in rebuildTables() 314 public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onUpgrade() 322 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() 332 private static void loadApnTable(final SQLiteDatabase db) { in loadApnTable() 355 final SQLiteDatabase db = getApnDatabase().getWritableDatabase(); in forceBuildAndLoadApnTables() local 370 final SQLiteDatabase db = getApnDatabase().getWritableDatabase(); in clearTables() local
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseUpgradeHelper.java | 28 public void doOnUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in doOnUpgrade() 45 public void doUpgradeWithExceptions(final SQLiteDatabase db, final int oldVersion, in doUpgradeWithExceptions() 59 private int upgradeToVersion2(final SQLiteDatabase db) { in upgradeToVersion2() 92 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbSettingsStorage.java | 51 private Cursor queryFor(SQLiteDatabase db, UsbDevice device) { in queryFor() 80 try (SQLiteDatabase db = mDbHelper.getReadableDatabase(); in getSettings() 99 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { in saveSettings() 114 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { in deleteSettings() 135 try (SQLiteDatabase db = mDbHelper.getReadableDatabase(); in getAllSettings() 197 public void onCreate(SQLiteDatabase db) { in onCreate() 202 private void createTable(SQLiteDatabase db, String tableName) { in createTable() 215 private void createSerialIndex(SQLiteDatabase db) { in createSerialIndex() 221 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDatabaseHelper.java | 194 public void onConfigure(SQLiteDatabase db) { in onConfigure() 199 public void onCreate(SQLiteDatabase db) { in onCreate() 207 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 219 SQLiteDatabase db = getReadableDatabase(); in query() local 229 SQLiteDatabase db = getWritableDatabase(); in insertSchedules() local 249 SQLiteDatabase db = getWritableDatabase(); in updateSchedules() local 270 SQLiteDatabase db = getWritableDatabase(); in deleteSchedules() local 289 SQLiteDatabase db = getWritableDatabase(); in insertSeriesRecordings() local 309 SQLiteDatabase db = getWritableDatabase(); in updateSeriesRecordings() local 330 SQLiteDatabase db = getWritableDatabase(); in deleteSeriesRecordings() local
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator.java | 79 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() 248 private void clearSuperPrimarySetting(SQLiteDatabase db, long contactId, long rawContactId) { in clearSuperPrimarySetting() 315 private int canJoinIntoContact(SQLiteDatabase db, long rawContactId, in canJoinIntoContact() 370 private boolean isDataMaching(SQLiteDatabase db, Set<Long> rawContactIdSet1, in isDataMaching() 416 private void reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, in reAggregateRawContacts() 475 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateAggregationAfterVisibilityChange() local 550 private long pickBestMatchBasedOnExceptions(SQLiteDatabase db, long rawContactId, in pickBestMatchBasedOnExceptions() 613 private long pickBestMatchBasedOnData(SQLiteDatabase db, long rawContactId, in pickBestMatchBasedOnData() 638 private long pickBestMatchBasedOnSecondaryData(SQLiteDatabase db, in pickBestMatchBasedOnSecondaryData() 670 private long updateMatchScoresBasedOnDataMatches(SQLiteDatabase db, long rawContactId, in updateMatchScoresBasedOnDataMatches() [all …]
|
D | ProfileAggregator.java | 48 protected String computeLookupKeyForContact(SQLiteDatabase db, long contactId) { in computeLookupKeyForContact() 62 public long onRawContactInsert(TransactionContext txContext, SQLiteDatabase db, in onRawContactInsert() 69 public void aggregateInTransaction(TransactionContext txContext, SQLiteDatabase db) { in aggregateInTransaction() 74 public void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | SQLiteTransaction.java | 32 protected abstract boolean performTransaction(SQLiteDatabase db); in performTransaction() 38 public void run(SQLiteDatabase db) { in run()
|
D | SQLiteAsyncQuery.java | 34 protected abstract A performQuery(SQLiteDatabase db); in performQuery() 39 public void run(SQLiteDatabase db, Consumer<A> consumer) { in run()
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoDatabase.java | 87 public void onCreate(SQLiteDatabase db) { in onCreate() 103 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 108 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 112 private void recreate(SQLiteDatabase db) { in recreate() 136 protected static void createTable(SQLiteDatabase db, String table, List<String[]> columns) { in createTable() 186 protected static void dropTable(SQLiteDatabase db, String table) { in dropTable()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 181 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query() local 189 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck() 221 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local 305 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert() local 339 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local 359 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local 435 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteEmptyFolders() local 625 public void onCreate(SQLiteDatabase db) { in onCreate() 663 private void addFavoritesTable(SQLiteDatabase db, boolean optional) { in addFavoritesTable() 667 private void addWorkspacesTable(SQLiteDatabase db, boolean optional) { in addWorkspacesTable() [all …]
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 362 private boolean hasGrantInternal(final SQLiteDatabase db, final int uid, final String alias) { in hasGrantInternal() 368 private void setGrantInternal(final SQLiteDatabase db, in setGrantInternal() 384 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeGrantsForAlias() local 388 private void removeAllGrants(final SQLiteDatabase db) { in removeAllGrants() 398 public void onCreate(final SQLiteDatabase db) { in onCreate() 406 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade() 432 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in purgeOldGrants() local
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyProviderTestable.java | 64 void initDatabaseWithDatabaseHelper(SQLiteDatabase db) { in initDatabaseWithDatabaseHelper() 89 public void onCreate(SQLiteDatabase db) { in onCreate() 100 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
|
/packages/apps/Car/Radio/src/com/android/car/radio/ |
D | RadioDatabase.java | 155 SQLiteDatabase db = getReadableDatabase(); in getAllPresets() local 213 SQLiteDatabase db = getWritableDatabase(); in insertPreset() local 239 SQLiteDatabase db = getWritableDatabase(); in deletePreset() local 274 SQLiteDatabase db = getReadableDatabase(); in getAllPreScannedStationsForBand() local 327 SQLiteDatabase db = getWritableDatabase(); in insertPreScannedStations() local 376 public void onCreate(SQLiteDatabase db) { in onCreate() 382 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 399 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | SQLiteCacheHelper.java | 90 protected abstract void onCreateTable(SQLiteDatabase db); in onCreateTable() 102 public void onCreate(SQLiteDatabase db) { in onCreate() 107 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 114 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() 120 private void clearDB(SQLiteDatabase db) { in clearDB()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | SearchRecentSuggestionsProvider.java | 102 public void onCreate(SQLiteDatabase db) { in onCreate() 113 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 146 final SQLiteDatabase db = getDatabase(true /* readOnly */); in query() local 171 final SQLiteDatabase db = getDatabase(false /* readOnly */); in saveRecentQuery() local 186 final SQLiteDatabase db = getDatabase(false /* readOnly */); in clearHistory() local
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | CallLogDatabaseHelper.java | 97 public void onCreate(SQLiteDatabase db) { in onCreate() 187 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() 251 private void upgradeToVersion2(SQLiteDatabase db) { in upgradeToVersion2() 259 private void upgradeToVersion3(SQLiteDatabase db) { in upgradeToVersion3() 268 private void upgradeToVersion4(SQLiteDatabase db) { in upgradeToVersion4() 278 private void upgradeToVersion5(SQLiteDatabase db) { in upgradeToVersion5() 364 static boolean tableExists(SQLiteDatabase db, String table) { in tableExists() 378 final SQLiteDatabase db = getReadableDatabase(); in selectDistinctColumn() local
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | PropertyUtils.java | 42 public static void createPropertiesTable(SQLiteDatabase db) { in createPropertiesTable() 53 public static String getProperty(SQLiteDatabase db, String key, String defaultValue) { in getProperty() 73 public static void setProperty(SQLiteDatabase db, String key, String value) { in setProperty()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 50 SQLiteDatabase db = helper.getWritableDatabase(); in performRestore() local 70 private void sanitizeDB(DatabaseHelper helper, SQLiteDatabase db) throws Exception { in sanitizeDB() 104 protected void migrateProfileId(SQLiteDatabase db, long newProfileId) { in migrateProfileId() 120 protected long getDefaultProfileId(SQLiteDatabase db) throws Exception { in getDefaultProfileId()
|