HomeSort by relevance Sort by last modified time
    Searched refs:DatabaseHelper (Results 26 - 50 of 93) sorted by null

12 3 4

  /cts/tests/JobScheduler/src/android/jobscheduler/
DummyJobContentProvider.java 35 private DatabaseHelper mDbHelper;
57 mDbHelper = new DatabaseHelper(getContext());
61 private class DatabaseHelper extends SQLiteOpenHelper {
64 DatabaseHelper(Context context) {
  /cts/tests/tests/content/src/android/content/cts/
DummyProvider.java 40 private DatabaseHelper mDbHelper;
68 mDbHelper = new DatabaseHelper(getContext());
72 private class DatabaseHelper extends SQLiteOpenHelper {
75 DatabaseHelper(Context context) {
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
ConversationParticipantsDataTest.java 22 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns;
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,
313 final long messageId = db.insert(DatabaseHelper.MESSAGES_TABLE, null, messageValues);
321 db.insert(DatabaseHelper.PARTS_TABLE, null, partValues);
326 final int updatedCount = db.update(DatabaseHelper.CONVERSATIONS_TABLE,
  /packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
RestoreDbTaskTest.java 9 import com.android.launcher3.LauncherProvider.DatabaseHelper;
55 private class MyDatabaseHelper extends DatabaseHelper {
  /packages/providers/MediaProvider/src/com/android/providers/media/
MediaUpgradeReceiver.java 69 MediaProvider.DatabaseHelper helper = new MediaProvider.DatabaseHelper(
  /development/samples/MySampleRss/src/com/example/codelab/rssexample/
RssContentProvider.java 39 private DatabaseHelper mDbHelper = new DatabaseHelper();
69 private static class DatabaseHelper extends ContentProviderDatabaseHelper{
81 Logger.getLogger("com.example.codelab.rssexample").info("DatabaseHelper.onCreate(): SQL statement: " + sql);
83 Logger.getLogger("com.example.codelab.rssexample").info("DatabaseHelper.onCreate(): Created a database");
85 Logger.getLogger("com.example.codelab.rssexample").warning("DatabaseHelper.onCreate(): Couldn't create a database!");
  /frameworks/base/core/tests/coretests/src/android/app/activity/
LocalProvider.java 57 private static class DatabaseHelper extends SQLiteOpenHelper {
61 public DatabaseHelper(Context context) {
103 mOpenHelper = new DatabaseHelper(getContext());
  /frameworks/base/core/tests/coretests/src/android/content/
MemoryFileProvider.java 62 private static class DatabaseHelper extends SQLiteOpenHelper {
66 public DatabaseHelper(Context context) {
101 mOpenHelper = new DatabaseHelper(getContext());
  /packages/apps/Launcher3/src/com/android/launcher3/provider/
RestoreDbTask.java 25 import com.android.launcher3.LauncherProvider.DatabaseHelper;
49 public static boolean performRestore(DatabaseHelper helper) {
70 private void sanitizeDB(DatabaseHelper helper, SQLiteDatabase db) throws Exception {
  /packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DeleteConversationAction.java 31 import com.android.messaging.datamodel.DatabaseHelper;
32 import com.android.messaging.datamodel.DatabaseHelper.MessageColumns;
145 cursor = db.query(DatabaseHelper.MESSAGES_TABLE,
ProcessDeliveryReportAction.java 28 import com.android.messaging.datamodel.DatabaseHelper;
78 values.put(DatabaseHelper.MessageColumns.STATUS, bugleStatus);
79 values.put(DatabaseHelper.MessageColumns.SENT_TIMESTAMP,
DumpDatabaseAction.java 24 import com.android.messaging.datamodel.DatabaseHelper;
54 final String dbName = DatabaseHelper.DATABASE_NAME;
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,
305 + " FROM " + DatabaseHelper.CONVERSATIONS_TABLE
  /packages/apps/DocumentsUI/src/com/android/documentsui/picker/
LastAccessedProvider.java 82 private DatabaseHelper mHelper;
84 private static class DatabaseHelper extends SQLiteOpenHelper {
95 public DatabaseHelper(Context context) {
135 mHelper = new DatabaseHelper(getContext());
  /packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DbDowngradeHelperTest.java 33 import com.android.launcher3.LauncherProvider.DatabaseHelper;
117 helper = new DatabaseHelper(mContext, null, DB_FILE) {
149 DatabaseHelper dbHelper = new DatabaseHelper(mContext, null, DB_FILE) {
  /packages/apps/Messaging/src/com/android/messaging/datamodel/
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,
319 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE,
338 "UPDATE " + DatabaseHelper.PARTICIPANTS_TABLE + " SET "
375 db.execSQL(DatabaseHelper.getCreateSelfParticipantSql(subId));
617 db.update(DatabaseHelper.PARTICIPANTS_TABLE, values, ParticipantColumns._ID + "=?",
636 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE,
674 cursor = db.query(DatabaseHelper.CONVERSATIONS_TABLE
    [all...]
DatabaseHelper.java 45 public class DatabaseHelper extends SQLiteOpenHelper {
566 private static DatabaseHelper sHelperInstance; // Protected by sLock.
573 * Get a (singleton) instance of {@link DatabaseHelper}, creating one if there isn't one yet.
577 * @return The current (or a new) DatabaseHelper instance.
579 public static DatabaseHelper getInstance(final Context context) {
582 sHelperInstance = new DatabaseHelper(context);
593 private DatabaseHelper(final Context context) {
599 * Test method that always instantiates a new DatabaseHelper instance. This should
602 * @return Brand new DatabaseHelper instance.
605 static DatabaseHelper getNewInstanceForTest(final Context context)
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
FileCache.java 60 private DatabaseHelper mDbHelper;
92 mDbHelper = new DatabaseHelper(context, dbName);
286 private final class DatabaseHelper extends SQLiteOpenHelper {
289 public DatabaseHelper(Context context, String dbName) {
  /packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
UserDictionaryProvider.java 105 private static class DatabaseHelper extends SQLiteOpenHelper {
107 DatabaseHelper(Context context) {
141 private DatabaseHelper mOpenHelper;
145 mOpenHelper = new DatabaseHelper(getContext());
  /frameworks/base/core/java/android/content/
SearchRecentSuggestionsProvider.java 127 private static class DatabaseHelper extends SQLiteOpenHelper {
131 public DatabaseHelper(Context context, int newVersion) {
308 mOpenHelper = new DatabaseHelper(getContext(), mWorkingDbVersion);
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
ParticipantRefreshTest.java 30 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns;
88 db.insert(DatabaseHelper.PARTICIPANTS_TABLE, null, values);
106 final Cursor cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE,
  /development/samples/NotePad/src/com/example/android/notepad/
NotePadProvider.java 99 // Handle to a new DatabaseHelper.
100 private DatabaseHelper mOpenHelper;
153 static class DatabaseHelper extends SQLiteOpenHelper {
155 DatabaseHelper(Context context) {
201 * Initializes the provider by creating a new DatabaseHelper. onCreate() is called
210 mOpenHelper = new DatabaseHelper(getContext());
716 DatabaseHelper getOpenHelperForTest() {
  /packages/apps/Messaging/src/com/android/messaging/datamodel/data/
ParticipantData.java 32 import com.android.messaging.datamodel.DatabaseHelper;
33 import com.android.messaging.datamodel.DatabaseHelper.ParticipantColumns;
150 cursor = dbWrapper.query(DatabaseHelper.PARTICIPANTS_TABLE,
496 values.put(DatabaseHelper.ParticipantColumns.SEND_DESTINATION, mSendDestination);
499 values.put(DatabaseHelper.ParticipantColumns.DISPLAY_DESTINATION, mDisplayDestination);
500 values.put(DatabaseHelper.ParticipantColumns.NORMALIZED_DESTINATION,
  /external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DatabaseContentProvider.java 129 private class DatabaseHelper extends SQLiteOpenHelper {
132 DatabaseHelper(Context context, String name) {
296 mDbHelper = new DatabaseHelper(getContext(), mDbName);

Completed in 828 milliseconds

12 3 4