/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; 627 + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns.CONVERSATION_ID + "=?)" in getConversationMessagesQuerySql() 635 + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns.CONVERSATION_ID + "=?)" in getConversationMessageIdsQuerySql() 642 + "(" + DatabaseHelper.MessageColumns.STATUS + " in (" in getNotificationQuerySql() 646 + DatabaseHelper.MessageColumns.SEEN + " = 0)" in getNotificationQuerySql() 654 + DatabaseHelper.MESSAGES_TABLE + "." + MessageColumns.CONVERSATION_ID + "=?" in getWearableQuerySql() 656 + DatabaseHelper.MessageColumns.STATUS + " IN (" in getWearableQuerySql() [all …]
|
D | ParticipantData.java | 34 import com.android.messaging.datamodel.DatabaseHelper; 35 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns; 156 cursor = dbWrapper.query(DatabaseHelper.PARTICIPANTS_TABLE, in getFromId() 302 db.query(DatabaseHelper.PARTICIPANTS_TABLE, in getParticipantId() 530 values.put(DatabaseHelper.ParticipantColumns.SEND_DESTINATION, mSendDestination); in toContentValues() 533 values.put(DatabaseHelper.ParticipantColumns.DISPLAY_DESTINATION, mDisplayDestination); in toContentValues() 534 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 | 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 569 private static DatabaseHelper sHelperInstance; // Protected by sLock. 582 public static DatabaseHelper getInstance(final Context context) { in getInstance() 585 sHelperInstance = new DatabaseHelper(context); in getInstance() 596 private DatabaseHelper(final Context context) { in DatabaseHelper() method in DatabaseHelper 608 static DatabaseHelper getNewInstanceForTest(final Context context) { in getNewInstanceForTest() 610 return new DatabaseHelper(context); in getNewInstanceForTest() 678 for (final String sql : DatabaseHelper.CREATE_VIEW_SQLS) { in rebuildAllViews()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | DatabaseHelperTest.java | 21 import static com.android.providers.media.DatabaseHelper.VERSION_LATEST; 22 import static com.android.providers.media.DatabaseHelper.makePristineSchema; 84 try (DatabaseHelper helper = new DatabaseHelperS(sIsolatedContext, TEST_CLEAN_DB)) { in testFilterVolumeNames() 166 try (DatabaseHelper helper = new DatabaseHelperR(sIsolatedContext, TEST_CLEAN_DB)) { in testArtistsAndAlbumsIncludeOnlyMusic() 228 try (DatabaseHelper helper = new DatabaseHelperR(sIsolatedContext, TEST_CLEAN_DB)) { in testTransactions() 262 private void assertDowngrade(Class<? extends DatabaseHelper> before, in assertDowngrade() 263 Class<? extends DatabaseHelper> after) throws Exception { in assertDowngrade() 264 try (DatabaseHelper helper = before.getConstructor(Context.class, String.class) in assertDowngrade() 283 try (DatabaseHelper helper = after.getConstructor(Context.class, String.class) in assertDowngrade() 314 private void assertRecompute(Class<? extends DatabaseHelper> before, in assertRecompute() [all …]
|
/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; 55 private DatabaseHelper mInternalDatabase; 56 private DatabaseHelper mExternalDatabase; 82 mInternalDatabase = new DatabaseHelper(context, INTERNAL_DATABASE_NAME, in onCreate() 84 mExternalDatabase = new DatabaseHelper(context, EXTERNAL_DATABASE_NAME, in onCreate() 90 private @NonNull DatabaseHelper getDatabaseForUri(Uri uri) { in getDatabaseForUri() 104 final DatabaseHelper helper = getDatabaseForUri(uri); in query() 120 final Set<DatabaseHelper> transactions = new ArraySet<>(); in applyBatch() 123 final DatabaseHelper helper = getDatabaseForUri(op.getUri()); in applyBatch() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ProcessPendingMessagesAction.java | 29 import com.android.messaging.datamodel.DatabaseHelper; 30 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns; 329 sendingCnt = (int) db.queryNumEntries(DatabaseHelper.MESSAGES_TABLE, in findNextMessageToSend() 330 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?) AND " in findNextMessageToSend() 331 + DatabaseHelper.MessageColumns.SELF_PARTICIPANT_ID + " =? ", in findNextMessageToSend() 339 cursor = db.query(DatabaseHelper.MESSAGES_TABLE, in findNextMessageToSend() 341 DatabaseHelper.MessageColumns.STATUS + " IN (?, ?) AND " in findNextMessageToSend() 342 + DatabaseHelper.MessageColumns.SELF_PARTICIPANT_ID + " =? ", in findNextMessageToSend() 350 DatabaseHelper.MessageColumns.RECEIVED_TIMESTAMP + " ASC"); in findNextMessageToSend() 354 values.put(DatabaseHelper.MessageColumns.STATUS, 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() 71 values.put(DatabaseHelper.MessageColumns.STATUS, in executeAction() 73 sendFailedCnt = db.update(DatabaseHelper.MESSAGES_TABLE, values, in executeAction() 74 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()
|
/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 | 109 protected DatabaseHelper mOpenHelper; 153 mOpenHelper = DatabaseHelper.createDatabaseHelper( in createDbIfNotExists() 169 Supplier<DatabaseHelper> src, Supplier<DatabaseHelper> dst) { in prepForMigration() 174 final DatabaseHelper helper = src.get(); in prepForMigration() 201 @Thunk static int dbInsertAndCheck(DatabaseHelper helper, in dbInsertAndCheck() 444 () -> DatabaseHelper.createDatabaseHelper( in call() 457 () -> DatabaseHelper.createDatabaseHelper( in call() 466 final DatabaseHelper helper = mOpenHelper; in call() 472 mOpenHelper = DatabaseHelper.createDatabaseHelper( in call() 642 public static class DatabaseHelper extends NoLocaleSQLiteHelper implements class in LauncherProvider [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/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 | 60 int dbVersion = DatabaseHelper.getDatabaseVersion(context); in tryMigratingDatabases() 76 DatabaseHelper helper = new DatabaseHelper( in tryMigratingDatabases()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | SQLiteQueryBuilder.java | 46 import com.android.providers.media.DatabaseHelper; 458 public Cursor query(DatabaseHelper helper, String[] projectionIn, Bundle queryArgs, in query() 470 public Cursor query(DatabaseHelper helper, String[] projectionIn, in query() 571 public long insert(@NonNull DatabaseHelper helper, @NonNull ContentValues values) { in insert() 614 public int update(@NonNull DatabaseHelper helper, @NonNull ContentValues values, 700 public int delete(@NonNull DatabaseHelper helper, @Nullable String selection, 935 sql.append(DatabaseHelper.CURRENT_GENERATION_CLAUSE); 939 sql.append(DatabaseHelper.CURRENT_GENERATION_CLAUSE); 982 sql.append(DatabaseHelper.CURRENT_GENERATION_CLAUSE);
|