/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsDatabaseHelper.java | 350 private static void removeUnferencedCanonicalAddresses(SQLiteDatabase db) { in removeUnferencedCanonicalAddresses() argument 351 Cursor c = db.query(MmsSmsProvider.TABLE_THREADS, new String[] { "recipient_ids" }, in removeUnferencedCanonicalAddresses() 357 int rows = db.delete("canonical_addresses", null, null); in removeUnferencedCanonicalAddresses() 383 int rows = db.delete("canonical_addresses", sb.toString(), null); in removeUnferencedCanonicalAddresses() 391 public static void updateThread(SQLiteDatabase db, long thread_id) { in updateThread() argument 393 updateThreads(db, null, null); in updateThread() 396 updateThreads(db, "(thread_id = ?)", new String[]{ String.valueOf(thread_id) }); in updateThread() 403 public static void updateThreads(SQLiteDatabase db, String where, String[] whereArgs) { in updateThreads() argument 410 db.beginTransaction(); in updateThreads() 416 int rows = db.delete(MmsSmsProvider.TABLE_THREADS, in updateThreads() [all …]
|
D | TelephonyProvider.java | 599 public void onCreate(SQLiteDatabase db) { in onCreate() argument 600 if (DBG) log("dbh.onCreate:+ db=" + db); in onCreate() 601 createSimInfoTable(db, SIMINFO_TABLE); in onCreate() 602 createCarriersTable(db, CARRIERS_TABLE); in onCreate() 608 initDatabase(db); in onCreate() 610 if (DBG) log("dbh.onCreate:- db=" + db); in onCreate() 614 public void onOpen(SQLiteDatabase db) { in onOpen() argument 615 if (VDBG) log("dbh.onOpen:+ db=" + db); in onOpen() 618 db.query(SIMINFO_TABLE, null, null, null, null, null, null); in onOpen() 623 createSimInfoTable(db, SIMINFO_TABLE); in onOpen() [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelper.java | 326 public void onOpen(SQLiteDatabase db) { in onOpen() argument 327 mSyncState.onDatabaseOpened(db); in onOpen() 329 mCalendarsInserter = new DatabaseUtils.InsertHelper(db, Tables.CALENDARS); in onOpen() 330 mColorsInserter = new DatabaseUtils.InsertHelper(db, Tables.COLORS); in onOpen() 331 mEventsInserter = new DatabaseUtils.InsertHelper(db, Tables.EVENTS); in onOpen() 332 mEventsRawTimesInserter = new DatabaseUtils.InsertHelper(db, Tables.EVENTS_RAW_TIMES); in onOpen() 333 mInstancesInserter = new DatabaseUtils.InsertHelper(db, Tables.INSTANCES); in onOpen() 334 mAttendeesInserter = new DatabaseUtils.InsertHelper(db, Tables.ATTENDEES); in onOpen() 335 mRemindersInserter = new DatabaseUtils.InsertHelper(db, Tables.REMINDERS); in onOpen() 336 mCalendarAlertsInserter = new DatabaseUtils.InsertHelper(db, Tables.CALENDAR_ALERTS); in onOpen() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | DatabaseHelperTest.java | 82 SQLiteDatabase db = helper.getWritableDatabase(); in assertDowngrade() local 91 assertFalse(db.insert("files", FileColumns.DATA, values) == -1); in assertDowngrade() 93 try (Cursor c = db.query("files", null, null, null, null, null, null, null)) { in assertDowngrade() 101 SQLiteDatabase db = helper.getWritableDatabase(); in assertDowngrade() local 102 try (Cursor c = db.query("files", null, null, null, null, null, null, null)) { in assertDowngrade() 122 SQLiteDatabase db = helper.getWritableDatabase(); in assertUpgrade() local 132 assertFalse(db.insert("files", FileColumns.DATA, values) == -1); in assertUpgrade() 143 assertFalse(db.insert("files", FileColumns.DATA, values) == -1); in assertUpgrade() 154 assertFalse(db.insert("files", FileColumns.DATA, values) == -1); in assertUpgrade() 165 assertFalse(db.insert("files", FileColumns.DATA, values) == -1); in assertUpgrade() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 1095 private void prepopulateCommonMimeTypes(SQLiteDatabase db) { in prepopulateCommonMimeTypes() argument 1098 mCommonMimeTypeIdsCache.put(commonMimeType, insertMimeType(db, commonMimeType)); in prepopulateCommonMimeTypes() 1103 public void onBeforeDelete(SQLiteDatabase db) { in onBeforeDelete() argument 1104 Log.w(TAG, "Database version " + db.getVersion() + " for " + DATABASE_NAME in onBeforeDelete() 1109 public void onOpen(SQLiteDatabase db) { in onOpen() argument 1110 Log.d(TAG, "WAL enabled for " + getDatabaseName() + ": " + db.isWriteAheadLoggingEnabled()); in onOpen() 1111 prepopulateCommonMimeTypes(db); in onOpen() 1112 mSyncState.onDatabaseOpened(db); in onOpen() 1115 db.execSQL("DELETE FROM " + Tables.PRESENCE + ";"); in onOpen() 1116 db.execSQL("DELETE FROM " + Tables.AGGREGATED_PRESENCE + ";"); in onOpen() [all …]
|
D | CallLogDatabaseHelper.java | 97 public void onCreate(SQLiteDatabase db) { in onCreate() argument 102 PropertyUtils.createPropertiesTable(db); in onCreate() 119 db.execSQL("CREATE TABLE " + Tables.CALLS + " (" + in onCreate() 172 db.execSQL("CREATE TABLE " + Tables.VOICEMAIL_STATUS + " (" + in onCreate() 187 migrateFromLegacyTables(db); in onCreate() 191 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 197 upgradeToVersion2(db); in onUpgrade() 201 upgradeToVersion3(db); in onUpgrade() 205 upgradeToVersion4(db); in onUpgrade() 209 upgradeToVersion5(db); in onUpgrade() [all …]
|
D | ContactMetadataProvider.java | 155 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() local 156 return qb.query(db, projection, selectionBuilder.build(), selectionArgs, null, in query() 183 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() local 184 db.beginTransactionNonExclusive(); in insert() 191 final long metadataSyncId = updateOrInsertDataToMetadataSync(db, uri, values); in insert() 192 db.setTransactionSuccessful(); in insert() 196 final Long syncStateId = db.replace( in insert() 198 db.setTransactionSuccessful(); in insert() 205 db.endTransaction(); in insert() 214 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() local [all …]
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/ |
D | IpMemoryStoreDatabase.java | 161 public void onCreate(@NonNull final SQLiteDatabase db) { in onCreate() argument 162 db.execSQL(NetworkAttributesContract.CREATE_TABLE); in onCreate() 163 db.execSQL(PrivateDataContract.CREATE_TABLE); in onCreate() 164 createTrigger(db); in onCreate() 169 public void onUpgrade(@NonNull final SQLiteDatabase db, final int oldVersion, in onUpgrade() argument 183 db.execSQL(sqlUpgradeAddressExpiry); in onUpgrade() 187 createTrigger(db); in onUpgrade() 192 db.execSQL(NetworkAttributesContract.DROP_TABLE); in onUpgrade() 193 db.execSQL(PrivateDataContract.DROP_TABLE); in onUpgrade() 194 onCreate(db); in onUpgrade() [all …]
|
/packages/apps/KeyChain/src/com/android/keychain/internal/ |
D | GrantsDatabase.java | 68 void createSelectableTable(final SQLiteDatabase db) { in createSelectableTable() argument 71 db.execSQL( in createSelectableTable() 85 public void onCreate(final SQLiteDatabase db) { in onCreate() argument 87 db.execSQL( in onCreate() 101 createSelectableTable(db); in onCreate() 102 markExistingKeysAsSelectable(db); in onCreate() 105 private void markExistingKeysAsSelectable(final SQLiteDatabase db) { in markExistingKeysAsSelectable() argument 108 if (!hasEntryInUserSelectableTable(db, alias)) { in markExistingKeysAsSelectable() 110 markKeyAsSelectable(db, alias); in markExistingKeysAsSelectable() 116 private void markKeyAsSelectable(final SQLiteDatabase db, final String alias) { in markKeyAsSelectable() argument [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator.java | 79 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() argument 104 contactId = pickBestMatchBasedOnExceptions(db, rawContactId, matcher); in aggregateContact() 110 || mDbHelper.isContactInDefaultDirectory(db, currentContactId)) { in aggregateContact() 111 contactId = pickBestMatchBasedOnData(db, rawContactId, candidates, matcher); in aggregateContact() 125 final Cursor rawContactsToAccountsCursor = db.rawQuery( in aggregateContact() 155 actionCode = canJoinIntoContact(db, rawContactId, in aggregateContact() 190 markAggregated(db, String.valueOf(rawContactId)); in aggregateContact() 196 createContactForRawContacts(db, txContext, Sets.newHashSet(rawContactId), null); in aggregateContact() 212 reAggregateRawContacts(txContext, db, contactId, currentContactId, rawContactId, in aggregateContact() 221 ContactsTableUtil.deleteContact(db, currentContactId); in aggregateContact() [all …]
|
D | ContactAggregator2.java | 91 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() argument 95 if (!needAggregate(db, rawContactId)) { in aggregateContact() 119 || mDbHelper.isContactInDefaultDirectory(db, currentContactId)) { in aggregateContact() 121 matchingCandidates = findRawContactMatchingCandidates(db, rawContactId, candidates, in aggregateContact() 169 markAggregated(db, String.valueOf(rawContactId)); in aggregateContact() 175 createContactForRawContacts(db, txContext, Sets.newHashSet(rawContactId), null); in aggregateContact() 179 markAggregated(db, String.valueOf(rawContactId)); in aggregateContact() 186 reAggregateRawContacts(txContext, db, currentContactId, rawContactId, accountId, in aggregateContact() 191 private boolean needAggregate(SQLiteDatabase db, long rawContactId) { in needAggregate() argument 197 final Cursor cursor = db.rawQuery(sql, mSelectionArgs1); in needAggregate() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/database/ |
D | DialerDatabaseHelper.java | 109 public void onCreate(SQLiteDatabase db) { in onCreate() argument 110 setupTables(db); in onCreate() 113 private void setupTables(SQLiteDatabase db) { in setupTables() argument 114 dropTables(db); in setupTables() 115 db.execSQL( in setupTables() 151 db.execSQL( in setupTables() 163 db.execSQL( in setupTables() 176 db.execSQL( in setupTables() 200 setProperty(db, DATABASE_VERSION_PROPERTY, String.valueOf(DATABASE_VERSION)); in setupTables() 206 public void dropTables(SQLiteDatabase db) { in dropTables() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/ |
D | SpeedDialEntryDatabaseHelper.java | 95 public void onCreate(SQLiteDatabase db) { in onCreate() argument 96 db.execSQL(CREATE_TABLE_SQL); in onCreate() 100 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 102 db.execSQL(DELETE_TABLE_SQL); in onUpgrade() 103 this.onCreate(db); in onUpgrade() 107 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 109 this.onUpgrade(db, oldVersion, newVersion); in onDowngrade() 117 try (SQLiteDatabase db = getReadableDatabase(); in getAllEntries() argument 118 Cursor cursor = db.rawQuery(query, null)) { in getAllEntries() 158 SQLiteDatabase db = getWritableDatabase(); in insert() local [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 179 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in query() local 180 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query() 187 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck() argument 195 return (int) db.insert(table, nullColumnHack, values); in dbInsertAndCheck() 219 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local 221 final int rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); in insert() 223 mOpenHelper.onAddOrDeleteOp(db); in insert() 273 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in bulkInsert() local 274 try (SQLiteTransaction t = new SQLiteTransaction(db)) { in bulkInsert() 278 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { in bulkInsert() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDatabaseHelper.java | 302 public void onConfigure(SQLiteDatabase db) { in onConfigure() argument 303 db.setForeignKeyConstraintsEnabled(true); in onConfigure() 307 public void onCreate(SQLiteDatabase db) { in onCreate() argument 310 db.execSQL(SQL_CREATE_SCHEDULES_WITH_TIME_OFFSET); in onCreate() 313 db.execSQL(SQL_CREATE_SCHEDULES); in onCreate() 316 db.execSQL(SQL_CREATE_SERIES_RECORDINGS); in onCreate() 320 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 323 db.execSQL(SQL_DROP_SCHEDULES); in onUpgrade() 325 db.execSQL(SQL_DROP_SERIES_RECORDINGS); in onUpgrade() 326 onCreate(db); in onUpgrade() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarDatabaseHelperTest.java | 49 protected void bootstrapDbVersion50(SQLiteDatabase db) { in bootstrapDbVersion50() argument 53 syncStateHelper.createDatabase(db); in bootstrapDbVersion50() 55 db.execSQL("CREATE TABLE Calendars (" + in bootstrapDbVersion50() 77 db.execSQL("CREATE TRIGGER calendar_cleanup DELETE ON Calendars " + in bootstrapDbVersion50() 84 db.execSQL("CREATE TABLE Events (" + in bootstrapDbVersion50() 121 db.execSQL("CREATE INDEX eventsCalendarIdIndex ON Events (calendar_id);"); in bootstrapDbVersion50() 123 db.execSQL("CREATE TABLE EventsRawTimes (" + in bootstrapDbVersion50() 136 db.execSQL("CREATE TABLE DeletedEvents (" + in bootstrapDbVersion50() 143 db.execSQL("CREATE TABLE Instances (" + in bootstrapDbVersion50() 155 db.execSQL("CREATE INDEX instancesStartDayIndex ON Instances (startDay);"); in bootstrapDbVersion50() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | MetadataDbHelper.java | 205 private void createClientTable(final SQLiteDatabase db) { in createClientTable() argument 208 db.execSQL(METADATA_CREATE_CLIENT_TABLE); in createClientTable() 215 db.insert(CLIENT_TABLE_NAME, null, defaultMetadataValues); in createClientTable() 227 public void onCreate(final SQLiteDatabase db) { in onCreate() argument 228 db.execSQL(METADATA_TABLE_CREATE); in onCreate() 229 createClientTable(db); in onCreate() 232 private static void addRawChecksumColumnUnlessPresent(final SQLiteDatabase db) { in addRawChecksumColumnUnlessPresent() argument 234 db.execSQL("SELECT " + RAW_CHECKSUM_COLUMN + " FROM " in addRawChecksumColumnUnlessPresent() 238 db.execSQL("ALTER TABLE " + METADATA_TABLE_NAME + " ADD COLUMN " in addRawChecksumColumnUnlessPresent() 243 private static void addRetryCountColumnUnlessPresent(final SQLiteDatabase db) { in addRetryCountColumnUnlessPresent() argument [all …]
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyDatabaseHelperTest.java | 72 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasApnSetIdField() local 73 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasApnSetIdField() 76 Cursor cursor = db.query("carriers", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasApnSetIdField() 87 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasCarrierIdField() local 88 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasCarrierIdField() 91 Cursor cursor = db.query("carriers", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasCarrierIdField() 100 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasCountryIsoField() local 101 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasCountryIsoField() 104 Cursor cursor = db.query("simInfo", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasCountryIsoField() 113 SQLiteDatabase db = mInMemoryDbHelper.getWritableDatabase(); in databaseHelperOnUpgrade_hasProfileClassField() local [all …]
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoDatabase.java | 87 public void onCreate(SQLiteDatabase db) { in onCreate() argument 88 createTable(db, Accounts.TABLE, getAccountTableDefinition()); in onCreate() 89 createTable(db, Albums.TABLE, getAlbumTableDefinition()); in onCreate() 90 createTable(db, Photos.TABLE, getPhotoTableDefinition()); in onCreate() 91 createTable(db, Metadata.TABLE, getMetadataTableDefinition()); in onCreate() 103 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 104 recreate(db); in onUpgrade() 108 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument 109 recreate(db); in onDowngrade() 112 private void recreate(SQLiteDatabase db) { in recreate() argument [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseHelper.java | 633 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) { in onDowngrade() argument 634 mUpgradeHelper.onDowngrade(db, oldVersion, newVersion); in onDowngrade() 640 public static void rebuildTables(final SQLiteDatabase db) { in rebuildTables() argument 642 dropAllTables(db); in rebuildTables() 643 dropAllViews(db); in rebuildTables() 644 dropAllIndexes(db); in rebuildTables() 645 dropAllTriggers(db); in rebuildTables() 648 createDatabase(db); in rebuildTables() 654 static void rebuildView(final SQLiteDatabase db, final String viewName, in rebuildView() argument 656 dropView(db, viewName, true /* throwOnFailure */); in rebuildView() [all …]
|
D | ParticipantRefresh.java | 259 final DatabaseWrapper db = DataModel.get().getDatabase(); in refreshParticipants() local 263 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE, in refreshParticipants() 271 if (refreshParticipant(db, participantData)) { in refreshParticipants() 275 updateParticipant(db, participantData); in refreshParticipants() 314 final DatabaseWrapper db = DataModel.get().getDatabase(); in getExistingSubIds() local 319 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE, in getExistingSubIds() 360 final DatabaseWrapper db = DataModel.get().getDatabase(); in refreshSelfParticipantList() local 366 db.beginTransaction(); in refreshSelfParticipantList() 375 db.execSQL(DatabaseHelper.getCreateSelfParticipantSql(subId)); in refreshSelfParticipantList() 395 db.execSQL(getUpdateSelfParticipantSubscriptionInfoSql(record.getSimSlotIndex(), in refreshSelfParticipantList() [all …]
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
D | IndexDatabaseHelper.java | 187 public void onCreate(SQLiteDatabase db) { in onCreate() argument 188 bootstrapDB(db); in onCreate() 191 private void bootstrapDB(SQLiteDatabase db) { in bootstrapDB() argument 192 db.execSQL(CREATE_INDEX_TABLE); in bootstrapDB() 193 db.execSQL(CREATE_META_TABLE); in bootstrapDB() 194 db.execSQL(CREATE_SAVED_QUERIES_TABLE); in bootstrapDB() 195 db.execSQL(CREATE_SITE_MAP_TABLE); in bootstrapDB() 196 db.execSQL(INSERT_BUILD_VERSION); in bootstrapDB() 201 public void onOpen(SQLiteDatabase db) { in onOpen() argument 202 super.onOpen(db); in onOpen() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | ClockDatabaseHelper.kt | 44 override fun onCreate(db: SQLiteDatabase) { in onCreate() 45 createAlarmsTable(db) in onCreate() 46 createInstanceTable(db) in onCreate() 60 db.execSQL(insertMe + DEFAULT_ALARM_1) in onCreate() 61 db.execSQL(insertMe + DEFAULT_ALARM_2) in onCreate() 64 override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, currentVersion: Int) { in onUpgrade() 70 db.execSQL("DROP TABLE IF EXISTS " + SELECTED_CITIES_TABLE_NAME + ";") in onUpgrade() 75 db.execSQL("DROP TABLE IF EXISTS " + INSTANCES_TABLE_NAME + ";") in onUpgrade() 78 createAlarmsTable(db) in onUpgrade() 79 createInstanceTable(db) in onUpgrade() [all …]
|
D | ClockDatabaseHelper.java | 73 private static void createAlarmsTable(SQLiteDatabase db) { in createAlarmsTable() argument 74 db.execSQL("CREATE TABLE " + ALARMS_TABLE_NAME + " (" + in createAlarmsTable() 87 private static void createInstanceTable(SQLiteDatabase db) { in createInstanceTable() argument 88 db.execSQL("CREATE TABLE " + INSTANCES_TABLE_NAME + " (" + in createInstanceTable() 111 public void onCreate(SQLiteDatabase db) { in onCreate() argument 112 createAlarmsTable(db); in onCreate() 113 createInstanceTable(db); in onCreate() 127 db.execSQL(insertMe + DEFAULT_ALARM_1); in onCreate() 128 db.execSQL(insertMe + DEFAULT_ALARM_2); in onCreate() 132 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument [all …]
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ReadWriteDraftMessageActionTest.java | 68 final DatabaseWrapper db = DataModel.get().getDatabase(); in testWriteDraft() local 70 final String conversationId = getOrCreateConversation(db, participantNumber, threadId, in testWriteDraft() 72 final String selfId = getOrCreateSelfId(db); in testWriteDraft() 94 final MessageData actual = BugleDatabaseOperations.readMessage(db, messageId); in testWriteDraft() 99 private static String getOrCreateSelfId(final DatabaseWrapper db) { in getOrCreateSelfId() argument 100 db.beginTransaction(); in getOrCreateSelfId() 101 final String selfId = BugleDatabaseOperations.getOrCreateParticipantInTransaction(db, in getOrCreateSelfId() 103 db.setTransactionSuccessful(); in getOrCreateSelfId() 104 db.endTransaction(); in getOrCreateSelfId() 108 private static String getOrCreateConversation(final DatabaseWrapper db, in getOrCreateConversation() argument [all …]
|