Home
last modified time | relevance | path

Searched defs:db (Results 1 – 25 of 174) sorted by relevance

1234567

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsDatabaseHelper.java283 private static void removeUnferencedCanonicalAddresses(SQLiteDatabase db) { in removeUnferencedCanonicalAddresses()
324 public static void updateThread(SQLiteDatabase db, long thread_id) { in updateThread()
336 public static void updateThreads(SQLiteDatabase db, String where, String[] whereArgs) { in updateThreads()
439 public static int deleteOneSms(SQLiteDatabase db, int message_id) { in deleteOneSms()
461 public void onCreate(SQLiteDatabase db) { in onCreate()
473 private void populateWordsTable(SQLiteDatabase db) { in populateWordsTable()
542 private void createWordsTables(SQLiteDatabase db) { in createWordsTables()
563 private void createIndices(SQLiteDatabase db) { in createIndices()
568 private void createThreadIdIndex(SQLiteDatabase db) { in createThreadIdIndex()
577 private void createThreadIdDateIndex(SQLiteDatabase db) { in createThreadIdDateIndex()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java326 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 …]
DMetaData.java81 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/
DDBHelper.java213 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/
DContactsTableUtil.java43 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()
DDeletedContactsTableUtil.java36 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/
DApnDatabase.java172 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/Launcher3/src/com/android/launcher3/
DLauncherProvider.java183 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query() local
191 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck()
223 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
307 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert() local
331 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in applyBatch() local
348 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local
368 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local
444 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteEmptyFolders() local
632 public void onCreate(SQLiteDatabase db) { in onCreate()
670 private void addFavoritesTable(SQLiteDatabase db, boolean optional) { in addFavoritesTable()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseUpgradeHelper.java28 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()
DParticipantRefresh.java259 final DatabaseWrapper db = DataModel.get().getDatabase(); in refreshParticipants() local
314 final DatabaseWrapper db = DataModel.get().getDatabase(); in getExistingSubIds() local
360 final DatabaseWrapper db = DataModel.get().getDatabase(); in refreshSelfParticipantList() local
416 public static boolean refreshParticipant(final DatabaseWrapper db, in refreshParticipant()
440 private static int refreshFromSelfProfile(final DatabaseWrapper db, in refreshFromSelfProfile()
490 private static boolean refreshFromContacts(final DatabaseWrapper db, in refreshFromContacts()
597 private static void updateParticipant(final DatabaseWrapper db, in updateParticipant()
629 final DatabaseWrapper db = DataModel.get().getDatabase(); in getInactiveSelfParticipantIds() local
660 final DatabaseWrapper db = DataModel.get().getDatabase(); in getConversationsWithSelfParticipantIds() local
698 final DatabaseWrapper db = DataModel.get().getDatabase(); in updateConversationSelfId() local
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java79 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 …]
DProfileAggregator.java48 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()
DContactAggregator2.java91 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact()
191 private boolean needAggregate(SQLiteDatabase db, long rawContactId) { in needAggregate()
210 private RawContactMatchingCandidates findRawContactMatchingCandidates(SQLiteDatabase db, long in findRawContactMatchingCandidates()
247 private void clearSuperPrimarySetting(SQLiteDatabase db, String rawContactIds) { in clearSuperPrimarySetting()
312 private void reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, in reAggregateRawContacts()
399 private boolean canBeReused(SQLiteDatabase db, Long contactId, in canBeReused()
423 private void breakComponentsByExceptions(SQLiteDatabase db, in breakComponentsByExceptions()
460 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateAggregationAfterVisibilityChange() local
501 private void updateMatchScoresBasedOnExceptions(SQLiteDatabase db, long rawContactId, in updateMatchScoresBasedOnExceptions()
555 private void updateMatchScoresBasedOnIdentityMatch(SQLiteDatabase db, long rawContactId, in updateMatchScoresBasedOnIdentityMatch()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java194 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/apps/Gallery2/src/com/android/photos/data/
DPhotoDatabase.java87 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/KeyChain/src/com/android/keychain/
DKeyChainService.java373 private boolean hasGrantInternal(final SQLiteDatabase db, final int uid, final String alias) { in hasGrantInternal()
379 private void setGrantInternal(final SQLiteDatabase db, in setGrantInternal()
395 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeGrantsForAlias() local
399 private void removeAllGrants(final SQLiteDatabase db) { in removeAllGrants()
409 public void onCreate(final SQLiteDatabase db) { in onCreate()
417 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade()
443 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in purgeOldGrants() local
/packages/apps/Car/Radio/src/com/android/car/radio/
DRadioDatabase.java155 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/
DSQLiteCacheHelper.java90 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/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogDatabaseHelper.java93 public void onCreate(SQLiteDatabase db) { in onCreate()
183 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
247 private void upgradeToVersion2(SQLiteDatabase db) { in upgradeToVersion2()
255 private void upgradeToVersion3(SQLiteDatabase db) { in upgradeToVersion3()
264 private void upgradeToVersion4(SQLiteDatabase db) { in upgradeToVersion4()
274 private void upgradeToVersion5(SQLiteDatabase db) { in upgradeToVersion5()
360 static boolean tableExists(SQLiteDatabase db, String table) { in tableExists()
374 final SQLiteDatabase db = getReadableDatabase(); in selectDistinctColumn() local
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java49 SQLiteDatabase db = helper.getWritableDatabase(); in performRestore() local
72 private void sanitizeDB(DatabaseHelper helper, SQLiteDatabase db) throws Exception { in sanitizeDB()
106 protected void migrateProfileId(SQLiteDatabase db, long newProfileId) { in migrateProfileId()
122 protected long getDefaultProfileId(SQLiteDatabase db) throws Exception { in getDefaultProfileId()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DSearchRecentSuggestionsProvider.java102 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/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataDbHelper.java205 private void createClientTable(final SQLiteDatabase db) { in createClientTable()
227 public void onCreate(final SQLiteDatabase db) { in onCreate()
232 private static void addRawChecksumColumnUnlessPresent(final SQLiteDatabase db) { in addRawChecksumColumnUnlessPresent()
243 private static void addRetryCountColumnUnlessPresent(final SQLiteDatabase db) { in addRetryCountColumnUnlessPresent()
268 public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onUpgrade()
318 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade()
609 public static ContentValues getContentValuesByPendingId(final SQLiteDatabase db, in getContentValuesByPendingId()
640 final SQLiteDatabase db, final String id) { in getInstalledOrDeletingWordListContentValuesByWordListId()
710 public static ContentValues getContentValuesByWordListId(final SQLiteDatabase db, in getContentValuesByWordListId()
743 final SQLiteDatabase db, final String id) { in getContentValuesOfLatestAvailableWordlistById()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DSQLiteTransaction.java32 protected abstract boolean performTransaction(SQLiteDatabase db); in performTransaction()
38 public void run(SQLiteDatabase db) { in run()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTestable.java64 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/Gallery2/src/com/android/gallery3d/gadget/
DWidgetDatabaseHelper.java100 public void onCreate(SQLiteDatabase db) { in onCreate()
110 private void saveData(SQLiteDatabase db, int oldVersion, ArrayList<Entry> data) { in saveData()
147 private void restoreData(SQLiteDatabase db, ArrayList<Entry> data) { in restoreData()
166 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
209 SQLiteDatabase db = getWritableDatabase(); in setPhoto() local
236 SQLiteDatabase db = getReadableDatabase(); in getEntry() local
257 SQLiteDatabase db = getReadableDatabase(); in getEntries() local
302 SQLiteDatabase db = getWritableDatabase(); in deleteEntry() local

1234567