Home
last modified time | relevance | path

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

1234567

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsDatabaseHelper.java279 private static void removeUnferencedCanonicalAddresses(SQLiteDatabase db) { in removeUnferencedCanonicalAddresses()
320 public static void updateThread(SQLiteDatabase db, long thread_id) { in updateThread()
420 public static void updateAllThreads(SQLiteDatabase db, String where, String[] whereArgs) { in updateAllThreads()
458 public static int deleteOneSms(SQLiteDatabase db, int message_id) { in deleteOneSms()
480 public void onCreate(SQLiteDatabase db) { in onCreate()
492 private void populateWordsTable(SQLiteDatabase db) { in populateWordsTable()
561 private void createWordsTables(SQLiteDatabase db) { in createWordsTables()
582 private void createIndices(SQLiteDatabase db) { in createIndices()
586 private void createThreadIdIndex(SQLiteDatabase db) { in createThreadIdIndex()
595 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/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/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/Dialer/tests/src/com/android/dialer/database/
DSmartDialPrefixTest.java85 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in tearDown() local
97 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForFullName() local
135 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForPartialName() local
170 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForNameTokens() local
191 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForInitialMatches() local
235 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForInitialMatchesForLongTokenNames() local
264 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testCheckLongToken() local
287 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testAccentedCharacters() local
307 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testNumbersInName() local
328 final SQLiteDatabase db = mTestHelper.getWritableDatabase(); in testPutForNumbers() local
[all …]
/packages/apps/TV/src/com/android/tv/dvr/provider/
DDvrDatabaseHelper.java63 public void onConfigure(SQLiteDatabase db) { in onConfigure()
68 public void onCreate(SQLiteDatabase db) { in onCreate()
74 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
84 SQLiteDatabase db = getReadableDatabase(); in query() local
98 SQLiteDatabase db = getReadableDatabase(); in insertRecordings() local
116 SQLiteDatabase db = getWritableDatabase(); in updateRecordings() local
139 SQLiteDatabase db = getWritableDatabase(); in deleteRecordings() local
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java1070 private void refreshDatabaseCaches(SQLiteDatabase db) { in refreshDatabaseCaches()
1096 private void initializeCache(SQLiteDatabase db) { in initializeCache()
1114 public void onOpen(SQLiteDatabase db) { in onOpen()
1201 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/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java382 private boolean hasGrantInternal(final SQLiteDatabase db, final int uid, final String alias) { in hasGrantInternal()
388 private void setGrantInternal(final SQLiteDatabase db, in setGrantInternal()
404 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in removeGrantsForAlias() local
408 private void removeAllGrants(final SQLiteDatabase db) { in removeAllGrants()
418 public void onCreate(final SQLiteDatabase db) { in onCreate()
426 public void onUpgrade(final SQLiteDatabase db, int oldVersion, final int newVersion) { in onUpgrade()
452 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); in purgeOldGrants() local
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java133 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query() local
141 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck()
172 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
202 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert() local
225 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in applyBatch() local
241 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local
254 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local
304 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteEmptyFolders() local
546 public void onCreate(SQLiteDatabase db) { in onCreate()
599 private void addFavoritesTable(SQLiteDatabase db, boolean optional) { in addFavoritesTable()
[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 …]
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 …]
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()
/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/Settings/src/com/android/settings/search/
DIndexDatabaseHelper.java153 public void onCreate(SQLiteDatabase db) { in onCreate()
157 private void bootstrapDB(SQLiteDatabase db) { in bootstrapDB()
166 public void onOpen(SQLiteDatabase db) { in onOpen()
181 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
191 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade()
198 private void reconstruct(SQLiteDatabase db) { in reconstruct()
203 private String getBuildVersion(SQLiteDatabase db) { in getBuildVersion()
233 private void dropTables(SQLiteDatabase db) { in dropTables()
/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/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/apps/Launcher3/src/com/android/launcher3/util/
DSQLiteCacheHelper.java93 protected abstract void onCreateTable(SQLiteDatabase db); in onCreateTable()
105 public void onCreate(SQLiteDatabase db) { in onCreate()
110 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
117 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade()
123 private void clearDB(SQLiteDatabase db) { in clearDB()
/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/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/Launcher2/src/com/android/launcher2/
DLauncherProvider.java126 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query() local
134 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck()
141 private static void deleteId(SQLiteDatabase db, long id) { in deleteId()
151 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
165 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert() local
187 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local
198 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local
304 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in deleteDatabase() local
351 public void onCreate(SQLiteDatabase db) { in onCreate()
403 private boolean convertDatabase(SQLiteDatabase db) { in convertDatabase()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java117 public void onCreate(final SQLiteDatabase db) { in onCreate()
141 public void onUpgrade(final SQLiteDatabase db, int oldV, final int newV) { in onUpgrade()
160 private void createTable(SQLiteDatabase db) { in createTable()
178 private void dropTable(SQLiteDatabase db) { in dropTable()
227 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
298 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
376 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local
420 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() 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()

1234567