Home
last modified time | relevance | path

Searched refs:DatabaseHelper (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DConversationListItemData.java24 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 …]
DConversationMessageData.java25 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 …]
DParticipantData.java32 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/
DConversationImagePartsView.java23 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 …]
DBugleDatabaseOperations.java31 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 …]
DMessagingContentProvider.java31 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 …]
DDatabaseUpgradeHelper.java41 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()
DParticipantRefresh.java30 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()
DNotificationState.java22 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";
DDatabaseHelper.java45 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/DocumentsUI/src/com/android/documentsui/queries/
DSearchHistoryManager.java49 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/apps/Messaging/src/com/android/messaging/datamodel/action/
DProcessPendingMessagesAction.java31 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 …]
DFixupMessageStatusOnStartupAction.java24 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()
DMarkAsSeenAction.java26 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()
DSyncMessageBatch.java28 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/providers/MediaProvider/tests/src/com/android/providers/media/
DDatabaseHelperTest.java35 import com.android.providers.media.MediaProvider.DatabaseHelper;
78 private void assertDowngrade(Class<? extends DatabaseHelper> before, in assertDowngrade()
79 Class<? extends DatabaseHelper> after) throws Exception { in assertDowngrade()
80 try (DatabaseHelper helper = before.getConstructor(Context.class, String.class) in assertDowngrade()
99 try (DatabaseHelper helper = after.getConstructor(Context.class, String.class) in assertDowngrade()
118 private void assertUpgrade(Class<? extends DatabaseHelper> before, in assertUpgrade()
119 Class<? extends DatabaseHelper> after) throws Exception { in assertUpgrade()
120 try (DatabaseHelper helper = before.getConstructor(Context.class, String.class) in assertUpgrade()
187 try (DatabaseHelper helper = after.getConstructor(Context.class, String.class) in assertUpgrade()
259 try (DatabaseHelper helper2 = after.getConstructor(Context.class, String.class) in assertUpgrade()
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyDatabaseHelperTest.java55 private TelephonyProvider.DatabaseHelper mHelper; // the actual class being tested
62 mHelper = new TelephonyProvider.DatabaseHelper(mContext); in setUp()
72 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.DatabaseHelper.getVersion(mContext)); in databaseHelperOnUpgrade_hasApnSetIdField()
87 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.DatabaseHelper.getVersion(mContext)); in databaseHelperOnUpgrade_hasCarrierIdField()
100 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.DatabaseHelper.getVersion(mContext)); in databaseHelperOnUpgrade_hasCountryIsoField()
113 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.DatabaseHelper.getVersion(mContext)); in databaseHelperOnUpgrade_hasProfileClassField()
127 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.DatabaseHelper.getVersion(mContext)); in databaseHelperOnUpgrade_hasSkip464XlatField()
141 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.DatabaseHelper.getVersion(mContext)); in databaseHelperOnUpgrade_columnsMatchNewlyCreatedDb()
177 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.DatabaseHelper.getVersion(mContext)); in databaseHelperOnUpgrade_hasSubscriptionTypeField()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DTestDataFactory.java28 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/TvProvider/tests/src/com/android/providers/tv/
DTvProviderForTesting.java30 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/
DTransientRowHelper.java29 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()
DTvProviderUpgradeReceiver.java29 import com.android.providers.tv.TvProvider.DatabaseHelper;
68 DatabaseHelper helper = DatabaseHelper.getInstance(context); in onReceive()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickCountRecordProvider.java65 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/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugStorageProvider.java67 private DatabaseHelper mDatabaseHelper;
73 private static class DatabaseHelper extends SQLiteOpenHelper { class in BugStorageProvider
74 private static final String TAG = DatabaseHelper.class.getSimpleName();
96 DatabaseHelper(Context context) { in DatabaseHelper() method in BugStorageProvider.DatabaseHelper
124 mDatabaseHelper = new DatabaseHelper(getContext()); in onCreate()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDbDowngradeHelperTest.java36 import com.android.launcher3.LauncherProvider.DatabaseHelper;
133 helper = new DatabaseHelper(mContext, null, DB_FILE) { in testDowngrade_success_v22()
164 DatabaseHelper dbHelper = new DatabaseHelper(mContext, null, DB_FILE) { in setupTestDb()
/packages/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java58 public DatabaseHelper mDatabaseHelper;
60 private class DatabaseHelper extends SQLiteOpenHelper { class in GrantsDatabase
63 public DatabaseHelper(Context context, ExistingKeysProvider keysProvider) { in DatabaseHelper() method in GrantsDatabase.DatabaseHelper
149 mDatabaseHelper = new DatabaseHelper(context, keysProvider); in GrantsDatabase()

123