/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | ConversationListItemData.java | 24 import com.android.messaging.datamodel.DatabaseHelper; 25 import com.android.messaging.datamodel.DatabaseHelper.ConversationColumns; 26 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 27 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 293 DatabaseHelper.CONVERSATIONS_TABLE + '.' + ConversationColumns._ID 295 + DatabaseHelper.CONVERSATIONS_TABLE + '.' + ConversationColumns.NAME 297 + DatabaseHelper.CONVERSATIONS_TABLE + '.' + ConversationColumns.CURRENT_SELF_ID 299 + DatabaseHelper.CONVERSATIONS_TABLE + '.' + ConversationColumns.ARCHIVE_STATUS 301 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.READ 303 + DatabaseHelper.CONVERSATIONS_TABLE + '.' + ConversationColumns.ICON [all …]
|
D | ConversationMessageData.java | 25 import com.android.messaging.datamodel.DatabaseHelper; 26 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 27 import com.android.messaging.datamodel.DatabaseHelper.PartColumns; 28 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 625 + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns.CONVERSATION_ID + "=?)" in getConversationMessagesQuerySql() 633 + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns.CONVERSATION_ID + "=?)" in getConversationMessageIdsQuerySql() 640 + "(" + DatabaseHelper.MessageColumns.STATUS + " in (" in getNotificationQuerySql() 644 + DatabaseHelper.MessageColumns.SEEN + " = 0)" in getNotificationQuerySql() 652 + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns.CONVERSATION_ID + "=?" in getWearableQuerySql() 654 + DatabaseHelper.MessageColumns.STATUS + " IN (" in getWearableQuerySql() [all …]
|
D | ParticipantData.java | 32 import com.android.messaging.datamodel.DatabaseHelper; 33 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 150 cursor = dbWrapper.query(DatabaseHelper.PARTICIPANTS_TABLE, in getFromId() 496 values.put(DatabaseHelper.ParticipantColumns.SEND_DESTINATION, mSendDestination); in toContentValues() 499 values.put(DatabaseHelper.ParticipantColumns.DISPLAY_DESTINATION, mDisplayDestination); in toContentValues() 500 values.put(DatabaseHelper.ParticipantColumns.NORMALIZED_DESTINATION, in toContentValues()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | ConversationImagePartsView.java | 23 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 24 import com.android.messaging.datamodel.DatabaseHelper.PartColumns; 25 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 39 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.CONVERSATION_ID 41 + DatabaseHelper.PARTS_TABLE + '.' + PartColumns.CONTENT_URI 43 + DatabaseHelper.PARTICIPANTS_TABLE + '.' + ParticipantColumns.FULL_NAME 45 + DatabaseHelper.PARTS_TABLE + '.' + PartColumns.CONTENT_URI 49 + DatabaseHelper.PARTS_TABLE + '.' + PartColumns.CONTENT_TYPE 54 + DatabaseHelper.PARTICIPANTS_TABLE + '.' + ParticipantColumns.DISPLAY_DESTINATION 56 + DatabaseHelper.MESSAGES_TABLE + '.' + MessageColumns.RECEIVED_TIMESTAMP [all …]
|
D | BugleDatabaseOperations.java | 31 import com.android.messaging.datamodel.DatabaseHelper.ConversationColumns; 32 import com.android.messaging.datamodel.DatabaseHelper.ConversationParticipantsColumns; 33 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 34 import com.android.messaging.datamodel.DatabaseHelper.PartColumns; 35 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 264 + " FROM " + DatabaseHelper.CONVERSATIONS_TABLE in getExistingConversation() 296 cursor = dbWrapper.query(DatabaseHelper.CONVERSATIONS_TABLE, in getThreadId() 331 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE, in isBlockedParticipant() 404 final long conversationRowId = dbWrapper.insert(DatabaseHelper.CONVERSATIONS_TABLE, null, in createConversationInTransaction() 479 dbWrapper.delete(DatabaseHelper.MESSAGES_TABLE, in deleteConversation() [all …]
|
D | MessagingContentProvider.java | 31 import com.android.messaging.datamodel.DatabaseHelper.ConversationColumns; 32 import com.android.messaging.datamodel.DatabaseHelper.ConversationParticipantsColumns; 33 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 65 static final Uri PARTS_URI = Uri.parse(CONTENT_AUTHORITY + DatabaseHelper.PARTS_TABLE); 240 private DatabaseHelper mDatabaseHelper; 295 queryBuilder.setTables(DatabaseHelper.PARTICIPANTS_TABLE); in query() 301 + " FROM " + DatabaseHelper.CONVERSATION_PARTICIPANTS_TABLE in query() 304 + DatabaseHelper.PARTICIPANTS_TABLE + " WHERE " in query() 314 queryBuilder.setTables(DatabaseHelper.PARTICIPANTS_TABLE); in query() 403 protected DatabaseHelper getDatabase() { in getDatabase() [all …]
|
D | DatabaseUpgradeHelper.java | 41 DatabaseHelper.rebuildTables(db); in doOnUpgrade() 53 DatabaseHelper.dropAllViews(db); in doUpgradeWithExceptions() 54 DatabaseHelper.rebuildAllViews(new DatabaseWrapper(context, db)); in doUpgradeWithExceptions() 60 db.execSQL("ALTER TABLE " + DatabaseHelper.CONVERSATIONS_TABLE + " ADD COLUMN " + in upgradeToVersion2() 61 DatabaseHelper.ConversationColumns.IS_ENTERPRISE + " INT DEFAULT(0)"); in upgradeToVersion2() 93 DatabaseHelper.rebuildTables(db); in onDowngrade()
|
D | ParticipantRefresh.java | 30 import com.android.messaging.datamodel.DatabaseHelper.ConversationColumns; 31 import com.android.messaging.datamodel.DatabaseHelper.ConversationParticipantsColumns; 32 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 263 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE, in refreshParticipants() 319 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE, in getExistingSubIds() 338 "UPDATE " + DatabaseHelper.PARTICIPANTS_TABLE + " SET " 375 db.execSQL(DatabaseHelper.getCreateSelfParticipantSql(subId)); in refreshSelfParticipantList() 617 db.update(DatabaseHelper.PARTICIPANTS_TABLE, values, ParticipantColumns._ID + "=?", in updateParticipant() 636 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE, in getInactiveSelfParticipantIds() 674 cursor = db.query(DatabaseHelper.CONVERSATIONS_TABLE, in getConversationsWithSelfParticipantIds()
|
D | DatabaseHelper.java | 45 public class DatabaseHelper extends SQLiteOpenHelper { class 566 private static DatabaseHelper sHelperInstance; // Protected by sLock. 579 public static DatabaseHelper getInstance(final Context context) { in getInstance() 582 sHelperInstance = new DatabaseHelper(context); in getInstance() 593 private DatabaseHelper(final Context context) { in DatabaseHelper() method in DatabaseHelper 605 static DatabaseHelper getNewInstanceForTest(final Context context) { in getNewInstanceForTest() 608 return new DatabaseHelper(context); in getNewInstanceForTest() 676 for (final String sql : DatabaseHelper.CREATE_VIEW_SQLS) { in rebuildAllViews()
|
D | NotificationState.java | 22 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 54 DatabaseHelper.MessageColumns.SEEN + " = 0)"; 56 static final String FAILED_ORDER_BY = DatabaseHelper.MessageColumns.CONVERSATION_ID + ", " + 57 DatabaseHelper.MessageColumns.SENT_TIMESTAMP + " asc";
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ProcessPendingMessagesAction.java | 31 import com.android.messaging.datamodel.DatabaseHelper; 32 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 306 sending = db.query(DatabaseHelper.MESSAGES_TABLE, in findNextMessageToSend() 308 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?)", in findNextMessageToSend() 313 DatabaseHelper.MessageColumns.RECEIVED_TIMESTAMP + " ASC"); in findNextMessageToSend() 318 values.put(DatabaseHelper.MessageColumns.STATUS, in findNextMessageToSend() 320 cursor = db.query(DatabaseHelper.MESSAGES_TABLE, in findNextMessageToSend() 322 DatabaseHelper.MessageColumns.STATUS + " IN (" in findNextMessageToSend() 328 DatabaseHelper.MessageColumns.RECEIVED_TIMESTAMP + " ASC"); in findNextMessageToSend() 399 downloadingCnt = (int) db.queryNumEntries(DatabaseHelper.MESSAGES_TABLE, in findNextMessageToDownload() [all …]
|
D | FixupMessageStatusOnStartupAction.java | 24 import com.android.messaging.datamodel.DatabaseHelper; 61 values.put(DatabaseHelper.MessageColumns.STATUS, in executeAction() 63 downloadFailedCnt += db.update(DatabaseHelper.MESSAGES_TABLE, values, in executeAction() 64 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?)", in executeAction() 72 values.put(DatabaseHelper.MessageColumns.STATUS, in executeAction() 74 sendFailedCnt = db.update(DatabaseHelper.MESSAGES_TABLE, values, in executeAction() 75 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?)", in executeAction()
|
D | MarkAsSeenAction.java | 26 import com.android.messaging.datamodel.DatabaseHelper; 27 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 83 final int count = db.update(DatabaseHelper.MESSAGES_TABLE, values, in executeAction() 91 db.update(DatabaseHelper.MESSAGES_TABLE, values, in executeAction()
|
D | SyncMessageBatch.java | 28 import com.android.messaging.datamodel.DatabaseHelper; 29 import com.android.messaging.datamodel.DatabaseHelper.ConversationColumns; 30 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 96 batchDelete(db, DatabaseHelper.MESSAGES_TABLE, MessageColumns._ID, in updateLocalDatabase() 305 + " FROM " + DatabaseHelper.CONVERSATIONS_TABLE in rethrowSQLiteConstraintExceptionWithDetails()
|
D | UpdateMessagePartSizeAction.java | 25 import com.android.messaging.datamodel.DatabaseHelper; 27 import com.android.messaging.datamodel.DatabaseHelper.PartColumns; 72 BugleDatabaseOperations.updateRowIfExists(db, DatabaseHelper.PARTS_TABLE, in executeAction()
|
D | RedownloadMmsAction.java | 28 import com.android.messaging.datamodel.DatabaseHelper; 85 values.put(DatabaseHelper.MessageColumns.STATUS, in executeAction() 87 values.put(DatabaseHelper.MessageColumns.RETRY_START_TIMESTAMP, timestamp); in executeAction()
|
D | MarkAsReadAction.java | 26 import com.android.messaging.datamodel.DatabaseHelper; 27 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 74 final int count = db.update(DatabaseHelper.MESSAGES_TABLE, values, in executeAction()
|
D | ProcessDeliveryReportAction.java | 28 import com.android.messaging.datamodel.DatabaseHelper; 78 values.put(DatabaseHelper.MessageColumns.STATUS, bugleStatus); in executeAction() 79 values.put(DatabaseHelper.MessageColumns.SENT_TIMESTAMP, in executeAction()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
D | TestDataFactory.java | 28 import com.android.messaging.datamodel.DatabaseHelper; 29 import com.android.messaging.datamodel.DatabaseHelper.ConversationColumns; 30 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 31 import com.android.messaging.datamodel.DatabaseHelper.PartColumns; 32 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 302 final long conversationId = db.insert(DatabaseHelper.CONVERSATIONS_TABLE, null, in createTestData() 313 … final long messageId = db.insert(DatabaseHelper.MESSAGES_TABLE, null, messageValues); in createTestData() 321 db.insert(DatabaseHelper.PARTS_TABLE, null, partValues); in createTestData() 326 final int updatedCount = db.update(DatabaseHelper.CONVERSATIONS_TABLE, in createTestData()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 277 DatabaseHelper database; 370 static final class DatabaseHelper extends SQLiteOpenHelper { class in MediaProvider 388 public DatabaseHelper(Context context, String name, boolean internal, in DatabaseHelper() method in MediaProvider.DatabaseHelper 568 private void ensureDefaultFolders(DatabaseHelper helper, SQLiteDatabase db) { in ensureDefaultFolders() 628 mDatabases = new HashMap<String, DatabaseHelper>(); in onCreate() 1306 DatabaseHelper helper = getDatabaseForUri(uri); in query() 1844 DatabaseHelper helper = getDatabaseForUri(uri); in bulkInsert() 1968 private long insertDirectory(DatabaseHelper helper, SQLiteDatabase db, String path) { in insertDirectory() 1985 private long getParent(DatabaseHelper helper, SQLiteDatabase db, String path) { in getParent() 2041 …private long insertFile(DatabaseHelper helper, Uri uri, ContentValues initialValues, int mediaType, in insertFile() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | DbDowngradeHelperTest.java | 33 import com.android.launcher3.LauncherProvider.DatabaseHelper; 117 helper = new DatabaseHelper(mContext, null, DB_FILE) { in testDowngrade_success_v22() 149 DatabaseHelper dbHelper = new DatabaseHelper(mContext, null, DB_FILE) { in setupTestDb()
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProviderUpgradeReceiver.java | 29 import com.android.providers.tv.TvProvider.DatabaseHelper; 68 DatabaseHelper helper = DatabaseHelper.getInstance(context); in onReceive()
|
D | TransientRowHelper.java | 29 import com.android.providers.tv.TvProvider.DatabaseHelper; 41 private DatabaseHelper mDatabaseHelper; 62 mDatabaseHelper = DatabaseHelper.getInstance(context); in TransientRowHelper()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | LastAccessedProvider.java | 82 private DatabaseHelper mHelper; 84 private static class DatabaseHelper extends SQLiteOpenHelper { class in LastAccessedProvider 95 public DatabaseHelper(Context context) { in DatabaseHelper() method in LastAccessedProvider.DatabaseHelper 135 mHelper = new DatabaseHelper(getContext()); in onCreate()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | SearchRecentSuggestionsProvider.java | 75 mOpenHelper = new DatabaseHelper(mContext, DATABASE_VERSION); in SearchRecentSuggestionsProvider() 96 private static class DatabaseHelper extends SQLiteOpenHelper { class in SearchRecentSuggestionsProvider 97 public DatabaseHelper(Context context, int newVersion) { in DatabaseHelper() method in SearchRecentSuggestionsProvider.DatabaseHelper
|