/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 …]
|
/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 | 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";
|
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()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ProcessPendingMessagesAction.java | 32 import com.android.messaging.datamodel.DatabaseHelper; 33 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 34 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 346 String[] projection = prefixProjectionWithTable(DatabaseHelper.MESSAGES_TABLE, in findNextMessageToSend() 349 prefixColumnWithTable(DatabaseHelper.MESSAGES_TABLE, in findNextMessageToSend() 352 + prefixColumnWithTable(DatabaseHelper.PARTICIPANTS_TABLE, in findNextMessageToSend() 357 sending = db.query(DatabaseHelper.MESSAGES_TABLE + "," in findNextMessageToSend() 358 + DatabaseHelper.PARTICIPANTS_TABLE, in findNextMessageToSend() 360 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?)" in findNextMessageToSend() 367 DatabaseHelper.MessageColumns.RECEIVED_TIMESTAMP + " ASC"); in findNextMessageToSend() [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()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/ |
D | SearchHistoryManager.java | 49 DatabaseHelper.COLUMN_KEYWORD, DatabaseHelper.COLUMN_LAST_UPDATED_TIME 53 private final DatabaseHelper mHelper; 65 mHelper = new DatabaseHelper(context); in SearchHistoryManager() 86 private static class DatabaseHelper extends SQLiteOpenHelper { class in SearchHistoryManager 94 private DatabaseHelper(Context context) { in DatabaseHelper() method in SearchHistoryManager.DatabaseHelper 189 queryBuilder.setTables(DatabaseHelper.HISTORY_TABLE); in getSortedHistoryList() 192 null, null, null, DatabaseHelper.COLUMN_LAST_UPDATED_TIME + " DESC"); in getSortedHistoryList() 197 values.put(DatabaseHelper.COLUMN_KEYWORD, mKeyword); in addDatabaseData() 198 values.put(DatabaseHelper.COLUMN_LAST_UPDATED_TIME, System.currentTimeMillis()); in addDatabaseData() 201 DatabaseHelper.HISTORY_TABLE, null, values); in addDatabaseData() [all …]
|
/packages/providers/MediaProvider/legacy/src/com/android/providers/media/ |
D | LegacyMediaProvider.java | 19 import static com.android.providers.media.DatabaseHelper.EXTERNAL_DATABASE_NAME; 20 import static com.android.providers.media.DatabaseHelper.INTERNAL_DATABASE_NAME; 54 private DatabaseHelper mInternalDatabase; 55 private DatabaseHelper mExternalDatabase; 81 mInternalDatabase = new DatabaseHelper(context, INTERNAL_DATABASE_NAME, in onCreate() 83 mExternalDatabase = new DatabaseHelper(context, EXTERNAL_DATABASE_NAME, in onCreate() 89 private @NonNull DatabaseHelper getDatabaseForUri(Uri uri) { in getDatabaseForUri() 102 final DatabaseHelper helper = getDatabaseForUri(uri); in query() 118 final Set<DatabaseHelper> transactions = new ArraySet<>(); in applyBatch() 121 final DatabaseHelper helper = getDatabaseForUri(op.getUri()); in applyBatch() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | DatabaseHelperTest.java | 21 import static com.android.providers.media.DatabaseHelper.makePristineSchema; 75 try (DatabaseHelper helper = new DatabaseHelperR(sIsolatedContext, TEST_CLEAN_DB)) { in testFilterVolumeNames() 157 try (DatabaseHelper helper = new DatabaseHelperR(sIsolatedContext, TEST_CLEAN_DB)) { in testTransactions() 186 private void assertDowngrade(Class<? extends DatabaseHelper> before, in assertDowngrade() 187 Class<? extends DatabaseHelper> after) throws Exception { in assertDowngrade() 188 try (DatabaseHelper helper = before.getConstructor(Context.class, String.class) in assertDowngrade() 207 try (DatabaseHelper helper = after.getConstructor(Context.class, String.class) in assertDowngrade() 233 private void assertRecompute(Class<? extends DatabaseHelper> before, in assertRecompute() 234 Class<? extends DatabaseHelper> after) throws Exception { in assertRecompute() 235 try (DatabaseHelper helper = before.getConstructor(Context.class, String.class) in assertRecompute() [all …]
|
/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/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 106 protected DatabaseHelper mOpenHelper; 149 mOpenHelper = DatabaseHelper.createDatabaseHelper( in createDbIfNotExists() 165 Supplier<DatabaseHelper> src, Supplier<DatabaseHelper> dst) { in prepForMigration() 170 final DatabaseHelper helper = src.get(); in prepForMigration() 194 @Thunk static int dbInsertAndCheck(DatabaseHelper helper, in dbInsertAndCheck() 436 () -> DatabaseHelper.createDatabaseHelper( in call() 448 () -> DatabaseHelper.createDatabaseHelper( in call() 610 public static class DatabaseHelper extends NoLocaleSQLiteHelper implements class in LauncherProvider 619 static DatabaseHelper createDatabaseHelper(Context context, boolean forMigration) { in createDatabaseHelper() 623 static DatabaseHelper createDatabaseHelper(Context context, String dbName, in createDatabaseHelper() [all …]
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | TvProviderForTesting.java | 30 DatabaseHelper mDatabaseHelper; 66 DatabaseHelper getDatabaseHelper() { in getDatabaseHelper() 75 mDatabaseHelper = DatabaseHelper.getInstance(getContext()); in insertWatchedProgramSync() 82 private static class DatabaseHelperForTesting extends TvProvider.DatabaseHelper {
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | TransientRowHelper.java | 29 import com.android.providers.tv.TvProvider.DatabaseHelper; 41 private DatabaseHelper mDatabaseHelper; 62 mDatabaseHelper = DatabaseHelper.getInstance(context); in TransientRowHelper() 66 TransientRowHelper(Context context, DatabaseHelper databaseHelper) { in TransientRowHelper()
|
D | TvProviderUpgradeReceiver.java | 29 import com.android.providers.tv.TvProvider.DatabaseHelper; 68 DatabaseHelper helper = DatabaseHelper.getInstance(context); in onReceive()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | PickCountRecordProvider.java | 65 private PickCountRecordProvider.DatabaseHelper mHelper; 67 private static class DatabaseHelper extends SQLiteOpenHelper { class in PickCountRecordProvider 72 public DatabaseHelper(Context context) { in DatabaseHelper() method in PickCountRecordProvider.DatabaseHelper 93 mHelper = new DatabaseHelper(getContext()); in onCreate()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | SQLiteQueryBuilder.java | 46 import com.android.providers.media.DatabaseHelper; 444 public Cursor query(DatabaseHelper helper, String[] projectionIn, Bundle queryArgs, in query() 456 public Cursor query(DatabaseHelper helper, String[] projectionIn, in query() 557 public long insert(@NonNull DatabaseHelper helper, @NonNull ContentValues values) { in insert() 600 public int update(@NonNull DatabaseHelper helper, @NonNull ContentValues values, 686 public int delete(@NonNull DatabaseHelper helper, @Nullable String selection, 910 sql.append(DatabaseHelper.CURRENT_GENERATION_CLAUSE); 914 sql.append(DatabaseHelper.CURRENT_GENERATION_CLAUSE); 957 sql.append(DatabaseHelper.CURRENT_GENERATION_CLAUSE);
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | DbDowngradeHelperTest.java | 36 import com.android.launcher3.LauncherProvider.DatabaseHelper; 133 helper = new DatabaseHelper(mContext, DB_FILE, false) { in testDowngrade_success_v22() 164 DatabaseHelper dbHelper = new DatabaseHelper(mContext, DB_FILE, false) { in setupTestDb()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaUpgradeReceiver.java | 52 int dbVersion = DatabaseHelper.getDatabaseVersion(context); in onReceive() 68 DatabaseHelper helper = new DatabaseHelper( in onReceive()
|