HomeSort by relevance Sort by last modified time
    Searched defs:mDbHelper (Results 1 - 25 of 25) sorted by null

  /development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/
Notepadv1.java 30 private NotesDbAdapter mDbHelper;
37 mDbHelper = new NotesDbAdapter(this);
38 mDbHelper.open();
61 mDbHelper.createNote(noteName, "");
67 Cursor c = mDbHelper.fetchAllNotes();
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/
NoteEdit.java 31 private NotesDbAdapter mDbHelper;
36 mDbHelper = new NotesDbAdapter(this);
37 mDbHelper.open();
68 Cursor note = mDbHelper.fetchNote(mRowId);
101 long id = mDbHelper.createNote(title, body);
106 mDbHelper.updateNote(mRowId, title, body);
Notepadv3.java 39 private NotesDbAdapter mDbHelper;
46 mDbHelper = new NotesDbAdapter(this);
47 mDbHelper.open();
53 Cursor notesCursor = mDbHelper.fetchAllNotes();
98 mDbHelper.deleteNote(info.id);
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/
Notepadv2.java 39 private NotesDbAdapter mDbHelper;
47 mDbHelper = new NotesDbAdapter(this);
48 mDbHelper.open();
55 mNotesCursor = mDbHelper.fetchAllNotes();
100 mDbHelper.deleteNote(info.id);
134 mDbHelper.createNote(title, body);
142 mDbHelper.updateNote(rowId, editTitle, editBody);
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/
Notepadv3.java 39 private NotesDbAdapter mDbHelper;
47 mDbHelper = new NotesDbAdapter(this);
48 mDbHelper.open();
55 mNotesCursor = mDbHelper.fetchAllNotes();
100 mDbHelper.deleteNote(info.id);
134 mDbHelper.createNote(title, body);
142 mDbHelper.updateNote(rowId, editTitle, editBody);
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
Notepadv2.java 38 private NotesDbAdapter mDbHelper;
46 mDbHelper = new NotesDbAdapter(this);
47 mDbHelper.open();
53 mNotesCursor = mDbHelper.fetchAllNotes();
NotesDbAdapter.java 44 private DatabaseHelper mDbHelper;
101 mDbHelper = new DatabaseHelper(mCtx);
102 mDb = mDbHelper.getWritableDatabase();
107 mDbHelper.close();
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
SynchronousContactsProvider2.java 33 private static ContactsDatabaseHelper mDbHelper;
40 if (mDbHelper == null) {
41 mDbHelper = new ContactsDatabaseHelper(context);
43 return mDbHelper;
47 mDbHelper = null;
CallLogProviderTest.java 152 private static ContactsDatabaseHelper mDbHelper;
156 if (mDbHelper == null) {
157 mDbHelper = new ContactsDatabaseHelper(context);
159 return mDbHelper;
LegacyContactImporterPerformanceTest.java 112 private static ContactsDatabaseHelper mDbHelper;
116 if (mDbHelper == null) {
117 mDbHelper = new ContactsDatabaseHelper(context);
119 return mDbHelper;
LegacyContactImporterTest.java 285 private static ContactsDatabaseHelper mDbHelper;
289 if (mDbHelper == null) {
290 mDbHelper = new ContactsDatabaseHelper(context);
292 return mDbHelper;
  /development/samples/MySampleRss/src/com/example/codelab/rssexample/
RssContentProvider.java 39 private DatabaseHelper mDbHelper = new DatabaseHelper();
106 mDb = mDbHelper.openDatabase(getContext(), DATABASE_NAME, null, DB_VERSION);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
CallLogProvider.java 70 private ContactsDatabaseHelper mDbHelper;
78 mDbHelper = getDatabaseHelper(context);
79 SQLiteDatabase db = mDbHelper.getWritableDatabase();
128 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
163 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
189 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
SocialProvider.java 125 private ContactsDatabaseHelper mDbHelper;
131 mDbHelper = ContactsDatabaseHelper.getInstance(context);
180 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
190 values.put(ActivitiesColumns.PACKAGE_ID, mDbHelper.getPackageId(packageName));
195 values.put(ActivitiesColumns.MIMETYPE_ID, mDbHelper.getMimeTypeId(mimeType));
296 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
325 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
395 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
397 return mDbHelper.getActivityMimeType(activityId);
ContactsProvider2.java     [all...]
LegacyApiSupport.java 495 private final ContactsDatabaseHelper mDbHelper;
518 mDbHelper = contactsDatabaseHelper;
525 SQLiteDatabase db = mDbHelper.getReadableDatabase();
536 mMimetypeEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE);
537 mMimetypeIm = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE);
538 mMimetypePostal = mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE);
    [all...]
LegacyContactImporter.java 77 private ContactsDatabaseHelper mDbHelper;
167 mDbHelper = (ContactsDatabaseHelper)mContactsProvider.getDatabaseHelper();
168 mTargetDb = mDbHelper.getWritableDatabase();
170 mStructuredNameMimetypeId = mDbHelper.getMimeTypeId(StructuredName.CONTENT_ITEM_TYPE);
171 mNoteMimetypeId = mDbHelper.getMimeTypeId(Note.CONTENT_ITEM_TYPE);
172 mOrganizationMimetypeId = mDbHelper.getMimeTypeId(Organization.CONTENT_ITEM_TYPE);
173 mPhoneMimetypeId = mDbHelper.getMimeTypeId(Phone.CONTENT_ITEM_TYPE);
174 mEmailMimetypeId = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE);
175 mImMimetypeId = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE);
176 mPostalMimetypeId = mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE)
    [all...]
ContactAggregator.java 94 private final ContactsDatabaseHelper mDbHelper;
205 mDbHelper = contactsDatabaseHelper;
208 SQLiteDatabase db = mDbHelper.getReadableDatabase();
295 mMimeTypeIdEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE);
296 mMimeTypeIdPhoto = mDbHelper.getMimeTypeId(Photo.CONTENT_ITEM_TYPE);
297 mMimeTypeIdPhone = mDbHelper.getMimeTypeId(Phone.CONTENT_ITEM_TYPE);
418 mDbHelper.updateContactVisible(contactId);
441 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
446 mDbHelper.updateContactVisible(contactId);
512 mDbHelper.updateContactVisible(contactId)
    [all...]
  /cts/tests/src/android/content/cts/
DummyProvider.java 43 private DatabaseHelper mDbHelper;
71 mDbHelper = new DatabaseHelper(getContext());
105 SQLiteDatabase db = mDbHelper.getWritableDatabase();
124 SQLiteDatabase db = mDbHelper.getReadableDatabase();
170 SQLiteDatabase db = mDbHelper.getWritableDatabase();
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarProvider2.java 131 private CalendarDatabaseHelper mDbHelper;
331 mDbHelper = (CalendarDatabaseHelper)getDatabaseHelper();
349 mMetaData = new MetaData(mDbHelper);
350 mCalendarCache = new CalendarCache(mDbHelper);
407 mDb = mDbHelper.getWritableDatabase();
599 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
608 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs,
    [all...]

Completed in 1055 milliseconds