Home
last modified time | relevance | path

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

123456

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsDatabaseHelper.java245 private static void removeUnferencedCanonicalAddresses(SQLiteDatabase db) { in removeUnferencedCanonicalAddresses()
286 public static void updateThread(SQLiteDatabase db, long thread_id) { in updateThread()
386 public static void updateAllThreads(SQLiteDatabase db, String where, String[] whereArgs) { in updateAllThreads()
424 public static int deleteOneSms(SQLiteDatabase db, int message_id) { in deleteOneSms()
446 public void onCreate(SQLiteDatabase db) { in onCreate()
458 private void populateWordsTable(SQLiteDatabase db) { in populateWordsTable()
527 private void createWordsTables(SQLiteDatabase db) { in createWordsTables()
548 private void createIndices(SQLiteDatabase db) { in createIndices()
552 private void createThreadIdIndex(SQLiteDatabase db) { in createThreadIdIndex()
561 private void createMmsTables(SQLiteDatabase db) { in createMmsTables()
[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/DeskClock/src/com/android/deskclock/provider/
DClockDatabaseHelper.java68 private static void createAlarmsTable(SQLiteDatabase db) { in createAlarmsTable()
82 private static void createInstanceTable(SQLiteDatabase db) { in createInstanceTable()
101 private static void createCitiesTable(SQLiteDatabase db) { in createCitiesTable()
118 public void onCreate(SQLiteDatabase db) { in onCreate()
140 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade()
203 SQLiteDatabase db = getWritableDatabase(); in fixAlarmInsert() local
/packages/apps/Settings/src/com/android/settings/search/
DIndexDatabaseHelper.java148 public void onCreate(SQLiteDatabase db) { in onCreate()
152 private void bootstrapDB(SQLiteDatabase db) { in bootstrapDB()
161 public void onOpen(SQLiteDatabase db) { in onOpen()
176 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
186 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade()
193 private void reconstruct(SQLiteDatabase db) { in reconstruct()
198 private String getBuildVersion(SQLiteDatabase db) { in getBuildVersion()
218 private void dropTables(SQLiteDatabase db) { in dropTables()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java1034 private void refreshDatabaseCaches(SQLiteDatabase db) { in refreshDatabaseCaches()
1060 private void initializeCache(SQLiteDatabase db) { in initializeCache()
1078 public void onOpen(SQLiteDatabase db) { in onOpen()
1165 public void onCreate(SQLiteDatabase db) { in onCreate()
1622 protected void initializeAutoIncrementSequences(SQLiteDatabase db) { in initializeAutoIncrementSequences()
1626 private void createDirectoriesTable(SQLiteDatabase db) { in createDirectoriesTable()
1648 public void createSearchIndexTable(SQLiteDatabase db, boolean rebuildSqliteStats) { in createSearchIndexTable()
1668 private void createContactsTriggers(SQLiteDatabase db) { in createContactsTriggers()
1801 private void createContactsIndexes(SQLiteDatabase db, boolean rebuildSqliteStats) { in createContactsIndexes()
1825 private void createContactsViews(SQLiteDatabase db) { in createContactsViews()
[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.java89 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact()
189 private boolean needAggregate(SQLiteDatabase db, long rawContactId) { in needAggregate()
208 private RawContactMatchingCandidates findRawContactMatchingCandidates(SQLiteDatabase db, long in findRawContactMatchingCandidates()
245 private void clearSuperPrimarySetting(SQLiteDatabase db, String rawContactIds) { in clearSuperPrimarySetting()
310 private void reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, in reAggregateRawContacts()
397 private boolean canBeReused(SQLiteDatabase db, Long contactId, in canBeReused()
421 private void breakComponentsByExceptions(SQLiteDatabase db, in breakComponentsByExceptions()
458 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateAggregationAfterVisibilityChange() local
499 private void updateMatchScoresBasedOnExceptions(SQLiteDatabase db, long rawContactId, in updateMatchScoresBasedOnExceptions()
553 private void updateMatchScoresBasedOnIdentityMatch(SQLiteDatabase db, long rawContactId, in updateMatchScoresBasedOnIdentityMatch()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java121 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query() local
129 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck()
160 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
190 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert() local
213 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in applyBatch() local
229 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local
242 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local
288 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteEmptyFolders() local
466 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteDatabase() local
506 public void onCreate(SQLiteDatabase db) { in onCreate()
[all …]
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java337 private boolean hasGrantInternal(final SQLiteDatabase db, final int uid, final String alias) { in hasGrantInternal()
343 private void setGrantInternal(final SQLiteDatabase db, in setGrantInternal()
358 private void removeAllGrants(final SQLiteDatabase db) { in removeAllGrants()
368 public void onCreate(final SQLiteDatabase db) { in onCreate()
376 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade()
402 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in purgeOldGrants() 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/QuickSearchBox/src/com/android/quicksearchbox/util/
DSQLiteTransaction.java32 protected abstract boolean performTransaction(SQLiteDatabase db); in performTransaction()
38 public void run(SQLiteDatabase db) { in run()
DSQLiteAsyncQuery.java34 protected abstract A performQuery(SQLiteDatabase db); in performQuery()
39 public void run(SQLiteDatabase db, Consumer<A> consumer) { in run()
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DSmartDialPrefixTest.java89 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in tearDown() local
171 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForFullName() local
209 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForPartialName() local
244 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForNameTokens() local
265 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForInitialMatches() local
309 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForInitialMatchesForLongTokenNames() local
338 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testCheckLongToken() local
361 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testAccentedCharacters() local
381 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testNumbersInName() local
402 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForNumbers() local
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java237 public void onCreate(final SQLiteDatabase db) { in onCreate()
252 public void onUpgrade(final SQLiteDatabase db, int oldV, final int newV) { in onUpgrade()
278 private void upgradeTo(SQLiteDatabase db, int version) { in upgradeTo()
341 private void fillNullValues(SQLiteDatabase db) { in fillNullValues()
353 private void fillNullValuesForColumn(SQLiteDatabase db, ContentValues values) { in fillNullValuesForColumn()
362 private void makeCacheDownloadsInvisible(SQLiteDatabase db) { in makeCacheDownloadsInvisible()
376 private void addColumn(SQLiteDatabase db, String dbTable, String columnName, in addColumn()
385 private void createDownloadsTable(SQLiteDatabase db) { in createDownloadsTable()
425 private void createHeadersTable(SQLiteDatabase db) { in createHeadersTable()
489 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getType() local
[all …]
/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/apps/Messaging/src/com/android/messaging/datamodel/
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/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/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
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackDBHelper.java59 public void onCreate(SQLiteDatabase db) { in onCreate()
64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
69 protected static void createTable(SQLiteDatabase db, String table, String[][] columns) { in createTable()
92 protected static void dropTable(SQLiteDatabase db, String table) { in dropTable()

123456